12-21-2005 08:40 PM
12-22-2005 01:04 PM
Hi James,
If you go to the NI-DAQmx C Reference Help (Start > All
Programs > National Instruments > NI-DAQ) you can go to the Index view
and type in "daqmxread" to find all of the different ways that you
can read your values.
Here are the possibilities for an Analog Input operation:
DAQmxReadAnalogF64
DAQmxReadAnalogScalarF64
DAQmxReadBinaryI16
DAQmxReadBinaryI32
DAQmxReadBinaryU16
DAQmxReadBinaryU32
DAQmxReadRaw
It sounds like you will want to use DAQmxReadBinaryI32 so that the data is
returned as an integer value. Keep in mind that this will return the data
as unscaled data, so you will have to perform the scaling yourself.
Chances are that you would simply be best off truncated the data that you are
currently getting and/or formatting it into an integer on your own, because
scaling by hand would probably end up taking more effort than it's really
worth.
Regards,
01-06-2006 06:06 AM
01-06-2006 07:20 AM
01-06-2006 09:20 AM - edited 01-06-2006 09:20 AM
Message Edited by bilalD on 01-06-2006 09:22 AM
01-06-2006 07:32 PM
Thank you Anirudha and bilalD.
The article of bilaID is more helpful to me.
I read the shipping documentation about AnlogUnscaledReader class.
The multichannel reader is also needed in my application, but I think I can not do multichannel read with just only AnalogUnscaledReader class.
Is it right?
If it is, How can I do that?
Thank you for many vetarans' kind help.
Regards,
James
01-06-2006 07:42 PM