LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Does the change of DAQmx custom scale properties affect tasks which refer to this scale?

I created a task with several AI channels. Some of them refer to custom scales (linear). I want to change the slope of some scales programmatically while the task is in use. This doesn't seem to work, the new slope is only adopted when I stop the IO operations, destroy the task and re-create it. This I would like to avoid. Does anybody now a good approach or a workaround? Thank you in advance.

Karsten
0 Kudos
Message 1 of 3
(2,895 Views)
I suspect that the only way to change a scale is, as you noted, to stop the running task first. One easy work around is to avoid scales in DAQmx and use the math functions in LabVIEW. A linear scale is nothing more than a multiply and add function. With a couple of controls on the front panel, you could change this on the fly.
0 Kudos
Message 2 of 3
(2,889 Views)
Thank you. If you agree that tasks cannot be changed while in use I can stop trying this approach. In this case I prefer by some reasons the recreation of the task, it seems to work properly.
0 Kudos
Message 3 of 3
(2,884 Views)