LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

run time focus

Hello,

 

i have  little trouble with a focus on a string command

 

i set property focus on , it woks perfectly in dev mode but not in runtime

 

does any one know more about this?

 

regards

 

Tinnitus

 

CLAD / Labview 2011, Win Xp
------------------------------------------------------
Mission d'une semaine- à plusieurs mois laissez moi un MP...
RP et Midi-pyrénées .Km+++ si possibilité de télétravail

Kudos always accepted / Les petits clicks jaunes sont toujours appréciés
Don't forget to valid a good answer / pensez à valider une réponse correcte
0 Kudos
Message 1 of 9
(3,356 Views)

I use the String focus property in several of my programs and doesn't have any

problem in run-time enviroment. It could be settings of your string control. 

Do you wanna post a sample code so we can take a look at it ?

 

0 Kudos
Message 2 of 9
(3,344 Views)

hello,

 

here the  vi  ,

 

 

maybe it is not the appropriated property but it act well in dev mode...

 

 

Regards

 

Tinnitus

 

 

 

CLAD / Labview 2011, Win Xp
------------------------------------------------------
Mission d'une semaine- à plusieurs mois laissez moi un MP...
RP et Midi-pyrénées .Km+++ si possibilité de télétravail

Kudos always accepted / Les petits clicks jaunes sont toujours appréciés
Don't forget to valid a good answer / pensez à valider une réponse correcte
0 Kudos
Message 3 of 9
(3,323 Views)

Try wiring the error out from the value property node to error in of the key focus property node. Or expand the value one to include the key focus property.

 

Capture.PNG

Or

 

Capture.PNG

 

 

=====================
LabVIEW 2012


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

 

 

no it doesn't take effect

 

i have not indicate that is a called vi , it works if compiled alone but not when called

nevertheless i have no troubles in dev mode even if called

 

regards

 

Tinnitus

 

 

 

CLAD / Labview 2011, Win Xp
------------------------------------------------------
Mission d'une semaine- à plusieurs mois laissez moi un MP...
RP et Midi-pyrénées .Km+++ si possibilité de télétravail

Kudos always accepted / Les petits clicks jaunes sont toujours appréciés
Don't forget to valid a good answer / pensez à valider une réponse correcte
0 Kudos
Message 5 of 9
(3,312 Views)

Interesting. I use LabVIEW 2010 and it works for me.

 

I saved the project as an earlier version. It has a vi - testpopup.vi that will call your vi when the OK button is pressed. I tested that in dev mode and as a standalone executable and it works.

 

One note - You might want to consider using error in and out terminals on your vi. I have gotten into the habit of always doing that even when error is wired straight through. I would not need the sequence structure in testpopup.vi.

 

Open the attached project and run the build specification and see if it works the same when built as it does in the development environment. I suspect that it will.

 

Are there references to the "filt cmd" in your calling vi?

=====================
LabVIEW 2012


0 Kudos
Message 6 of 9
(3,306 Views)

Maybe in runtime the top level vi window has lost focus.

0 Kudos
Message 7 of 9
(3,288 Views)

hello

 

quite special ...

 

no there is no reference in calling vi

 

youre vi works but it force me to add a sub fonction ...

 

i were forced to put the the focus property in the loop, not too effecient but it is ok .....

 

regards

 

Tinnitus

 

CLAD / Labview 2011, Win Xp
------------------------------------------------------
Mission d'une semaine- à plusieurs mois laissez moi un MP...
RP et Midi-pyrénées .Km+++ si possibilité de télétravail

Kudos always accepted / Les petits clicks jaunes sont toujours appréciés
Don't forget to valid a good answer / pensez à valider une réponse correcte
0 Kudos
Message 8 of 9
(3,281 Views)

Good that you got it working. Having the property node in the loop is definately not ideal but it is just a dialog window so it does not really matter. As long as it works.

 

But that is never good enough for me. I am always bothered when I do not understand something that I think I should understaned.

 

In the project that I attached, did the test work both in the development and runtime environments? It did for me. If it didn't work for you in one of the environments then try one of my first suggestions - wire the error terminals from the first to the second property node or expand one to include value and focus properties. Remember that the properties are set from top to bottom. So be sure that set focus is the bottom property.

=====================
LabVIEW 2012


0 Kudos
Message 9 of 9
(3,268 Views)