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
 Code Builder usage about macro in LabTalk script

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
hkkim Posted - 01/25/2013 : 03:39:03 AM
Origin Ver. and Service Release (Select Help-->About Origin): OriginPro 8.1 SR3
Operating System: Windows XP

Hello!
My code runs from run.bat double click. There are three macros and one Origin C function call in ReadDraw.ogs. I want to know the code debugging usage when macro exist. Is there any tutorial for Code Builder usage? Thanks in advance!

hkkim

run.bat:
Origin81.exe -r run.section(D:\ExpData\ReadDraw.ogs, main, "D:\ExpData\")

ReadDraw.ogs:
[main]
def drawGraphs // start drawGraphs macro
{
...
} // end drawGraphs macro

def mainWork // start mainWork macro
{
...
drawGraphs;
...
run.LoadOC(%1GraphDoc.C); // Load Origin C function
...
} // end mainWork macro

def getInfo // start getInfo macro
{
...
} // end getInfo macro

cd %1; // First argument in DOS command, %1, has a current working directory name
getInfo; // read work information
for(...)
{
mainWork;
}
1   L A T E S T    R E P L I E S    (Newest First)
greg Posted - 01/28/2013 : 11:44:20 AM
Unfortunately you cannot debug a macro. If you suspect a problem with a macro, you should re-define it to include type statements to output any suspect variables. Once you have identified and fixed any problems, remove the type statements.

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