Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Can't get config info from Virtual CWAIChannel

I'm not getting the MAX config info from my virtual AIChannel. I do get the correct name from ChannelString but get 0.0 from range, LowerLimit and UpperLimit. In MAX I specified the range as 0.0-5.12.
0 Kudos
Message 1 of 4
(2,783 Views)
Greetings,

To obtain a channel's configured LowerLimit and UpperLimit settings, you will need to use the GetActualSettings property. The Measurement Studio Reference explains how to use this property to obtain a channel's configured settings.

Good luck with your application.

Spencer S.
0 Kudos
Message 2 of 4
(2,783 Views)
I looked at GetActualSettings but it requires an index to the channel. As a virtual channel, all I have is the name. Is there a way to get the index from the named channel? Or, is there an easier way to do this?
0 Kudos
Message 3 of 4
(2,783 Views)
Looking further at GetActualSettings, I found in the example from MS Reference that CWAI::Configure had to be done first. Once this was done, everything worked and I disn't have to use GetActualSettings; I cound use the Upper & Lower limit properties directly.
THanks for your help.

Rob
0 Kudos
Message 4 of 4
(2,783 Views)