Export Declaration
- Updated2025-10-09
- 1 minute(s) read
The export declaration specifies the list of labels to export for other patterns to use as opcode targets using the following syntax:
where item<n> is a valid label.
Conditions
The following conditions apply to the export declaration:
- The export declaration must be specified before the pattern declaration.
- You can include multiple export declarations on the same or separate lines.
- You cannot duplicate items in an export declaration.
- Exported labels and pattern names must be unique across all loaded patterns.
- Local labels that are not exported do not have to be unique across patterns because their scope is limited to a single pattern.
- You must export a pattern name to use it as a target of an opcode from another pattern.
- You must define the export as a pattern name or a label in the pattern file.
- You can use a pattern name as a start label parameter value for niDigital API calls without exporting the pattern name.
Note In pattern files with a file format version of
1.0, you cannot use the pattern name as an exported label.
Related Information
- Pattern Declaration
The required pattern declaration defines the sequence of pattern vectors and defines the pins and pin groups to which the pattern applies using the following syntax:
- Import Declaration
The import declaration specifies the list of external labels the pattern vectors use as opcode targets using the following syntax: