I am using the DAQmx 8.5 with .Net to get some counts samples. I am after ticks and I think that I am getting the nubmer that I want except when my encoder moves past the zero mark. I am getting a very high positive number and I want the negative number.
Is there an easy way to do this?
I tried to find documentation saying what the offest number was, but couldnt' find this, can anyone point me in the right direction?
Using vb.net 2005
Pretty much altered the "Measure the Angular Position Buffered Count Ext Clock" example.
code something like
:
dim t as new task
t.cichannels.createangularencoderchannel("dev2/0", "", x4, false, 0, ahighbhigh, 20000, 0, ticks)
t.timing.configuresampleclock("/dev2/pfi28", 20000, rising, hardwaretimedsinglepoint)
dim cr as counterreader
me.label.text = cr.readsinglesampledouble
-----------
How do I get the neg value instead of a larg postive value?
Thanks for any help,
CM