Academic Company Events Community Support Solutions Products & Services Contact NI MyNI
30 ratings:
 2.56 out of 5   

What Is the VI Server?



Primary Software: LabVIEW Development Systems>>LabVIEW Full Development System
Primary Software Version: 2009 SP1
Primary Software Fixed Version: N/A
Secondary Software: N/A

Problem:
While researching a solution to a problem, VI Server was mentioned. What is the VI Server?

Solution:
VI Server, introduced in LabVIEW 5.0, is a set of functions that allows you to dynamically control front panel objects, VIs, and the LabVIEW environment. With VI Server, you can also programmatically load and run VIs and LabVIEW either on the same machine or across a network. The VI Server functions are located in the Functions » Application Control sub-palette. All VIs have properties that can be read or set and methods that can be invoked using these VI Server functions. VI Server replaces the VI Control VIs of LabVIEW 4.x.

VI Server has an object-oriented architecture that is platform-independent.  Each object that is a part of VI Server is a part of a class. The class that the object is a part of determines what properties and methods are available. Many of these classes have sub-classes. For instance, any boolean control is a member of the Boolean class, which is a member of the Control class. The Control class is a member of the GObject class, which is a member of the Generic class. Lower level classes, such as the Boolean class, have their own properties and methods, and inherit properties and methods from higher level classes, such as the Generic class.

As an example of VI server usage, below is a code snippet of the VI server being used to programmatically resize the front panel window of a VI.

VI server being used to resize front panel

Refer to the LabVIEW Help document, linked below, for more information about VI Server.



Related Links:
LabVIEW Help: Programmatically Controlling VIs
KnowledgeBase 28IAHMDM: Common VI Server Errors
KnowledgeBase 3VEGHFQG: How Can I Resize the Front Panel of a VI Programmatically?

Attachments:





Report Date: 03/03/1998
Last Updated: 07/31/2017
Document ID: DIRECT-3S8SSU

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit