LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VI hangs while I am editing the value of a control

My main VI loads the front panels of several subVIs into subpanels. The main VI including all subpanels starts hanging when I start typing in controls of some of these subVIs. Hanging means that...

- I can enter only one character into then control, then it stalls

- the cursors stays in edit mode even if I move it out of the control

- none of any other controls (neither in main VI nor in any subVI) reacts anymore.

 

Further details:

- The problem occurs only for two of the subVIs/subpanels, the other ones are fine.

- It's a matter of the subVI, not of the subpanel (if I switch to another subVI in the SAME subpanel, the problem does not occur)

- it does not seem to be related to something in the actual LabVIEW code of the respective subVIs because it even occurs if I place some dummy controls without any wiring onto the subVI's front panel and start typing in the dummy control.

- in the case of numeric controls, the problem does NOT occur when I change the control's value by using the spins on the side. It just occurs when I start TYPING.

 

Does anyone have a hint on how to tackle this problem?

Message Edited by dlanger on 10-22-2009 11:00 AM
0 Kudos
Message 1 of 11
(3,324 Views)
What is your lv version?
0 Kudos
Message 2 of 11
(3,290 Views)
Are you using multiple event structure?
0 Kudos
Message 3 of 11
(3,289 Views)

One case may be you would be registering event of control from one vi into the other.

Can you post your code?

Gaurav k
CLD Certified !!!!!
Do not forget to Mark solution and to give Kudo if problem is solved.
0 Kudos
Message 4 of 11
(3,287 Views)

- I am using LabVIEW 2009.

- There is only one event structure in each of the affected subVIs.

 

The strange thing is that it hangs before I commit the new value (by pressing enter, by clicking somewhere on the front panel outside the control or by clicking the "enter value" button in the upper left corner of the LabVIEW window). So it hangs WHILE typing. And the only events I have in my event structure are VALUE CHANGE events.

0 Kudos
Message 5 of 11
(3,270 Views)
Can you post a screen shot?
0 Kudos
Message 6 of 11
(3,263 Views)

Attached you find a screen shot of the main.vi right after everything stalls. And a screen shot of the block diagram of one of the two subVIs causing the problem.

Interesting: the problem does not occur when the subVI is run standalone.

 

I can't post the whole source here in the forum because it's a rather large project (>100MB, >1000 subVIs, dependencies from additional libraries (easyXML from JKI; statechart module). If anybody is interested, I can provide access to the subversion repository.

0 Kudos
Message 7 of 11
(3,250 Views)

I just observed that ALL controls show the strange behaviour, not only those in the two subVIs.

 

How can it be that LabVIEW is buggy with when one enters control values via the keyboard, and works completely fine when one changes the control values using the mouse?

Message Edited by dlanger on 10-25-2009 03:44 PM
0 Kudos
Message 8 of 11
(3,222 Views)

My brain says "not enough data" to answer this question.

 

Help?

 

It sounds like your UI thread is getting locked-up or you have an un-serviced event that is configured as "Lock UI until done".

 

Sorry but that is all I can say with the data available.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 9 of 11
(3,209 Views)

Hi dlanger,

I have the same problem. if you were able to fix it, can you please share how you did it.

 

Thanks very much

0 Kudos
Message 10 of 11
(2,654 Views)