LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error on VISA Wait on Event

Hi

i am trying to use serial events to read serial data and when i run the VI the following error always appears.

wait.PNG

 

could anyone help me

 

0 Kudos
Message 1 of 4
(616 Views)

@armma wrote:

Hi

i am trying to use serial events to read serial data and when i run the VI the following error always appears.

wait.PNG

 

could anyone help me

 


Whew - that's like asking for a solution to "my car won't start".  I think you should start by showing uploading the VI so we can take a look under the hood.  Oh, and if you could upload the programming guide/manual that would be awesome.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 2 of 4
(579 Views)

@armma wrote:

Hi

i am trying to use serial events to read serial data and when i run the VI the following error always appears.

wait.PNG

 

could anyone help me

 


What Events are you configured to wait for?  VISA Configure Events is the function you would use to set Events that can be waited for.  The exact list Events that can be waited on are bus specific.   Most Serial instrument class devices support no writable events GPIB instruments support several depending on the IEEE 488 standard version they implement an some of those Events are optional and GPIB is a parallel bus.  TCP/IP RAW and Socket classes support other events and IVI mixes some of everything you can never really use fully while interchanging devices.


"Should be" isn't "Is" -Jay
0 Kudos
Message 3 of 4
(571 Views)

I never had much luck with VISA Events.  They just never worked with the setups I had as I expect other things to happen in the loop than just a simple read, such as being able to send commands.  Instead of the VISA Events, use the Bytes At Port to see if any data is in the buffer.  If there is, do a read.  If not, have a short wait.

 

You may also find this helpful: VIWeek 2020/Proper way to communicate over serial


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 4 of 4
(553 Views)