Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview usb communication with CPX400DP power supply

Hello

 

I’m trying to using a Power Supply CPX400DP with LabView via USB port, on a new pc (with Windows 10 OS, Labview 2014 SP1).
The same power supply device correctly works when used on my old pc (Windows XP, Labview 2009), that must nevertheless be substituted.

I’m trying to use the same test VI (attached) containing the basic subVIs for controlling the CPX400DP (initialize, set volt/amp values, ecc., close), and this works perfectly using the old pc, while gives often errors when using the new pc.

The CPX400DP is recognized by the new pc as COM6 when connected with the USB cable: I created in NI-MAX the ASRL:INSTR6 corresponding to COM6, then in the VISA resource name (specified before of the “initialize” VI) control the name “COM6” is specified.

However when I launch the VI, often it returnes an error to me, before establishing any communication.
Sometimes, after switching off/on the USB cable, the VI works correctly, but only for 1 time; then I only obtain error messages unless I switch off/on the USB cable.

Generally the error message is generated by the first subVI (“initialize”), because it is not able to establish the connection.

Sometimes it occurs that the volt/amp levels appear on the power supply front panel after that the VI has been closed (after an error!).

 

The error messages that frequently appear are:

Error code (initial): -1073807339
Error code (final): BFFF0015

If I open the NI-MAX on the new pc, then the information about the CPX only appear within the menu “IVI Drivers”, while in the “Devices” menu it only appear the “ASRL:INSTR6 (COM6)” that I created, but without reference to the specific devices connected.

 

Old pc: Windows XP 32 bit, Labview 2009 32 bit, NI-VISA, driver: lv-cv-CPX400DP-v1.0.0
New pc: Windows 10 64 bit, Labview 2014 SP1 32 bit, NI-VISA, driver: lv-cv-CPX-v1.4.0

 

Help please!!

Thank you
Best regards
Simone

0 Kudos
Message 1 of 9
(2,664 Views)

Did you try the older driver in LabVIEW2014?

This looks like mistakes/problems with the driver?

greetings from the Netherlands
0 Kudos
Message 2 of 9
(2,658 Views)

USB communications having an issue makes me instantly think "USB power management".  This was a new option in Windows 7.  Go into the Device Manager on your computer.  Then for each USB Hub, go into the properties, power management tab, and turn off "Allow the computer to turn off this device to save power".  This option has caused all kinds of issues with different devices.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 3 of 9
(2,654 Views)

power management is after a longer time, not almost immediate.

greetings from the Netherlands
0 Kudos
Message 4 of 9
(2,651 Views)

Dear Albert and Crossrulz

 

thank you for your suggestions.

I tried both:

 

- I turned off the save power option for usb port, but nothing changed in the VI execution; same error

- I installed the older version of driver instead of the latest; in this case the VI always stopped at the beginning with a new error ("Driver Status") 

 

so I again installed the latest drivers.

 

But the problem still persists!

 

Thank you

Simone

0 Kudos
Message 5 of 9
(2,611 Views)

What was the message when driver status was in the error msg?

Error code and where exactly happened this.?

greetings from the Netherlands
0 Kudos
Message 6 of 9
(2,598 Views)

And by the way, did you install 

CPX Series Interface firmware file V4.12

That seems to have a number of updates to the communication.

You can find it on the resource page where you also downloaded the driver.

greetings from the Netherlands
0 Kudos
Message 7 of 9
(2,593 Views)

Something stupid I just ran into with a different instrument, but I could not get the USB interface to work.  It turned out I had to do a hard reboot of the instrument and that fixed all of my issues.  I doubt that will fix your current problem, but I still wanted to throw it out there.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 8 of 9
(2,590 Views)

Dear all

 

- I did not installed the new firmware version, I will try;

- Concerning the hard reboot, do you mean simply switch off/on the power supply? I did it many times. Or some other type of reboot?

 

Anyway I tried connecting the cpx to the pc through the GPIB port using a NI GPIB-USB cable, and in such a way all worked correctly. So the problem seems to only occur when I connect the cpx with the usb cable!

0 Kudos
Message 9 of 9
(2,573 Views)