Hi Zhang,
Have you tried using the get_capabilities.py and genereta_subclasses.py scripts that serve to identify and create the NI DAQ devices not supported by Labscript by default? You can find more information about the details here:
NI DAQs — labscript suite | labscript-devices.
I used it to generate subclasses for PCIe devices, but not for PXI devices, however I don't think that should make a difference as long as the device is connected to your PC.
We've been using similar approach before we upgraded to the latest version of labscript (copying similar device and changing the parameters by hand) for a long time and found no problems caused to the hardware through labscript. However we managed to get a bit limited by this approach, because we didn't put in the inputs of the card...
I hope this helps.
Cheers,
Tomas Lamich