LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

can it possible to display front panel of global variable during run time?

if any one know it please reply<<<<

thank you

0 Kudos
Message 1 of 22
(4,697 Views)

Just open reference to Global VI, then set property Front Panel : Open to true.

Code snippet in attachment.

 

Andrey.

Message Edited by Andrey Dmitriev on 11-13-2008 12:24 PM
Message 2 of 22
(4,694 Views)

Thanks for reply;:::

Actually i ab working on LabVIEW 8, so that file which you send cannot be open,, please can u send file of LabVIEW 8..

 

0 Kudos
Message 3 of 22
(4,654 Views)
here we go.....
0 Kudos
Message 4 of 22
(4,644 Views)

Although it does not seems right to me. Globals are not for displaying.

Maybe you should use a "functional global", instead.

If you do a small search you will find examples

0 Kudos
Message 5 of 22
(4,635 Views)

Hi, Pnt,

 

Why not? Showing globals or not as well as using or not - there are design questions. Like "to be or not to be".

In some situations globals can be useful (with deep understanding, of course).

The question was - how to show FP of Globals in runtime technically, and yep - this is possible.

 

Andrey.

 

0 Kudos
Message 6 of 22
(4,618 Views)

I agree that the question should be answered.

But usually not experienced users could go in the wrong way, if things are not cleared. 

 

So the question is "Why not?"

There is no good reason. I just think it is bad coding style.

 

Has anyone used it ?

0 Kudos
Message 7 of 22
(4,611 Views)

Personally I don't remember, that I have used Globals (at least last year).

But in the past, few years ago, I have project where globals was used exactly in that way - with showing their Front Panel (service department urgently asked me to show some information - and this info was already used as Globals, so I just added just one button... - that was very "quick and dirty" solution).

But I agree with you - in most cases the necessarity for using and showing Globals to user - is the sign that something may be wrong with design.

 

Andrey.

0 Kudos
Message 8 of 22
(4,602 Views)

thank you for reply,,,, 

 i facing another problem,, i am writing code for login window, which asks user to ennter name and password,,so my code has to vefy with data base file, which is .csv format,,

but when vi runs, the name and password it reads ,the chracter is converting in some junk format,, so output of the program shows invalid user,

0 Kudos
Message 9 of 22
(4,585 Views)
thank you for reply,,,, i facing another problem,, i am writing code for login window, which asks user to ennter name and password,,so my code has to vefy with data base file, which is .csv format,, but when vi runs, the name and password it reads from the .csv file ,the chracter is converting in some junk format,, so output of the program shows invalid user,
0 Kudos
Message 10 of 22
(4,583 Views)