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.
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.
Related blocks : Block/UART_Configuration Block/Rx_Input Block/Tx_Output Block/Tx_Output_Multiplexed_For_Matlab-Labview Block/Interface_Tx-Matlab
Contents
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.