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
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 Forum for Origin C
 Get float values from GETN GUI
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

kineticesp

Colombia
12 Posts

Posted - 09/11/2008 :  1:23:45 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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 :)

Echo_Chu

China
Posts

Posted - 09/11/2008 :  10:24:54 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi, kineticesp

You can use

read_data=sample.data.dVal;

Echo
OriginLab Corp
Go to Top of Page

cpyang

USA
1406 Posts

Posted - 09/11/2008 :  10:45:37 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000