I want to measure a AC voltage waveform with a 4070 multimeter.
Therfore i have written the following code :
analogWaveform = DMMHandle.WaveformAcquisition.ReadWaveform(4000, NationalInstruments.PrecisionTimeSpan.MaxValue);
This works fine when i measure a DC signal, but not with a AC signal
I can only select DmmMeasurementFunction.WaveformVoltage and DmmMeasurementFunction.WaveformCurrent. When i select AC volt i get an error.
So how can i execuut a AC WaveFormAcquisition ?
Thanks in advance
I am not too familiar with C#. But I would refer to how this measurement is written in LabWindows CVI.
With the software you can find an example for DMM measure AC Volts.
This example utilizes functions:
With these functions you are able to perform the complete measurement.
To avoid pasting the whole example code here I would suggest you could download LabWindows/CVI evaluation version and check out the example.
This link may also be helpful:
In the wrapper code example at the end it seems to have an example for configuring a measurement for the scope and for AC signal acquisition.
Good luck with finding the right solution!
What error are you receiving?
Posting the code used in the entire DMM session would also be helpful.
Waveform mode on NI DMMs only works in Voltage or Current mode. Waveform mode allows the user to select the sampling rate directly up to 1.8 MS/s, essentially getting Oscilloscope-like behavior out of a DMM. If you would like to look at the shape of an AC voltage signal, taking an acquisition with Waveform Voltage mode will allow you to see the AC signal. If you would like to take an rms measurement of an AC signal you will need to configure the device for a . Instead of using ConfigureWaveformAcquisition use ConfigureMeasurementDigits and program the device for AC Volts. Similarly you will need to use sampleDmmSession.Measurement.Read(); rather than the ReadWaveform method you were using previously.
Let me know if you run into any other trouble.
Reading a AC signal works now but the second point is starting a waveform Aqcuisition after a External trigger via the Aux input of the DMM.
Now this AC signal is fed to a rectifier and out of that rectifier comes a puls of 200VDC with a pulswidth 40 msec.
I have connected a TTL level trigger signal to the Aux input of the DMM. In other measuremens i use this trigger signal also and the triggersignal works fine
Now i want to use this triggersignal also in a the following waveform measurement.
Within a timespan of max 10 seconds the DMM is trigger via the Aux input . After 10 seconds a error may occur
But when i run the code below the error comes after 2 seconds.
ModularInstruments.NIDmm: The operation did not complete within the maximum time allowed. Timeout : 2000mS Error Code :-1074126845
How can i change the "max. time allowed" that the DMM waits for a trigger to max. 10 seconds ?
Is this the right way of measureing the signal as i described ?
private NationalInstruments.AnalogWaveform<double> GetWaveForm ()
NIDmm DMMHandle = new NIDmm("PXI1Slot5", false, true);
DMMHandle.ConfigureWaveformAcquisition(DmmMeasurementFunction.WaveformVoltage, 300.0, 100000.0, 500);
analogWaveform = DMMHandle.WaveformAcquisition.ReadWaveform(1000, NationalInstruments.PrecisionTimeSpan.FromMilliseconds(10000));