08-29-2012 07:06 AM
Can a PXI-5114 measure a 6.7v DC signal?
Using CVI 8.1
I have tried with & without the niScope_ConfigureVertical & niScope_ConfigureTriggerEdge functions.
The measurement either times out or it reads 0.00243.
I have put a BNC "T" on the input of the 5114 and see the 6.7v DC signal with a scope.
if((status = niScope_init (Gpib_local, NISCOPE_VAL_FALSE, NISCOPE_VAL_TRUE,&handle))== SUCCESS)
if((status = niScope_AutoSetup (handle))== SUCCESS)
status = niScope_ConfigureVertical (handle, "0", 20, 6.4, NISCOPE_VAL_DC, 1, NISCOPE_VAL_TRUE); // tried with & without
status = niScope_ConfigureTriggerEdge (handle, "0", 0.3, NISCOPE_VAL_POSITIVE, NISCOPE_VAL_DC, 0.0, 0.0); // tried with & without
status = niScope_ReadMeasurement (handle, "0", 10.0, NISCOPE_VAL_AMPLITUDE, &measured_volt);
08-30-2012 01:59 PM
Hi Dennisatwork,
The PXI-5114 can measure a 6.7V DC signal. This digitizer can measure voltages up to 20 V. I believe the niScope_Auto Setup function, sets your vertical coupling to AC, but you want it to be DC coupled.
Prior to using CVI, have you tested your PXI-5114 with the NI SCOPE Soft Front Panel? More information about the NI-SCOPE Soft Front Panel can be found here.
If your digitizer is acquiring the signal correctly with the SCOPE Soft Front Panel, I would then proceed to test your digitizer with a CVI shipping example. For example, you may want to look at the Measurement Library example. You can find this example by going to Help»Find Examples, in CVI, and navigating to the Hardware Input and Output»Modular Instruments»NI-SCOPE»Measurements section of the NI Example Finder.