I am attempting to use a LabJack U12 as a DAQ and control unit for a shock dyno. The dyno has a built in motor controlled that allows speed adjustment on a 0-5V Analog signal. The U12 outputs this 0-5V signal from AO0 and inputs analog differential sensor signals from (0-1), (2-3), and (4-5). I need to adjust the analog output while simultaneously acquiring data at a sample rate of at least 200Hz (the output rate can be as little as 5 Hz) during a single test cycle.
The VI's AIStream and AOUpdate are placed in parallel while loops for the duration of the testing cycle. I have been running into the error "Unable to claim LabJack" whenever the program is run. I've read that this can occur when multiple VI's are trying to access the U12 simultaneously, but I need uninterrupted DAQ while controlling the cycle. How can I prevent this?
I have also run into "Read Error" when using the AIStream alone. I have even run into this error while using the unmodified example VI's provided by Labjack. Why would this happen?
Thanks in advance for the help.