Hi Lewish,
Thanks for answering me.
What I want to do is to link two PC: host PC (with Matlab+Simulink+Real_time Workshop; Windows as an operating system) and target PC (xPC target as an operating system) with an RS232 null-modem. For the moment, I don't succeed. I tried these options:
1- I have checked the COM1 cable. When I connect directly the two PC (host and target PC) with the windows 2000 as operating system, the communication works. So, there is no problem with the RS232.
2- I have checked the ports and it seems that com1 is connected effectively to RS232.
3- When trying to check if Matlab communicates with the COM1 port, I have obtained the output of the 's = serial ('COM1'), fopen(s)' commands as following:
------------------------------------------------------------
>> s = serial('COM1')
fopen(s)
Serial Port Object : Serial-COM1
Communication Settings
Port: COM1
BaudRate: 9600
Terminator: 'LF'
Communication State
Status: closed
RecordStatus: off
Read/Write State
TransferStatus: idle
BytesAvailable: 0
ValuesReceived: 0
ValuesSent: 0
??? Error using ==> fopen
Port: COM1 is not available. Available ports: COM2.
Use INSTRFIND to determine if other instrument objects are connected to the requested device.
------------------------------------------------------------
Now, we see that the serial 'Status' is closed.
What do you think about this?
Regards…
Tawada