sccn / lsl_archived

Multi-modal time-synched data transmission over local network
242 stars 134 forks source link

lsl get timestamp #328

Open ghost opened 6 years ago

ghost commented 6 years ago

Hi,

I am currently pushing: push_sample(double[]data, double timestamp) from a wristband. How do I not only pull the data but also the timestamp?

also why does the receiver lose the decimal numbers even though I send out a double with decimal numbers?

thanks in adavance

dmedine commented 6 years ago

Please look closely at the example programs for whichever language binding you are using. For example, in C++ you would do this to get what you want: https://github.com/sccn/labstreaminglayer/blob/master/LSL/liblsl/examples/C%2B%2B/ReceiveData/ReceiveData.cpp#L38

You should not be losing data. It's possible something is wrong with your data typing.

On 8/6/2018 5:22 PM, havyha wrote:

Hi,

I am currently pushing: push_sample(double[]data, double timestamp) from a wristband. How do I not only pull the data but also the timestamp?

also why does the receiver lose the decimal numbers even though I send out a double with decimal numbers?

thanks in adavance

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/sccn/labstreaminglayer/issues/328, or mute the thread https://github.com/notifications/unsubscribe-auth/ADch7sIp85UmtnA1-CVGlIcT4t4le_mYks5uOF8ugaJpZM4Vwl2b.