LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Run Time menu to include import/export variables?

Is there a way to add the Import/export variables from the Project window into the Run Time Menu?

 

 

Im using a 120 channel Fluke datalogger via OPC.

 

My goal is to have a run Time menu that includes the Fluke.lvlib where I can select however many channels from the tree. I need to be able to export them (via the export variable option) modify the variables in Excel (name, description, deadband etc) and import them back to my VI (via the import option) with the new changes applied.

 

I can't seem to figure out how to add the .lvlib, import variable, or export variable to the Run time menu.

 

 

sandro

 

0 Kudos
Message 1 of 6
(3,548 Views)

Hi storres211,

 

What do you mean when you say you want the options in the run time menu? Do you mean one of the menus at the top of the window when the VI is running, or a separate menu that is custom and accessable when the VI is run?

Justin M.
Applications Engineering
National Instruments
0 Kudos
Message 2 of 6
(3,507 Views)

Justin,

 

yes, I want to be able to find it in the " Menu editor" I also need to access my "Fluke.lvlib" file (OPC server) located in the project library, select as many variables as I need, Export them to a csv file to change their names, description, deadband, etc, save the file and import it back to my Run time VI with those changes in place.

 

DSC 7.1 use to do this via the tag editor, you had the option of importing tags (or network tags) change all of the parameters within the editor or export it to a csv to change parameters. 7.1 also gave you the option to have this tag editor in the Run Time Menu.

 

Thanks

storres211

 

 

 

0 Kudos
Message 3 of 6
(3,497 Views)

Hi storres211,

 

What version of LabVIEW/DSC are you currently using? I ask because 8.0 and above changed the way we work with DSC, and the new engine is built on top of the shared variable engine. Because of this the options that were previously available in 7.1 have changed.

 

Why are you wanting to change the variables during runtime? Instead of exporting and importing, you can now programatically control your variables through invoke nodes and methods. Using these, you could build a custom menu with the options you need to change.

 

Information on what you can change can be found here:

 

http://zone.ni.com/reference/en-XX/help/371618J-01/lvmve/editing_tags/

Justin M.
Applications Engineering
National Instruments
0 Kudos
Message 4 of 6
(3,472 Views)

Thanks for the reply M0535,

 

The reason I want to change the variables during runtime (via Run Time menu)  is because I will be creating an executable from this VI when its done.

 

We are in the process of changing our current data acquisition systems from LV7.1 to LV2015. We need the capability to create new test files with different channel counts. Since this will be an executable,  I won't have access to the project libraries (ex. My Datalogger lvlib file). that's why I need the import/export variables option, and create bound variables option at runtime.

 

I am aware that LV changed from tags to shared variables, I've been reading a lot of white papers and example code so I'm getting more familiar with these changes. It sucks that NI doesn't offer the DSC class anymore, I would have taken it in a heartbeat.

 

any help would be great.

 

 

storres

0 Kudos
Message 5 of 6
(3,460 Views)

Run Time menu to include import/export variables

0 Kudos
Message 6 of 6
(3,401 Views)