|
|
Make Matlab to reactor on batch output |
|
Tschounes |
Forum-Newbie
|
|
Beiträge: 7
|
|
|
|
Anmeldedatum: 11.02.16
|
|
|
|
Wohnort: ---
|
|
|
|
Version: ---
|
|
|
|
|
|
Verfasst am: 08.11.2018, 09:39
Titel: Make Matlab to reactor on batch output
|
|
Hi Matlab Developers!
I have a tricky question: I have a Matlab script that controls a motion tracking system. I want to have that script running the whole time but I only need to store data when a 2nd software sends a trigger signal and similarly to stop data storage when a stop signal is sent. The only way to send a signal from the other software is that I can execute a batch file or an exe file with that software. To content of my batch file I can of course choose myself. However, I didn't had a good idea how I can make a matlab script to react on the execution of a batch file. Does anyone have a good idea how to solve this?
Thanks a lot!
Cheers,
J
|
|
|
|
|
Harald |
Forum-Meister
|
|
Beiträge: 24.495
|
|
|
|
Anmeldedatum: 26.03.09
|
|
|
|
Wohnort: Nähe München
|
|
|
|
Version: ab 2017b
|
|
|
|
|
|
Verfasst am: 08.11.2018, 17:30
Titel:
|
|
Hi,
possibly not the smartest solution, but should work:
Have the batch file create / delete a file with a certain name.
MATLAB: check if that file exists (
exist
)
Best,
Harald
P.S.: this is a German-language forum. If you speak German, you are very welcome to do so in this forum.
_________________
1.) Ask MATLAB Documentation
2.) Search gomatlab.de, google.de or MATLAB Answers
3.) Ask Technical Support of MathWorks
4.) Go mad, your problem is unsolvable ;)
|
|
|
Tschounes |
Themenstarter
Forum-Newbie
|
|
Beiträge: 7
|
|
|
|
Anmeldedatum: 11.02.16
|
|
|
|
Wohnort: ---
|
|
|
|
Version: ---
|
|
|
|
|
|
Verfasst am: 14.11.2018, 05:24
Titel:
|
|
Danke Harald.
Meine Lösung war nun über registry Einträge das zu machen. Nicht ganz elegant aber erfüllte den Zweck!
LG Jonas
|
|
|
|
|
Einstellungen und Berechtigungen
|
|
Du kannst Beiträge in dieses Forum schreiben. Du kannst auf Beiträge in diesem Forum antworten. Du kannst deine Beiträge in diesem Forum nicht bearbeiten. Du kannst deine Beiträge in diesem Forum nicht löschen. Du kannst an Umfragen in diesem Forum nicht mitmachen. Du kannst Dateien in diesem Forum posten Du kannst Dateien in diesem Forum herunterladen
|
|
Impressum
| Nutzungsbedingungen
| Datenschutz
| FAQ
| RSS
Hosted by:
Copyright © 2007 - 2024
goMatlab.de | Dies ist keine offizielle Website der Firma The Mathworks
MATLAB, Simulink, Stateflow, Handle Graphics, Real-Time Workshop, SimBiology, SimHydraulics, SimEvents, and xPC TargetBox are registered trademarks and The MathWorks, the L-shaped membrane logo, and Embedded MATLAB are trademarks of The MathWorks, Inc.
|
|