ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW MathScript RT Module

cancel
Showing results for 
Search instead for 
Did you mean: 

I have some software problems of running matlab script node in the LabVIEW program.

Hi there,

 

I wrote a simple matlab code, like x= 1, y = x*2. Then I tried to put them into matlab script node in LabVIEW.

However, when I ran the program, I couldn't run and Labiew show some error. 

Then I tried the method talked before on this forum. Please see the following link.

http://forums.ni.com/ni/board/message?board.id=MathScript&thread.id=571

I followed the instruction and open the "command prompt," type some commands then I could run the program, and simultaneously, the LabVIEW program open "Matlab command line window" and run my labview code. However, if I didn't use the command prompt, the  "matlab command window" will not be opened by running the labview program. It would just show some error. And even if I turn on the matlab program in advance, I still couldn't run the labview program.

 

Is there any effecient way to deal with this problem without using "command prompt?" Because I try another PC with both matlab and labview installed on it, I "can" run my simple matlab script node on it, and it will open the matlab command line window automatically by running my code. Therefore, I thought there might be some software linking problems in the previous PC I used . Do you have any ideas?

 

Thanks in advacne.  

 

0 Kudos
Message 1 of 4
(7,102 Views)

This board is for Mathscript, but you seem to have a matlab problem. You should probably post in the LabVIEW forum instead.

 

What is your LabVIEW version? What is you matlab version?

0 Kudos
Message 2 of 4
(7,099 Views)

I'm sorry I go in the wrong board.

My LabVIEW version is 8.5 and matlab is R2008a.

I would post this question on Labview Discussion Forum.

 

Thank you! 

0 Kudos
Message 3 of 4
(7,095 Views)