Matlab-Simulink device driver Blockset for Microchip dsPIC / PIC24 / PIC32 Microcontrollers.

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)
< DsPIC Block
Revision as of 18:30, 3 May 2015 by LubinKerhuel (Talk | contribs) (LubinKerhuel moved page Block/Tx Output Multiplexed For Matlab-Labview to DsPIC Block/Tx Output Multiplexed For Matlab-Labview: Block is a special page, creates many issues)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
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.


Related blocks : Block/UART_Configuration Block/Rx_Input Block/Tx_Output Block/Tx_Output_Multiplexed_For_Matlab-Labview Block/Interface_Tx-Matlab

Dialog Box Parameters

UART Multiplexed For Matlab Labview Dialog

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.

Labview

Media:PIC_Labview.rar for viewing data using Labview (Last time edited was 2005. hope you could convert theses files).

Related forum topics


<comments \>