04-26-2006 05:08 PM
04-26-2006 05:16 PM
Hi rjennings-
DAQmx Stop Task will unreserve the hardware and a second task can then be started. If you want to be more sure that the hardware is released you can call DAQmx Control Task to explicitly Unreserve the hardware. Are you seeing the resource reservation error even if you use DAQmx Stop Task for the main task before calling your subVI?
Thanks-
04-26-2006 05:23 PM
04-26-2006 05:26 PM
Hi rjennings-
Can you post a portion of your code?
04-27-2006 07:30 AM
04-27-2006 09:09 AM
04-27-2006 09:44 AM
04-27-2006 09:51 AM
Hi rjennings-
You can just add an indicator the the Error Out terminal of your DAQmx Clear Task VI in the subVI and then "attach" it to a terminal via the usual method on the front panel. If you then connect the newly-created Error Out terminal of your subVI to the Error In terminal of your DAQmx Start Task VI in the main VI you will force the mainVI code to execute only when the subVI is done.
Thanks-
04-27-2006 10:12 AM
04-27-2006 10:15 AM
Hi rjennings-
The easiest way to create an error cluster is either to right-click on any Error In or Error Out terminal of a VI or drop the error cluster control or indicator directly from the Cluster palette on the front panel.