LabVIEW API overview

You can integrate Antidoc features into your own LabVIEW code using the API provided during installation.

API description

Main palette

Antidoc icon
Antidoc
Table 1. Functions description
Name Connector pane Description

Create Doc

AntiDoc.lvlib Doc.lvclass Create Doc.vi

Create and set up the document.

Add Sections

AntiDoc.lvlib Doc.lvclass Add Sections.vi

Add sections to the document.

Generate Output

AntiDoc.lvlib Doc.lvclass Generate Output.vi

Generate the document using AsciiDoc syntax.

Add Code Revision Information

AntiDoc.lvlib Doc.lvclass Add Code Revision Information.vi

Add revision info to the document.

Create Section

AntiDoc.lvlib Section.lvclass Create Section.vi

Creat a section.

Add Blocs

AntiDoc.lvlib Section.lvclass Add Blocs.vi

Add bloc to a section.

Select the document you want to generate..

AntiDoc.lvlib Document Type.lvclass Select Document Type.vi

Oen the add-on selection dialog.

Launch Config Panel

AntiDoc.lvlib Document Type.lvclass Launch Config Panel.vi

Initialize and insert the configuration panel used to configure the docuementation generation.

Load Config

AntiDoc.lvlib Document Type.lvclass Load Config.vi

Load configuration contained in the file given in input.

Save Config

AntiDoc.lvlib Document Type.lvclass Save Config.vi

Save the current config in the path file given in input.

Load Default

AntiDoc.lvlib Document Type.lvclass Load Default.vi

Load the default configuration of the specific document type used.

Default configuration can overidden using the function Save default configuration. If default configuration file is not found, the Document Type default configuration will be used.

Save Default

AntiDoc.lvlib Document Type.lvclass Save Default.vi

Save the current configuration to the default file.

Update Config

AntiDoc.lvlib Document Type.lvclass Update Config.vi

Use this function to update the configuration modified by the user through the config panel.

Is Configuration Valid

AntiDoc.lvlib Document Type.lvclass Is Configuration Valid.vi

Check if the current config is valid.

Initialize

AntiDoc.lvlib Document Type.lvclass Initialize.vi

Initialize the documentation generation process.

Parse

AntiDoc.lvlib Document Type.lvclass Parse.vi

Get documentation content.

Compose

AntiDoc.lvlib Document Type.lvclass Compose.vi

This function organizes the content in sections and ouput the sections representing the final document generated.

Get Final Document Info

AntiDoc.lvlib Document Type.lvclass Get Final Document Info.vi

Get general document information.

Release

AntiDoc.lvlib Document Type.lvclass Release.vi

Release any resources used during the documentation generation process.

Default Values

AntiDoc.lvlib Config.lvclass Default Values.vi

Get the default values of the document type configuration.

Obtain User Event

AntiDoc.lvlib Progress Bar.lvlib Obtain User Event.vi

Obtain User Event reference to register to in order to get docuementation generation events.

Set Total Steps

AntiDoc.lvlib Progress Bar.lvlib Set Total Steps.vi

Set the number of step expected during document generation.

this parameter is used to define the 100% info.

Initial Step

AntiDoc.lvlib Progress Bar.lvlib Initial Step.vi

Initialize the first documentation generation step.

New step

AntiDoc.lvlib Progress Bar.lvlib New step.vi

Generate a new documentation step.

Release User Event

AntiDoc.lvlib Progress Bar.lvlib Release User Event.vi

Release the User Event created in order to broadcast steps of the documentation generation.

Utilities

Utilities icon
Utilities
Table 2. Functions description
Name Connector pane Description

Check File Name Validity

AntiDoc.lvlib Utilities.lvlib Check File Name Validity.vi

Use this funtion to get a file name compatible with ascidoc syntax.

Copy File To Include

AntiDoc.lvlib Utilities.lvlib Copy File To Include.vi

Use this function to copy a file you want to include in your document. The file name will be unique and compatible with the asciidoc syntax.

Is Malleable VI instance

AntiDoc.lvlib Utilities.lvlib Is Malleable VI instance.vi

Use this function to know if a VI name is one of an malleable instance VI.

Tool Info—​constant

AntiDoc.lvlib Utilities.lvlib Tool Info  constant.vi

Use this function to know the name (Antidoc) and the version of the tool.