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. |
|
|