08-23-2006 08:42 AM
08-23-2006 09:32 AM
08-23-2006 09:51 AM
08-24-2006 05:08 PM
08-25-2006 09:59 AM
09-25-2006 03:29 PM
This solution is fine for design time.
However I need to implement similar functionality within .exe application.
Is there any solution? It seems to me that MathScript newer was ment to be used in executable. So for all my dynamic calculations I still need Matlab which is major overkill for what I am looking for.
Thank you
Vlad
09-26-2006 02:38 PM
09-26-2006 04:28 PM
Thanks Grant!
I do not know the function ahead of time.
Basically what i am looking for is to create user programmable calculator as a part of much larger application.
It has 8 (X1...X8) inputs and 1 ( Y) output. The values for inputs come from other parts of application. User can type formula in place holder and vi performs calculations based on it. (for example Y=X1+((x2-X3)/2) ). The type of formula can involve any kind of math functions.
Currently I have implemented it using formula parser VIs but I need polymorphic functionality to be able to work with Complex numbers and also arrays of real or complex numbers.
I think my best bet would be if EVAL function was properly implemented in RunTime but sadly it is not. I already contacted support and they confirmed the bug so I was looking for workaround.
Vlad
09-28-2006 10:50 AM
09-28-2006 11:03 AM
Thanks Grant!
I am looking forvard to it.
In mean time I found the following work around:
All of our test stations equiped with Agilent Vee Runtime.
I created function in Vee which can do arbitrary math by interpreting formula on a fly( One of the nicest features of VEE).
Then I wrapped ActiveX call to VEE into Lv vi.
This let me achieve desired functionality. I took perfomance hit since VEE is out of process server but I don't see any other option at this time.
Thanks again for your help
Vlad