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
Many problems
Note:
Only the poster of this message, and the Moderator can edit the message.
Screensize:
640 x 480
800 x 600
1024 x 768
1280 x 1024
UserName:
Password:
Anti-Spam Code:
Format Mode:
Basic
Help
Prompt
Format:
Font
Andale Mono
Arial
Arial Black
Book Antiqua
Century Gothic
Comic Sans MS
Courier New
Georgia
Impact
Lucida Console
Script MT Bold
Stencil
Tahoma
Times New Roman
Trebuchet MS
Verdana
Size
1
2
3
4
5
6
Color
Black
Red
Yellow
Pink
Green
Orange
Purple
Blue
Beige
Brown
Teal
Navy
Maroon
LimeGreen
Forum:
LabTalk Forum
Subject:
Message:
* HTML is OFF
*
Forum Code
is ON
Smilies
Dear Sir, I have encountered many problems with data processing using LabTalk scripting language these days, as follows: 1. I run the following code: string opj1$ = "F:\\gain_1.opj"; string opj2$ = "F:\\gain_2.opj"; int opj_num = 2; StringArray opj; opj.setsize(opj_num); for(int index=1; index<=opj.getsize(); index++) opj.SetAtGrow(index, opj$(index)$); for(int opj_index=1; opj_index<=opj_num; opj_index++){ string temp$ = opj.GetAt(opj_index+1)$; temp$=; } The following error occurs: F:\\gain_2.opj opj.GetAt(opj_index+1)$ string expression error! TEMP:failed to add variable to local stack! #Command Error! Although temp$was successfully assigned, an error was reported. How to eliminate the error? 2. After using the command 'spectrum -i', how to use the current image as a reflection of the new color scale? Because the color scale created with this command are not related to the line color in my chart. In addition, how to set the color scale to show only the maximum and minimum values? 3. How do I draw an arrow between two points in an image and set properties such as its width and color? 4. How to attach all workbooks in the root folder of another project file (which has only one root folder and no subfolders) to the root folder of the current project (which has only one root folder and no subfolders) without creating a new subfolder. Since I found when using doc-a that my colleague's origin creates a new subfolder and mine does not (both versions are 2021), I used the doc-afa command without any reaction in my origin. Here's my code: string opj1$ ="F:\\gain_1.opj"; string opj2$ = "F:\\gain_2.opj"; int opj_num = 2; StringArray opj; opj.setsize(opj_num); for(int index=1; index<=opj.getsize(); index++) opj.SetAtGrow(index, opj$(index)$);for(int opj_index=1; opj_index<=opj_num; opj_index++){ if(opj_index>1){ string temp$; temp.insert(0, opj.GetAt(opj_index)$); //doc -afa %(temp$); //doc -afa %(opj.GetAt(opj_index)$); doc -afa %(temp$) %(temp.getfilename(1)$); } } Can you give me a specific LabTalk code? Thank you very much, I wish you a long and healthy life and everything goes well.
Check here to subscribe to this topic.
The Origin Forum
© 2020 Originlab Corporation
Snitz Forums 2000