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
 Code Builder usage about macro in LabTalk script
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

hkkim

Republic of Korea
35 Posts

Posted - 01/25/2013 :  03:39:03 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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;
}

greg

USA
1378 Posts

Posted - 01/28/2013 :  11:44:20 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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.
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