For efficiency's sake, they are cached, meaning the change of a register is not immediately written through to the device. MemoryRegister represents a register inside of a device. These conversions are implemented in DeviceInterface (see the TriggerValue setter method in SmartScopeSettings.cs). Therefore, some logic is required to convert from physical values to register values (eg GUI trigger slider to TRIGGER_LEVEL bytevalue). ![]() ADC: bits 5 and 4 of register 6 in the ADC defines wheth er its data is in two's complement or simply offset binary (see the MAX19506 datasheet p22).FGPA: the TRIGGER_LEVEL register defines the voltage of the analog trigger level (FPGA register 7, see the FPGA register list).These are the 'parameters' of certain functionalities of these chips. To use DeviceInterface, you don't actually need to understand these internals, so this is just a rough sketch of the functionality.Īll 'smart' chips (PIC, FPGA, ADC) inside the SmartScope have their registers, typically bytes. Scope.GeneratorToDigitalEnabled = true IWaveGenerator examples - Generate digital waves CommitSettings must be called to make the samplePeriod setting effective.Scope.SetDigitalOutputVoltage(DigitalOutputVoltage.V3_0) (optional) To be safe: first disable all outputsīyte customWave = new byte.When using the SmartScope for generating a custom analog waveform, follow this procedure: IWaveGenerator usage - Generate analog waves Implements IDevice, provides properties and methods to control the wave generator and upload waveforms. Provides a DataSource, a class which fetches and records scope data in its own thread. Implements IDevice, provides properties and methods to control the oscilloscope and get scope data. You're going to use this interface the most when working with the SmartScope. Implements an analog and/or digital wave generatorĪ simple interface to the device's status (ready or not) and its serial number IScope ![]() Implements a general device, could be your fridge There are three interfaces used to implement the SmartScope Interface ![]() To get a fallback device at startup, call DeviceConnectHandler(DeviceManager.fallbackDevice, true) after DeviceManager instantiation and before DeviceManager.Start() Devices This way, you always have a device to work with. When a device is disconnected, the DeviceConnectHandler is called with the DummyScope (the so-called fallback device). Instantiate it with a DeviceConnectHandler callback, called whenever a device connects or disconnects. The device manager class is the starting point to work with the DeviceInterface library. Special Note: Kickstarter recently disabled remote embedding for images on project pages, so embedding code doesn't work on project pages (yet) - just everywhere else.Documentation needs to get updated since major refactoring of low-level device interfacingįor a very simple usage example, see our console-demoĭeviceInterface translates the SmartScope API to hardware I/O. ![]() Here are a few quick snippits of code you can use to embed your personalized widget on your website, in your blog, and even on your favorite forum.īBCode for forums Copy BBCode Help your backers reach your daily goals and help others see how you're doing.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |