LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VI's GUI events disturb another VI's work

Platform: Win2K, LabView 6.0i.

I saw that some VI's GUI events (like pressing a mouse button on the VI's caption) pause the VI for a while and may disturb the work of other VIs too. For example, open two attached files and run them both. Then press and hold the left mouse button on a.vi's caption - you will see that both a.vi and b.vi will stop counting for a while.

My problem is that the "b.vi" in my application is a time-critical one, so if the user plays with the application GUI it can crash the application. May I disable such a behaviour by setting VI priorities or somehow else ?

Thank you,
Sergey.
Download All
0 Kudos
Message 1 of 5
(2,970 Views)
Well i downloaded your 2 vi's and left mouse button clicked and held down, etc. and i did not see either vi stop counting, or any pause at all.

I'd suggest to try setting the time critcal vi to highest priority, and maybe the other one to lowest priority. If that doesn't work, try cutting out all unnecessary code and indicators and only use globals and locals if absolutely necessary (see performance tips in LV help). If you still have problems you may need to upgrade your computer, clean it up (delete unused programs/files) or reformat/reinstall.
0 Kudos
Message 2 of 5
(2,970 Views)
I agree wholwheartedly with the other reply. The operation you discribe is not normal and hasn't been for at least a couple major revisions. Something very funky is going on with your system.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 3 of 5
(2,970 Views)
Meanwhile I've got some info from our local NI representative and they say there really is such an effect under W2K OS, so I do not think that the problem is in my specific environment. In Win NT the behaviour is different - only GUI is freezed, but the VI continues to run in the background.
0 Kudos
Message 4 of 5
(2,970 Views)
Far be from me to suggest that a local rep might be blowing smoke, but I just retried your two VIs on a Win2k machine and nothing I do causes the other VI from even hesitate--let alone stop.

What exactly is the effect? Is there a knowledgebase entry explaining it? Pin your local rep down and get specifics.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 5 of 5
(2,970 Views)