LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

delete an error from the error database

hi
i am using a microcontroller to send data to labview via serial port
when first connecting power to the mcu it sends a rubbish data as it intialiaze then it sends the write data and i can't prevent that rubbish

the problem is labview does not recognize this rubbish and gives an error in I/O in VISA
i have deleted that error from the file visa-error which located in \Program Files\National Instruments\Shared \Errors\English
then the error happend but says "undefined error"

how can i make labview pass this particular error without warnning?
thanx
0 Kudos
Message 1 of 2
(2,415 Views)

You should never go and delete lines from NI files like that - you don't know how those files are being used and you're inviting a world of trouble. I suggest you try finding that file on your CDs (it's probably in a cab file) and restoring it. As for handling the error, simply wire the error out terminal into anything and you won't get the popup. Note, however, that you should not just go around wiring error out terminals into walls - instead, you should have code which will handle the errors - error handling is very important. If you want to get rid of any error at that point, wire the error out terminal into the Clear Errors VI (Time & Dialog palette). If you only want to get rid of this error, you can unbundle the error cluster and use a case structure to decide what to do based on the error number.

To learn more about LabVIEW, I suggest you try searching this site and google for LabVIEW tutorials. Here and here are a couple you can start with. You can also contact your local NI office and join one of their courses.
In addition, I suggest you read the LabVIEW style guide and the LabVIEW user manual (Help>>Search the LabVIEW Bookshelf).


___________________
Try to take over the world!
0 Kudos
Message 2 of 2
(2,412 Views)