Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 66796

Read/Write Function reads wrong value?

$
0
0

Hy,

im using the NI Quadrature Encoder on my FPGA.

(http://www.ni.com/white-paper/6608/en/)

I add some inputs, so that its possible to set an offset value.

vi_encoder.png

All in all the VI on the FPGA works fine with my encoder.

If i start the VI on my FPGA, the position value is 0, due to the "First run?" Element.

 

Now i used the Read/Write Control in a while loop on my Host VI to get the current value of the encoder.

After i start my host vi the position indicater shows allways the value "2".

If i use the highlight function, the value stays at "0".

 

Thats a really strange behavior, i dont know what can be the source of that problem.

All positionsoffset values are 0 and the encoder inputs on my 9401 module are connected with ground.

The position value is only written on the fpga, nowhere else.

 

Anyone got an idea for that?

 

Thanks a lot.

Untitled.png

 

 

 


Viewing all articles
Browse latest Browse all 66796

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>