LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Encoder displacement VI Help

Howdy Everyone,

 

I am currently working on a project that requires me to get the displacement of an incremental encoder with 2 channels A and B. I already have the counts for A but I still did not find any VI that calculates displacement. I am currently using a Wireless Data Aquistion System "WLS-9163" with NI-9215 module.

 

Any help would be really appreciated.

 

Thanks.

Mechanical Engineer
0 Kudos
Message 1 of 3
(2,374 Views)

Hello UnkownStudent,

 

We do have VIs which measure the linear position, however they are only set up for counter measurements (See Measure Angular Position with DAQmx as an example) and will not work with the NI-9215 module because it is an Analog Input module.  How are you currently measuring the counts for A?

 

Lynn

National Instruments
Senior Systems Engineer
0 Kudos
Message 2 of 3
(2,341 Views)

Thanks for replying. I am currently using the following code to measure A channel counts. I already tried and it is working properly for counting up and down.

Mechanical Engineer
0 Kudos
Message 3 of 3
(2,318 Views)