hey people....i am new in matlab... i want to transfer data using serial link ....the problem is that i only want to simulate it on matlab and the actual data transfer using two comp is not needed...i ust want to see if my code is working....like if i am sending data the transmitter line (pin 2) should be high ....can i do that ???....how to get the status of the pins using matlab....or similar technique to demonstrate that my program will work if i connect 2 comp....
my code is the same old code used for serial communication......
s1=serial('COM2','BaudRate', 9600,'Parity', 'none','DataBits',
8,'StopBits', 1);
set(s1,'InputBufferSize',1024); % ini=512
fopen(s1)
fprintf(s1,'a')
pls help
thanks
my code is the same old code used for serial communication......
s1=serial('COM2','BaudRate', 9600,'Parity', 'none','DataBits',
8,'StopBits', 1);
set(s1,'InputBufferSize',1024); % ini=512
fopen(s1)
fprintf(s1,'a')
pls help
thanks
Last edited: