LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Dragging dialog box VIs by their title bars suspends my main loop.

My LabVIEW application consists of two While Loops.

One loop displays various dialog box VIs, while the main loop acquires data and does everything else.

When I drag a dialog box VI by its title bar, the main loop is suspended.

How can I avoid this, other than hiding the dialog box VIs' title bars thus not allowing the drag?
0 Kudos
Message 1 of 12
(3,374 Views)
This does not happen in my experience. Can you attach a simple example?
 
Do you have mutithreading enabled? What is the execution system of the main and the dialog VI? What is your LabVIEW version? What is your OS?
0 Kudos
Message 2 of 12
(3,374 Views)
Oh good, you're looking at this <b>altenbach</b>.

Please see attached .llb.

Also, I'm open to suggestions on a better architecture for popping up dialogs while a "main loop" is running, while sharing data between the two.
0 Kudos
Message 3 of 12
(3,370 Views)
Also, I have not enabled multithreading explicity (how do you do that)?

Both execution systems are default.

LabVIEW version is 7.1.

OS is Win2k, ultimately WinXP.
0 Kudos
Message 4 of 12
(3,371 Views)
No problem with moving dialog box on my PC... (W2K also)
Chilly Charly    (aka CC)
0 Kudos
Message 5 of 12
(3,366 Views)

Multithreading is enabled by default. It is under "tools..options..performance and disk...run with multiple threads.

As I mentioned, I don't see the problem, the counter continues to run. I have modified it so it charts the actual loop time of the main loop. Yes, when the dialog window is rapidly moved around, there is a little bit of jitter (maybe  5-10 ms) in the loop rate.

The loop rate is mich more precise if you use a timed loop instead. All you need in the upper loop is a simple event structure, you can eliminate all the global variables, etc.

I have modified your VI with a timed loop and an event structure. See if it works better. If you still have problems, maybe there is a problem with your computer, e.g. the graphics driver etc.

0 Kudos
Message 6 of 12
(3,362 Views)
I tried your code, I still have that delay problem.

Maybe it's some strange problem with my computer.

I'll try it on a different computer, WinXP, tomorrow.
0 Kudos
Message 7 of 12
(3,298 Views)
Hello I am on a dire need for a veteran's wisdom on solving my two P-controllers unto two separate servo drivers that I drive between +/-10V much has been said about these new M-series boards but it does not hack it? Here is code.

Berns
Bernardino Jerez Buenaobra
Senior Test and Systems Development Engineer
Test and Systems Development Group
Integrated Microelectronics Inc.- Philippines
Telephone:+632772-4941-43
Fax/Data: +632772-4944
URL: http://www.imiphil.com/our_location.html
email: Bernardino.Buenaobra@ph.global-imi.com
0 Kudos
Message 8 of 12
(3,357 Views)
Dr. Berns,

You seem to have posted into the middle of this unrelated thread; your post didn't show up on the main board.

Try your posting process over again from scratch, making sure you copy and paste your text from here so you don't have to type it again.
0 Kudos
Message 9 of 12
(3,354 Views)
Hi Dr. Berns,

As bmihura said you should post your question to a new thread instead. Since your question is specific to data acquisition, you should post your new thread in the Multifunction DAQ Forum to get the best chance of a good response.

Good luck!
- Philip Courtois, Thinkbot Solutions

Thinkbot Solutions
0 Kudos
Message 10 of 12
(3,335 Views)