08-13-2009 07:59 AM
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
Solved! Go to Solution.
08-13-2009 09:11 AM
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.
08-13-2009 09:39 AM
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
08-13-2009 09:52 AM
Something like this?
But like my predecessors said, solve the problem instead of getting around it 🙂
08-13-2009 09:55 AM - edited 08-13-2009 09:57 AM
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.
08-13-2009 10:11 AM
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
08-13-2009 10:14 AM