Instrumentation Studio for ActiveX (developed by CSTSOFT) is a specialized library of 15 high-performance visual UI components designed to build real-time engineering, HMI (Human-Machine Interface), and industrial data acquisition dashboards. Building dashboards with this suite involves embedding its .ocx controls into an OLE-compliant IDE (like Visual Basic 6.0, Visual Studio .NET, or Microsoft Excel) and binding them to your data streams. š§± Core Components Included
The toolkit provides a wide range of controls designed to handle high-speed data updates without screen flickering, thanks to built-in double buffering: Input Controls: Knob, Slider, Selector, Toggle.
Readouts & Meters: Gauge, Meter, DGauge, NumberLed, Odometer, Percent. Status Indicators: Led, Indicator, Annunciator.
Plotting & Mapping: Trend (for real-time charting) and AniLine. š ļø Step-by-Step: Building a Dashboard 1. Environment Setup
To build a dashboard, you must first register and add the ActiveX components to your development environment.
In Visual Studio / VB6: Right-click your toolbox, select Choose Items, navigate to the COM Components tab, and check the Instrumentation Studio controls you want to use.
In Microsoft Excel: Go to the Developer tab, click Insert under the Controls group, and choose More Controls to select your components. 2. Layout Your User Interface
Switch your IDE to Design Mode. Drag and drop the components onto your form, sheet, or canvas to map out your physical hardware or data metrics. For instance: Use a Trend control in the center for time-series charts.
Surround it with Gauge or Meter controls for real-time pressure, voltage, or speed readouts.
Place Led and Annunciator elements at the top for system alarms. 3. Configure Component Properties
Right-click any placed control and open its Properties window. This suite includes built-in property pages where you can deeply customize the visual attributes:
Set the minimum and maximum scaling values for gauges and sliders.
Define threshold colors (e.g., turning an indicator Red if a value exceeds a specific limit).
Configure the Trend buffer behavior (FIFO – First In First Out) to determine how many historical data points stay on screen. 4. Feed Real-Time Data via Code
To make the dashboard dynamic, write code in your IDE’s background script (such as VB6, VBA, or C#) to feed your data stream directly into the control properties. Example (Conceptual VBA/VB6):
Private Sub DataTimer_Timer() ‘ Fetch the current reading from your data acquisition hardware Dim currentVoltage As Double currentVoltage = ReadHardwareChannel(1) ’ Update the Instrumentation Studio Gauge and Trend controls ActiveXGauge1.Value = currentVoltage ActiveXTrend1.AddPoint(currentVoltage) End Sub Use code with caution. 5. Handle User Interaction (Control)
If your dashboard includes control mechanisms (like turning off a valve via the dashboard), use ActiveX Events. Double-click a Toggle or Knob control in design mode to generate an event handler. When an operator moves the physical knob on the dashboard, the event fires, allowing your background code to send commands back to your machinery or database. ā ļø Crucial Architectural Considerations
If you are planning a new dashboard system using this platform, keep these technical limitations in mind: