04-01-2010 02:20 PM
I have a vi that is like the one shown here (figure 3): http://zone.ni.com/devzone/cda/tut/p/id/2991
The duty cycle updates when the value is changed on the front panel as it should. However, if I have another vi send this one a duty cycle it never updates. I have tried using a global variable instead of a local variable and it did not change. Your help is greatly appreciated
Solved! Go to Solution.
04-01-2010 03:29 PM
04-01-2010 10:18 PM
04-02-2010 10:54 AM
04-02-2010 02:37 PM - edited 04-02-2010 02:39 PM
You should not be using the Run continuous button. That is only there for debugging purposes. If you want the code you attached to run more than one time, you should have a while loop around it and a Stop button attached to the loop's stop terminal.
But you don't want to continuously create and kill the task. You should go through the examples in the example finder for DAQmx and see the various ways the DAQmx functions can be used to continuously update your task.