Example Code

Write Front Panel size and location to .ini file Using LabVIEW

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

 

Overview

This vi, when run will write the size and location of another vi's front panel to an initialization file.

 

Description

This vi, when run, will write the size and location of a particular VI to an initialization file. This initialization file can then be used at the beginning of an application to appropriately size and place a front panel vi during development. Meant to accompany

https://decibel.ni.com/content/docs/DOC-36156

 

Requirements

  • LabVIEW 2013 (or compatible)

 

Steps to Implement or Execute Code

  1. Make sure the .ini file is in the same directory with this VI and with right format.
  2. Fill in the path of the VI in the file path constant on the block diagram
  3. Run the VI.
  4. Check the content of the .ini file.

 

Additional Information or References

VI Snippet of Block Diagram

snii.png

 

 **This document has been updated to meet the current required format for the NI Code Exchange. **

 

Applications/Systems/Test
National Instruments | AWR Group

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Comments
Jeffrey-yuefeng
NI Employee (retired)
on

if the .ini doesn't exist, the example won't work.