10-22-2015 05:26 PM
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?
10-23-2015 04:20 PM
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!
10-28-2015 02:56 PM
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
10-29-2015 01:26 PM
Ahh, I was trying to do it in the driver to reduce PCI bandwidth. Sounds like I can't do that.
10-29-2015 01:47 PM
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
11-02-2015 09:01 AM
Or you can add a PXI 5900 and do it in hardware 😉
Well or use any other differential (active) scope probe.