LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

visa Write and Read error 1073807246,107

3807243,---7339 ? how can i solved? I have good comunication with hyperterminal and it is also working trough com 1 with other simpler program,, I ma just using visa read and write . Do i need to use visa Close and Open or what I have to do Pls suggest me?hardware SLM light modualtor
0 Kudos
Message 1 of 6
(3,923 Views)
3807243,---7339 ? how can i solved? I have good comunication with hyperterminal and it is also working trough com 1 with other simpler program,, I ma just using visa read and write . Do i need to use visa Close and Open or what I have to do Pls suggest me?Hi Physics,

If you lookup "Explain Error" in Labview (under Help), it (sometimes) provides an explanation for the error code. For instance, Labview gives the following details for the last error code you listed:

"Error -1073807339 occurred at an unidentified location

Possible reason(s):

VISA: (Hex 0xBFFF0015) Timeout expired before operation completed."

I noticed you posted 2 other threads on this problem. You can update the info on the same thread by commenting on the answer. That way there is a history of the progress on finding a solution.

OK back to "solution finding":

1. You can communicate to the instrument using HyperTerminal on COM1. -good-

2. Yes, you do need to close the communication session at the end of your vi, ot
herwise you won't be able to communicate with the instruments with other sw, such as HyperTerminal.

3. You do have to close the communication on HyperTerminal (or other sw) to "free" the COM port. Otherwise, you will get an error message from LabView. The COM port is not available as it is used by another program. That's a good place to start looking..

4. Basically, using the "VISA Configure Serial Port.vi" opens the serial port. You can then READ & WRITE to the configured COM port.

I assume that you are familiar with the "SERIAL" vi's located within the "INSTRUMENT IO" in the Tools Palette. That is where you will find the various serial vi's, including VISA CLOSE vi to close the port.

I forgot to ask.. What version of LabView are you using?

You must be close to a solution if you can communicate with the instrument with HyperTerminal.

Regards,

JLV
Message 2 of 6
(3,923 Views)
3807243,---7339 ? how can i solved? I have good comunication with hyperterminal and it is also working trough com 1 with other simpler program,, I ma just using visa read and write . Do i need to use visa Close and Open or what I have to do Pls suggest me?Thanks JLV
Actually I have tried what u are suggesting ,I have close all the other program including hyperterminal still shows error.
Do I compulsorely need to use visa close function when we use visa write or not? could u pls write me
0 Kudos
Message 3 of 6
(3,923 Views)
3807243,---7339 ? how can i solved? I have good comunication with hyperterminal and it is also working trough com 1 with other simpler program,, I ma just using visa read and write . Do i need to use visa Close and Open or what I have to do Pls suggest me?Hi Physics,

Yes, you do need to close the VISA-Serial port when completed. You may have problems closing it if there is an error that occurs before you get to close it.

Did you verify the serial port configuration setting and make sure they match that of HyperTermial?

I am using LV7, so the way to select the COM port is by using a VISA Resource name (ie: COM1). I seem to remember that on previous versions (LV6) that this was done by using a number to set the port. If my memory is still okay, you have to use "0" (zero) for COM1 and "1" (one) for COM2 and so on. That can be a source of error because the numbers are offset by 1.

In another thread, someone proposed to look at handshaking. I don;t think it is the problem in your ca
se, but you can look at it too.

This is done by using a property node and property "Serial Settings->Serial Flow Control".

Check it by reading from the property. Set it by writing to the property.

Can you attach your vi? Let us know which version of LabView you are using.

-JLV-
0 Kudos
Message 4 of 6
(3,923 Views)
3807243,---7339 ? how can i solved? I have good comunication with hyperterminal and it is also working trough com 1 with other simpler program,, I ma just using visa read and write . Do i need to use visa Close and Open or what I have to do Pls suggest me?Hey Guys,

I would like to make one other suggestion. In many cases just using the "VISA Configure Serial Port.vi" to open the port is not always the same as using the "VISA Open.vi". By using the VISA Open followed by the Configure will result in more robust code. I have seen code developed in LabVIEW 5 that wouldn't work the same in LabVIEW 7, because they left of the VISA Open.

I hope this helps out.

-Josh
0 Kudos
Message 5 of 6
(3,923 Views)
3807243,---7339 ? how can i solved? I have good comunication with hyperterminal and it is also working trough com 1 with other simpler program,, I ma just using visa read and write . Do i need to use visa Close and Open or what I have to do Pls suggest me?Yes...

absolutely... how could I miss that...

;o)
0 Kudos
Message 6 of 6
(3,923 Views)