07-01-2008 08:34 AM
07-07-2008 06:21 PM
Hi isso,
It sounds like you may want to synchronize the encoder measurements with your load cell measurements. This will let you have a theta value for each load cell value. This can be accomplished by buffering the angular position measurements using the same sample clock as the load cell measurements. The example VI Meas Angular Position-Buffered-Cont-Ext Clk.vi shows how to setup a buffered continuous angular measurement. This example can be found in the NI Example Finder. In LabVIEW go to Help >> Find Examples… >> Hardware Input and Output >> DAQmx >> Counter Measurements >> Position >> Meas Angular Position-Buffered-Cont-Ext Clk.vi. Once you integrate this example code with your load cell measurement code the external sample clock will be specified as the AI Sample clock such as “/Dev1/ai/SampleClock”. Then to make sure they are synchronized start the encoder task before the load cell task. Please let me know if you have any questions and take care.
Thanks,