LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Sending large arrays to Mathcad

After acquiring our data in Labview 7.0, we would like to send it to Mathcad for processing. The trouble is, when we try to send our 2500-element array out of Labview into Mathcad using the Mathcad Write VI, Labview closes down with no warning. Right now, we work around this by breaking the array into 10 250-element arrays, and writing these to Mathcad one at a time. Obviously this is not optimal.

I wonder if anyone might know what is going on, or at least how to fix it?

By the way, it seems to do the same thing going the other way, too (i.e. sending large arrays from Mathcad to Labview).

Thanks,
Mike
0 Kudos
Message 1 of 5
(3,740 Views)

The easiest way of sending large arrays to Mathcad is the use of File IO. I created a set of VIs that use ActiveX to control/read/write data from LabVIEW (apparently they are in review stage right now so I put them on the ftp site ftp://ftp-stage.ni.com/outgoing/Mathcad.zip but usually they can be found at http://www.ni.com/design/math.htm

In my toolkit, I used both ActiveX and File IO in an example. For example, you could send the data to a file and they set a string inside Mathcad to point to the file so you can dynamically update different test runs without hardcoding anything Mathcad or LabVIEW.

 

Joji
0 Kudos
Message 2 of 5
(3,671 Views)
Hi Buddy,
 
So you are the writer of this great little tool!! My compliments! Unfortionatly it does not work in LV8.0 anymore (I doubt that later versions of MathCad had anything to do with it, since LV7.1.1 and MathCad 12 worked pretty well (small limitations on the array only).
 
Now, NI makes heavy promotion on the LV product on how great you can interface with MathCad, but in reality it is not possible anymore! It is not possible to turn this into a priority project and fix it? As you have seen I am not the only one and I checked with some Dutch Universities who where also pretty frustated but could not be bothered to report it!! Not a good promotion for NI!
 
If you type in MathCad in the search of the discussion forms you see I am not the only one who needs it! A cry for help: Can you please help and fix it??
 
Best regards,
 
Paul de Waal
Sierra Instruments 
0 Kudos
Message 3 of 5
(3,645 Views)
PLease help me in reading matix values from MAthcad
0 Kudos
Message 4 of 5
(3,436 Views)

Hi missu,

This is a fairly old post so you may want to start a new one when you have a more specific problem.  To read a matrix from Mathcad to LabVIEW I would start with this link: http://sine.ni.com/devzone/cda/epd/p/id/4348 which is the Mathcad Interface VIs.  I downloaded it and there is a Getting Started VI that has the functionality to write and read matrices.  There is also a text file that will help you install it.

Brian K.
0 Kudos
Message 5 of 5
(3,414 Views)