Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

CNiReal32Matrix supported for CNiDAQmxAnalogMultiChannelReader?

I am trying to use CNiReal32Matrix instead of CNiReal64Matrix with CNiDAQmxAnalogMultiChannelReader and don't see it available in the header file and will not compile. I am running version 8.1 of Measurment Studio with a NI6251 card.
0 Kudos
Message 1 of 2
(6,021 Views)
Hi BGreenGMW,
 
NiDAQmxAnalogMultiChannelReader.h includes NiScalarMatrix.h, which defines a typedef for both matricies:
 

typedef

CNiScalarMatrix<Real32> CNiReal32Matrix;

typedef

CNiScalarMatrix<Real64> CNiReal64Matrix;

I tried defining a variable:

CNiReal32Matrix myMatrix;

in a DAQmx example program (AcqMultVoltageSamples_SWTimed), and it compiled successfully. 

Can you please reply with a sample program that failed to compile with a CNiReal32Matrix, yet compiles with a CNiReal64Matrix? 

Cheers,

David Goldberg
National Instruments
Software R&D
0 Kudos
Message 2 of 2
(5,996 Views)