LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

labview output data to mathcad

Solved!
Go to solution

I use Labview to acquire data and use Mathcad to process data. I am wondering how to link two program together?

 In other words, labview outputs a big 2D array and Mathcad to input it. If one can give an example like it, it will be a great help.

Thanks

liming

0 Kudos
Message 1 of 10
(4,715 Views)

This question has already been answered in this thread. But that thread says to use the the Mathcad Interface VIs found here to send/receive data and control the Mathcad environment.  If this helps you with your question could you just reply to this forum so that we can get confirmation that those vi's are in fact relevant to your question?

 

Regards,

National Instruments
RIO Embedded Hardware PSE

CompactRIO Developers Guide
Message 2 of 10
(4,690 Views)

I still can not make it.  A simple example like, labview output a 2D array and Mathcd read it, will be what I want. Thanks

liming

0 Kudos
Message 3 of 10
(4,688 Views)

Hi detech,

 

The link that i provided you has the simple examples that you requested. They are as plug and play as you can get with this 2D array to Mathcad. If programming LabVIEW is what you are concerned about, NI offers classes that you could take to help you get started as well as a plethera of online help for "getting started" programming LabVIEW. With just a basic understanding of how to program LabVIEW you will be able to use the dll's provided to output a 2D array and have Mathcad read it.

 

Regards,

National Instruments
RIO Embedded Hardware PSE

CompactRIO Developers Guide
Message 4 of 10
(4,673 Views)

Please be patient with me.

I did follow your advice to work on it. Howver, I do have problems. Here is example I work on it. File IO with mathcad.vi and File IO with LabVIEW.mcd.

I always have error (1555) in subvi: Mathcd open.vi  

I try to narrow down my question, and seek your help.

Thanks

Liming

0 Kudos
Message 5 of 10
(4,658 Views)

Hi Detech,

 

I am glad that you were able to make some improvement on this. Error 1555 just is an error on an invoke node due to a coercion dot. I noticed some coercion dots in your code which I think you need to resolve. I don't have the MathcadOpen.vi but it has a coercion dot coming in from the build path function and I am betting if you resolved that problem and all of your coercion dots, you would no longer have error 1555. In general coercion dots are VERY VERY BAD. We never want to use them if at all possible. I am not exactly sure why they exist, but they do and they cause alot of problems.

National Instruments
RIO Embedded Hardware PSE

CompactRIO Developers Guide
Message 6 of 10
(4,635 Views)
I am not sure what is Coercion dot. But I can just type a path to Mathcd open.vi (which from mathcad.zip in ni.com). It still show same error.
0 Kudos
Message 7 of 10
(4,628 Views)

You tell me to resolve coercion. The file IO with mathcad.vi is an example from NI.com, you told me to dowload. Your example has problem, I am not able to resolve it. You or anyone in NI should be able to resolve it.

You said you do not have Mathcad open.vi, i dowlod from the link you give to me.

I just feel I waste my time to ask you. You better quite and let other felloe to answer my question.

liming

0 Kudos
Message 8 of 10
(4,616 Views)
Solution
Accepted by topic author detech

I would really like to appologize for frustrating you with this issue. That was not my intention and I am sorry. I have done alot more research on using the dll for Mathcad in LabVIEW and I think I may be on to where the problem possibly is. It seems that we may need to point the activex containers to the correct location for Mathcad. Unfortunately, you need Mathcad installed in order to point them to the correct location, so I was wondering if you could double click the Mathcad Open.vi (in the File IO with Mathcad.vi) to open the block diagram. Now go to the Block diagram of the MathCad Open.vi and open the Mathcad_App_Open.vi. Once there right click the Application Reference and click on "Select ActiveX Class" >> browse. Now from the drop down menu choose the library type for something with Mathcad on it it will probably be IMathcad but if its not then choose anything with Mathcad. After that is selected choose the object with Application in the title from the box below the drop down menu and select OK. Run the example and see if the problem dissapears.

I have provided some screenshots of the functions that I was looking at.

National Instruments
RIO Embedded Hardware PSE

CompactRIO Developers Guide
Message 9 of 10
(4,578 Views)

Yes, I made it work. Per your advice, I select Mathcad_app_open.vi -> right click "Mathcad.ImathcadApplication" -> activeX class-> select "mathcad.ImathcadApplication".

Thanks. I was so frustrated yesterday. I am sorry for my complain.

Liming

0 Kudos
Message 10 of 10
(4,563 Views)