LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I get my code to continue when this error message is shown?

Solved!
Go to solution

Firstly what is the attached error message telling me, what is the result of me pressing continue. Secondly my program will be running for a while without an operator, is there a way for all error messages to be dealt with automatically, so the program continues?

 

A screen shot of the error and the program are attached.

 

Cheers, Sam 

Download All
0 Kudos
Message 1 of 7
(3,247 Views)

Here's a novel suggestion: Figure out why you're getting the error message in the first place. It's a lot easier to fix the reason for the error than to try to "get around it".

 

You don't have the error cluster wired, and you probably have automatic error handling turned on. That's why you're getting the dialog box. But that's not why you're getting the error. 

0 Kudos
Message 2 of 7
(3,228 Views)

ssteel wrote:

Firstly what is the attached error message telling me, what is the result of me pressing continue. Secondly my program will be running for a while without an operator, is there a way for all error messages to be dealt with automatically, so the program continues?

 

A screen shot of the error and the program are attached.

 

Cheers, Sam 


 

It tells you the anemometer did not give you a complete intact message in the time out you specified.

 

1) Increase your time out setting.

 

2) Wire the error cluster to a "Clear Error" if you want to ignore the error.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 3 of 7
(3,214 Views)

Something like this?

But like my predecessors said, solve the problem instead of getting around it 🙂

 

Message 4 of 7
(3,202 Views)

The reason you wrote the code is that you wanted to accomplish something.

The error message you are getting is telling you that the task was never completed because it timed out.

So why would you want to clear the message? That still wouldnt complete the task.

 

To narrow down where the error is coming from:
It says that the error is coming from 'VISA read'.

So the device you are trying to communicate with is either not responding, or taking too long.

Message Edited by Cory K on 08-13-2009 09:57 AM
Cory K
0 Kudos
Message 5 of 7
(3,197 Views)
Solution
Accepted by topic author ssteel

Alain S wrote:

Something like this?

But like my predecessors said, solve the problem instead of getting around it 🙂

 


 

If I was not famiar with the widget this customer is using I would be on the same side of the fence. 

 

Getting anemometers from company XXX to run error free is like trying to get an RP06 disk drive to run error free. Both are an "exercise in futility." (Memorex Drisk Drive Service manual circa 1976). I have developed an app that uses the same anemometers used above. The only way to get them to run error free is to forget about the serial interface, buy the analog output option, and wire it to an NI DAQ device. If used in poll mode you have to transmit one byte at a time. They use a "Q" to get them into set-up mode, BUT "Q" is also a valid unit ID and will solicit a poll form the unit with that ID. I was constantly having to power-cycle them to get them working again.

 

I got the best performance from them when I put them on seperate serial ports but even this was not a complete solution since their transmit packets would trick Windows into thinking it was a serial mouse. Depending on if someone walked into my cube and disturbed the air flow paterns, my mouse would start jumping and desk top objects were being selected. I called over a witness to verify (at least this time) that I was not crazy and the mouse jumping stopped when I shut-off the anemometer.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 6 of 7
(3,187 Views)
Close the VISA port and then open it again just after the timeout (within the code)
0 Kudos
Message 7 of 7
(3,181 Views)