| Products > Test Equipment |
| Affordable Power Supply with Ethernet/LXI? |
| << < (5/5) |
| nctnico:
--- Quote from: BennoG on March 15, 2024, 09:24:33 am ---Have you seen the load of shit NI-VISA installs on your system. (yes NI-VISA) is needed to run PyVISA. --- End quote --- Never. As Alm noted, there is a python library (PyVISA-py) which takes care of instrument communication. So far this has worked very well for me on various instruments (direct LAN or through a Prologix ethernet to GPIB adapter). |
| djacobow:
--- Quote from: nctnico on March 15, 2024, 04:47:09 pm --- --- Quote from: BennoG on March 15, 2024, 09:24:33 am ---Have you seen the load of shit NI-VISA installs on your system. (yes NI-VISA) is needed to run PyVISA. --- End quote --- Never. As Alm noted, there is a python library (PyVISA-py) which takes care of instrument communication. So far this has worked very well for me on various instruments (direct LAN or through a Prologix ethernet to GPIB adapter). --- End quote --- That's right, I believe PyVISA can use the NI libraruy, but there is an all-python implementation and that's what I use 100% of the time. I use PyVISA to control a lot of instruments with no problems at all: Rigol DS1104Z (ethernet) Rigol DS2072 (ethernet) Rigol DG1022 (usb) Rigol DM3068 (usb) * Rigol DP832 (usb) * Korad KA3005 (usb serial) Siglent SDM3055 (usb serial) Instek GPP4323 (ethernet) * Maynuo DC load (serial via adapter) The ones with asterisks are used in an automated production environment. That said, for something serial or serial over usb I sometimes find it more convenient to just send and receive commands directly without PyVISA; I don't think it brings much to the table other than basic comms, so if you have an easier way to establish that, it's kinda meh. By the way, I don't know what "affordable" means, but I like the GPP4323 a lot. It has a load feature, too, which is super convenient for battery analysis. |
| alm:
--- Quote from: djacobow on March 15, 2024, 05:13:28 pm ---That said, for something serial or serial over usb I sometimes find it more convenient to just send and receive commands directly without PyVISA; I don't think it brings much to the table other than basic comms, so if you have an easier way to establish that, it's kinda meh. --- End quote --- What (Py)VISA brings to the table in my opinion is that it makes it easy to switch communication method without changing the code. For example if a DMM has both USB and LAN ports (or two different DMMs), and you want to switch from one to the other, it just involves changing the connection string. Back before PyVISA was a thing, I first tried writing code that could use either GPIB or RS-232, but it was ugly. So I ended up writing a wrapper around PySerial that had the same interface as the GPIB module. Which is basically what VISA does. I agree it's not very compelling if you only use one type of interface. |
| Navigation |
| Message Index |
| Previous page |