Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Serial Communication Error -1073807339

Solved!
Go to solution

Hey all,

 

I know this type of question has been asked many times before, but I have been scouring the forums and have been unable to solve my problem after hours of work. To be honest, I am not sure what is wrong. The program was working fine yesterday and then randomly stopped working. I'm hoping that someone here can take a look at the code and give me some insight.

 

Thanks

LANL13

0 Kudos
Message 1 of 12
(5,035 Views)

You did not include the subVIs.

0 Kudos
Message 2 of 12
(5,027 Views)

My bad. I thought that they would be automatically included. Here they are.

0 Kudos
Message 3 of 12
(5,021 Views)
Solution
Accepted by topic author LANL13

Since it appears you need the carriage return as a terminator, I would use the VISA Initialize Serial Port, set the correct terminator, and then get rid of all of those VISA Bytes at Serial Port and the associated delays. Just use some high arbitrary number for the number of bytes to read.

 

Since it was working at one point, I would also recomend you try using terminal emulation program such as Hyperterminal, putty, etc. to also test communication. If that also fails, then it's not a problem with LabVIEW.

Message 4 of 12
(5,013 Views)

I'm pretty new to LabView so I'm not really sure what you mean in the first paragraph (I am trying to fix someone else's code). Could you dumb it down or provide an example?

 

Thank you so much for your help

0 Kudos
Message 5 of 12
(5,008 Views)

Look at the VISA Initialize Serial Port. It would be used instead of the existing property node that sets the baud rate, parity, etc. It has an input for termination character. This is a character that when detected, will cause the VISA Read to terminate. You need to wire a decimal 13 to the input.

0 Kudos
Message 6 of 12
(5,003 Views)

I was unable to find VISA Initialize Serial Port, but I found VISA Configure Serial Port. Is that the same thing? Also what do you mean by "wire a decimal 13 to the input"?

0 Kudos
Message 7 of 12
(4,998 Views)

Sorry, I meant VISA Configure Serial Port.

 

Perhaps you should spend some time with the LabVIEW 101 tutorial before you do anything else. Move your mouse over the input called 'termination char (0xA = '\n' = LF)' and right click and select 'Create>Constant'. When the constant appears, enter 13 as a value.

Message 8 of 12
(4,993 Views)

It works! Thank you for your help! Now I just need to figure out how to fix the main program that this one feeds in to.

0 Kudos
Message 9 of 12
(4,989 Views)

Hello,

 

I am facing a similar sort of problem.  I am trying to connect a Lock In Amplifier with a USB Cable communication. In the VISA read, write sub VI, I get error  -1073807339.

 

I am attaching the .llb file for reference.

 

In the file,

The main VI that I want to run is : SR7270 Front panel- Single Reference Mode.vi

 

the sub VI giving this error is called SR7270 VISA write/read.vi

 

Please help! I am sure that drivers for this device is correctly installed.

 

 

Best Regards,
Poulomi Das.
Institute for Microsystems Engineering.
University of Freiburg.
Freiburg, Germany.
0 Kudos
Message 10 of 12
(4,664 Views)