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 zusammen,

 

ich habe ein C# Programm auf dem RED-Brick gespeichert. Dieses Programm wird über ein JAVA Programm (Basis: http://www.tinkerforge.com/en/doc/Software/Bricks/RED_Brick_Java.html#red-brick-java-examples) unregelmäßig vom PC aus gestartet.

Jetzt ist es nötig dem C# Programm bei jedem Start andere Input Argumente (Drei winkel Werte und eine Achsen ID) zu übergeben. Wie ist dies vom externen JAVA Programm aus möglich?

 

Perfekt wäre es außerdem, wenn die return variablen des C# Programms vom JAVA Programm ausgelesen werden könnte. Gibt es dazu auch eine Möglichkeit?

 

Vielen Dank

Geschrieben

Das kannst du alles tun.

 

Um die Argumente zu ändern musst du dir wie im Start Program Example erstmal das passenden Program Object suchen. Dann per allocateString/setStringChunk deine Argumente in String Objects packen. Diese String Objects dann in eine List Object stecken per allocateList/appendToList. Diese List dann per setProgramCommand als Arguments List setzen. Da setProgramCommand neben Arguments List auch noch den Command String, die Environment List und den Working Directory String als Parameter erwartet, muss du diese zuerst mit getProgramCommand abholen.

 

Über getLastSpawnedProgramProcess kannst du den zuletzt gestarteten Prozess für diese Program abfragen. Über getProcessState kannst du dann u.a. den Exit Code des Prozesses abfragen.

 

Alles leider nicht ganz trivial. Ich erstelle bei Gelegenheit mal Beispiel dazu.

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.