Author |
Topic |
|
suku12
United Kingdom
7 Posts |
Posted - 04/12/2012 : 4:27:38 PM
|
Origin Ver. and Service Release 8.6 Pro. Sr2 Operating System: Win 7
Hi,
When I am plotting graphs from my own user template the new graph has always the same name (after one used to created my template) Can that be somehow modified? When I am making lots of graphs I am getting tired of renaming one after one.
Thx Sebastian
|
|
easwar
USA
1964 Posts |
Posted - 04/12/2012 : 5:12:56 PM
|
Hi Sebastian,
I think the repeated name you are seeing is the "Long Name" property. If you type in a custom name into long name property and then save the template, that name is remembered and kept unchanged.
Try this: 1> Right click on window title of one of the graphs and select Properties 2> Erase the Long name property - leave as blank 3> Re-save the template
Then when new graphs are created with the template, the long name will be set same as short name, so it will be different in each window.
Also, in the properties dialog, you can decide what should be displayed: long name, short name, or both.
And in Project Explorer, by default, the Name property shows Long Name if it is different from Short Name, so it would have shown same string for all of your graphs. you can right click on the header there and select "show Long and Short Names" to display both columns if you want to.
Easwar OriginLab
|
|
|
suku12
United Kingdom
7 Posts |
Posted - 04/12/2012 : 5:20:28 PM
|
Many thanks for prompt reply
However I would prefer to use long name as it contains for me some relevant info about the test, i.e. test date and number so I use the long name when exporting graphs
Therefore I wonder if there is any script or command which can change that property of graph template (long name) each time to match test date or folder name (I keep data set from each test in separate folder)?
Many thanks, Sebastian |
|
|
easwar
USA
1964 Posts |
Posted - 04/14/2012 : 5:58:28 PM
|
Hi Sebastian,
Sure, the long name can be set from script just by assigning that property, such as: string str$="long name of my graph"; page.longname$ = str$;
You can build a custom string with file name, file date etc and assign to the long name property.
Do you create these graphs manually? Or you already have some script code that imports data and also creates the graphs?
For more help with scripting, you can post in the LabTalk forum.
Easwar OriginLab
|
|
|
|
Topic |
|
|
|