Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • 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
Joined
Nov 18, 2002
Messages
1
Location
GB
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

Back
Top