Jump to content

wj201245

Members
  • Gesamte Inhalte

    6
  • Benutzer seit

  • Letzter Besuch

Alle erstellten Inhalte von wj201245

  1. Vielen Dank für ihr Progamm. Ich habe noch eine Frage, wie ich die Periode von ContinuousAcceleration16BitCallback vorgebe?
  2. Hallo. Kann jemand dieses Programm ändern. Ich brauche ein Programm, das jeder 0.5ms ein Beschleunigungsdata von Achse[X] zeigt. Bitte nutzen Sie ContinuousAcceleration16BitCallback in der Sprache vom MATLAB. Vielen Dank. function matlab_example_callback() import com.tinkerforge.IPConnection; import com.tinkerforge.BrickletAccelerometerV2; HOST = 'localhost'; PORT = 4223; UID = 'XYZ'; % Change XYZ to the UID of your Accelerometer Bricklet 2.0 ipcon = IPConnection(); % Create IP connection a = handle(BrickletAccelerometerV2(UID, ipcon), 'CallbackProperties'); % Create device object ipcon.connect(HOST, PORT); % Connect to brickd % Don't use device before ipcon is connected % Register acceleration callback to function cb_acceleration set(a, 'AccelerationCallback', @(h, e) cb_acceleration(e)); % Set period for acceleration callback to 1s (1000ms) a.setAccelerationCallbackConfiguration(1000, false); input('Press key to exit\n', 's'); ipcon.disconnect(); end % Callback function for acceleration callback function cb_acceleration(e) fprintf('Acceleration [X]: %g g\n', e.x/10000.0); fprintf('\n'); end
  3. Aber das ist nur ein Beispiel für AccelerationCallback, ich brauche ein Beispiel fÜr ContinuousAcceleration16BitCallback.
  4. Vielen Dank für ihre Antwort. Meine Progrmmiersprache ist Matlab. Die Beschreibung in der Doku ist nicht ausführlich ,und ich kann nicht sehr gut verstehen.Es gibt auch kein Beispiel für ContinuousAcceleration16BitCallback.
  5. Hallo, kann jemand mir sagen, wie ich ContinuousAcceleration16BitCallback für Accelerometer Bricklet 2.0 nutzen. Wie so ich programmieren? Vielen dank.
×
×
  • Neu erstellen...