From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
02-09-2012 03:54 PM
I have a program that set custom scales for each channel in a daqmx task. Now I need to remove them programmatically. How can I do this? Can I set each channel's CustomScaleNames property to "Default Values"? What is the default values?
02-09-2012 03:56 PM
I would suspect that if you want this to be temporary so that you can see the raw channel that you will have to read out the scale an offset and apply them to the signal to ge them back to their raw state.
If you want this to be perminate you will need to go to DaqMX and remove the sacel from the channel.
02-09-2012 04:00 PM
The task was created without any custom scales. It is temporary to set the custom scales, and now I need to change it back to the initial no scale state. I guess I can read the scale before changing it and then apply them back like you suggested. I was just wondering what the "default values" are for that CustomScaleName property.
02-09-2012 04:01 PM
The default is no scale. Are you rpogrammically adding them when you set up the task?
02-09-2012 04:02 PM
You could post what you are doing that might help me understand what you are trying to accomplish.
02-09-2012 04:05 PM
@aeastet wrote:
The default is no scale. Are you rpogrammically adding them when you set up the task?
Yes, I'm programmatically adding custom scales. If the default is no scale, then I can simply set the CustomScaleName to default values. There's such an option in addition to Read or Write.
Thanks.
02-09-2012 04:06 PM
How are you setting your scales? Can you show me your code so that I can get an Idea of what you are doing?