LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

explanation of code

Could someone please explain to me what is happening in the code attached (bmp file)

A step-by-step runthrough would be of most use

Thanks
0 Kudos
Message 1 of 2
(2,414 Views)
The Analog acquisition (bottom) is first configured. The internal clock is disabled and it is set to use the shared RTSI line 0 as its clock. This acquisition clock will be driven by the Motion controller board (top). The encoder of one of the motion controller board axese is reset to zero and one of the motion controller's signals (can't tell which one, from the diagram since it's a FP control and not a BD constant) is routed onto the shared RTSI line 0, to be used as the clock for the analog acquisition. This signal is almost certainly one of the axis encoder phases, so that as the motion profile is executed, data is clocked in at every falling edge of one of the encoder phases. This allows the analog values to be exactly correlated to postion (the aquire
d points are equally spaced in motion axis position, rather than time). Next a point to point motion is configured, the Analog acquisition is started, and then the motion is started. While the move is underway, data is read from the buffer and graphed. Once the motion profile is complete, the acquisition is stoped, and error dialogs are presented, if applicable.

Cheers,

-Jim
0 Kudos
Message 2 of 2
(2,414 Views)