Hi all,
i realized a VI that allows me to start and stop a counter output task previously created in NI MAX. This VI is placed in a while loop and gives me the possibility to change on the fly T-High and T-Low values of the output signal. You can find it attached.
The VI works fine in all aspects except one: when i stop the task and restart it, the T-high and T-low values are always the same and correspond to the first ones i used. It seems not possible to restart the task using different values than those used when it was started for the first time. In the following an exemple:
- Started using T-H=0,01 and T-L=0,01
- Modified using T-H=0,002 and T-L=0,008
- Stopped
- Restarted using T-H=0,002 and T-L=0,008 (last values provided) -> problem: the signal is generated using the first set of values (T-H=0,01 and T-L=0,01)
I tried different methods without success. Thanks for helping me!
Marco