DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

DIAdem mathscript

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?

 

0 Kudos
Message 1 of 7
(6,054 Views)

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,

Daniel Dorroh
National Instruments
0 Kudos
Message 2 of 7
(6,028 Views)

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

0 Kudos
Message 3 of 7
(6,020 Views)

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

0 Kudos
Message 4 of 7
(5,991 Views)
I will give it a try.

Thanks.
0 Kudos
Message 5 of 7
(5,960 Views)

I loooked for the calculation manager but it does not appear to be in version 11.0.

0 Kudos
Message 6 of 7
(5,924 Views)

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,

Daniel Dorroh
National Instruments
0 Kudos
Message 7 of 7
(5,910 Views)