Matlab-Simulink device driver Blockset for Microchip dsPIC / PIC24 / PIC32 Microcontrollers.
DsPIC Block/Tx Output Multiplexed For Matlab-Labview
Output driver to send internal variables to a matlab or labview graphical interface. Variables can be visualized and recorded from Matlab or Labview.
The "Tx Output Multiplexed for Matlab-Labview" Output block write up to 16 different variable of eigher 8 or 16 bits to matlab/labview using a specific developed serial protocol. The block "Interface Tx-Matlab" open the graphical user interface allowing to received the data from the microcontroller using the serial port of the computer. Using USB to serial hardware adaptater should be considered if your computer has no serial interface. Need one "UART config" block to set UART parameters.
Dialog Box Parameters
Select the microcontroller UART Used
If you send more data than the maximum data that can be send during one time step, this option allow to send each channel. All data will not be send, but each channel will be send. If not checked, the data of the last channel will never been send.
Select from 0 to 15 in a vector. If several channel are selected, the blocks will have several inputs.
Tx Buffer Size
Size of the buffer. Should be just bigger than the total amount data send. 8 bits channel need 2 bytes and 16 bits channels need 3 bytes.
Specify channel that should not loose data. Be carefull to not violate the time step calculation time by setting all channel as blocking channel.
Media:PIC_Labview.rar for viewing data using Labview (Last time edited was 2005. hope you could convert theses files).
Related forum topics