OPT-Professional Machine Vision Lighting Provider
Product search:
Home > Support > Technical Service > SciSmart Demo Project
Support
Downloads
Technical Service

SciSmart Demo Project

Plugin Lib: Trend Chart
Author:OPT                Add Time:2019-01-03

Download:

Function:As show in figure1, trend chart plot data points and connect each points with line to reflect data trend. In some vision measurement task, measure data need to be show graphlic, For example, measure the diameter of screw, show each measure data in a dynamic trend chart, with up and down limit value. This will bring impressionable sense for end user.

Figure1, Trend Chart

Steps

Step1: Unzip download file, there are two folders contain all need dlls which correspond to specific version of  SciSmart software, as show in figure2.

Figure2, Download file

Step2: Install vcredist dependency files depend on os bit version(x86 or x64) if os don’t have one, as show in figure3.

    

Figure3, Vcredist dependency files

Step3: There are 32 bits or 64 bits version dll for different os. So copy all files in specfic folder to SciSmart install directory.

  Eg: suppose your os is 32 bit. The default SciSmart install directory is: C:\Program Files (x86)\SCISmartCamera and the version of your Scimart is v2.3.x.x, so choose Win32 folder in SciSmart v2.3 compatible folder, and copy all dll files to the directory: C:\Program Files (x86)\SCISmartCamera.

Step4: 

(a) Run SciSmart application program. Choose plugin library operator and choose TrendChart.dll file in the SciSmart install directory.

Figure4, Load plugin libs

(b) Input Parameters settings: In plugin library operator, click reference tab, select reference variable name for each chart, as show in Figure5.

Figrue5, The list of parameters

Basic parameter setting:

1) chart1Data: data point value of chart diagram 1.

2) chartStandVal1: standard value of chart diagram 1.

3) chartUpLimitVal1: up limit value of chart diagram 1.

4) chartDownLimitVal1: down limit value of chart diagram 1.

Because Trend Chart can be max displayed six chart in one window, so each chart has six ground parameters. The Name different from chart1Data chart2Data ... to chart6Data and so on. Other parameter name have the same rules.

(c) Click Setting button, will popup parameter setting dialog of trendchart .

Figure6, Trend chart interface

Basic parameter setting:

Basic Setting:

1) Chart Count: Set display chart count in one window, range from 1 to 6.

2) Bgd Color: Set background color of display window.

3) Width: Set width of display window.

4) Height: Set height of display window.

5) Chart Pitch: Set vertical pitch of each chart when there are more than one chart in display window.

6) Right Gap: Set gap on the right side of display window.

Chart Setting:

1) Chart Select: Choose number of chart to modify parameter in it.

2) Background Clr: Set background color of chart.

3) X Axis Clr: Set color of x axis.

4) Y Axis Clr: Set color of y axis.

5) Chart Clr: Set color of data trend line.

6) Title Clr: Set color of title

7) Title: Set text of title.

8) X Axis Points: Set display tick count of x axis.

9) Y Axis Tick Main: Set main tick of y axis.

10) Y Axis Tick minor: Set minor tick of each main tick of y axis.

11)  Show StandardLine: Show standard line or not.

12) Show up limit line: Show up limit line or not.

13) Show down limit line: Show down limit line or not.

14) Value: Set standard  value, up limit value, down limit value accordingly.

15) Line color: Set standard line color, up limit line color, down limit line color accordingly.