MiniPlotter

<< Click to Display Table of Contents >>

Navigation:  Components > Display and Signal >

MiniPlotter

This component can be used to create a time series diagram. The diagram can be displayed in the image component. The chart is created continuously at the specified interval (similar to the plotter). A maximum of 1000 data points can be displayed.

 

To use the OpenAi functions, access to ChatGPT is required for a fee.

 

Note on display in different application scenarios:

The generated images are stored in the folder "C:\ProgramData\Alexander Maier GmbH\EisBaer 3.0\www" of the EisBaer server.

Local operation only: Data point "Diagram image file (local file)" is linked to the image component. -> EisBaer server and client run on the same machine. No access via network or internet is possible.

 

Local network: "Publish images" propertydisabled, "Diagram image file (Http(s) URL)" data pointis connected to the image component. -> EisBaer server and client run on different machines or apps in the local network. Access via the local network is possible. No internet access

 

Internet:Publish Images propertyenabled, data point "Diagram Image File (Diagram Image File (Http(s) URL)" is connected to the image component. -> EisBaer server and client can run on different machines, apps, locally or on the internet. The images are cached on our web server. FTP access to "http://eisbaer-scada.net" must be possible.

 

Data points of the component

Name

Type

Function

Active

Bidirectional

(De)Activate recording.

Update status

Folder

This subfolder contains data points for outputting update time, whether the update was successful and whether the update is taking place.

Number of data points (total)

Output

Output of the total number of available data points.

Filled curve

Bidirectional

Turns the area colour under the curve on/off.

Backup Trigger

Input

An on or off signal creates a backup of the current display

Bar chart

Bidirectional

The measured values are displayed as bars and no longer as a curve.

Clear data

Input

Clears the display

Definition area - daily plot

Bidirectional

On/Off switches the display between the day display and the defined time range

Definition range [min]

Bidirectional

The displayed time range is set in minutes by entering a number. e.g. 360 min, the last 6 hours are displayed.

Definition range zoom window [min]

Bidirectional

The time range displayed in the zoom window is set in minutes by entering a number. Example: Zoom window=60 min, definition range=360 min -> the first hour of the time range is displayed. In this example, it is the data from -6 hours to -5 hours.

Diagnosis [Text]

Output

Here, a diagnosis can be output as text. Attention: Diagnostic or debug outputs are only intended for use in the event of an error. Please only use them after consulting the support team! If used, these can considerably impair the performance of the service.

Update diagram

Input

Refreshes the display and creates a new diagram.

Diagram path (URL)

Output

For external access (EisBaer clients in the network), the URL to the graphic file must be sent to the data point of the image component: Example: http(s)://IP-ADRESSE:8003/Eisbaer.RESTServices/CustomWebsite/

Diagram path (local file)

Output

Output of the local storage location for the data. This file path can be linked to the picture component. The chart is only displayed if the server and client are running on the same machine.

Diagram Path Backup (URL)

Output

For external access (EisBaer clients in the network), the URL to the diagram file must be sent to the data point of the image component: Example: http(s)://IP-ADRESSE:8003/Eisbaer.RESTServices/CustomWebsite/

Diagram path backup (local file)

Output

Output of the local storage location for the data. This file path can be linked to the image component. The chart is only displayed if the server and client are running on the same machine.

Downsampling

Folder

Contains data points to reduce the total amount of data to the display size.
Equidistant distances: Reduction by the factor calculated from: quantity of data points and display width
Median window: Reduction by the median value in the set time window
Min/max window: Min and max value from the scaled size

Average value window: Average value from the set time window
No downsampling

Dynamic

Folder

see below

Extended Diagnosis

Input

Enables the extended output of the diagnosis via an on signal.

Export - All data

Input

Triggers the export of all channels and their data.

Export - Displayed data

Input

Triggers the export only for the channels and their data that are currently visible.

Channel names

Output

Text output of the channel names for the list selection

Toggle channel visibility (list view)

Input

Input for the list selection to be able to show/hide a specific channel.

Show legend

Input

Shows the legend via an on signal.

Legend outside the diagram

Input

An on signal reduces the size of the diagram so that the legend is outside the display.

Manual rollover

Input

Restarts the selected time range at the trigger time.

Maximum Y-value

Input

To scale the Y-axis on the left side, the maximum Y-value can be entered here. If min and max are identical, scaling is automatic.

Maximum Y2 value

Input

For scaling the Y-axis on the right-hand side, the maximum Y-value can be entered here. If min and max are identical, scaling is automatic.

Minimum Y-value

Input

For scaling the Y-axis on the left-hand side, the minimum Y-value can be entered here. If min and max are identical, scaling is automatic.

Minimum Y2 value

Input

For scaling the Y-axis on the left side, the minimum Y-value can be entered here. If min and max are identical, scaling is automatic.

OpenAi - Autoupdate active

Output

Updates the text output of the response.

OpenAi - Image output (local file)

Output

Output of the local storage location for the data. This file path can be linked to the image component. The diagram is only displayed if the server and client are running on the same machine.

OpenAi - Image output (URL)

Output

For external access (EisBaer clients in the network), the URL to the graphic file must be sent to the data point of the image component.

OpdenAi - CSV output

Output

If a CSV is the result of the query, the CSV content is output here.

Open Ai - Entire conversation

Output

Text output for the entire conversation with OpenAI(conversation mode).

OpenAi - (de)activate conversation mode

Input

OFF = simple mode: The data including the request is sent and the response is displayed. Enquiries are not possible here as the conversation is considered complete for OpenAI.

ON = Conversation mode: Before or after sending data, further enquiries can be made or data (e.g. from other channels) can be sent. To do this, the assistant mode must first be started and ended after completion (the conversation is automatically ended 1 hour after the last enquiry)

OpenAi - Last answer

Output

Text output for the response from OpenAI (simple mode).

OpenAi - Manual prompt

Input

Global prompt input (independent of channels/groups). Here, for example, you can ask your own questions via a text input. It can be combined with group/channel-specific data in conversation mode. The data can be sent without a separate prompt via the "Analyse data (without prompt)" channel data point.

OpenAi - Tokens (last request)

Output

Outputs the number of tokens used for the last query.

OpenAi - Tokens (last response)

Output

Outputs the number of tokens used for the last response.

OpenAi - Tokens (last conversation)

Output

Outputs the number of tokens used for the last conversation.

Show Y-grid

Bidirectional

Auxiliary lines for reading the values can be shown/hidden here.

Y-grid line width

Bidirectional

Here the line width can be set between 0.2 and 5.

Follow time

Bidirectional

If the current time range is filled, a new range is automatically displayed. If Follow time is active, the

Vertical time

Bidirectional

Switches whether the time is to be displayed horizontally (off) or vertically (on).

Time formatting

Bidirectional

Formatting for the time axis e.g. %H:%M:%S

 

Dynamic data points

If groups are created, a data point is created for each group in order to trigger the analysis for the grouped channels.

Data point name

Type

Function Type

Number of data points

Output

Output of the total number of data points available for this channel.

Hide

Input

The graph of the channel can be made (in)visible here.

CSV Import

Input

Graphs can be generated from a CSV file via"File selection (file content)". The formatting is date time semicolon value. Example of a value: 24.01.2025 16:00:00; 42

Analyse data (without prompt)

Input

You can create your own query for the channel by entering text.

Moving average

Bidirectional

Switches the diagram from individual data points to calculated mean value.

Moving average (window size)

Bidirectional

Specification of the time that should be relevant for the average value.

Delete

Input

Deletes all collected data of the channel

Type - Filled line chart

Bidirectional

Switches the diagram display

Type - Bar chart

Bidirectional

Switching the diagram display

Type - Line chart

Bidirectional

Switching the diagram display

Value

Input

Input for the values to be displayed in the diagram.

 

Properties of the component

Component name

Standard

Function

Channels

0

Channels can be created with the green plus button. The red X deletes the selected channel. The import/export is intended for data backup of the settings. See below for an explanation of the settings. Requests can only be made for each individual channel. These are triggered via channel-specific data points.

Groups

 

Groups can be created here and then channels can be added to the groups in the channel editor. A channel can be part of several groups. Group queries can then be triggered via the new data points in the group folder.

Prompts

 

Queries (questions to OpenAI) can be predefined in this editor. These can then be assigned to groups (in the group editor) and/or channels (in the channel editor). Several queries can also be assigned to a channel/group here.

Moving averaging

 

Activate to display the averaged data for each channel instead of the raw data if required. Global activation of the mean value calculation - The display does not yet take place, it must also be activated for each channel, either via the data point or the channel editor.

Downsampling

 

Treatment of the existing data for display via the image component.

If there are more data points than pixels in X-resolution for the created diagram, a preselection of the data can be made to speed up the time required to create the plot.

All data: No downsampling, all data is displayed

Thefollowing variants apply: The entire amount of data is divided into equal areas (windows), depending on the Resolution (X) property. One value from each area is displayed.

Last value window: Equidistant distances - the last value of the range is displayed.

Average value window: The average value of all values in the range is calculated and displayed.

Median window: The median of all values in the range is calculated and displayed.
MinMax window: Both the largest and the smallest value of the range are displayed. This makes it easier to visualise outliers.

Colour (background)

 

Selection of the background colour for the display

Colour (text)

 

Colour of the text (label)

Diagram title

Chart title

Heading of the diagram

X-axis

Time

Labelling for the X-axis

Y-axis

Value

Labelling for the Y-axis on the left-hand side

Y-axis (2)

Value

Labelling for the Y-axis on the right-hand side

Minimum Y-value

0

The minimum Y-value can be entered here for scaling. If the minimum and maximum values are identical, scaling is performed automatically.

Maximum Y-value

0

The maximum Y value can be entered here for scaling. If the minimum and maximum values are identical, scaling is performed automatically.

Minimum Y2 value

0

The minimum Y2 value can be entered here for scaling. If the minimum and maximum values are identical, the system scales automatically.

Maximum Y2 value

0

The maximum Y2 value can be entered here for scaling. If the minimum and maximum values are identical, scaling is performed automatically.

Show legend

x

Selection for displaying the legend in the plotter image

Show Y-Grid

x

Auxiliary lines for reading the values can be shown/hidden here.

Y-Grid line thickness

1

The line thickness can be set between 0.2 and 5 here.

Legend outside the diagram

 

If this is set, the diagram is minimised so that the legend is outside the display.

Diagram creation on value change

 

If this is activated, the diagram is immediately redrawn if the value of one of the channels changes.

Update interval [s]

60

The diagram display is updated at the set interval. This means how often the image is redrawn on the system. It is not the time interval at which the values are queried.

Follow time

x

If the current time range is filled, a new range is automatically displayed.

Set definition range (X-axis)

 

Specify the period for which data is to be saved, which period is to be displayed and how much time is to be displayed in the future (as a placeholder to the right edge). Today's day (24 hours) is displayed as the daily plot.

Bar chart

 

The measured values are displayed as bars and not as a curve.

Filled curve

 

Switches the area colour under the curve on/off.

Resolution (X)

1024

Specifies the resolution (pixels) that the image should have in width.

Resolution (Y)

768

Specifies the resolution (pixels) that the image should have in height.

Font size (title)

50

Defines the font size for the title of the diagram

Font size (text)

30

Defines the font size for the labelling of the X/Y axis

Font size (axes and legend)

15

Defines the font size of the values on the X/Y axis

Time formatting

 

Formatting for the time axis e.g. %H:%M:%S

Time vertical

X

If this option is set, the time axis is displayed vertically, otherwise horizontally.

Offset label X-axis

2

This can be used to set the distance between the X-axis text and the X-axis of the diagram between 0 and 10.

Offset label Y-axis

3

This can be used to set the distance between the Y-axis text and the Y-axis of the diagram between 0 and 10. If the value is too high, the text may lie outside the display. The "Margin left" parameter must then be adjusted so that the text is moved back into the visible area.

Offset label Y2 axis

3

This can be used to set the distance between the Y2 axis text and the Y2 axis of the diagram between 0 and 10. If the value is too high, the text may lie outside the display. The "Margin left" parameter must then be adjusted so that the text is moved back into the visible area.

Left margin (shifting the Y-axis to the right)

12

This can be used to set the distance between the left edge of the image and the Y-axis of the diagram between 0 and 50.

Edge right

6

Specifies the distance between the diagram and the margin on the right-hand side.

Bottom margin

5

Specifies the distance between the diagram and the margin on the bottom page.

Top margin

6

Specifies the distance between the diagram and the margin on the top page.

Publish diagrams

 

If this function is set, the images are published on the web server (http://eisbaer-scada.net/Gnuplott/...).

User-defined FTP connection

 

If this function is activated, the diagrams are stored in a user-defined FTP directory.

Add timestamp to uploaded images

 

Adds the time stamp to the file name of the graphic.

Custom FTP connection

 

Entry of the user-defined FTP connection for uploading the graphic.

URL basis for customised publishing

 

Entry of the URL for customised FTP connection from which the graphic is to be downloaded.

OpenAI - Connection

 

Connection settings to the OpenAi API (see example).

OpenAI - Maximum data points

500

Maximum number of data points for the request to limit the prompt tokens.

Active

 

(De)Activate recording at server start.

 

Channel editor:

Designation

Function

Name

Name of the channel for the display.

Graph colour

Colour for the graph display.

Line width

Displayed line width for the channel.

Plot type

Selection for the graph display.

Sampling

Sampling determines the interval at which the data is saved. Reduces the stored values. Reduces the data available for later evaluation.

All data: every incoming value is saved, the "Sample interval" is ignored

Fixed interval: Data is saved in the "Sample interval". The last value is saved.

The following variants apply: Only one value is saved at the end of the set "Sample interval".

Average value window: The average value from the data received during the last "Sample interval" is saved.

Median window: The median of the data received during the last "Sample interval" is saved.
Min/Max window: Both the largest and the smallest value from the data received during the last "Sample interval" are saved.

Sampling interval [s]

Sampling rate of the input values, the points are drawn at this interval

Factor

Incoming values can be adjusted via a factor for the display.

Min diff. Factor [%]

The "Min. diff. Factor (%)" specifies by how much the input value must change from the last saved value for it to be saved.

Mean value

If activated, a smoothed plot (moving average) is displayed. Can be adjusted at runtime if this has been activated globally via the component property.

MW window [s]

Defines the time range of the channel for averaging. Higher value = stronger smoothing

Digital

If the input value is a Bool, this option must be set in order to obtain a digital graph. Otherwise, ramps would be displayed.

Y-axis 2

With this option, the 2nd Y-axis is used as a value scalar.

Function

Mathematical functions can be entered here. Variables are set in {}. This variable then also appears as a data point in the dynamic folder for the channel. The letter x always stands for the time (subsequent setting). To draw the function, the starting point must be set via the"Recalculate from here" trigger (data point in the channel).

Time range [min]

This setting only applies to the display of a function, if available. The time end is defined here.

Values from yesterday

If this function is set, the graph from yesterday is always displayed, not from today. For a comparison (yesterday to today), an additional second channel is required for the current values.

Group

Assignment to a group, which can be created in the group editor.

Analysis prompt

Assignment of a predefined query, which can be created in the prompt editor. Several queries can also be assigned to a channel/group here.

 

An underscore in the labelling (title, X-axis and Y-axis) leads to a "subscript" following text. Example Test_a -->Testa