Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

I'm using "measure buffered position(ni-tio).vi and trying to log the binary array to a file, but i only get the number that corresponds to the max position of my encoder and no in between values

I'm using a quadrature encoder with indexing and a NI-6601 board and LV 6.0. I am basically logging an analog signal and the position of my encoder simultaneously, so it's angle stamping. I decided to use the measure buffered position(ni-tio).vi example vi to get the position, and I added "write to spreadsheet.vi" to the while loop, but when I look at the data, even if I convert the data type of the array, I get values of 360 only ( max. position of my encoder). I need all of the values, can someone help?! I'm new at LV and could really use some help
0 Kudos
Message 1 of 2
(3,123 Views)
Hello;

It's loooking like the main problem there is not on the data acquisition task, but on the data logging task.

To make sure that is the case, create an indicator on the front panel, containing the acquired values. If you can see the values changing, the data acquisition is being done properly.

In that case, you will need to change the way you are writting that information to the file.

The best way to go about that is to start with the Labview shipping example named High Speed Data Logger.vi. That vi shows how to log data properly.

Hope this helps.
Filipe A.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(3,123 Views)