LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Need help running programmable power supply with LabVIEW

My task is to run a programmable power supply (Circuit Specialists PPS 2116A 32V/5A/160W) with LabVIEW so I can choose the current. Currently, I have installed the driver and I used that to build the program (screenshots attached below). I have also included the program. I keep receiving this error: Error: -1073807339, VISA Read in Circuit Specialists.lvlib:Initialize.vi->CircuitSpecialistsDriver.vi 

 

Eventually this program is suppose to be able to take in multiple current values that can run for a given amount of time, so both the time and the current are suppose to be user inputs. Before I was using the Instrument Assistant but I couldn't figure out how to do multiple runs or do it for a specific amount of time with this so I stopped. 

 

I am new to LabVIEW I don't know what this means. I will take any help I can get because I am really struggling with LabVIEW. Thank you.

 

 

Download All
0 Kudos
Message 1 of 13
(2,501 Views)

You are getting a timeout error. Have you been able to talk to the instrument before? If yes, I think your problem might be that you are setting the voltage and current in a loop as fast as the computer can. I would try without the loop and see if you still get the error. Then you can add the loop back in with a wait time so you don't overwhelm the instrument.

0 Kudos
Message 2 of 13
(2,487 Views)

Hi, Thanks Gregory,

 

I tried this and it did not solve the problem. I was looking at the error with the light bulb tool and it seems to start right away, at the initialization state. I don't know what this could be.

0 Kudos
Message 3 of 13
(2,475 Views)

Have you had any success communicating to the instrument?

0 Kudos
Message 4 of 13
(2,472 Views)

I am able to communicate when I use Instrument Assistant, no success yet with the driver.

0 Kudos
Message 5 of 13
(2,470 Views)

What is your VISA address and serial configuration input? Do you have another connection with the instrument that is getting in the way? (for example, is instrument assistant still open?)

0 Kudos
Message 6 of 13
(2,463 Views)

My VISA is the Comm port (comm 4). I checked and it is the correct port. My serial configuration is the default, I am not sure too much about Serial Configurations so maybe that is the issue? The LabVIEW program I am running is the only one I have open, so nothing should be interfering.

0 Kudos
Message 7 of 13
(2,460 Views)

I would try going into NI MAX and opening a test panel to the instrument. Then send some query commands and see if you get a response. Do you have a programming manual with a list of commands? Often you can type "*IDN?" and get the instrument to identify itself, but not for all instruments.

0 Kudos
Message 8 of 13
(2,450 Views)

The only thing that stands out to me from your VI (I don't have the drivers, so I can't dig into those) is your default Serial Configuration has 7 data bits.  That is unusual in modern times.  Try setting that to 8.  Unfortunately, the manual I was able to find just mentioned the baud rate of 9600.


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 9 of 13
(2,406 Views)

Hi I tried this and I am receiving the same error

0 Kudos
Message 10 of 13
(2,389 Views)