07-01-2009 06:36 AM
hi,
I have a little problem with the formula node. I am trying to multiply h (Planck constant) by c (speed of light), already defined in Labview. But i can't link them to the entries of a formula node because of the units.
By the way, i have another problem which is that if I want to write 6.63E-34 for h, i have an error and i think that it comes from "E".
Do you have any ideas ?
Thank you for your time!
Solved! Go to Solution.
07-01-2009 06:51 AM
I didn't figure out how to deal with pre defined c and h constants but there is no problem with "E" anymore...
07-01-2009 11:23 AM - edited 07-01-2009 11:24 AM
You can use the Convert Unit function to get a unitless number. You just need to enter the units of the constant in the Convert Unit function. For example, for Planck's constant:
By the way, what is it that you're doing that you believe you need to use a formula node as opposed to just coding it in LabVIEW? Just curious.
07-01-2009 12:35 PM
I end up converting it to the units I want to use and then casting the units.
07-02-2009 01:41 AM
Thank you smercurio!
To answer your question, i think that I could have coded my equations in LabVIEW without using a formula node, but in my opinion it would have been a bit heavy.
Tell me if i am doing wrong!
07-02-2009 09:00 AM
Well, I'm not sure what you mean by a "bit heavy". The equivalen G-code would look like this:
Don't know if that's heavier than a formula node. I can say one thing: If you're going to be performing the calculation a lot then the G-code will most likely be faster since you don't have the overhead of the formula node.
07-02-2009 09:04 AM