Hi, I am having some trouble trying to integrate Matlab with Labview. I am using the Matlab Data Acquisition Toolbox to interface with the daq card, but we have Labview code that runs our experiment. What I need is for the Labview code to tell Matlab when to start acquiring data, and ideally Matlab will keep acquiring data until Labview tells it to stop.
I tried to implement this with two separate Matlab script nodes in Labview, one that creates the analoginput object and starts the data acquisition, and another
one that is located in a separate frame that stops the data acquisition and runs signal processing on it. This does not work at all because I'm guessing the Matlab environment does not persist between script nodes, as the second script node throws an error saying the analoginput object does not exist.
Does anyone know a way I can implement this setup? Thanks.