LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

There is a lag between the data acquired by LabView and the source of the data.

I am trying to build a program to interface between an optical encoder that will sense the position of the pedals on an exercise bike and LabView. I have a program that does this, but there is a delay in the angle read by LabView and the actual positioning of the pedal. I am using a sampling continuously, at a rate of 1000 Hz. The optical encoder updates about once every millisecond, so the problem does not seem like it could come from there. Also, I built an executable file to run the application on another computer, and it seemed to be sampling at a lower rate, even though the computer used was faster than the one I used to make the program.
0 Kudos
Message 1 of 2
(2,485 Views)
It is very difficult, particularly in a data acquisition application, to diagnose a problem with only a description of the possible results. If you can include some of your code it may help. Also a little more detail in what you are seeing and your hardware. You say that your encoder updates at ~.001sec but what does that mean? How is is connected to your computer that it updates at that rate (a timing disk and LED/phototransistor update as a function of how fast the disk is turning and how many apertured it has). How are you getting your data out of your daq and where are you seeing the delay? What is the magnitude of your delay?

P.M.
Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



0 Kudos
Message 2 of 2
(2,475 Views)