10-26-2006 10:36 AM
10-26-2006 11:01 AM
I guess you are deleting the task inside the subvi which is being called again and again. Try using the clear task Vis out of the continous loop(if you have one)
You need not change the DAQmx express VI. Only wire the DAQmx tasks out of the sub Vi and clear these tasks in your Main VI after the stop button is pressed.
You can see the way DAQmx tasks are used on any of the DAQmx examples shipped with Labview.
Hope it makes sense to you.
Attach your vi if possible.
Regards
Regards
10-26-2006 02:04 PM
It really in not very practical for me to wire the DAQmx task out of my subvi and to clear the task in my main vi after the stop button is pressed. I actually have 84 test vis with this problem, some with multiple DAQmx tasks. It seems unreasonable to have my test executive keep track of what each test vi is doing and to clear any tasks created just prior to stopping.
What are the consequences of not using DAQmx Clear Task?
Can I force LabView to reload the subvi each time I call it?
10-26-2006 02:39 PM
If I am inderstanding your problem right, you want to create tasks dynamically evertime you open your application and clear them before you start runnning application again.
I have attached a screenshot of what I am trying to tell you.
Let me know if that works for you.
Regards
10-26-2006 03:04 PM
10-26-2006 03:25 PM
10-26-2006 04:17 PM
My test vis (subvis to my test executive) are ment to be completely self-contained. I would like any necessary DAQ tasks to be created at the start of the subvi and closed prior to returning to the test executive. Performance is not an issue. The slowest part of the operation is the operator selecting the test.
What I find very frustrating is that I clear the tasks I create within my test vis, but if I call the same test vi from my test executive a subsequent time, DAQ Assistant will not create a new task. If I want DAQ Assistant to create a new task, then I have to stop my test executive and then restart. DAQ Assistant will only create a new task the first time it is called.
How can I force LabView to reload a subvi whenever is called?
10-26-2006 04:36 PM
10-27-2006 09:35 AM
10-27-2006 09:49 AM