2016년 8월 4일 목요일

The method to control VI VI dynamically at runtime using NI LabVIEW VI Scriting



Today programmatically to create a VI in LabVIEW, or let's learn about the features that can be edited.

Dynamically it indeyo features that used to control the LabVIEW VI.

Function that provides this capability is the right guy named NI LabVIEW Scripting.

LabVIEW VI Scripting is given to provide classes, properties, methods, etc. for the VI Server, and users can be added by creating a specific object on the front panel or block diagram, and help create new VI, running, stopping also possible.

Features of the NI LabVIEW Scripting is as follows:


  • Generating a new code programmatically running LabVIEW
  • Check and change existing code
  • Place new controls and indicators programmatically
  • VI connector pane Edit

In other words, using the NI LabVIEW Scripting hers that enables you to configure the code, connectors, fans, UI, etc. programmatically.

Therefore, users will be able to use the LabVIEW programming efficiency while having the flexibility to develop using LabVIEW VI Scripting.

LabVIEW VI Scripting is included by default from the LabVIEW 2010. Until the 2009 version, you must install through VIPM.

For LabVIEW VI Scripting You can find the relevant data in a user forum through the link below.

http://decibel.ni.com/content/groups/labview-apis

Starting with LabVIEW 2010 includes the version I'm a LabVIEW VI Scripting.

To look at the related example shown below, you can see through the NI Example Finder.



VI in the NI Example Finder to control programmatically In the example below, there are various folders.

Let us take the example of a number by executing Adding Objects.vi.
First, let's briefly look at the code.


The above code will get the new one to come see VI sets the size and location of the front panel and block diagram. And in the block diagram - Add (Substract) function to close the reference.

When this code executes, you can view the following results.



As a processing in the code to create a new VI and, after setting the front panel and block diagram location, on the block diagram - sixes entered into the function.

In this article we learned about the LabVIEW VI Scripting VI at briefly how to control the runtime to run the VI.

Thanks.

댓글 없음:

댓글 쓰기