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
Forum for Python
Adressing user parameters rows
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:
Forum for Python
Subject:
Message:
* HTML is OFF
*
Forum Code
is ON
Smilies
Origin Ver. and Service Release (Select Help-->About Origin): 2025 SR1 Government Operating System: Windows 11 Originpro package: 1.1.12 Hi, I got a question and a problem. 1st the question: According to the originpro reference, there is no way to search the names of user parameter rows via python, or am I wrong here? I was only able to find how to cycle through the user parameters via the characters (D1 to D128). Adressing the user parameters works like a charm with both, the name as well as the character. But I can't figure out how to read the name of the parameter row itself (would be a nice-to-have feature if it isn't implemented yet) [hr] 2nd: my problem I wanted to access a specific user parameter, since I couldn't figure out how to read the names of available user parameters, I went by looping through via character. And there I noticed something weird, I do have a sheet with 14 user parameters, which are being generated and filled by the import assistent: [img]https://my.originlab.com/ftp/forum_and_kbase/Images/ColumnLabelRows.png[/img] Now...this is my corresponding worksheet: [img]https://my.originlab.com/ftp/forum_and_kbase/Images/Wks.png[/img] I can adress any of the userparameters via the name, e.g. sampleID, Wavelength. BUT: I can't access any of the user parameters via character if the number is higher than 9, e.g. D10, D11 etc. It will return simply nothing. I noticed this, when I looped through the user parameters and it always told me it only found 9 in total, when I had the sheet with 14 on my screen. FYI: the code I used to loop through: [code] for i in range(1,128,1): a = wks.get_label(0,f"D{i}") if a=="": continue else: print(f"i:{i} {a}") [/code] This code should return 14 lines with my current sheet, but it only does give me 9. But even if I try to go one by one, I can't access any user parameter above D9. From previous screenshot, D13 is my Wavelength parameter, this is python output I got: [img]https://my.originlab.com/ftp/forum_and_kbase/Images/PythonConsole.png[/img] Is this a bug or did I miss a specific setting? Best regards in advance
Check here to subscribe to this topic.
The Origin Forum
© 2020 Originlab Corporation
Snitz Forums 2000