02-08-2013
02:15 PM
- last edited on
02-15-2013
09:57 AM
by
MaryH
Hi all,
This is my first post and first attempt at writing a labVIEW code. I am having a problem with two parallel while loops in he same VI. One while loop is a PID circuit that adjusts an angle of a THORLAB rotation mount using ActiveX; the second while loop monitors a photodiode voltage through DAQ. The problem occurrs when initiating a move command for the rotation mount through the PID ActiveX while loop. When I do this, the data acquisition while loop seems to stop running while the mount is moving. You can see the result in the front panel on the bottom graph. It is continous, then discontinous, and then continous again. The discontinuity occured while the mount was running.
I want the code to sample and record the photodiode voltage continously while the mount is moving. Does anyone have an idea why it is not? I am honestly lost as I have little experience with labVIEW.
Thanks,
-David
Solved! Go to Solution.
02-08-2013 04:03 PM
Since you are new to LabVIEW. What I suggest is. Try to go to Help menu and in the sub menu there is "Find Examples". Start there. You probably not setup the DAQ correctly. Start from examples will greatly help
02-15-2013 07:46 AM
I will look through the examples, but can anyone specific help?
I have tried a few things but the problem still persists. It seems like the loops are not running asynchronously like they are supposed to. I don't really know what to try. I need the DAQ to take data throughout the motor control move.
02-15-2013 08:56 AM
02-15-2013 09:09 AM
I found the problem. I had bwait in ActiveX wired as true, which basically makes the program totally wait until the move is finished. I wired it to false and all is good.
02-15-2013 10:29 AM
Here are better pictures (as requested) for those that might have the same problem.