NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Button clicked flashes but must click again for action

If another panel had focus and I click on a button with the mouse, the button flickers, but the button action does not occur. I must click on the button again to actually get the button to "function".
If I have had additional popup windows open, that are now closed, I must click the desired button, one more times than the number of popup windows (i.e. if 2 popup windows were open, I must click a button on the TestStand operator interface 3 times before the desired action occurs. The button will flicker, giving the operator the false impression that button will respond.

Why is this and how do we fix it?

I have TS 3.0, CVI 7.0 and am runing with Windows XP, SP1.
0 Kudos
Message 1 of 11
(4,076 Views)
Hi
Can you post a simple example which shows your problem.
Regards
Anand Jain
National Instruments
0 Kudos
Message 2 of 11
(4,067 Views)
Simple example: I notice this problem when trying to press either the Resume button or the Test UUTs button.
0 Kudos
Message 3 of 11
(4,065 Views)
Hi
I am not sure I follow.
What dialog do you have open ?
Do you have UUT Information (Serial No dialog) up ?

Regards
Anand Jain
National Instruments
0 Kudos
Message 4 of 11
(4,059 Views)
Hi
Also what Operator Interface are you using ?
1. The New Style OIs which use the new user interface controls
or
2. The old style OIs which do not use the user interface controls
or
3. A custom build Operator Interface ?

Regards
Anand Jain
National Instruments
0 Kudos
Message 5 of 11
(4,058 Views)
I am using a custom user interface based on the Full_Featured CVI operator interface. Although I have removed some items, resized some items and added some panels, I have not modified button response methods. I notice the same issue using the the default NI example of this interface.
0 Kudos
Message 6 of 11
(4,057 Views)
Hello Bob,

It looks like that the event/message queue of CVI is not recording events properly. There could be various reasons like the memory, operating system, the CVI code or any other memory resident program. I would recommend the following things:

1) Try using the shipped OI that you used to create your custom OI.
2) Try clicking on the window/pop-up title bar first and then clicking on the button.
3) Try restarting your computer in safe mode.
4) Try running your OI on a different computer.
5) Open the source code in CVI and in the UI check if the events are called properly and the order of the events called.

I hope it helps,

Rajiv Garg
National Instruments
0 Kudos
Message 7 of 11
(4,037 Views)
Bob,

You say that this problem exists on the NI default example. Are you referring to the Full Featured 3.0 OI? I tried to replicate the behavior by running a sequence and clicking on several of the pop-up panels that appear, but the buttons always seemed to function properly.

Can you step me through exactly what you are doing to cause this behavior? If you can replicate it using the NI provided OI, it will be much easier to debug. If it only appears on your Custom OI, please describe how you have the extra panels set up. If it is a custom OI, are you using CVI buttons, or TestStand UI Control Buttons?

Allen P
NI
0 Kudos
Message 8 of 11
(4,021 Views)
The problem exhibits itself using the TestStand UI Control Buttons: Test UUTs, Resume and Terminate. It also is sometimes evident for CVI buttons on the custom interface.
It appears that the first mouse click is swallowed. The prior suggestion of clicking first on the title bar often works, even though mousing over the panel does bring the panel into focus. Telling the customer that he and his employees always need to click on the title bar before clicking on a button is NOT acceptable.
0 Kudos
Message 9 of 11
(4,009 Views)
Bob,

Is this behavior only happening on the custom-OI, or is it happening on the NI default?

I'd really like to see the behavior myself, but haven't been able to reproduce it yet. I'd imagine it has something to do with how your extra panels are installed, but it is merely a guess.

Is there any way you can put up a small example that shows this?

Allen P
NI
0 Kudos
Message 10 of 11
(4,006 Views)