LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Exporting Default Control Settings

I have a vi which has numerous numerical controls.  I would like to be able to export all the default settings for these controls to a file.  Is there a labview function which will do this?
0 Kudos
Message 1 of 3
(2,654 Views)
Look at the Configuration Files VIs. It may take a bit of effort to fully understand them, but they should be able to do what you ask.

Lynn
0 Kudos
Message 2 of 3
(2,647 Views)

Hello,

 

I am a little unsure as to what you mean by exporting the default setting of controls, so here are my two interpretations and their solutions:

 

If you have created controls that are set to specific settings and you want to be able to use them in other VIs without having to change the settings then you can create a Custom Control. This imports all of the control properties ans allows you to use it in other VIs.

Here are instructions on how to do it: After you have set the properties of the control you want to reuse then right click on it and go to Advanced<<Customize… This will open a new window where you can specify the status of the control to be a Type Def. as shown in the attached image. This saves the control as a .ctl and you can then use the control from any front panel. To import the control right click on the front panel and click on ‘Select a Control…’. Then browse to the control you want to add.

Here is a tutorial on custom controls, indicators and type definitions in case you need more help: http://zone.ni.com/devzone/conceptd.nsf/webmain/a9fbcaa7a3d7922186256a3000652b56

 

If on the other had you want to save the front panel data into a file and be able to look at it later then you can log a file from Operate<<Data Logging<<Log… You can find more detailed information on this under the LabVIEW help by searching for datalogging.

 

If this doesn’t address your question, please let me know what you mean by export all the default settings of a control to a file and whether you plan to reuse the data or the actual control.

 

Good luck,

 

Tica Taveras

Applications Engineer

National Instruments

0 Kudos
Message 3 of 3
(2,632 Views)