T O P I C R E V I E W |
BBE |
Posted - 12/01/2014 : 09:30:59 AM Origin Ver.8G.0.63.988 SR6 v8.0988 Operating System: Win 7 SP1 64Bit
Hello everyone,
I'm pretty new in LabTalk and trying to write a script, which imports my data in a loop. Additionally it should set some Parameteres in the Graph, like colors and axis labels etc.
It is nearly done but I'm struggeling to get my hand on the predefined user variables. I tryed several different ways related on other posts in this forum. None of them succeeded.
Here is a part of the loop:
impFile file$ filter$; //create Plot plotxy iy:=(1,2) plot:=200; themeApply2g theme:="MessImport" option:=project; rescale; label -r legend; //Set Color ty %(page.info.USER.VARIABLES.CH$);
if(channel$ = "CH1") { set %C -cl color(red); }
Running the script gives the following output:
>>MyScript %heme:="MessImport" option:=project %heme:="MessImport" option:=project %heme:="MessImport" option:=project %heme:="MessImport" option:=project %heme:="MessImport" option:=project %heme:="MessImport" option:=project
Have anyone ever received a similar problem and could help me with it?
BBE |
1 L A T E S T R E P L I E S (Newest First) |
BBE |
Posted - 01/05/2015 : 09:50:19 AM I solved the problem.
For anyone who receives a similar problem:
The problem was the command themeApply2g. In some way it deletes all the workspace variables ( or creates a new ws?).
If you access the page.info.user.variables before executing the command, you won't get any problems.
A happy new year!
BBE
|
|
|