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.

Mutiple read-access to Industrial-Counter-Bricklet from two applications

Featured Replies

Geschrieben

Dear List

I am running a measurement-station using an Industrial-Counter-Bricklet to monitor the frequency given by an encoder:

  • One application is accessing the Industrial-Counter-Bricklet every 5 seconds reading the current frequency on channel 0 and provides the information to a Prometheus-monitoring system.
    • That works perfectly
  • A second application could take usage of the measurements of the Industrial-Counter-Bricklet to monitor its own functionality.
    • For this, it has to read the frequency on channel 0 of the Industrial-Counter-Bricklet as well. This in a similar rate such as every 5 seconds.

Question:

  • Is it safe and reliable to access an Industrial-Counter-Bricklet (or any other bricklet) reading the values from two individual applications using the same host and port?
  • Or is it recommended to use a second bricklet.

To keep the two applications fully independently, I try to avoid an exchange of the measurements between the two applications through a kind of communication-protocol.

Looking forward to any suggestions and hints.

Cheers,

Yvo

Geschrieben
Quote

Is it safe and reliable to access an Industrial-Counter-Bricklet (or any other bricklet) reading the values from two individual applications using the same host and port?

Yes, this should be safe. The Industrial Counter Bricklet performs all its measurements and calculations independent of any data communication and simply returns whatever data it has stored internally upon request, so querying it from multiple clients should be perfectly fine. The bricklet should be able to handle several hundred queries per second, so two queries per five seconds is basically nothing.

Geschrieben
  • Autor

Hi MatzeTF

Fantastic. Thank you very much for the quick and positiv replay. Then I will implement it in this way.

Cheers. Yvo

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.