LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Formula Strings

Hi,

I have a set of four simultaneous equations that describe the inverse kinematics of a robotic system. I'm trying to solve them using the nonlinear system solver. My problem so far is in expressing the formulae as strings. For example, I assume that if I have a constant squared that I use the square vi and then convert to a string instead of converting to a string and then appending "^2". Likewise with trigonometric functions. But if I want to use a trigonometric function on one of my variables, how do I actually write the function as a string? Can I just put in "atan2(x)" as a string? Where can I find the string equivalents of the basic functions one would use in a situation like this?

 

Thanks.  Robot Happy

0 Kudos
Message 1 of 5
(3,367 Views)
Do you use a formula node? Then try the help.

Regards,

Wiebe.


0 Kudos
Message 2 of 5
(3,356 Views)
I'm confused. Are you trying to create a formula parser, or are you trying to understand what functions to use in LabVIEW to implement formulas that you already have?
0 Kudos
Message 3 of 5
(3,342 Views)
I was just trying to find out what functions to use. It's still not working though. What's the difference between the system solver and the system single solution? I only want one solution but what if there are others??? Robot surprised
Message 4 of 5
(3,334 Views)

Hi Robotz,

Thanks for posting your issue,I have searched through our information and have found two pieces of which may help you to work out which is best for your application:

System solver:

http://zone.ni.com/reference/en-XX/help/371361B-01/gmath/nonlinear_system_solver/

This one has a random start point.

system single solution:

http://zone.ni.com/reference/en-XX/help/371361A-01/gmath/nonlinear_sys_single_sol/#details

This one starts and a specified point, that is the only difference I can see.

Also have you heard of the ‘To Variant’ function in LabView which allows to code data from one form to another, here is some other useful links.

Flatten string:

 http://zone.ni.com/reference/en-XX/help/371361E-01/glang/variant_to_flattened_str/

To Variant: 

http://zone.ni.com/reference/en-XX/help/371361D-01/glang/to_variant/ 

Variant to Data:

http://zone.ni.com/reference/en-XX/help/371361D-01/glang/variant_to_data/

Hope this helps,

Regards,

Jordan Power
Applications Engineer
National Instruments
0 Kudos
Message 5 of 5
(3,289 Views)