Jump to content
View in the app

A better way to browse. Learn more.

Tinkerunity

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Geschrieben

Can someone help me set a higher sampling frequency on the Master brick?

 

I am currently running a Load cell bricklet and IR displacement sensor bricklet.  Is there a software call function that does this?  I am interacting with the MasterBrick using Matlab.

 

Thank you kindly

Geschrieben

Hi,

 

to me it does not seem clear, what you mean with "sampling frequency of the master brick". If you want to frequently read the measured weight of the load cell you should call setWeightCallbackPeriod(period_in_ms long) of the load cell API. Maybe take a look at the MATLAB example to see how it's done. The IR distance API works similarly.

 

Hope that helps...

 

Regards

  Bernhard

Geschrieben
  • Autor

Thank you kindly, Bernhard.

 

Having I am trying to visualize it in real time in Matlab and it seems like MATLAB is bottlenecking how fast real-time reading can be done.  I will try to use a call function and store the faster sampled data (using the callback function) separately.

 

I've attached the MATLAB script if you are interested.  The main part that slows down the acquisition (and thus storage of data) in this script is the "draw now" function.  I have recently made a GUI that uses this code as the base and allows me to stop and save the data to a specified file but I would like higher sampling rates with a callback function and seperate storage location, I hope.

 

Thanks,

Paul

LoadCell_and_IR.m

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Gast
Reply to this topic...

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.