when i transmit a string through serial from a gui i created It keeps sending repeatedly. How to make it to send only once?

1 次查看(过去 30 天)
I made a gui in matlab where it takes an input string and transmits through usb serial communication to another usb serial port. But when i send i am able to see that the string keeps on getting transmitted until i end the connection. how to solve this problem?

回答(1 个)

Paramesh
Paramesh 2017-4-7
Use conditions.like if and else ,if condition is true,output will be sent otherwise not send

类别

Help CenterFile Exchange 中查找有关 Get Started with MATLAB 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by