From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
06-01-2015 09:53 PM - edited 06-01-2015 09:53 PM
Is it possible to control PXI devices via PyVisa in the same way as USB, and GPIB devices?
Solved! Go to Solution.
06-02-2015 01:28 PM
Hi k-rhyme,
It should be possible to do. You can definitely control PXI devices using NI-VISA and since PyVISA is just a Python wrapper, it should be possible. It also depends on the version of VISA that PyVISA is using. I would recommend looking at the NI-VISA User Manual for more info PXI specific functions.
http://www.ni.com/tutorial/4713/en/
NI-VISA User Manual
06-02-2015 03:48 PM
Thanks Frank, I was unfamiliar with register based communication on NI devices.
06-02-2015 04:41 PM - edited 06-02-2015 04:42 PM
The PXI devices I have are the PXI-e 4143, and the PXI-e 4145. How would I perform simple tasks such as reading and writing voltages and currents using register based communication?
The documenation is very clear about how to read and write arbitrary data to the register, but it is not clear as to how that data can be useful.
06-02-2015 06:17 PM - edited 06-02-2015 06:18 PM
If you want to do analog acquistion with Python, you may want to consider PyDAQmx. This is a wrapper for the NI-DAQmx driver, which is built for data acquisition. This would be easier than using VISA calls.
PyDAQmx
06-02-2015 07:12 PM
Thanks! I will try this.
06-03-2015 12:23 PM - edited 06-03-2015 12:49 PM
It would appear that PCIe 4143 and PCIe 4145 devices are not supported by NI-DAQmx. Will support for these be added in the future, or am I limited to LabVIEW and LabWindows for development with these devices?
06-04-2015 02:07 PM
Ok, sorry about that. Unfortunately, it seems you need the NI-DCPower driver to operate those. Your development options for this driver are LabVIEW or LabWindows. You could use the C API in LabWindoes if you want to use the C language.