05-22-2006 02:14 AM
05-22-2006 07:36 AM
Hi,
I noticed two problems with the formulas that you are trying to use:
1) The formula parser work in decimal point (.) instead of coma (,). You have to modify all the number with coma (1,40363, for example) to (1.40363).
2) The variable name has several restrictions. It accept only the following variables:
a, a0,...,a9; b, b0,...,b9; ...z, z0,...,z9. You have to substitute all the variables to the permitted one.
This will make the errors go away when trying to parse the function. If you don't want to change the equations, you can always use string operations to convert (,) to (.) and use the "Substitute Variables.vi" to replace the previous variable with the permitted sintax.
Hope this help!
05-22-2006 08:33 AM
05-23-2006 07:45 AM
Actually, just to clarify, the decimal point depends on your computer's and LabVIEW configuration. If you change the operating system to be decimal, LabVIEW will start using decimal point and your program will not work anymore. There is an Option that allows you to avoid system changes, but you would have to change all to decimal points. If you guarantee that your system will be always coma, that would not be a problem.
Also, in the Full Development System of LabVIEW 8 there is a new function called "LabVIEW 8.0\vi.lib\gmath\ode.llb\ODE Solver.vi" that you can develop the right-hand side of the equations as a VI instead of formula node. This could be attractive for some users (I personally prefer graphical programming instead of equations since it is easy to debug). In addition, this VI allow you to choose which solver as fixed step size (RK1,2,3 or 4) or variable step size (RK 23, RK 45, BDF, etc), Time Step, Minimum and Maximum Timestep, Initial and Final Time, and so on. So, if you can change the solver parameters without changing VIs.
05-23-2006 07:52 AM