03-26-2013 08:11 AM
Just created a mathscript whwith a fairly simple equation. When I execute the script, the following error message appears "Cannot transfer result data". I understand that the MathScript function executes LabView and I do have LabView Professional 8.5 loaded on the machine. What am I missing?
03-27-2013 10:23 AM
Hi Chuck@Eaton,
Are you using LabVIEW 8.5 with the MathScript
option?
If you are, could you post the script you are trying to execute?
Warm Regards,
03-27-2013 11:06 AM
Daniel,
Yes, I am using LabView 8.5 with the Mathscript option. Confirmed that the license is properly activated. A simple numeric 1 + 1 = 2 script works. See attached for the script I am having problems with. I assumed a waveform is treated as a 1D array. I did try matrixed array but that also did not work.
Chuck
03-29-2013 09:33 AM
Hello Chuck,
That particular formula would be easier to handle in DIAdem's Calculation Manager, have you ever looked into that feature? Exercise 6 of the DIAdem 2012 Hands On Exercises shows an example of how to use it starting at step 6.27.
http://zone.ni.com/devzone/cda/epd/p/id/5393
Brad Turpin
DIAdem Product Support Engineer
National Instruments
03-29-2013 03:02 PM
04-02-2013 07:18 AM
I loooked for the calculation manager but it does not appear to be in version 11.0.
04-02-2013 01:25 PM
Hi Chuck,
The Calculation Manager feature did not become available until DIAdem 2010. Were you able to try Daniel de Gaston's suggestion:
Hello Chuck,
I am
looking at your input function.
Efficiency
= Abs(Input_Torque*Input_RPM)/ ((Abs(LW_Flap_Torq) + Abs(RW_Flap_Torq)) *
Abs(Output_RPM)).
This is a tough concept and easy to make both logical and syntax errors depending on what exactly you want to do. To do a point wise multiplication of two Vectors or 1-D arrays we need to use the '.*' in order to distinguish between point wise multiplication and matrix multiplication. I believe the following line of code will work.
Efficiency = Abs(Input_Torque.*Input_RPM) ./ ((Abs(LW_Flap_Torq) + Abs(RW_Flap_Torq)) .* Abs(Output_RPM)).
Daniel de Gaston
Applications
Engineering
National Instruments
Please let me know whether this suggestion worked.
Warm Regards,