LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Report Error Visa

Hi guys. I noticed that if in the visa resource name I set a different IP or a COM on which nothing is connected, the output is always ok. the question is how can I handle an error like this?For example an user that set a different Ip or a usb or anything on which there isn't any instrument connected?

Thank you

0 Kudos
Message 1 of 20
(3,062 Views)

What device are you connecting to?  What kinds of commands do you send to it and what responses do you expect.

 

You should catch the error whenever you send a command and don't get the appropriate response back.

 

Opening a VISA port doesn't take any action as to figuring out what if anything is connected to the port.  It is just establishing a connection between LabVIEW and the physical port within the PC.

0 Kudos
Message 2 of 20
(3,052 Views)

Impossible. When you connect different com port which is not at all present then either you wont be able to read or write. May be some problem with VI itself

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 3 of 20
(3,027 Views)

Upload the VI

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 4 of 20
(3,026 Views)

hi guys.

attached there is the VI.

The comunication is opened in the "RTS" case structure.

Download All
0 Kudos
Message 5 of 20
(3,020 Views)

in 2011 please

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 6 of 20
(3,005 Views)

I have the student versione. could you tell me how to convert it into the 2011?

thank you

0 Kudos
Message 7 of 20
(3,003 Views)

done 🙂

Download All
0 Kudos
Message 8 of 20
(3,000 Views)

Initialization of VISA needs to be done outside

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
Message 9 of 20
(2,999 Views)

crap I didn't see it. thank you

0 Kudos
Message 10 of 20
(2,995 Views)