Application class/Context.Create Local Host App Instance method

From LabVIEW Wiki
Jump to: navigation, search
VI Server Method Information
Method ID 815
Scope Private
Data Name Context.CreateLocalHostAppInstance
Short Name* Context.CreateLocalHostAppInstance
Long Name* Context:Create Local Host App Instance
* Displayed here in English. Short and Long names appear in the language of the LabVIEW IDE.
Owning Class ID 1
Owning Class Name Application Class
Return Data Type Application Refnum data type

Application Refnum

Invoke Node Context:Create Local Host App Instance

Creates a new (headless) application instance on the local host machine and returns a reference to it.

Parameters

Data type Name Required Description
Application Refnum Context:Create Local Host App Instance Yes. Return value. Reference to the new application instance. Returns an invalid value if this method had an error.
String Application Instance Name No A unique name for the new application instance. If no name is provided, this method creates a new unique name on every call ("AppInstance Untitled 1", "AppInstance Untitled 2", ...). If an application instance with the same name already exists, this method returns an error.
Path INI Path No Path to an INI file that will be used for the application instance. Uses default values for all settings if no path is specified.
I32 Options No Additional flags that are passed to the application instance. The flag kPrivateLVContext is always passed automatically. Allowed flags are:
  • 0x00000002 kPrivateButAllowSaveChanges
  • 0x00000004 kApplyChanges_ReaderContext
  • 0x00000008 kApplyChanges_NoParticipation
  • 0x00040000 kDoNotWarnAboutRunningVIsOnExit
  • 0x00200000 kIsLVWebServiceLVContext
  • 0x20000000 kContextDoesNotUpdateVIObjCache
Boolean Release Ref on Idle (T) No If enabled, the application instance will be released when the top-level VI goes idle. Defaults to true.

Uses

History

Version Change(s)
LabVIEW 2018 More info to come.

See Also

External Links