LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Chaning Custom Scaling in Program

I'm trying to change custom scaling properties after the scaling has been created. I've created this example to show the problem I'm having. It appears that I'm not able to set an active scale, or at least pass the information to the active scale connector.
 
 
0 Kudos
Message 1 of 2
(2,493 Views)
Hi Amaes,
When you create a custom scale, it becomes part of the DAQmx Task created when using the DAQmx Create Virtual Channel.  Thus, once the task has been started, the scale is committed to the task just like the timing or sample mode.  In order to change the custom scale used by the task, you must stop and clear the task.  You can then reconfigure everything you need (acquistion rate, sample mode, scaling, etc.) and create a new task with this information.  Simply stopping the task does not clear the settings, so even though you are writing new values to the scale, they will not take effect until the current task has been cleared.
Donovan
0 Kudos
Message 2 of 2
(2,457 Views)