LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Active X and DAQ

Solved!
Go to solution

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

0 Kudos
Message 1 of 6
(2,883 Views)

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 

0 Kudos
Message 2 of 6
(2,873 Views)

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.

0 Kudos
Message 3 of 6
(2,845 Views)
At the very least, post images as snippets (see the help). Actual VIs would be fine as well. Fuzzy photo's are not.
0 Kudos
Message 4 of 6
(2,839 Views)
Solution
Accepted by topic author kehyler

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.

0 Kudos
Message 5 of 6
(2,833 Views)

Here are better pictures (as requested) for those that might have the same problem.

 

 

Download All
0 Kudos
Message 6 of 6
(2,815 Views)