Instructions to create controls and other elements, data from the controller, code to set properties and variables are placed in the Processing Queue to be processed, normally first-in, first-out. Keep in mind that strings are treated nearly identical whether they are entered in the Debug/CLI Window, from an interface file holding configuration information, are part of MakerPlot-J's Event Code or are sent from a microcontroller.
•Simple strings for Analog, Digital and Message Data are easily formatted from the controller and easily accessed.
10,20,30 // Analog String Values accessed with [ain0],[ain1],[ain3],...,[ain99]
%1000 // Digital String Values access with [din0],[din1],[din2],...,[din99], MSB to LSB
Hello World, MakerPlot! // Message String, comma-separated values accessed with
// [str0]...[str99]
•Instructions are used to perform tasks, for either the environment or for interfaces and control.
!MakeButton btnTest,50,50,20,5,Test // Make a button on the Interface
!fileWrite myData.txt,[systemTime],Temperature = [ain0] // Write data to a file
!fileOpen myData.txt // Open a file based on association
!plot.reset // Reset the plot control
•Setting properties of controls, interfaces (windows), and variables are set in a similar fashion as instructions: !metPower.max=50
!txtVoltage=[ain0]
!varTemp=[ain2]
•Properties of controls and interfaces are easily accessed for use in code.
!fileWrite test.txt,[metPower],[txtVoltage]
•Interfaces and the canvas control support a wide assortment of drawing instructions for visualizing data with multiple methods of defining colors. Plots also support additional drawing features.
!drawCircle 50,50,10,RED
•MakerPlot-J supports powerful math operations using both infix (Standard) and Post-Fix math operation combined with accessing data, properties, values and variables.
!txtValue= { sin(rad([ain0])) }
|