Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Writing a structure to the serial port

Status
Not open for further replies.

RobWalls

Computer
Nov 18, 2002
1
I need to write a structure to another computer via the serial port, but if i use
fwrite(COM1, structure);
then MATLAB complains that it will only accept a string or numerical argument, not a structure. Is there a different function that i could use to get round this, or do i have to write each member of the structure to the port separately? Thanks for your help,
Rob.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor