Info
この質問は閉じられています。 編集または回答するには再度開いてください。
How do I pass a COM-Port (s) to and from other GUIs (GUIDE)
2 ビュー (過去 30 日間)
古いコメントを表示
Hello *, I have the Problem when running MATLAB on Windows it takes for ever to request a COM-Port. I would like to request it only once and then pass it or Access it through other GUIs created by GUIDE. I managed to pass s [ =serial(strcat('COM', num2str( state.com_popup ))) ] through functions within a GUI or .mat file. But I would also like to pass it to children or get it from the parent. I have one master GUI, opening several other GUIs operating different things on ONE COM-Port. I tried something like: handles.s = serial(......) fopen(s); guidata(hObject, handles);
But I do not reach the parent where I did fopen(s).
I was able to see how to pass between "figures" but not between the main GUI and others. get(0) -> and so on but I did not find my open COM-Port
I guess I Need help.
0 件のコメント
回答 (0 件)
この質問は閉じられています。
参考
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!