02-08-2014 04:37 PM
I'm having the same problem.
02-08-2014 05:12 PM
02-08-2014 05:27 PM
I'm trying to control a BK Precision 9121a DC power supply with LabView over an IT-E131 cable. My baud rate on the power supply and in LabView match (9600).
I get the same error message shown in the screen shot by college_student (11-14-2013 08:48 AM - edited 11-14-2013 08:52 AM) and described in a following message of his (11-15-2013 10:06 AM).
Basically, using the BK Precision-supplied NI driver, I can control the power supply once, but then I have to close and restart LabView to issue another comnmand.
02-10-2014 07:59 AM
The error code that college_student was getting meant there was something wrong with the command that he was sending to the terminal. The suggestion was to place probes in the code to track the commands being sent/written to the instrument. VISA commands are specific to instruments, so I would also reference the manual of the instrument for expected VISA commands.
07-29-2014 05:43 PM
Hi, Guys.
I am running the same problems now.
The equipment I am using is BK precision 9122A Single Output Programmable DC Power Supply.
I downloaded the driver from NI website (the first one: project style)
http://sine.ni.com/apps/utf8/niid_web_display.model_page?p_model_id=8951
I am using the Serial (RS 232) communication and the cable provided by the mfg to communicate with my computer.
I ran the Visa test in NI MAX and there is no any error for write, read and query.
And my serial configuration parameters are matching with the values stated in the manual (Baud rate:9600, Parity: none, and the Stop bits:1).
However, when I ran the examples (BK Precision 91XX Monitor Output. VI), it gave me two differnt errors randomly.
Error 1 and Error 2 (see the attachment, please). One of the two erros is as same as the host posted.
I did some research and it turns out that there is something wrong with the initialize VI.
If I put the Initialize VI in "highlight execution" mode, it did not give any erros no mather which VIs you run (the initialize VI or the BK Precision 91XX Monitor Output VI).
However, if you put the Initialize VI in the regular mode, it alwasy gives me one of the two errors. Sometime, this error and Sometime that error.
Would you please provide detailed solution to the issue?
Thank you!
A LabVIEW beginner
07-29-2014 05:50 PM
@Bingji wrote:
Hi, Guys.
I am running the same problems now.
The equipment I am using is BK precision 9122A Single Output Programmable DC Power Supply.
I downloaded the driver from NI website (the first one: project style)
http://sine.ni.com/apps/utf8/niid_web_display.model_page?p_model_id=8951
I am using the Serial (RS 232) communication and the cable provided by the mfg to communicate with my computer.
I ran the Visa test in NI MAX and there is no any error for write, read and query.
And my serial configuration parameters are matching with the values stated in the manual (Baud rate:9600, Parity: none, and the Stop bits:1).
However, when I ran the examples (BK Precision 91XX Monitor Output. VI), it gave me two differnt errors randomly.
Error 1 and Error 2 (see the attachment, please). One of the two erros is as same as the host posted.
I did some research and it turns out that there is something wrong with the initialize VI.
If I put the Initialize VI in "highlight execution" mode, it did not give any erros no mather which VIs you run (the initialize VI or the BK Precision 91XX Monitor Output VI).
However, if you put the Initialize VI in the regular mode, it alwasy gives me one of the two errors. Sometime, this error and Sometime that error.
Would you please provide detailed solution to the issue?
Thank you!
A LabVIEW beginner
Let us know if any of the suggestions in this thread work for you.
07-29-2014 06:47 PM - edited 07-29-2014 06:48 PM
Highlight execution slows down execution, and the error is a timeout error. If you increase the timeout, does the error still occur? You can increase the timeout by adding a Wait function between the Write and Read (most likely in a subVI for the Initialize function) or you can drop down an Instrument Property Node and set the Timeout. There is a description about this property node in this KB: Why Do I Receive Timeout Error -1073807339 on VISA Read or Write?
07-30-2014 11:33 AM
Hi, Guys
Thank you for all of the suggestions.
I fixed the problem already. The Initialize VI has some problem and need to be udpated or fixed.
The LabVIEW beginner.
07-30-2014 11:47 AM
Hello,
I'm glad to hear you were able to identify and fix the problem. For the benefit of others who may have the same problem, what about the Initialize function did you have to change? Thanks for sharing!
07-30-2014 05:33 PM
Hi,
I will post my VI later after running more tests and pretty comfortable it works well.
Thank you.
The LabVIEW Beginner