05-06-2008 08:36 PM
05-06-2008 08:39 PM
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
05-06-2008 09:22 PM
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
05-07-2008 02:43 PM
05-08-2008 04:35 PM
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
10-04-2008 11:13 PM
10-05-2008 01:42 AM - edited 10-05-2008 01:46 AM
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".
(you probably want to add a delay in the False case...):smileywink:
Cheers!
10-05-2008 11:12 AM - edited 10-05-2008 11:14 AM
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)
10-05-2008 10:40 PM
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)
10-06-2008 12:36 AM - edited 10-06-2008 12:37 AM
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! 😄