I am trying to convert floating point values into binary values by using the function call to WFM_Scale. When I do a status check the error returned is
-10012 badRangeError The analog input or analog output voltage or current range is invalid for the specified channel, or you are writing an invalid voltage or current to the analog output.
The calling function is as follows
status = WFM_Scale(DEVICE, 0, lNumPoints, 1, thdc_channel, ao_ch);
where DEVICE = 1
lNumPoints = 2048
thdc_channel is a pointer to an array of doubles of length lNumPoints
and ao_ch is a pointer to an array of shorts of length lNumPoints
I have changed the chan value from 0 to 1 and it still gives me an error -10012
Can anyo
ne provide an explanation of what maybe wrong??
Please Help!!