Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question about STREAM vs. FAST modes #4

Open
ndrouillard opened this issue May 14, 2021 · 2 comments
Open

Question about STREAM vs. FAST modes #4

ndrouillard opened this issue May 14, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@ndrouillard
Copy link

I am trying to acquire data at 20 kHz, but for the entire duration of a separate event. In essence, I am moving a device and acquiring data at the same time and I need the data to be recording while this device is moving. Would it be best to use STREAM or FAST to do this? Also, would it be best to have the data acquisition and the moving of my device in two separate threads, so that they can be run simultaneously?

As of right now, I am able to move and acquire at the same time, but the FAST acquisition completes before the device is done moving. A

Any help is much appreciated.

Nathan

@ndrouillard ndrouillard added the enhancement New feature or request label May 14, 2021
@codenio
Copy link
Owner

codenio commented May 15, 2021

I am moving a device and acquiring data at the same time and I need the data to be recording while this device is moving.

The following ideas could be given a try

  • using external trigger to sync capture with movement. if you are trying to capture data at dicrete positions during movement we can sync the capture using discrete position based triggers.
  • As the velocity is known, you could capture several times throughout the movement and join the captured data to make it a time series(data with respect to time) and then use velocity to convert it into Distance Series (data with respect to distance).
  • Use BL_MODE_STREAM for continuous waveform capture untill movement gets completed.

Would it be best to use STREAM or FAST to do this?

  • BL_MODE_FAST - analog capture at the fastest rates available
    • BL_MODE_FAST is recommended for analog waveform capture only
  • BL_MODE_STREAM - streaming mixed signal capture
    • BL_MODE_STREAM is used for continuous waveform capture.

As the Documentation and community around bitscope is limited, i am unable to use BL_MODE_STREAM so far. if you have any supporting document or pointers kindly let me know.

would it be best to have the data acquisition and the moving of my device in two separate threads,

Threads runs under the same process, and only one thread run at a time (If i am not wrong)
Instead can you try multi processing..? where separate process can be invoked to run simultaneously.

Hope it helps
codenio
(Aananth)

@ndrouillard
Copy link
Author

ndrouillard commented May 15, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants