LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do use synchronization VIs for motion control in combination with triggered acquisitions?

I have a PCI-6602 and a PCI-6024E in combination on a single PC. I rotate a pulsed motor in Clockwise direction and start and stop the acquisition by detecting edges of the Gating counters unto the Source counters. I have successfuly done it with synchronization VIs for the three parallel loops but can't repeat them when doing a counterclockwise turn. How can this be done?
Bernardino Jerez Buenaobra
Senior Test and Systems Development Engineer
Test and Systems Development Group
Integrated Microelectronics Inc.- Philippines
Telephone:+632772-4941-43
Fax/Data: +632772-4944
URL: http://www.imiphil.com/our_location.html
email: Bernardino.Buenaobra@ph.global-imi.com
0 Kudos
Message 1 of 3
(2,972 Views)
I took a look at your code, but will need more clarification. What do you mean by "can't repeat them when doing a counterclockwise turn?"

One thing I noticed was that you are always writing a constant True value (with a local variable)to the Rotation X control within the first frame of the sequence structure of the middle while loop. With that constant being written to that local variable, you will never go into the CCW case of the second sequence of the middle while loop. Did you mean to be writing this constant True value to the Rotation X local?

Regards,

Todd D.
National Instruments
0 Kudos
Message 2 of 3
(2,972 Views)
Thanks Todd,

I have completely modified the code so that I use an occcurence scheme in combination with state machine instead. Before I got this answer the code was already working on my optical bench with some minor bugs with the state events that I can't seem to do the sequence right that is: X-scanCW + Start_Acq then Y-scan + Stop_Acq then X-scanCCW + Start_Acq then Y-scan + Stop_Acq. Youre comments will certainly be welcomed.
Bernardino Jerez Buenaobra
Senior Test and Systems Development Engineer
Test and Systems Development Group
Integrated Microelectronics Inc.- Philippines
Telephone:+632772-4941-43
Fax/Data: +632772-4944
URL: http://www.imiphil.com/our_location.html
email: Bernardino.Buenaobra@ph.global-imi.com
0 Kudos
Message 3 of 3
(2,972 Views)