Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

How do custom scales take effect

Solved!
Go to solution

In my project I created a task and a few linear scales. Each channel within the task is assigned to a scale. In my LabVIEW code I must be able to modify the scales. See the attachment for a simplified piece of code that I'm using. This code is executed at initialisation. The problem is that when I modify the slope and intercept, I have to run the application, abort it and run it again before the new parameters take effect. What am I doing wrong here?

0 Kudos
Message 1 of 4
(3,087 Views)
Solution
Accepted by topic author Steffan

Steffan,

 

You need to stop and destroy the task, then programatically create a new task with the new scales.  See this thread.  http://forums.ni.com/ni/board/message?board.id=250&message.id=48410&query.id=288342#M48410

Message 2 of 4
(3,058 Views)
That fixed it! However, the only thing I need to do is destroy the taks immediately after changing the scales. Apperantely there is no need to re-create the task. Is this because I created the task in the project?
0 Kudos
Message 3 of 4
(3,042 Views)

Steffan,

 

Glad to hear that you got it working.  Have not really looked at tasks defined in the project.  I have always chosen to do everything programatically.

0 Kudos
Message 4 of 4
(3,028 Views)