LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

double to single precision on a formula node

hi,

i am working on LV and using formula node structures. In order to save memory, i have to use single precision numbers. When i am using formula node, even if my inputs are single precisions, my outputs are double precision number. How can i change it?

thanks

gaetan
0 Kudos
Message 1 of 3
(4,092 Views)
Hi Gaetan,

All you need to do is declare the outputs as "float32" this should give you single precision outputs.

Hope this helps,

Nick
0 Kudos
Message 2 of 3
(4,092 Views)
Hi Gaetan,

What you need to do is declare your output as a float32 like in the picture attached.

See in the knowledge base for more info : http://search.ni.com/query.html?col=alldocs&ht=0&qp=%2Bcontenttype%3Aknowledgebase+%2Blanguage%3Aenglish&qs=&qc=&pw=575&ws=0&la=en&si=0&fs=&qt=formula+nodes&ex=&rq=0&oq=&qm=0&ql=&st=11&nh=10&lk=1&rf=0&layout=KB

Hope this helps !
Julien
0 Kudos
Message 3 of 3
(4,092 Views)