LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to write table values into a configuration file

Im writing some values in the table, i want to save and load the table values,  how to save the table configuration into configuration file??
0 Kudos
Message 1 of 15
(3,910 Views)

Hi 2716jag,

do you need a special format for your data? If not you can use the "Write to spreadsheet file.vi".

Mike



Message Edited by MikeS81 on 04-23-2008 01:48 PM
0 Kudos
Message 2 of 15
(3,908 Views)
You say you want to the save and load the table values and to save the table configuration? The example Mike showed will allow you to save the data. What do you consider the "table configuration"?
0 Kudos
Message 3 of 15
(3,882 Views)

yeah i got that,   now im creating one menu, using "run time menu edit" i 've created a menu with  items, in that menu if i select one item it should open corresponding VI. how can i do this.

Thanks and Regards

Jagan

0 Kudos
Message 4 of 15
(3,846 Views)
There can be many ways to read which menu item is selected.
One of them is to use Event Structure. Create an event for Menu Selection (User) for This VI as event source.
 
Another way is to use Menu function under Dialog & User Interface -> Menu.
Use Current VI's menu bar fucntion to get the reference for the menu which is to be used with all other menu functions.
Use Get Menu Selection function to keep reading the menu bar. This will give you item tag of the menu if selected. You can use this Item tag to decide which VI u want to open or what function u want to do.
 
Hope it helps...
 
 
0 Kudos
Message 5 of 15
(3,830 Views)
yeah thanks, i got that through event structure! working fine but there is one problem , If a menu selection is done and the selected VI is running i cant able to access the front panel of the main VI (VI having that run time menu). so that i cant able to run the menu item simultanouly , is there any option to run those paralley??
0 Kudos
Message 6 of 15
(3,823 Views)

Probably you need to have a different independant loop looking for the events. For this you may need to use Q structure as well, so that you can define a Q outside both loops, add elements to Q as and when the menu is selected, while the other loop works according to the Q elements it gets to remove.

Hope that helps !

0 Kudos
Message 7 of 15
(3,813 Views)

Pls ignore my prev post, I cud not finish edit within 10 mins as req by the forum rule...

If you are not able to access a VI front panel at all when another VI is called by the first VI, then probably the issue is that the VI properties is set to be Modal. Right click on the VI icon on the right top corner and select VI Properties. Under Window Appearance, you can click on Customise button and ensure the VI is not Modal (and Custom is selected). Before this, you need to ensure the calling VIs are also not set to Modal (I think if you set it to dialog, it will be Modal by def. So don't use that as well). If any of the parent VI is set to Modal and a subsequent child VI is in non-modal mode, then you will not be able to access the child VI front panel when called and may end up with forcing the program to close.

Probably you may also need to have a different independant loop looking for the events. For this you may need to use Q structure as well, so that you can define a Q outside both loops, add elements to Q as and when the menu is selected within the loop for menu events, while the other loop works according to the Q elements it gets to remove.

Hope that helps !

0 Kudos
Message 8 of 15
(3,807 Views)
Hello,
another possibilty for this behaviour is caused by your event structure, set to "Lock Front Panel until..." as to be seen in the picture.
greets, Dave




Message Edited by daveTW on 04-28-2008 09:09 AM
Greets, Dave
0 Kudos
Message 9 of 15
(3,801 Views)
Hi Mike
How to save a 2d array to configuration file. i tried with index values , but failed. hope u help!
0 Kudos
Message 10 of 15
(3,762 Views)