LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

ANN: uCalc Fast Math Parser 2.96 released

uCalc Fast Math Parser 2.96 was officially released this week.  uCalc FMP will allow your applications to evaluate math expressions defined at runtime.  uCalc FMP can work with LabVIEW using the uCalcWrp.dll wrapper DLL (included in the download).

 

For more details see:

 

Daniel Corbier

Author of uCalc FMP

www.ucalc.com
---
Daniel Corbier
www.ucalc.com
0 Kudos
Message 1 of 8
(4,040 Views)
In general, this could be usefull.

I tried to call ucDefineVariable from uCalcWrp.dll, but can't get it working
in LabVIEW.

Also, you should make it more obvious that the download is a free version,
with a teaser popup window.

Regards,

Wiebe.


0 Kudos
Message 2 of 8
(3,995 Views)
Are you attempting to attach a variable in uCalc with one in your host program?  uCalc lets you do that with other compilers, but with LabVIEW you would need to define the variable with ucDefineVariable.  Then if you want to set this uCalc variable to the same value as a variable in your host program, you'd have to use ucSetVariableValue.  VB.NET has the same limitation.  See:
http://www.ucalc.com/fmphelp/VBNET.htm#ucSetVariableValue
---
Daniel Corbier
www.ucalc.com
0 Kudos
Message 3 of 8
(3,967 Views)
When I cal ucDefineVariable, LabVIEW crashes with a popup dialog with a
library error.

In the documentation, the example uses 'ucDefineVariable= "y = 30" ', so I
assume the input of ucDefineVariable is a string. But no matter what input
string I use (pointer, pascal pointer, handle to string, handle to handle),
it crashes...

Regards,

Wiebe.


0 Kudos
Message 4 of 8
(3,952 Views)

Try the following prototype, and let me know how that works for you:

 

unsigned long ucDefineVariable(CStr Definition, unsigned long Address, unsigned long tHandle);

---
Daniel Corbier
www.ucalc.com
0 Kudos
Message 5 of 8
(3,928 Views)
Oh, and I forgot to mention that you can set the second and third arguments to 0 if you don't need them.
---
Daniel Corbier
www.ucalc.com
0 Kudos
Message 6 of 8
(3,927 Views)
Well, that works. But am I missing something, or is this mentioned
somewhere? This is the first function I tried, and it would be hard to guess
all parameters for all functions.

To be usefull from LabVIEW, we really need all this information. Some
example would be nice too.

Regards,

Wiebe.


0 Kudos
Message 7 of 8
(3,888 Views)

Unfortunately, currently uCalc doesn't have detailed documentation specifically for LabVIEW the way it does for other supported compilers.  However, there is a LabVIEW entry in the help file (uCalcFMP.chm), under Compiler Specifics (the LV entry directs you to a topic entitled Other Compilers).  There you will see the list of uCalc routines that are exported from the DLL.  This will help you determine the number of parameters and data types to use in your prototypes.

 

By the way, if the help file appears blank (as people occasionally report), simply right-click the uCalcFMP.chm file, and change the security setting to allow that file to be viewed.
---
Daniel Corbier
www.ucalc.com
0 Kudos
Message 8 of 8
(3,845 Views)