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

Hallo,

ich würde gerne in VB.net VisualBasic Messdaten, z.b. von Accelerometerbricklet kontinuierlich in einer Liste oder einem Diagramm darstellen und speichern. hat hierzu jemand eine Idee? Das Ganze sollte etwa so funktionieren:

 

1. Beschleunigungssensor starten

ipcon.Connect(HOST, PORT) ' Connect to brickd

acc.SetAccelerationCallbackPeriod(100)

AddHandler acc.Acceleration, AddressOf AccelerationCB

 

2.Zeit, x, y, z in einen String schreiben bis der Sensor gestoppt wird

Sub AccelerationCB(ByVal sender As BrickletAccelerometer, ByVal x As Short, _

                    ByVal y As Short, ByVal z As Short)

        Zeit(Me.Count) = Date.Now

        If Me.Liste <> "" Then Me.Liste = Me.Liste & vbNewLine

        Me.Liste = Me.Liste & Zeit(Me.Count) & vbtab & x.ToString & vbTab & 

                  y.ToString & vbTab & z.ToString

End Sub

 

3. Hierzu parallel sollen die letzten (aktuellen) 1000 Werte in einer Textbox oder in einem Diagramm dargestellt werden, aber Wie? Die graphische Darstellung ist kein Problem. Nur, wie kann ich den 1000-Werte-Block abgreifen ohne die Messwerterfassung lange zu unterbrechen.

 

4. Die Messwerterfassung wird durch Button_Click wieder beendet

Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click

      Try

            Me.ipcon.Disconnect()

      Catch ex As Exception

      End Try

End Sub

 

Geschrieben
  • Autor

Danke für den Hinweis,

damit werde ich mich dann gleich mal beschäftigen.

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.