12-06-2010 07:46 PM
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
12-08-2010 12:54 PM
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.
12-08-2010 01:27 PM
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.
12-08-2010 03:24 PM
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.
12-08-2010 04:32 PM
Oh! That changes everything - thanks, Jared...I'll look into that.