The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 LabTalk Forum
 General error handling
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

netta

UK
Posts

Posted - 10/26/2006 :  06:32:08 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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?

zachary_origin

China
Posts

Posted - 10/26/2006 :  11:45:37 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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.
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000