Jump to content

Template:VIServerMethod: Difference between revisions

From LabVIEW Wiki
mNo edit summary
m Move documentation to subpage
 
Line 45: Line 45:
|}}{{#if: {{{settablewhenrunning|}}} | <tr><td style="background-color:#EAECF0; text-align:left;"><b>Settable when the VI is running</b></td><td>{{{settablewhenrunning}}}</td></tr>
|}}{{#if: {{{settablewhenrunning|}}} | <tr><td style="background-color:#EAECF0; text-align:left;"><b>Settable when the VI is running</b></td><td>{{{settablewhenrunning}}}</td></tr>
|}}
|}}
|}</includeonly>
|}</includeonly><noinclude>{{documentation}}</noinclude>
<noinclude>
 
== Usage ==
 
Use this template is to create the Property Information table in [[VI Server]] property pages.
 
Syntax is as follows:
 
<code>
<nowiki>
{{VIServerMethod
| classid =
| methodid =
| scope =
| dataname =
| shortname =
| longname =
| datatypeimage =
| datatype =
| invokenodeimage =
| availableinrealtime =
| availableinruntime =
| availablewithcontrolvis =
| availablewithglobalvis =
| availablewithpolyvis =
| availablewithstricttypedefs =
| loadsbd =
| loadsfp =
| mustwait =
| needsauthentication =
| permissions =
| remoteallowed =
| settablewhenrunning =
|}}
</nowiki>
</code>
 
where:
 
{| class="wikitable"
! Parameter
! Description
! Default
|-
| <code>classid</code>
| The Class ID of a class in the [[VI Server Class Hierarchy]].
| <code></code>
|-
| <code>methodid</code>
| The Method ID of the method owned by the class defined by the Class ID {{{classid}}}.
| <code></code>
|-
| <code>scope</code>
| The scope of the method as either {basic, script, private, deprecated}.
| <code></code>
|-
| <code>dataname</code>
| The data name of the method.
| <code></code>
|-
| <code>shortname</code>
| The short name of the method.
| <code></code>
|-
| <code>longname</code>
| The long name of the method.
| <code></code>
|-
| <code>datatypeimage</code>
| The filename to the wiki image for the data type terminal for the method.
| <code></code>
|-
| <code>datatype</code>
| The data type of the method.
| <code></code>
|-
| <code>invokenodeimage</code>
| The filename to the wiki image for the invoke node for the method.
| <code></code>
|-
| <code>availableinrealtime</code>
| The value for "Available in Real-Time Operating System".
| <code></code>
|-
| <code>availableinrealtime</code>
| The value for "Available in Real-Time Operating System".
| <code></code>
|-
| <code>availableinruntime</code>
| The value for "Available in Run-Time Engine".
| <code></code>
|-
| <code>availablewithcontrolvis</code>
| The value for "Available with control VIs".
| <code></code>
|-
| <code>availablewithglobalvis</code>
| The value for "Available with global VIs".
| <code></code>
|-
| <code>availablewithpolyvis</code>
| The value for "Available with polymorphic VIs".
| <code></code>
|-
| <code>availablewithstricttypedefs</code>
| The value for "Available with strict type definitions".
| <code></code>
|-
| <code>loadsbd</code>
| The value for "Loads the block diagram into memory".
| <code></code>
|-
| <code>loadsfp</code>
| The value for "Loads the front panel into memory".
| <code></code>
|-
| <code>mustwait</code>
| The value for "Must wait until user interface is idle".
| <code></code>
|-
| <code>needsauthentication</code>
| The value for "Need to authenticate before use".
| <code></code>
|-
| <code>permissions</code>
| The value for "Permissions".
| <code></code>
|-
| <code>remoteallowed</code>
| The value for "Remote access allowed".
| <code></code>
|-
| <code>settablewhenrunning</code>
| The value for "Settable when the VI is running".
| <code></code>
|}
 
===Example===
<code>
<nowiki>
{{VIServerMethod| classid = 1
| methodid = 7D5
| scope=basic
| dataname = Mass Compile
| shortname = Mass Compile
| longname = Mass Compile
| datatypeimage = none
| datatype = No return value
| invokenodeimage = Application-Mass Compile.png
| availableinrealtime = Yes
| availableinruntime = No
| remoteallowed = Yes
|}}
</nowiki>
</code>
===Result===
<blockquote style="float: left;">
{{VIServerMethod| classid = 1
| methodid = 7D5
| scope=basic
| dataname = Mass Compile
| shortname = Mass Compile
| longname = Mass Compile
| datatypeimage = none
| datatype = No return value
| invokenodeimage = Application-Mass Compile.png
| availableinrealtime = Yes
| availableinruntime = No
| remoteallowed = Yes
|}}
</blockquote>
 
</noinclude>

Latest revision as of 17:02, 1 August 2024