Blockset described on this wiki is deprecated since 2012.

For Model Based Design (MBD), use the free MPLAB Device Blocks for Simulink, tool from Microchip.
Updated Rapid Control Prototyping (RCP) custom projects are published at: https://lubin.kerhuel.eu.

Difference between revisions of "DsPIC Block/Tx Output Multiplexed For Matlab-Labview"

From http://www.kerhuel.eu/wiki - Simulink device driver Blockset for dsPIC / PIC24 / PIC32 Microcontrollers --[[User:LubinKerhuel|LubinKerhuel]] 12:40, 3 September 2009 (UTC)
Jump to navigation Jump to search
(New page: 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...)
 
Line 1: Line 1:
 +
[[Image:Block_UART_Tx_Output_Multiplexed_MatlabLabview.png|thumb|rght|Block UART Tx Output Multiplexed Matalb-Labview]]
 
Output driver to send internal variables to a matlab or labview graphical interface. Variables can be visualized and recorded from Matlab or Labview.
 
Output driver to send internal variables to a matlab or labview graphical interface. Variables can be visualized and recorded from Matlab or Labview.
  

Revision as of 21:07, 10 June 2008

Block UART Tx Output Multiplexed Matalb-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

n° UART

Select the microcontroller UART Used

Intelligent Spreading

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.

Channel Number

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.

Blocking channel

Specify channel that should not loose data. Be carefull to not violate the time step calculation time by setting all channel as blocking channel.