07-31-2018 12:52 PM
How do I keep a DAQMX task running after its calling VI closes? Is this possible?
I am using a PXIe-6363 to generate a pulse train using a counter-based, continuous, pulse generation task . I would like to start the task a in a sub-VI, then exit that sub-VI, but have the pulse generation continue until I later stop the task. Presently, as soon as I exit the sub-VI, the task ceases pulse generation. The sub-VI includes DAQmx VIs to Create Channel, set up Timing, and Start the task.
Solved! Go to Solution.
07-31-2018 01:50 PM
Are you dynamically calling this VI? Otherwise, it should still be running since the top level VI (therefore the VI hierarchy) is still active.
07-31-2018 02:30 PM
Thanks a lot for your quick response, crossrulz. After reading it, I realized my problem. I was testing out the sub-VI directly. Since the sub-VI was my top level VI, the DAQmx task was closing as soon as the VI closed. I just tried calling the sub-VI from another VI and got my desired behavior. Yahoo!