T O P I C R E V I E W |
netta |
Posted - 10/26/2006 : 06:32:08 AM Origin Version (Select Help-->About Origin): 7.5 Operating System: XP
I'm still fairly new to Origin/LabView but while trying to test some LabTalk scripts I've noticed that errors seem to be swallowed up by Origin and no indication of failure is returned to the LabView OAExecute vi (via the error line or otherwise). For example:
- if I refer to a graph template which doesn't exist, it seems to just silently default the the LINE template, or
- if I have a syntax error in my script it just silently ignores the errored line.
Am I missing something? Is there something I need to switch on in order to be notified of errors?
|
1 L A T E S T R E P L I E S (Newest First) |
zachary_origin |
Posted - 10/26/2006 : 11:45:37 PM quote: if I refer to a graph template which doesn't exist, it seems to just silently default the the LINE template,
Yes, this is by design. LINE template is the default one.
quote: if I ave a syntax error in my script it just silently ignores the errored line.
No, have you noticed that OAExecute.vi has a node named Execute? you can create a indicator for this node. If the script has error, then it will not be executed and the value be set as OFF (otherwise,it is ON).

In the picture, you can see that I write a wrong LabTalk script aaa -mc 1. After runing this application in LabVIEW, indicator of Execute was changed to OFF, which means the script is not executed.
Zachary OriginLab Technical Services. |
|
|