Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

Why is VI hanging after 50 data points

Hey All,
 
When I get my VI to actually work (that is collect more than 1 data point) the program hangs after about 50 data points and then just sits there. No time out errors or anything.
A little background: The VI use to work until the source meter got fried and had to be sent in for repairs. We got is back within a 1 and 1/2 and hooked it back up. Or voltage sweep program still works just fine, but if we use our Constant voltage vs. time VI to measure the current, we either get time out errors or the above. Any help would be very very much appreciative.
 
jbrewer
0 Kudos
Message 1 of 2
(2,909 Views)
Hi jbrewer,

When you say the program hangs, do you mean that the VI stops responding and cannot be terminated, or just that it does not capture any more points? How are you communicating with the device, is it by GPIB, Serial or USB? Are you using the IDNET drivers downloaded from the NI website or did you develop the program entirely yourself?

What you can do is run an NI Spy capture to see if the device is sending data back to the computer. Here is a good article on how you can do this. Please attach the capture in your forum post.

From what you have described, it is wholly possible that your device might be malfunctioning and that the device itself hangs and does not send data beyond 50 points. The NI Spy capture will help us determine what is going on with the communications.
Rasheel
0 Kudos
Message 2 of 2
(2,903 Views)