Signal Conditioning

cancel
Showing results for 
Search instead for 
Did you mean: 

Applying a scale progmatically?

I am trying to progmatically set the scale of a DAQmx channel in LV8. This system is used to test 1000s of devices therefor it is not practical to have a named custom scale for each one. Is there some way to progmatically create a custom scale and assign it to a DAQmx channel?
0 Kudos
Message 1 of 9
(5,545 Views)
Do you mean a common custom scale for all Channels?
0 Kudos
Message 2 of 9
(5,533 Views)
Basically in the setup I have up to 7 distinctive channels that each would need it's own scaling depending on the type of transducer we are measureing. There will always be at least 2 and each channel would have it's own scaling. The scaling I am wanting to apply is the trasnducers sensitivity.
0 Kudos
Message 3 of 9
(5,532 Views)

Hello,

It is possible to use a different scale for each channel in your analog input task and to set this all up programmatically.  I am attaching an example.  Basically, you have to first create your analog input channels and give them a name.  Then, you use the DAQmx Create Scale VI to create a scale and then DAQmx Channel property node to set the active channel and the scale information.  I have done only two channels, but it can be scaled up.  I have taken a rather brute force approach to creating each scale, but you could use a loop to increment the scale and channel name. 

Let us know if you have further questions.

Thanks,

Laura

0 Kudos
Message 4 of 9
(5,523 Views)
Thanx. That looks like what I need to be doing.
0 Kudos
Message 5 of 9
(5,518 Views)

Hi,

Is there any chance you could resave that example vi in labview 7.1?

Thanks,

Jason

0 Kudos
Message 6 of 9
(5,502 Views)

Hi Jason,

Absolutely!  Let me know if you can't open the attachment in 7.1. 

Regards,

Laura

0 Kudos
Message 7 of 9
(5,495 Views)
Hi Laura,

your VI is really helpful.

i have used the same technique to programatically changing the channel custom scale. i thought of taking each channel from the task, change the scaling property of the channel, put it back to the channel list.
i failed to do so because the channel list is read-only. not resettable.

then your VI helped me how to make a channel of the task active and change the settings. Thanks alot..

i feel this should be updated in DAQmx help somewhere because the scaling is different for different sensors and is useful very often.
0 Kudos
Message 8 of 9
(4,937 Views)
Hello Share_Good,

Thanks for the valuable feedback!

Also, feel free to let us know any time you have a suggestion for any of our products, documentation, or services.  You can do so by following the link below and clicking on the "Feedback" link in the lower left:

Contact Us
http://sine.ni.com/apps/utf8/nicc.call_me

Thanks again!
Regards,
John Bongaarts
0 Kudos
Message 9 of 9
(4,914 Views)