I have created a simple model which has a packet input block which stores the received data into the workspace. I have the packet input block connected to COM7 , which is connected to COM1 through a null modem cable. I run the model at a sample time of 0.1 sec and send some random characters from the terminal (COM1). I receive the characters correctly but when I send only a single character once in the simulation time , the workspace shows the same character throughout the rest of the simulation time until and unless I send another character. What could be a possible solution to this , if I don't want this to happen ?
MATLAB: Packet input block not resetting to zero until new data is sent manually through Terminal in RTWT Matlab 2009b. Please help.
MATLABpacket inputreal-time windows targetserial communicationsimulinkSimulink Desktop Real-Time
Best Answer