LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Input File Parsing and Display

Hi All, i have few doubts,

1. I created a GUI for an application and build it as exe. But during ruuning it, when i click on the framed color box a color box showing to change the color.How shall i lock the Framed Color Box so that its not possible to change the color while running?.

2. Its required to read a script file (text file) and display it in a table after parsing it according to different fields. How shall i do that?

Regards,

MFP

0 Kudos
Message 1 of 9
(4,089 Views)

First of all do not use all bold words since its annoying.

 

1)You can right click and create property node for this color box and disable the same. there are options like enable, disable and disable and grayed out. choose the appropriate based on the siutuation

 

2) Use the file IO palleted for openin, reading and closing a file. Once you have the read data process them accordingly and populate them to a table. Remeber that a table takes 2D array of data so makes sure that the data you pass is 2 Dimensional. or else you wiull end up with a broken wire

 

 

Guru

Regards
Guru (CLA)
Message 2 of 9
(4,072 Views)

I hope this example help you. Sorry I could not understand your second question. If possible please load your could may be I can

help you.

0 Kudos
Message 3 of 9
(4,069 Views)

Hi Guru,

 

Thanks for the reply,

 

I Could able to solve the issue 1 with help of your inputs.

 

But i need some more clarifications in the second issue, for the same i am attaching a Sample VI Window Image.

 

I need to do

 

1. Open this window when i press a button in another Window (VI).

 

2. Input a text file in a specified format using"LOAD" button, and display the parsed form in the table.

 

Sample Window Image attached.

 

Anybody Please Comment on this.

 

Regards,

MFP.

 

 

 

0 Kudos
Message 4 of 9
(4,042 Views)
it depends of your file structure. If possible send us please the txt file too.
0 Kudos
Message 5 of 9
(4,038 Views)

Hi FHM,

 

Okay , will try to send it later.

 

for the time being how shall i open the window from another window using a button?

 

Regards,

MFP 

 

0 Kudos
Message 6 of 9
(4,033 Views)

opening the front panel of a vi on a button click in another vi can be performed in multiple ways like static call or dynamic call

 

i assume that your code is having a static call and based on this you have to make these changes to the vi whose front panel to be shown

 

1) hit CTRL+I to launch the VI properties  window and use the window appearence from the drop don ring

2) There is button to customize the settings hit it. Now a pop up will launch and make these changes as shown in the attached diagram marked in RED box

3) save the vi and click the button. I hope this helps

 

original.gif

Regards
Guru (CLA)
Message 7 of 9
(4,025 Views)

Hi Guruthilak,

 

I think, you didnt understand my query correctly.

 

Let me share some more information on this,

 

I have a GUI (VI) with a Square Button, when pressing the button i need to open another GUI.

 

Also into a 3x10 table, i have to fill the information (for example from an array).

 

Regards,

MFP. 

0 Kudos
Message 8 of 9
(4,001 Views)
one possible solution see attached VI.
Download All
Message 9 of 9
(3,986 Views)