Analog Plot controls are the used to plot analog data, such as temperatures, pressures, etc.
.png)
Analog Plots will automatically accept and plot analog data being sent to MakerPlot-J. Analog data is sent as a string of comma-separated values (ending in a carriage return or new line) such as: 10, 20, 30
This data may be sent by entering it in the Debug/CLI Window, from event code, or as typically done, from a Microcontroller sending the ASCII data to the computer: Serial.print(x); Serial.print(","); Serial.print(y); Serial.println("z"); // note the use of println to add a new line character.
While up to 99 values to be sent in one line, referenced with [ain0] to [ain99], only the first ten will be plotted, [ain0] to [ain9]. Only 10 values can be plotted directly by the Analog Plot Control, referred to a Channels, each channel can be changed or hidden to represent the desired data.
Data may be manually plotted using the plot instruction: !plotName.plotChan channelNumber, value
!plot.plotChan 3,50
A property can be set to prevent automatic plotting of data if desired.
!plot.manualPlotOnly=1
For basic operation of the Analog Plot, please see Analog Plotting in the Quick-Start topics.
This section covers the large number of features of the plots, including:
•Creating an Analog Plot Control.
•Data Point explanation and use.
•On screen and coded controls and icons.
•Configuring Channels as to data source and manipulating data.
•Selecting Plot Styles - standard, bar graphs, X-Y plotting and logarithmic Y-Axis
•Maximum points, scale settings and other settings.
•Properties of the control.
•Values that can be accessed from the Analog Plot.
•Instructions to control the plot.
•Event triggers based on various events.
•Digital data may now be plotted on the analog plot for ease of analysis.
•Performing drawing instructions on the plot and using real time data or mouse-clicks for them.
•Saving and opening plot data.
Note: Serial controls have a property called connectionString which will run the specified string when the port connects. By default it holds !plot.reset to reset the default analog plot on connect.
|