11-04-2011 10:12 AM
While using analog inputs of the USB-6211 device (Labview 8.5 / Win 7) the signal became more and more noisy. By surprise I got a perfect signal after having disconnected and connected the USB card to the system again. This behaviour is reproducible for all cards (n=4) we are using in our lab. Is this a known issue with the 6211 card and, if yes is there any method to reset the card using labview?
Thanks!
Christian
Solved! Go to Solution.
11-04-2011 12:28 PM
11-05-2011 05:14 AM
Hi Michael,
Thanks for the quick feedback! I attached the source code as well as one screenshot that might help to find the critical part. The default state of the program continuously reads data from a laser scanning device (see screenshot 1). The measurement itself is performed
11-06-2011 03:02 PM
Christian,
I find your images of the noisy and good data interesting: No noise appears when the diameter is less than about 2.8. Is there something about the laser scanner which could affect the noise levels at various diameters?
You said that the signal becomes more and more noisy. How long does this take(time or iterations)? Is the software and all the equipment running continuously during that time? Are you scanning the same part or different parts? Is the part growing hair? Do you see the increase in noise if no part is present to be scanned? Does it happen if the scanner is turned off?
Sequence structures and local variables often lead to poorly performing LabVIEW code because LV is a dataflow language and these elements violate dataflow. Search the Forum for numerous posts on those topics and alternatives. They may be causing some problems, but probably have nothing to do with your noise.
In Case 2 the Initiate Motion Change loop will always stop after one iteration, so why have a loop?
Lynn
11-08-2011 05:27 AM
Lynn,
I did run a number of different configurations and finally figured out that this is a hardware problem: The DAQ card is used in differential mode. The laser scanner is a floating source needing a resistor between AI- and AI GND. I guess that electrostatic noise did increase with time and did disappear after resetting the device. Nevertheless I will follow your advice and improve the code as suggested.
Thanks!
Christian
11-08-2011 08:04 PM
Christian,
I am glad you solved your problem. The manuals for most NI DAQ cards recommend resistors from both AI inputs to AI GND to assure that a suitable path for bias currents exists when operated in differential mode.
Lynn