"Sorry that I can't figure this out. How do I just sample a voltage off of channel 0? I have only one string set up in the AIPoint control and have called it 0. I thought that might select channel 0. Anyway, what's wrong with this code?
double voltage;
m_analogInput.SingleRead(CNiVariant(Voltage), CNiVariant(1));
It doesn't seem to work but maybe I don't have my channel string configured correctly from the dialog.
Grant"
Grant M. Johnson
Project Engineer
LECO Corporation