|
Counter & DIO not working every time
Hey guys,
We're using the Counter class of the WPI Library in LabVIEW to count the rising edges of a proximity sensor (simple DIO through the Sidecar) in its semi-period mode.
Our procedure at the beginning is to turn on the cRIO and run Robot Main/deploy the whole robot project. This first time, our Counter does not register anything without any errors). However, if the robot project is re-deployed in the same way without any changes to the code, the counter works perfectly.
The raw DIO data works perfectly fine (we get raw feedback from our sensor regardless of the number of times it has been deployed) but the Counter appears to be unreliable.
Can anyone give any advice on this? Is this a problem others have replicated?
__________________
University of Michigan Computer Engineering '17
FRC 2337 student alumni (2010-2013)
|