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