NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Start Modal is not working right with LV 8.x

I want my message VI to be modal to TS but not permanently and not open FP when called.

 

I want VI properties:Window Appearance:

Has title bar

Show abort

Show run

Default Behavior

 

At runtime, if no error, I set: open FP, FP frontmost, modal behavior

Then I call TS start modal

 

I call callSubUI.vi from TS 3.5 with LV adapter set for dev system which is 8.2

callSubVI calls message.vi.

 

It does not work right for me in 8.x (sometimes works on first UUT run)

VI is visible and frontmost but doesnt get focus

(there is no active window)

(always works fine in 7.x)

 

If I set ‘open FP when called’ it works, but I don’t want panel to show on error in.

 

I tried all combinations of actions with .3s wait between, none worked right.

TS modal        modal  open    front

front     TS modal        modal  open

open    front     TS modal        modal

etc

0 Kudos
Message 1 of 6
(3,710 Views)
I attached llb to my post but I do not see how to find it when viewing the post
0 Kudos
Message 2 of 6
(3,705 Views)
also,
setting for open FP when called does not help if the vi is not directly called from TS but is a subvi of one called by TS
0 Kudos
Message 3 of 6
(3,674 Views)
Hi Stephen,

Are you changing these setting from a VI that is called or through TestStand itself (is there a step that sets the VI Properties through a LabVIEW VI or through an ActiveX call)?

If it is a LabVIEW VI, have you tried calling that VI by itself to make sure it is working outside of TestStand?

It would definitely help if we had the VIs and your sequence file, if you could attach those that would be great.

To answer your third response, if the VI is a subvi of one being called in TestStand, you want to make sure the setting are correct when calling that sub-vi. You set this on your block diagram by right clicking the sub-vi and going to sub-vi node setup.

Brandon Vasquez | Software Engineer | Integration Services | National Instruments
0 Kudos
Message 4 of 6
(3,668 Views)
Hi Brandon,
 
I am setting VI properties at runtime in a subvi of a vi that I call from teststand
Then I call 'start modal'
VI does not get focus if LV8.x, works fine in LV7.1
works fine outside of TS, but my object is modal to TS.
I don't want to set the subVI node to show FP because I don't want it to flash on error in
I attached to my original post, dont know what happened to it
I am attaching to this reply
0 Kudos
Message 5 of 6
(3,652 Views)
I had responded via email about this but just to give everyone who reads this a fix for this, here is a link to a forum post about this same issue.

http://forums.ni.com/ni/board/message?board.id=330&message.id=10473&view=by_date_ascending&page=2

Brandon Vasquez | Software Engineer | Integration Services | National Instruments
0 Kudos
Message 6 of 6
(3,627 Views)