begin a stream transfer synchronously?

Discussions related to embedded firmware, driver, and user mode application software development

begin a stream transfer synchronously?

Postby reesebo » Fri Apr 14, 2017 12:04 pm

Hello,

I would like to use the stream interface, but would like to start the stream based on a timestamp. Is there a way to do this? I can't use the synchronous interface since it blocks; I need to be able to interrupt a transfer and my file size is large.

Thanks,

Reese
reesebo
 
Posts: 9
Joined: Tue Jun 23, 2015 2:40 pm

Re: begin a stream transfer synchronously?

Postby jump » Sun Apr 16, 2017 1:54 am

Why don't you start the synchronous transfer in a dedicated thread so that it doesn't block your program? Then based on the timestamp, you can choose to discard the samples if you don't need them or write them to a file or to whatever destination you need :)
jump
 
Posts: 56
Joined: Mon Mar 03, 2014 5:31 pm

Re: begin a stream transfer synchronously?

Postby reesebo » Fri May 19, 2017 7:43 am

Hi, thanks for the reply. Is it possible to gracefully interrupt a streaming transmit after it starts? I had some difficulty with this, so I went with the manual setup.

Thanks
Reese
reesebo
 
Posts: 9
Joined: Tue Jun 23, 2015 2:40 pm


Return to Software development

Who is online

Users browsing this forum: No registered users and 3 guests