10-11-2006 04:11 AM
10-12-2006 05:11 AM
10-12-2006 07:55 AM
Lets see if I can help out with the "WHY" part of this question.
LV support multi-threading (which allows more than one thing to happen aht the same time).
For the most part LV takes cae of all of the deatils to make that happen without effort on our parts.
THere are some things that have to be "handled delicately" (Wicked Witch of the West, Wizard of Oz)
Examples of these include the loading and unloading of VI. The "Delicate operations" that could blow-up in multi-threading are implemented in the UI Thread. IN LV the UI THread is single-threaded (only one thing can happen at a time) . This makes sure you do not have conflicts.
Opening a VI is handled in the UI thread.
Modal dialogs (like the one button dialog) also run in the UI thread.
So the previously suggested work-around is a "work-around" because the VI is not modoal.
I hope this helps,
Ben
10-12-2006 08:13 AM
10-12-2006 09:17 AM
10-12-2006 09:26 AM - edited 10-12-2006 09:26 AM
Hi Jon,
If this is a bug, it is a bug that goes back to LV 6.1 or earlier.
I have had to write my own dialogs going back at least that far when I wanted to keep background stuff going.
My mention of "modal" may be wrong. (if the documentation.... don't go there Ben!) ![]()
I still believe the dialogs run in the UI thread.
I hope to hear back on this issue and learn something in the process!
Thank you,
Ben
PS Jon wrote "As to the actual problem this was reported to R&D (42B4G9OZ CAR ID) for further investigation. "
What exactly is the nature of that CAR so I can post it to our bug thread?
Message Edited by Ben on 10-12-2006 09:28 AM
10-17-2006 08:52 AM
Thank you for the replies.
I made a VI that pops up a number of dialog boxes and my CPU usage was around 0 also.
I had a hunch that it was something in that line. I have actually considered replacing all Labview dialogs with my own dialogs because they always pop up on the wrong screen/wrong place. That means that they have to be reentrant, which caused me some problems. Has anyone written a reentrant dialog?
Christie