DncDaq has the debug log for supporting development.
Describes debug log features and display items.
Information Log Display Content
Debug Log is enabled by setting DebugLogTarget, which is a DncDaq property.
When Debug Log feature is enabled, the Debug Log is displayed at the timing at which the Debug Log is added, and the debug log file is saved.
Sets the debug log file save destination and file switching lines by DebugLogFileName, DebugLogFileRecordNum.
This log indicates that the DncDaq process has been successfully processed.
Outputs when setting the property or executing the method.
・Information Log Format
Format |
YYYY/MM/DD HH:MM:SS [INFO] Position : [Parameter] |
Log Example |
2021/7/28 17:41:00 [INFO] (DncDaq).DiInputBit : 8 |
・List of Information Log Display Items
Property |
Description |
Position |
Parameter |
DaqProperty |
DncDaq Property Setting |
DaqProperty |
set (Fixed string) |
Method |
Description |
Position |
Parameter |
DiInputBit |
1 bit input |
DiInputBit[DeviceNo] |
The logical input bit No. |
DiInputPort |
1 port input |
DiInputPort[DeviceNo] |
The logical input port No. |
DoOutputBit |
1 bit output |
DoOutputBit[DeviceNo] |
The logical output bit No. + The output data |
DoOutputPort |
1 port output |
DoOutputPort[DeviceNo] |
The logical output port No. + The output data |
DiInputMultiBit |
Multiple bits input |
DiInputMultiBit[DeviceNo] |
The logical input bit No. + The number of bits specified |
DiInputMultiPort |
Multiple ports input |
DiInputMultiPort[DeviceNo] |
The logical input port No. + The number of ports specified |
DoOutputMultiBit |
Multiple bits output |
DoOutputMultiBit[DeviceNo] |
The logical output bit No. + The number of bits specified + The output data |
DoOutputMultiPort |
Multiple ports output |
DoOutputMultiPort[DeviceNo] |
The logical output port No. + The number of ports specified + The output data |
DoEchoBackBit |
1 bit echoback |
DoEchoBackBit[DeviceNo] |
The logical output bit No. |
DoEchoBackPort |
1 port echoback |
DoEchoBackPort[DeviceNo] |
The logical output port No. |
DoEchoBackMultiBit |
Multiple bits echoback |
DoEchoBackMultiBit[DeviceNo] |
The logical output bit No. + The number of bits specified |
DoEchoBackMultiPort |
Multiple ports echoback |
DoEchoBackMultiPort[DeviceNo] |
The logical output port No. + The number of ports specified |
AiInputChannel |
1 channel input |
AiInputChannel[DeviceNo] |
The channel No. |
AiInputMultiChannel |
Multiple channels input |
AiInputMultiChannel[DeviceNo] |
The number of channels |
AoOutputChannel |
1 channel output |
AoOutputChannel[DeviceNo] |
The channel No. |
AoOutputMultiChannel |
Multiple channels output |
AoOutputMultiChannel[DeviceNo] |
The number of channels |
CntStartCount |
Start count |
CntStartCount[DeviceNo] |
The number of channels |
CntStopCount |
Stop count |
CntStopCount[DeviceNo] |
The number of channels |
CntPresetCount |
Preset count value |
CntPresetCount[DeviceNo] |
The number of channels |
CntZeroClearCount |
Clear count value |
CntZeroClearCount[DeviceNo] |
The number of channels |
CntReadCount |
Read count value |
CntReadCount[DeviceNo] |
The number of channels |
ErrorString |
Converts error code to message (string). |
ErrorString[DeviceNo] |
The error code |
SaveProperty |
Save the property |
SaveProperty |
The file path |
LoadProperty |
Load the property |
LoadProperty |
The file path |
Init |
Initialization |
Init |
None |
Exit |
Termination |
Exit |
None |
TaskStart |
Start the task |
TaskStart |
The timing No. |
TaskStop |
Stop the task |
TaskStop |
The timing No. |
Set8255 |
Sets 8255 mode chip by chip |
Set8255[DeviceNo] |
LSIi8255 chip No. + The control word |
Get8255 |
Gets 8255 mode chip by chip |
Get8255[DeviceNo] |
LSIi8255 chip No. |
Wait |
Sets the wait time |
Wait |
The wait time |
TaskExecute |
Performs the task |
TaskExecute |
The task type + The task No. |
ContinuousModeStart |
Starts the sampling operation |
ContinuousModeStart[DeviceNo] |
I/O method |
ContinuousModeStop |
Stops the sampling operation |
ContinuousModeStop[DeviceNo] |
I/O method |
ShowProperty |
Displays the property page |
ShowProperty |
None |
PropertyChanged |
Changes the property |
PropertyChanged |
The property name + The value before change->The value after change |
CollectionChanged |
Changes the collection |
CollectionChanged |
The collection name + The value before change->The value after change |
Automatic processing |
Description |
Position |
Parameter |
start_up |
Process at startup |
start_up |
None |
This log indicates that an event has occurred in DncDaq.
Outputs when an event occurs.
Format |
YYYY/MM/DD HH:MM:SS [EVENT] Position : [Parameter] |
Log Example |
2021/08/06 20:23:16 [EVENT] (DncDaq).on_edge : [0] 11 (bit:0 type:Fall) |
・List of Event Log Display Items
Event |
Description |
Position |
Parameter |
on_edge |
The edge event occurs |
on_edge |
[The edge No.] + The count value + (bit: The bit No. type: The direction) |
on_timing |
The timing event occurs |
on_timing |
[The timing No.] + The count value |
on_task_input |
The input task event occurs |
on_task_input |
The task No. |
on_task_output |
The output task event occurs |
on_task_output |
The task No. |
on_aio_continuos_mode_start |
The sampling start event occurs |
on_aio_continuos_mode_start |
[The device No.] |
on_aio_continuos_mode_stop |
The sampling stop event occurs |
on_aio_continuos_mode_stop |
[The device No.] |
on_init |
Init event occurs |
on_init |
None |
on_exit |
Exit event occurs |
on_exit |
None |
on_cnt_match |
Comparison match event occurs |
on_cnt_match |
[The device No.] + The channel No. + The comparison match value |
on_carry_borrow |
Carry/Borrow event occurs |
on_carry_borrow |
[The device No.] + The channel No. + The event type (Carray: 1 / Barrow: 2) |
This log is output when it is determined that an error in DncDaq.
For the device No., the error type, the error parameter, etc., please refer to About OnError event.
Format |
YYYY/MM/DD HH:MM:SS [ERROR] Position[DeviceNo] : [Error type(Error parameter)] |
Log Example |
[ERROR] (DncDaq).Init[-1] : (Cate)21 (Type)3 (Error)510001 (Param)16 |
This log is output when an exception error occurs in DncDaq.
Format |
YYYY/MM/DD HH:MM:SS [EXEPTION] Position : [Exception output message] |
Log Example |
2022/02/15 15:00:50 [EXEPTION] (DncDaq).on_aio_continuous_mode_start[0] : Object reference not set to an instance of an object. |
Usually, it does not occur, but it may occur, for example, in the following situations.
If an exception error occurs in the
DncDaq event handler
The process described in the DncDaq event handler is executed as a
DncDaq callback function.
If an exception occurs during callback function execution, Dnc catches
the corresponding exception message and outputs as a log.
In the log example, shows an example of the null reference in the device
No.0 OnAioContinuousStart event.