==================================================================== = DAQ-DNC-FE Additional Sample Programs = = Voltage Monitor = = Ver.1.00 = = CONTEC Co., Ltd. = ==================================================================== - Introduction =========== This package is the additional sample programs to show usage examples that are not presented in the sample programs provided by DAQ-DNC-FE. Please use it as a reference when using DAQ-DNC-FE. - Specification =========== [Supported development languages] Microsoft Visual C# (2015,2017,2019,2022) Microsoft Visual Basic .NET (2015,2017,2019,2022) [Supported devices] Devices with analog input function - About this sample program =========== This is a sample program that periodically executes analog input tasks using [DncDaq], [DncGraph], and [DncLamp] provided by DNC-DAQ-FE, and lights a lamp or changes the graph display color when input values exceed a certain value. - Component Settings =========== The components and settings used in this sample program are shown below. In this sample program, the device used, the channel used, and the task execution cycle can be specified on the window. Properties not listed in the table below are default settings. Since device settings are implemented according to the device used, please open the project once in VisualStudio, open the DncDaq property settings panel, and update the device settings. - DncDaq Component ================================================================================ Setting items |Settings |How to change * ================================================================================ Device Name |AIO000 |Window Input Method |Single End input |Window Input Range |-10 - +10V |Property Setting Panel(Task Linkage) Monitor Interval |100[msec] |Window Channel Number |0 |Window InitMode |Manual |VisualStudio Property Setting ================================================================================ - DncGraph Component ================================================================================ Setting items |Settings |How to change * ================================================================================ Graph Title |Voltage Monitor |VisualStudio Property Setting X-Axis Label |Data Count |VisualStudio Property Setting Y-Axis Label |Voltage[V] |VisualStudio Property Setting Y-Axis Label TextDirection |Rotate90L |VisualStudio Property Setting Y-Axis Range |-10 - +10 |VisualStudio Property Setting Legend |Disabled |VisualStudio Property Setting Graph Line Color when condition is satisfied |Red |Source code Graph Line Width when condition is satisfied |3pt |Source code Graph Line Color when condition is not satisfied |Blue |Source code Graph Line Width when condition is not satisfied |1pt |Source code ================================================================================ - DncLamp Component ================================================================================ Setting items |Settings |How to change * ================================================================================ Lamp Style |Circle3 |Property Setting Panel TextType |UserSetting |Property Setting Panel TextLocation |BottomRight |Property Setting Panel Lamp color when condition is satisfied |Red |Property Setting Panel Text when condition is satisfied |NG |Property Setting Panel Lamp color when condition is not satisfied |Green |Property Setting Panel Text when condition is not satisfied |OK |Property Setting Panel ================================================================================ * How to change Window : Any value can be set on the window. Property Setting Panel : It can be set from the property setting panel. Property Setting Panel(Task Linkage) : The settings can be made on the property setting panel, but please execute [Task Linkage] after making the changes. VisualStudio Property Setting : It can be set from the properties window on VisualStudio. Source code : It can be changed in the source code. - Usage =========== 1. Condition Setting - Enter the device name set in the Device Manager into the [Device Name] textbox. - Enter the desired monitoring period in the [Monitor Interval] field. - Enter the channel you wish to monitor in the [Channel Number] field. - Enter the voltage to be monitored in the [Threshold] field and select [Acquired Value >= Threshold] or [Acquired Value <= Threshold] for the Judgment Condition. 2. Start Monitoring - Click the [Start] button to begin monitoring. - During monitoring, the following operations are performed. Analog input is performed at the cycle entered in [Monitor Interval] and threshold judgment is performed. When the condition is satisfied, the lamp color and graph line color are changed to red. *Once the condition is satisfied, the lamp color and graph line color do not change even if the condition is not satisfied. They will be initialized when restarted. 3. Stop Monitoring - Click the [Stop] button to stop monitoring. 4. Exit - To exit the sample program, click the [Exit] button. - Version History ======================= Ver.1.00 (Web Release 2023.02) ---------------------------------------- - First release