Just wondering who's using this DAQ board. I'm running into an issue that may or may not be an issue, but has me stumped nonetheless.
For now, I'm just trying to read a simple voltage from an AI channel. So here are my steps (not many to list):
(1) Initialize the DAQ for 0-5V input on AI Pin 12
Code: Select all
NBPKBM_J1[12].function( P12_FUNCTION_ADV0_5 ); // -- AI Channel 0
Code: Select all
float val = NBPKBM_J1[12];
Code: Select all
iprintf("fed back ch0 AI val: %.f\r\n",val);
Code: Select all
fed back ch0 AI val: f
Code: Select all
char value[VAL_LEN]
snprintf(value,VAL_LEN,"%.2f",NBPKBM_J1[12]);
I suspect I'm doing something fundamentally wrong here - kinda hoping somebody can point out what is probably the obvious.
Thanks!