Virus scan in progress. Please wait to download attachments.
This example shows you how to take differential measurements using National Instruments two-channel high-speed digitizers and NI-SCOPE.
Using the built-in NI-SCOPE math functions, you can quickly and easily get a differential value without having to manually take the data from two single-ended measurements and perform the subtraction. The attached code demonstrates how to carry this out.
How to Use
Choose your oscilloscope under Resource Name.
Choose the channel you would like to be the positive input for Main Channel Name, and the negative input for Waveform Measurement: Subtraction Channel
Be sure that you are supplying voltage to each of the specified channels.
Verify that the other configuration settings on the front panel are accurate.
Press run. The Differential Waveform Graph will populate with the difference between the voltage on the Main Channel and the voltage on the Subtraction Channel.
The VI will run continuously until you press the STOP button.
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.