LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

front panel is frozes

Hello,
 
I have front panel froze problem in my vi.
My vi contains Activex control and DAQ.
 In vi properties I have to choose execution mode
"user interface" because otherwise my activex control do not communicate with external device.
At all other modes there is no front panel frozen problem. Is there a known solution?
 
Thank you in advance
 
Vardan
 
0 Kudos
Message 1 of 11
(3,582 Views)

This is just a wild guess, but do you have loops?  Do you have any wait in the loops?  Do you have multiple loops that can run in parallel?

The above was just a wild guess.

Actually, is it possible for you to post the code and we can have a look at it.

Thanks,

RayR

0 Kudos
Message 2 of 11
(3,581 Views)

Hello RayR,

 

Thanks for your replay.

 

Here is the code.

Please pay attantion that it is not frozen. It will be frozen as you  try

to move it.

Thanks

Vardan

0 Kudos
Message 3 of 11
(3,572 Views)
Hi Vardan,

I downloaded your file, but the arrow is broken to start with.
I am unable to load your Motion Control

Sorry
Van L
NI Applications Engineer
0 Kudos
Message 4 of 11
(3,530 Views)
Hello,

Thank you for downloading the vi.

I think this is due to drivers which are missing in your computer.
The motion control is thorlabs ATP motion controls.
http://www.thorlabs.com/Support.cfm?Section=7&pageRef=5&viewTab=1

It has simulation regime.

I do not know what can be done in this situation. Excuse me for
inconvenience.

Best wishes

Vardan
0 Kudos
Message 5 of 11
(3,501 Views)
We had downloaded the vi file, but i don't know how we can to change the serial number. thank's for your help
0 Kudos
Message 6 of 11
(3,335 Views)

Hi Vardan,

      Here's your code - cleaned-up a bit.  I think RayR may be on to something re:loops - note that until "Start" is pressed, the main loop is "free-running".Smiley Surprised

(you probably want to add a delay in the False case...):smileywink:

 

Cheers!

Message Edited by tbd on 10-05-2008 01:46 AM
"Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)
Download All
0 Kudos
Message 7 of 11
(3,326 Views)

tbd wrote:

      Here's your code - cleaned-up a bit. 


(Amazingly, the cleanup button in LabVIEW 8.6 does about the same thing. :D)

 

The loops are not the problem, you problem is the priority setting at "time critical priority(highest) ". Set this back to "normal" and thing will improve. 😄

 

A VI set to time critical will focus mostly on code and will postpone any UI features, thus your VI seems frozen when you run it.

 

(Also your "delay values" does not do anything, since you don't use the output)

Message Edited by altenbach on 10-05-2008 09:14 AM
0 Kudos
Message 8 of 11
(3,300 Views)

altenbach wrote:

tbd wrote:

      Here's your code - cleaned-up a bit. 


(Amazingly, the cleanup button in LabVIEW 8.6 does about the same thing. :D)


I wish I could see what you mean, but alas, my LV version # is smaller than yours.

(sigh)

"Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)
0 Kudos
Message 9 of 11
(3,278 Views)

tbd wrote:

I wish I could see what you mean, but alas, my LV version # is smaller than yours.

(sigh)


It actually works amazingly well here, but of course it does not remove obsolete stuff, such as the sequence structure.

 

Here's the before (top) and after(bottom) picture. All I did was load the VI and press cleanup. What a time saver! 😄

 

Message Edited by altenbach on 10-05-2008 10:37 PM
Message 10 of 11
(3,270 Views)