NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Making LabVIEW VI Modal to TestStand

All,

I am having a few issues with making VIs created with LabVIEW modal to TestStand.  I am using TS 3.5 and LV 8.01 on XP SP2 PC.

My objective is to make a VI appear as modal to the main teststand application window reliably, giving it focus and with no flicker on startup.  To make things a little more complicated I turn all my VIs into shared lilbraries (dll's) to ease deployment.

I have attached a zipped up example.  Extract the files to a suitable folder and open 'DialogExamples.seq'.  There are four steps implementing different methods of making the VI modal (or not as the case maybe).  Its worth mentioning that the VI (dialog) I created on LV was only coded to exit on a 'mouse up' on the close button!!

Step "Set to 'Dialog' in VI Props Only" makes the VI appear, but it is not modal to TS (as you would expect).

Step "Uses TS Start Modal Dialog Only" does make the VI modal to TS but it appears minimised so you have to click on it in the task bar to give it focus.

Step "Uses TS Start Modal Dialog Only AND Set to 'Dialog' in VI Props" does make the VI modal to TS and makes it visible.  Whether the VI has focus seems to be unpredictable.  The VI also flickers badly on loading and closing.

Step "Uses TS Start Modal Dialog and Made Frontmost" again does make the VI modal to TS but it loads minimised?!

I have tried many combinations of VI property settings mixed with programmatically setting various properties with little success.  Has anyone encountered this problem before and have you got over it?  I would be interested to hear of my example behaves the same for you as it does for me?

Any help or suggestiosn would be gratefully received!

Thankyou

Barry

0 Kudos
Message 1 of 3
(4,530 Views)

Hi,

Have you by any chance tried the example in the TestStand examples folder?

I will try to look at your example later today.

Regards

Ray

Regards
Ray Farmer
0 Kudos
Message 2 of 3
(4,498 Views)

Hi,

had a quick look at your VI's and tried your example sequence.

You need to be using the two TestStand VI's to make your Dialog modal. Try placing the close button in the event frame.

One thing I did try was the modal dialog example in the TestStand Examples folder. This doesn't use the Event frame but a while loop.

It seemed to run ok. I was going to put it in a DLL, as in your example, and see what happens but it was getting late.  Maybe you could try that.

Regards

Ray

Regards
Ray Farmer
0 Kudos
Message 3 of 3
(4,472 Views)