07-15-2015 09:08 PM
This vi is based on the State Machine from "new project" on the splash screen at LV startup.
A while loop is in parallel to the main while loop of the state machine, shown in picture.
It runs continuously until the Exit button is pressed.
The problem seems to be in the ..............start>read>stop..........start>read>stop.......... part along the error line.
The reason for this clunky start/stop arrangement is that the voltages measured are in two different sensitivity ranges.
The shunt voltage is small and needs the -.2 to .2 V range. The load voltage is larger and -10 to 10 V range is good.
In the initialize state, two separate "create channel" vi's were used to specify the voltage range for the physical channel. The corresponding tasks are sent over via local variables.
The DAQmx errors happen randomly, sometimes the first iteration, sometimes the 50th.
I tried disabling one or the other start>read>stop for the shunt or load voltage.
I tried replacing them with DAQ assistant.
I tried various DAQmx vi's: "wait" and "control task with unreserve resource selected".
But error -50103 "specified resource is reserved" keeps popping up.
Is it possible to create two tasks on the same device when they are not used simultaneously?
The only reason is to measure in two voltage ranges.
Win 7 Pro, 64 bit
LV 2014 Base
DAQ hardware: USB 6210
Thank you.
Solved! Go to Solution.
07-15-2015 09:28 PM
07-15-2015 10:59 PM
Hi Dennis,
Thanks. Now I get it.
Best regards,
Carmen