Showing posts with label Data transfer through MATLAB. Show all posts
Showing posts with label Data transfer through MATLAB. Show all posts

Wednesday, 20 November 2013

Simple Program to transfer data in Matlab by Com ports (USB) serially


%% Create a serial object CALLED Board board = serial('COM8', 'BaudRate', 96000, 'DataBits',8); fopen(board); %This code will open and connect to COM8 with a speed of 96000 baud and %8 bits of data will be transferred to the deivice connected to the com 8 % port % you can also use fprintf command to transfer the data serially