Multifunction DAQ

Showing results for 
Search instead for 
Did you mean: 

6008 analog input - Illegal values

Go to solution



Does anyone know how the 6008 handles invalid analog input voltage?  Specifically, what happens if the AtoD channel is setup for a 0 - 10 volt range and a negaitve voltage, (-19.0) volts is  placed accross the analog input?


I'm using the NI-DAQMx library, C/C++, library.  The call I'm using to set up the AtoD port is:

DAQmxErrChk(DAQmxCreateAIVoltageChan (taskHandle, AINPSTR, "", DAQmx_Val_Diff,0.0, (float64) s_dMaxAnalogInputVoltage, DAQmx_Val_Volts, ""));

where:  s_dMaxAnalogInputVoltage = 10.0;




to read the AtoD.


What would happen if any illegal input voltage is applied.  I know any is a large range, so I'm talking about something like -60 to +60 volts.




- Neil Shore


0 Kudos
Message 1 of 6

At ±60V, you're going to need to protect the inputs.

6008's overvoltage protection is limited to ±35V, with ±30V channel-to-ground isolation.

Scale it down (Resistor-divider works most of the time) before you feed it to the DAQ. 



Message 2 of 6

Hi SnowMule,


Thanks for your response and the information!

In what document would I find the specification you mentioned?  It is not in the "User Guide and Specification", "3713031.pdf".


My question was more of a results question.  That is, would the DAQmxReadAnalogF64 function return the maximum range value or would it return an error?


Again, thanks for your response.

0 Kudos
Message 3 of 6
Accepted by topic author LaserShore

Those specs are in the product's data sheet - link to it in the Specifications tab of the product page.


And no, there's no error generated when the input is out of range.  Scale the input appropriately so that doesn't happen; or if it does, your software recognizes that's higher than expected.

0 Kudos
Message 4 of 6

Hi SnowMule,


Thanks for your reply.


I guess I'll run some tests to "see" what happens.


0 Kudos
Message 5 of 6

Don't let the magic smoke out. Smiley Tongue

0 Kudos
Message 6 of 6