High-Speed Digitizers

cancel
Showing results for 
Search instead for 
Did you mean: 

Acquire the difference between two channels.

I know on some scopes you can have derived channels, for example you could have a trace  that's the difference between CH 0 and CH 1. Is that possible with a PXIe-5122 or would you have to calculate that in software after the acquisition?

0 Kudos
Message 1 of 6
(3,954 Views)

Oligarlicky, 

 

Yes, you can perform a channel subtraction on the PXIe-5122. There is a shipping example that implements this behavior that can be found by opening LabVIEW, then Help -> Find Examples... -> Hardware Input and Output -> Modular Instruments -> NI-SCOPE -> Measurements -> niSCOPE EX Advanced Measurement Library.vi

 

You can select "Subtract Channels" for the Processing Step Measurement property on the front panel. The channel that you specify in the "Channel" control on the front panel is the active channel. The other channel on the PXIe-5122 will be subtracted from your active channel.

 

Hope this helps!

Mena S.
Applications Engineering
National Instruments
0 Kudos
Message 2 of 6
(3,925 Views)

Oligarlicky,

 

Mena S. is mostly correct.  That example is the right example, but it needs to be slightly modified to do a 2 channel difference.  In the example, you will need to add the property "Other Channel" (Waveform Measurement >> Other Channel) to the niscope Property Node, which specifies the 2nd channel that will be used for the subtract channels array measurement.  Thus if you wanted to perform CH0 - CH1, you would specify "0" in the "Channel" control, and "1" in the "Other Channel" property.  

 

Since this property defaults to "0", you could do a CH1 - CH0 without any code modification, just enter "1" in the "Channel" control on the front panel.  

 

Note that this caluclation is still done on the computer in the driver, and not in the firmware on the device. 

 

I hope this helps!

-Nathan

Product Support Engineer
National Instruments
Message 3 of 6
(3,864 Views)

Ahh, I was trying to do it in the driver to reduce PCI bandwidth. Sounds like I can't do that.

0 Kudos
Message 4 of 6
(3,851 Views)

Hi Oligarlicky,

If you wanted to do it in the firmware on the device, the only product we have that would be able to do that would be the PXIe-5170R/5171R, which features a programmable FPGA using LabVIEW FPGA.  Due to this architecture, you can completely customize the firmware to behave any way you'd like, our most flexible product yet!  

 

Regards,

Nathan

Product Support Engineer
National Instruments
0 Kudos
Message 5 of 6
(3,848 Views)

Or you can add a PXI 5900  and do it in hardware 😉

Well or use any other differential (active) scope probe.

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


Message 6 of 6
(3,811 Views)