ap-- / voltcraft

Python module for voltcraft powersupplies
MIT License
10 stars 14 forks source link

Voltcraft DLP 3306 powersupply => USB connection #48

Open kaleemg opened 1 week ago

kaleemg commented 1 week ago

Hi Folks I'm using Voltcraft DLP 3306 power supply which is connected to the PC via USB. I see from device manager "USB Test and Measurement Device (IVI)" is displayed (please see screenshot for reference)

image

But I'm trying to control the power supply with python script and tried to use the voltcraft package. It is not possible to control as it is not possible to know which port it is running.

$ py -m voltcraft COM[X]

It gives below error: RuntimeError: No Voltcraft PPS powersupply connected to COM[X]

image

When I try connecting using the GUI (ODPEasyControl 3CH.vi) provided by the device supplier. It is asking serial number of device hardware for the connection and it is possible to connect (ODPEasyControl 3CH.vi) and control the power supply user GUI interface

image

How to control it with python without using the GUI ? Please let me know, if someone has already experienced it.

Thanks in advance

kaleemg commented 1 week ago

We have LAN / USB / SERIAL options to connect the PPS. See below image: image

I tried USB and also SERIAL options. After connecting the serial cable, there is no change in device manager to see the COM port.

ap-- commented 1 week ago

Hi @kaleemg

You need to provide more details on what you're actually doing. It's hard to help debug with the information you provide.

Cheers, Andreas

kaleemg commented 1 week ago

Hi @ap--

Please see below answers to your query:

When you access the Powersupply via Labview, is it connected via ethernet or via USB or via the com port? I'm not accessing the powersupply via labview. It is connected via com port.

What serial adapter are you using when trying to connect via serial? It is direct serial to serial adapter. (not usb to serial adapter)

When you connect via USB, can you check the USB vendor and product id, and report it here? image image

I would like to provide more info: This PPS Voltcraft DLP 3306 is possible to connect via 1. LAN/2. USB/ 3. COM as per the user manual.

  1. It is possible to connect via LAN and control with the python API, which is mentioned here: https://github.com/scaleway/voltcraft-dlp3306

  2. It is possible to connect via USB using the interface provided by Conrad. For this, we need to enter the serial number of the PPS. But I would like to control it with the python API which is provided by you,

image

But it is not possible as I'm unable to find which port is getting used by the PC for PPS.

  1. I tried to connect serial to serial adapter (PPS to PC) directly. In this case, I assume the COM1 port should be used for the communication, which is not happening. Also I tried to connect serial to USB adapter (PPS to PC). it is possible to detect the port, but it is not possible to communicate or give response like you get in the command prompt. please see below image,

image

do you have this PPS model in your list?

Thank you.