Se-Scope

Verwandeln Sie jedes Gerät mit drei einfachen Schritten in ein Oszilloskop

Fügen Sie die Scope-C-Bibliothek hinzu

#include "Scope/Builders/ScopeFramedStack.h"

// Adjust it with your setting
ScopeFramedStackConfig config = {
    .addressesInAddressAnnouncer = 6,
    .callback = &transmit_data,
    .timestamp = ×tamp,
    .amountOfChannels = 4,
    .timebase = 0.001f,
    .sizeOfChannels = 50
};

// Build it
ScopeFramedStackHandle scope = ScopeFramedStack_create(config);

// Run it
ScopeRunner_run(scope);

Geben Sie plottbare Variablen in die Bibliothek ein

//  Optionally, the scope can present a range of variables to the gui for easy selection 
AnnounceStorage_addAnnounceAddress(addressStorage, "sinus", &sinus, SE_FLOAT);
AnnounceStorage_addAnnounceAddress(addressStorage, "cosinus", &cosinus, SE_FLOAT);
AnnounceStorage_addAnnounceAddress(addressStorage, "leistung", &leistung, SE_FLOAT);

Feed plot

Transportieren Sie die Bibliotheksausgabe zu einem Uart Ihres Mikrocontrollers

// Once running, the data can be sent by uart to the gui
// Get the transceiver interface
ITransceiverHandle transceiver = ScopeFramedStack_getTranscevier(scope\);
// Check pending output data
uint32_t dataPending = transceiver->outputSize(transceiver);
// Copy from scope to output buffer
uint8_t buffer[1000];
transceiver->get(transceiver, buffer, dataPending);
// Send to uart
uartSend(buffer, dataPending);

Adresse

Kapellenstrasse 7
CH-3011 Bern

Industriestrasse 22
CH-6060 Sarnen

Kontakt

Email: info@sourceengineers.com
Telefon: +41 32 511 40 83