LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Elegant Way to Flag MATLAB

I'm using MATLAB to do large matrix manipulation on data I acquire in LabVIEW in real time. MATLAB and LabVIEW are running at the same time and LabVIEW tells MATLAB a trigger condition has been met by creating a text file. When MATLAB sees a file called trigger.txt, it lights an indicator on its UI telling the user the trigger condition has been met. Besides being migraine-incudingly inelegant, it's slow - it takes LabVIEW a while to create the trigger text file. For what it's worth, an abridged snippet of my code is attached.

 

Is there a better way to tell MATLAB a trigger condition has been met?

 

Andrew

Andrew
0 Kudos
Message 1 of 5
(3,749 Views)

Hi Andrew,

 

I'm not aware of communicating directly between the two programs when they are running separately.  You may want to look at this feature.

Jared S.
Applications Engineering
National Instruments
0 Kudos
Message 2 of 5
(3,693 Views)

Thanks Jared, but all the matrix manipulation has to be done in MATLAB. I have a large (2300 x 5 x 1000) array of complex numbers that LabVIEW can't handle. 

Andrew
0 Kudos
Message 3 of 5
(3,685 Views)

Hi Andrew,

 

Actually the scripts that you enter into that node will run within MATLAB®.  LabVIEW communicates to it through ActiveX to send the script.

Jared S.
Applications Engineering
National Instruments
0 Kudos
Message 4 of 5
(3,675 Views)

Oh! That changes everything - thanks, Jared...I'll look into that.

Andrew
0 Kudos
Message 5 of 5
(3,667 Views)