Component: Visi (4DSystems) (Comms: System)
Author | Matrix Ltd. |
Version | 2.0 |
Category | Comms: System |
Contents
Visi (4DSystems) component
A way of interacting with the VISI interface designed by 4D systems. VISI firmware must be pre-loaded onto the SD card connected to the display to allow everything to work correctly.
Component Pack
COMMSA
Detailed description
No detailed description exists yet for this component
Examples
These examples are designed to work with a 4D systems display pre-programmed with the VISI Genie runtime files. These files are also included in the example archives to allow you to easily replicate the project.
The 4D display can either be connected to the PC running Flowcode using the 4D USB cable or connected to an embedded Microcontroller using a hardware or software UART. If you are using the Flowcode simulation to communicate with the Visi component then be sure to set the Visi COM port property to the COM port assigned by Windows to the 4D USB Cable.
The Console window should also show some helpful information to aid in debugging any problems.
The first example demonstrates a simple rocker switch Visi component.
RockerSwitch
The second example demonstrates controlling the colour of an RGB LED using the Visi colour picker component.
ColourPicker
Downloadable macro reference
![]() |
VisiWriteString |
Writes a string to a specific Visi object. Returns 0 for a succesful write operation. | |
![]() |
StringIndex |
![]() |
StringData |
![]() |
Return |
![]() |
VisiWriteObject |
Writes a value to a specific Visi object. Returns 0 for a succesful write operation. | |
![]() |
ObjectID |
![]() |
ObjectIndex |
![]() |
Value |
![]() |
Return |
![]() |
ChangeHWBaud |
Changes the hardware UART baud rate allowing for dynamic speed changes. | |
![]() |
NewBaud |
0=1200, 1=2400, 2=4800, 3=9600, 4=19200, 5=38400, 6=57600, 7=115200 | |
![]() |
Return |
![]() |
VisiWriteContrast |
Updates the display contrast. Returns 0 for a succesful write operation. | |
![]() |
Contrast |
Range 0-15, 0=Backlight Off | |
![]() |
Return |
![]() |
VisiWriteVolume |
Updates the display volume. Returns 0 for a succesful write operation. | |
![]() |
Volume |
Range 8-127 | |
![]() |
Return |
![]() |
VisiReadByteFromMessage |
Reads a byte from a succesful VisiReceive macro. Index: 0=Command, 1=ObjectID, 2=ObjectIndex, 3=ValueMSB, 4=ValueLSB | |
![]() |
Index |
![]() |
Return |
![]() |
Initialise |
Sets up the RS232 peripheral, must be called at the start of your program or at least before you start calling any other RS232 macros. | |
![]() |
Return |