Hi Matt,
After looking more into your code and researching a little more, I realized that FormatPercent() can only be used on scalar arguments. You seem to be trying to scale the whole channel with one line by passing the channel object which you cannot do. YOu will need to load the data in as a normal nummeric (fractional) channel and format the display once in DIAdem. There fore you will want to remove the FormatPercent() line from your code and then deal with the formatting once the data is loaded into DIAdem.
However, if you are using DirectAccessChannels you can use a factor and offset. For example:
Dim MyChn : Set MyChn = MyChnGrp.Channels.AddDirectAccessChannel(Channel)
MyChn.Factor = 1/2.1949
MyChn.Offset = 0
Yet, the formatting such as "d.dd%" will still need to be handled within DIAdem.
Thanks,
Caroline
National Instruments
Thanks,
Caroline Tipton
Data Management Product Manager
National Instruments