Mega Search
23.2 Million


Sign Up

Make a donation  
Serial port read in real time  
News Group: comp.soft-sys.matlab

Hi
I am trying to control a device connected to my PC through usb serial port. I have tried packet output and stream input blocks in realtime windows target but it was not successful. The stream input block outputs zero value every other step. In other words, In one step the stream input block gives the value sent from the device, in the next step it outputs a zero value. However, the data ready port is always on. When i use matlab scripts with fwrite and fscanf functions, there is no zero values in successive responses from the device.
I would appreciate it if anyone could help me with this.

Vote for best question.
Score: 0  # Vote:  0
Date Posted: 29-Aug-2016, at 5:00 PM EST
From: Reza Kamran