web log free
This website is no more updated ! New Website

Fast Prototyping tool for 16 bits PIC

 
home home » Embedded Target for dsPIC » Blocks description » Tx Output Multiplexed for Matlab-Labview BackForward

 

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.

Description

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

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.

The Microchip name PIC, dsPIC, and MPLAB are registered trademarks of Microchip Technology Inc.
MATLAB, Simulink, and Real-Time Workshop are registered trademarks of The MathWorks, Inc.

Lubin Kerhuel 's Website
Contact : [adresse e-mail retirée]