Hi all,
recently I had a problem regarding to the NI USB box used in Labview.
I wrote a very simple program and it is running in Labview 2011. It basically reads some data from a NI USB box and also send some data back. According to my knowledge (I am not sure if it is right or wrong), when the Labview is terminated no matter how it is terminated, the USB box should also stop working. But the thing is, when the Labview program is terminated abnormally, let's say I directly terminate it from the windows task manager when it is running, all ports of the USB box will keep their final states until I restart Labview and write new values to them.
This phenomenon could be very dangerous. For example, when I use the USB box to control the power of a power supply, if the Labview program crashes (which happens a lot), the USB box and power supply will keep running until I restart the program again. I tried several different types of NI USB boxes on different PCs and the problem always occurred. So I am wondering if there is any mechanism that can prevent such problems or if I can do something programmatically to avoid it.
Thank you so much for your help and time.
Best regards,
Sun