Quantcast
Channel: Measurement Studio for VC++ topics
Viewing all articles
Browse latest Browse all 660

NI9237 Load cell measurement in basic C

$
0
0

Hello,

 

Sorry if this is in the wrong location as I'm trying to develop a program in basic C and this says (VC++).

 

I've got C code that works with so many other NI DAQ chassis cards (NI9210 - thermocouple, NI9216 - RTD, NI9482 - Relays exc.) but I can't seem to get a code example to work the the NI9237 load cell card. I think its got something to do with the DAQmxCreateAIBridgeChan function.

how I'm using the function to set up the channel:

 

error = DAQmxCreateAIBridgeChan(taskHandle, "cDAQ1Mod1/ai0", "", -2.5, 2.5, DAQmx_Val_Volts, DAQmx_Val_FullBridge, DAQmx_Val_Internal, 2.5, 350, NULL);

 

When I run the program it outputs error number: -200077

chat GPT says that from the channel name not recognized, but I have copied that name right from NIMAX (the same as for the other cards that work fine)

 

Is any one really good at using the NI equipment in C that could shed some light on this problem? or is everyone going to tell me to just use a different programing language.

 

Thanks

 

also portions of the NI website are in Spanish is this just me?


Viewing all articles
Browse latest Browse all 660

Latest Images

Trending Articles



Latest Images