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
 All Forums
 Origin Forum for Programming
 LabTalk Forum
 General error handling

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

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.

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000