Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

quadrature encoder 9401 position

Hi,

 

I'm new to LabView and a part of my project is to plot the measured position of the motor. The compoents available to me are:

 

chassis: cDaq 9178

AI: NI9215

AO: NI9263

DIO: NI9401

 

and a xenus xtl amplifier and servo tube by copley motors. The whole thing is already build up and wired, so the DIO module is connected to the amplifier by a cable that covers the whole port.

My question is, how can I measure the position of the linear motor and plot it in a graph scaled to volts? I did already check

 

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000x1riCAA&l=en-US

https://www.ni.com/en/support/documentation/supplemental/21/using-quadrature-encoders-with-e-series-...

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000PAjbSAG&l=en-US

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000x0QHCAY&l=en-US

 

but wasn't able to find a useful example VI on how to use the quadrature encoders or even an example on how to set up (what it does is clear, but not how to implement it) one with daqmx.

 

Best

 

Lukas

0 Kudos
Message 1 of 4
(3,811 Views)

Hi lukasZH,

 

I found this example, perhaps this will help you out:

 

https://forums.ni.com/t5/Example-Code/Measure-Incremental-Quadrature-Encoder-Rotation-using-DAQ-STC/...

 

Best regards,

 

Lam

0 Kudos
Message 2 of 4
(3,792 Views)

See the answer I posted here some days ago in this discussion.

0 Kudos
Message 3 of 4
(3,786 Views)

Thanks for the help guys!

 

Tried to set it up but now an error 200479 (task can not be completed when running) occurs. I try to plot and save the measured distance. But the graph indicator for the encoder channel doesn't show anything.

 

The file is attached if anyones has a spare minute to take a look at it.

 

Best regards

0 Kudos
Message 4 of 4
(3,775 Views)