The Origin Forum
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 Origin C
 Get float values from GETN GUI

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
kineticesp Posted - 09/11/2008 : 1:23:45 PM
Im trying to get float values from a GETN_NUM field, I know that reading the variable with the nVal extension is the problem but I dont know how to read it as a float.

for example if the variable is in a tree node called "sample" and a GET_NUM called "data" (read_data is a float).

--code--

read_data=sample.data.nVal;

--code--

It must be something like fVal but I cant find it in the Help files.

Thanks in advance :)
2   L A T E S T    R E P L I E S    (Newest First)
cpyang Posted - 09/11/2008 : 10:45:37 PM
for scalar, we only have dVal, sorry. fVal is only for vector and matrix, like fVals and fVals2, as we feel it is not necessary to use fVal when dVal is available.

See

http://ocwiki.originlab.com/index.php?title=Category:PropertyNode_%28class%29
Echo_Chu Posted - 09/11/2008 : 10:24:54 PM
Hi, kineticesp

You can use

read_data=sample.data.dVal;

Echo
OriginLab Corp

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000