キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

Subpanel disabled

Hello all,
 
Another strange problem...
 
Window A calls dialog B, which has a Subpanel.  Whatever I put in the Subpanel is completely disabled, as in cannot be clicked.  I have localized the problem to this:  I call dialog B without the option "Show front panel when called".  I do my own initialization, place the window where I want it and then show the FP.  In this case, the Subpanel is disabled.  If I only enable the option "Show front panel when called", it works as expected.  Can anyone explain or propose a solution?  I'm using Labview 7.1.1.
 
Thanks
Christie
0 件の賞賛
メッセージ1/9
4,033件の閲覧回数

LV optimise efficiency of subvis if they dont need to be showed by not updating their front panel.

i guess you have to "show front panel when called" if you plan to show it.

could you post the vi?

-----------------------------------------------------------------------------------------------------
... And here's where I keep assorted lengths of wires...
0 件の賞賛
メッセージ2/9
4,028件の閲覧回数
Hello Gabi,
 
Thanks for your reply.
 
I wish I could post the VI, but it's very deeply integrated into the software.  I have found an even worse problem.  Even with the current fix, it only works the first time.  The second time I call it, the whole dialog locks up.  No updates, no working buttons.  If I open the diagrams, all the VIs are executing happily (not receiving any events when I click the buttons, though).  It looks similar to events locking all FP controls, except it's not that.
 
Any more ideas, anyone?
Christie
0 件の賞賛
メッセージ3/9
4,014件の閲覧回数

do you have an event structure with "lock front panel until completed"?

you could post the whole software, i dont mind 🙂

 

-----------------------------------------------------------------------------------------------------
... And here's where I keep assorted lengths of wires...
メッセージ4/9
4,005件の閲覧回数
I do have such an event structure, but it's not locked.  To make sure, I set them all not to lock... no difference.  I have determined that the VI in the subpanel can still do graphical updates, but all input, both keyboard and mouse, is disabled.
 
1 Month from now... "I wonder why our sales suddenly dropped?  And what do they mean the NI forums are overloaded?"  スマイリー 平静
 
 
0 件の賞賛
メッセージ5/9
3,988件の閲覧回数

Christie,

you give too little / no practical information for us to help you. try to create a strip down version of your development that you could upload.
can you operate in "highlight execution", in order to find where it stuck? did you try to put probes everywhere that seems problematic?

 


@Christie wrote:
1 Month from now... "I wonder why our sales suddenly dropped?  And what do they mean the NI forums are overloaded?"  スマイリー 平静


need sale booster with LV help? i am on the market! 🙂

-----------------------------------------------------------------------------------------------------
... And here's where I keep assorted lengths of wires...
0 件の賞賛
メッセージ6/9
3,984件の閲覧回数
Fair enough.  I was hoping someone would recognize the problem and go "I know that problem!  It took me ages to solve, here's the solution..."
 
I just solved one problem while trying to strip down the dialog.  It seems that when I do "Register dynamic events" and close the dialog without doing "Unregister dynamic events", some events end up not being serviced, thus locking the dialog when I re-open it.  Glad that is sorted.
 
Still don't know why I need to enable "Show FP when called", though.
 
Sale booster, hey?  One can always do with more sales.  You do contract work for a living?
 
Thanks for the help.
Christie
0 件の賞賛
メッセージ7/9
3,979件の閲覧回数

opening a reference to a vi will not automatically enable its front panel. what normally you would do is run the vi, not wait until done, then insert into subpanel.

since just insertion of the vi into the subpanel doesnt really call it, if you do not so explicitely i would expect it to stay grey-disabled. also, if vi is self terminating then you will have a disabled vi in the subpanel in any case.

i am not sure i can help more without seing the actual code.

 

Note: for my current and future positions look here:

http://forums.ni.com/ni/board/message?board.id=JobSearch&message.id=495

my contact info are there 🙂

Message Edited by Gabi1 on 09-07-2007 12:45 PM

-----------------------------------------------------------------------------------------------------
... And here's where I keep assorted lengths of wires...
0 件の賞賛
メッセージ8/9
3,973件の閲覧回数

Hi,

I call the dialog as a modal subVI.  I have taken every precaution regarding references, etc.  I think it's probably just an Labview oversight.  It is probably fixed in the newer version.  I'll find a way around it.

Ultracold Physics sure sounds like a nice playground.

0 件の賞賛
メッセージ9/9
3,940件の閲覧回数