10-24-2006 01:22 PM
10-26-2006 02:38 PM
Attached find a .VI that will provide Step and Dir outputs for X-Y movement using a multifunction DAQ card. Written in Labview 8.2. Only one axis can move at a time becuase the vi's used for the step output uses both of the board's counters in order to function.
Barry
10-26-2006 05:55 PM
Hi Barry,
Using event structures is probably not the best way to ensure mutually exclusive access to the resources. Even though the actions are contained in different events, LabVIEW still monitors the actions happening in the other event cases. Your best bet would be to use a case structure to ensure that the actions are contained in mutually exclusive parts of the code...or possibly get another board so that you don't have to worry about sharing the counter resources...
Please let me know if that helps, or if you're still having trouble...
Regards,
Nicholas B, National Instruments