==================================================================== = DAQ-DNC-FE Additional Sample Programs = = Digital Input Edge Logging = = 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 edge detection *Devices that support interrupt function or trigger function - About this sample program =========== This is a sample program that uses [DncDaq] and [DncWriteFile] provided by DNC-DAQ-FE to save a file when detecting an edge. - Component Settings =========== The components and settings used in this sample program are shown below. In this sample program, the device used, edge detection direction and file settings 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 |DIO000 |Window Edge Detection Bit |0 to 3 |Source code Edge Direction |Rise on all bits |Window InitMode |Manual |VisualStudio Property Setting ================================================================================ - DncWriteFile Component ================================================================================ Setting items |Settings |How to change * ================================================================================ File Name |EdgeTiming.csv |Window File Name Option |Date + File No. |Window Number of Lines for File Switching |100 |Window Write Mode |Overwrite Mode |Window Delimiter |Comma |Window Number of Columns |4 |Property Setting Panel Column Header No.0 |Occurrence time |Property Setting Panel Column Header No.1 |Bit No. |Property Setting Panel Column Header No.2 |Edge detection direction |Property Setting Panel Column Header No.3 |Edge count value |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. 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. - Select the edge detection direction in [Edge Direction]. - Enter the name of the file to be saved in [File Name]. - Use [File Name Option] to select an option for filename. The selected content will be added to the filename. - Enter the number of lines to switch files in [Number of Lines for File Switching]. - In [Write Mode], select whether to overwrite or append to the file. - Select "Comma" or "Tab" in [Delimiter]. *For details of each setting, please refer to DAQ-DNC-FE help. 2. Start Monitoring - Click the [Monitor Start] button to start monitoring. - During monitoring, the following operations are performed. When the edge selected in [Edge Direction] is detected, the edge count value is displayed and added to the file. 3. Stop Monitoring - Press the [Monitor Stop] button to stop monitoring and save the file. 4. Exit - To exit the sample program, click the [Exit] button. - Version History ======================= Ver.1.00 (Web Release 2023.03) ---------------------------------------- - First release