LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

alternative to this

Solved!
Go to solution

I did whip up a no-frills example of my approach at your request.

 

Test1.vi is a simple pop-up that is called to demonstrate any test.  Its just a timer and a stop button no frills

Tests.ini is the configuration file that maintains a history of all tests available and the vi to launch (in this example I only launch Test1.vi)

 

Prompt.vi is a modified version of the prompt user express vi.  I had to add a file path type that is not on the standard pop-up.

Main.vi

init.PNG

 This section reads the ini and sets the Enums string property as mell as read the test file paths

 

I think the rest of the code is pretty obvious but--- ask if you have any questions


"Should be" isn't "Is" -Jay
Message 21 of 26
(2,035 Views)

CAUTION:

I rushed a bit so I forgot

untitled.PNG

To set the VI properties on Test1.vi

 

Here it is corrected so your LabVIEW does not hang


"Should be" isn't "Is" -Jay
Message 22 of 26
(2,028 Views)

More debugging

The event case Launch needs a few tweaks

an event case needed for the stop boolean


"Should be" isn't "Is" -Jay
Message 23 of 26
(2,021 Views)
Solution
Accepted by nolsqn
Strings [] Property Dim hasPlayer, playerversion hasPlayer = false playerversion = 10 Do While playerversion > 0 On Error Resume Next hasPlayer = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & playerversion))) If hasPlayer = true Then Exit Do playerversion = playerversion - 1 Loop is_FlashVersion = playerversion is_Flash = hasPlayer

Strings [] Property

Short Name: Strings[]

If the string is an enumerated type control, you cannot write this property when the VI is running. If the string is a ring control, you can write this property when the VI is running.

 

Enum changed to Text Ring

Learning is fun

All functions work as desired


"Should be" isn't "Is" -Jay
Message 24 of 26
(2,018 Views)

thank you alot

 

its all clear to me now ............if i will get any problem in future will tell you 

regards

 

 

Regards
0 Kudos
Message 25 of 26
(2,002 Views)

Actually, I got some value out of it too!

 

My customers ALLWAYS want just 1 more engineering function option to run from their production test systems (but only when they are experimanting for engineering purposes).  

 

I just added a Pizza? boolean (what do you want on TOP of everything?) to my mainline GUI.  Guess what it launches?  


"Should be" isn't "Is" -Jay
0 Kudos
Message 26 of 26
(1,940 Views)