How can I open RS232 user interface?
How can I open RS232 user interface?
Please tell me if there is someone who can give me a detailed guide to open RS232gui interface, I'm beginner in Matlab simulation.
I'm trying to find the "Interface Tx-Matlab" and the ",atlab prompt" but no results....
Best regards.
I'm trying to find the "Interface Tx-Matlab" and the ",atlab prompt" but no results....
Best regards.
-
- Site Admin - Expert
- Posts: 616
- Joined: Wed Mar 07, 2007 11:23 pm
- Location: Bayonne- France
- Contact:
Re: How can I open RS232 user interface?
To open the RS232gui user interface, either you type at the matlab prompt :
>> rs232gui
or you place the block
in you model, and you double click on it to open the interface.
>> rs232gui
or you place the block

in you model, and you double click on it to open the interface.
Re: How can I open RS232 user interface?
Thank you "LubinKerhuel" for help!
I've trayed "rs232gui" under prompt command but it doesn't work!!!
Look what I've got as comment:
>> rs232gui
??? Undefined function or variable 'rs232gui'.
please try to help me to find this gui interface.
Best reguards.
I've trayed "rs232gui" under prompt command but it doesn't work!!!
Look what I've got as comment:
>> rs232gui
??? Undefined function or variable 'rs232gui'.
please try to help me to find this gui interface.
Best reguards.
-
- Site Admin - Expert
- Posts: 616
- Joined: Wed Mar 07, 2007 11:23 pm
- Location: Bayonne- France
- Contact:
Re: How can I open RS232 user interface?
Wen you installed the toolbox, the installer unpacked the two files rs232gui.p and rs232gui.gui in the '/blocks' directory.
The blocks directory is also added in the matlab path. (File -> Set Path ...).
Check that theses two files are present in the blocks directory. Try to launch the rs232gui.p file (type rs232gui at the prompt). Since the blocks directory is added in the maltab path, it should be found whatever is your current active directory. If it does not work, try to launch it from the blocks directory.
I do not see any others reason. Does anybody get the same error ?
Lubin
The blocks directory is also added in the matlab path. (File -> Set Path ...).
Check that theses two files are present in the blocks directory. Try to launch the rs232gui.p file (type rs232gui at the prompt). Since the blocks directory is added in the maltab path, it should be found whatever is your current active directory. If it does not work, try to launch it from the blocks directory.
I do not see any others reason. Does anybody get the same error ?
Lubin
Re: How can I open RS232 user interface?
Hello Lubin, tell me please the toolbox is installed seperatly or auto installed under matlab install? I'm searching the 2 files as you have indicated but I haven't find it!
Best regards.
Best regards.
-
- Site Admin - Expert
- Posts: 616
- Joined: Wed Mar 07, 2007 11:23 pm
- Location: Bayonne- France
- Contact:
Re: How can I open RS232 user interface?
Sorry this is fo dspic and not an installable software!
I've found:
install_dsPIC_R2006a.m
How can I get the installable toolbox?
Best regards.
I've found:
install_dsPIC_R2006a.m
How can I get the installable toolbox?
Best regards.
-
- Site Admin - Expert
- Posts: 616
- Joined: Wed Mar 07, 2007 11:23 pm
- Location: Bayonne- France
- Contact:
Re: How can I open RS232 user interface?
This file is the Matlab script that will install the toolbox in the current folder. Launch it at the matlab prompt.surfer wrote:install_dsPIC_R2006a.m
Re: How can I open RS232 user interface?
Hello,
thank you Lubinm.
I've succeeded to establish the serial communication link with my serial interface evaluation board based on a PIC16F877. There is response in communication PIC-PC and the buffer is filled with received data, but when I preview the plotted figure nothing is plotted.
There still some error messages like the followings:
??? Error using ==> unknown
Matrix dimensions must agree.
Error in ==> RS232_analyzBloc at 117
Error in ==> rs232gui>pushStart_Callback at 254
Error in ==> gui_mainfcn at 75
feval(varargin{:});
Error in ==> rs232gui at 43
??? Error while evaluating uicontrol Callback.
Please try to help me getting. I just want to get data from srial port and plot it in real time.
Best regards.
thank you Lubinm.
I've succeeded to establish the serial communication link with my serial interface evaluation board based on a PIC16F877. There is response in communication PIC-PC and the buffer is filled with received data, but when I preview the plotted figure nothing is plotted.
There still some error messages like the followings:
??? Error using ==> unknown
Matrix dimensions must agree.
Error in ==> RS232_analyzBloc at 117
Error in ==> rs232gui>pushStart_Callback at 254
Error in ==> gui_mainfcn at 75
feval(varargin{:});
Error in ==> rs232gui at 43
??? Error while evaluating uicontrol Callback.
Please try to help me getting. I just want to get data from srial port and plot it in real time.
Best regards.
-
- Site Admin - Expert
- Posts: 616
- Joined: Wed Mar 07, 2007 11:23 pm
- Location: Bayonne- France
- Contact:
Re: How can I open RS232 user interface?
The rs232gui interface:
should be used with the block

The block builds a communication layer to allow plotting up to 16 different data channel coded using either 8, 16 or 32 bits data.
For details about the communication layer, there is a description on my french website.
In your case, I guess that you want to plot raw data (without using the communication layer) : uint8.
==> Push the "donneesBrutes" (ie, "Raw data") button of the interface.

should be used with the block

The block builds a communication layer to allow plotting up to 16 different data channel coded using either 8, 16 or 32 bits data.
For details about the communication layer, there is a description on my french website.
In your case, I guess that you want to plot raw data (without using the communication layer) : uint8.
==> Push the "donneesBrutes" (ie, "Raw data") button of the interface.
Re: How can I open RS232 user interface?
Thank you Lubin,
can you help me to make a labview interface the same as you have showed in your frensh website!
Just us I've told you, getting 16 bit data format and plot it in an appropriate graph.
The data are a real teperature value sensed from the PIC16F877 to the PC.
I'm so grateful to you.
Best regards.
can you help me to make a labview interface the same as you have showed in your frensh website!
Just us I've told you, getting 16 bit data format and plot it in an appropriate graph.
The data are a real teperature value sensed from the PIC16F877 to the PC.
I'm so grateful to you.
Best regards.
-
- Site Admin - Expert
- Posts: 616
- Joined: Wed Mar 07, 2007 11:23 pm
- Location: Bayonne- France
- Contact:
Re: How can I open RS232 user interface?
Hi Surfer !
I hope to publish the Labview schematic that can decode the data sent by the dsPIC (encoded with the simulink block Tx_Matlab_Labview). I currently do not find time to do it.
Lubin
I hope to publish the Labview schematic that can decode the data sent by the dsPIC (encoded with the simulink block Tx_Matlab_Labview). I currently do not find time to do it.
Lubin
Re: How can I open RS232 user interface?
Thanks Lubin
Please can you help me to write a program in Matlab, that acquire data from serial port and plot it in real time.
I thought there is three instuctions to program this task, try to help me please.
Best regards.

Please can you help me to write a program in Matlab, that acquire data from serial port and plot it in real time.
I thought there is three instuctions to program this task, try to help me please.
Best regards.
-
- Site Admin - Expert
- Posts: 616
- Joined: Wed Mar 07, 2007 11:23 pm
- Location: Bayonne- France
- Contact:
Re: How can I open RS232 user interface?
Hi Surfer,
You will find many forums with useful help. The matlab help is also very useful.
However, from my experiment:
On matlab, and with some computer (depending on its own hardware)
Opening serial communication will crash matlab if data are being sent from the other side, while matlab open the serial line
Also, sometime, it is necessary to send one or two data (char) through the serial before being able to receive any from it.
You will find many forums with useful help. The matlab help is also very useful.
However, from my experiment:
On matlab, and with some computer (depending on its own hardware)
Opening serial communication will crash matlab if data are being sent from the other side, while matlab open the serial line
Also, sometime, it is necessary to send one or two data (char) through the serial before being able to receive any from it.
Re: How can I open RS232 user interface?
Ok, as I think is not prefered to interface serial port with Matlab! So can I use visual basic?
Bets Regards
Bets Regards
-
- Site Admin - Expert
- Posts: 616
- Joined: Wed Mar 07, 2007 11:23 pm
- Location: Bayonne- France
- Contact:
Re: How can I open RS232 user interface?
It's at your convenience...
Who is online
Users browsing this forum: Google [Bot] and 33 guests