Save the Pulse Pattern to File


You can save the file by selecting the following menu while the device is stopped.
Menu: "File(F)"-"Save(S)" or "Save As(A)..."

If the data is newly saved, the file save dialog is displayed.

Select the file format from CSV format (file name.csv) or CPB format (file name.cpb).

Settings

Description

*.csv

Save in CSV format.
You can refer to it with Excel or a text editor.

*.cpb

Save in C-LogicDesigner original binary format.
Although it is a format dedicated to C-LogicDesigner, it is advantageous in terms of file size.

 

■ CSV file structure

When saving the file in CSV format, first save the information about the settings and conditions for data transfer, and then save the created data.
In the figure below, the file saved in CSV format is displayed in Notepad. The contents for each item are explained below.

No.

Item

Description

1

CONTEC LOGIC DESIGNER

Indicates that the file is a C-LogicDesigner file.

2

Version

This is the version information of C-LogicDesigner. Used internally by C-LogicDesigner.

3

DeviceDesc

Saves the model of the device in use.

4

DeviceName

Saves the device name in use.

5

Direction

Saves the I/O direction settings.
* Do not change this value please.
If the value is different when reading the file than when saving it, it may result in unintended behavior.

6

MaxChannels

Saves the maximum number of channels on the device.
* Do not change this value please.
If the value is different when reading the file than when saving it, it may result in unintended behavior.

7

ClockType

Saves the clock type in use as a numerical value.
1: Internal clock 2: External clock

8

Clock

Saves the clock value. This value is used when setting the internal clock.

9

ClockUnit

Saves the unit of the clock value as a numerical value.
1: Seconds 2: Milliseconds 3: Microseconds 4: Nanoseconds

10

StartTrigger

Saves the start condition as a number.
1: Software 2: Rising edge of external trigger 3: Falling edge of external trigger 4: Pattern matching
* "4: Pattern matching" can be set only when inputting.

11

StartPattern

Saves the bit pattern to be compared numerically.
* It exists only when the start condition is "4: Pattern matching".

12

PatternMask

Saves the significant bit mask for the pattern as a number.
* It exists only when the start condition is "4: Pattern matching".

13

StopTrigger

Saves the stop condition numerically.
1: Software 2: Rising edge of external trigger 3: Falling edge of external trigger4: Transfer completed with specified number

14

Size

Saves the buffer size.
* Do not change this value please.
If the value is different when reading the file than when saving it, it may result in unintended behavior.

15

RepeatCount

Saves the repeat times.

16

StartPosition

Saves the transfer start position.

17

StopPosition

Saves the transfer stop position.

18

ReadOnly

Saves write-protected attributes as a number.
0: Write permission 1: Write-protected

19

MonitorMode

Saves the operation mode when a trigger occurs.
0: Stop sampling 1: Graph automatic update
* It exists only when inputting.

20

MonitorMethod

Saves the trigger pulse data pattern method.
0: Clock axis (horizontal axis) direction 1: Channel axis (vertical axis) direction in graph display order
* It exists only when inputting.

21

MonitorPercentage

Saves the display ratio after triggering.
* The operation mode when a trigger occurs is valid only for "1: Graph automatic update".

22

MonitorDataBase

Saves the pattern data base.
0: Hexadecimal 1: Binary
* It exists only when inputting.

23

MonitorData

Saves the bit pattern to compare.
* It exists only when inputting.

24

MonitorDataBitNumbers

Saves the number of bits in the data pattern.
* It exists only when inputting.

25

MonitorChannel

Saves the starting channel of the data pattern.
* It exists only when inputting.

26

AutoSave

Saves the autosave mode.
0: Disabled 1: Enabled
* It exists only when inputting.

27

AutoSavePath

Saves the path of the file to be automatically saved.
* This is valid when the auto save mode is enabled.

28

AutoSaveFileType

Saves the type of file to be auto-saved.
0: *.csv 1: *.cpb
* This is valid when the auto save mode is enabled.

29

AutoSaveFileName

Saves the prefix of the file to be auto-saved.
* This is valid when the auto save mode is enabled.

30

ChannelName

Saves the signal name displayed in the signal name window.

31

DeviceChannel

Saves the logical channel corresponding to the signal name.

32

IsEnable

Saves signal enable/disable settings. Used internally by C-LogicDesigner.
* Do not change this value please.
If the value is different when reading the file than when saving it, it may result in unintended behavior.

33

IsBus

Saves whether it is a bus signal.
* Do not change this value please.
If the value is different when reading the file than when saving it, it may result in unintended behavior.

34

BusChannel

Saves the child signal of the bus signal.
* Do not change this value please.
If the value is different when reading the file than when saving it, it may result in unintended behavior.

35

BookmarkAbsolutePosition

Saves the bookmark clock position.

36

IsCurrentBookmark

Saves whether it is the current bookmark.

37

BookmarkMemo

Saves bookmark notes.

38

Data

Saves the pulse pattern data in hexadecimal notation.
10 data are saved in each line, and the order of the saved data is as follows.