Search the Community
Showing results for tags 'fdwfanaloginstatusdata16'.
Hello all, I am trying to read data from an Analog Discovery 2, but I am a bit confused by the FDwfAnalogInStatusData16() function. I would prefer to have the raw integer data from the AD2, as I want to histogram them and I would have to convert back the doubles to integers. On the include file of the C API it is written DWFAPI BOOL FDwfAnalogInStatusData16(HDWF hdwf, int idxChannel, short *rgu16Data, int idxData, int cdData); and I do not understand the difference between idxData and cdData. I tried to guess from the buffer sizes with no success. Reading from the AD2 I