Info

此问题已关闭。 请重新打开它进行编辑或回答。

How do I pass a COM-Port (s) to and from other GUIs (GUIDE)

3 次查看(过去 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 个)

此问题已关闭。

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by