📄 readme.oscope
字号:
$Id: README.Oscope,v 1.2 2004/12/02 23:21:07 cssharp Exp $README for OscopeAuthor/Contact: tinyos-help@millennium.berkeley.edu@author Cory Sharp <cssharp@eecs.berkeley.edu>Description:Oscope is a library service for easily sending aggregated data in thepacket format recognized by the Oscilloscope visualization application,net.tinyos.oscope.Oscilloscope. Ten readings are aggregated into a singleOscope message. The Oscope service manages the aggregation and bufferingfor the application and immediately sends an Oscope message as soon as 10readings are aggregated.In the application module, sending data to Oscope is a single command: call OscopeCh0.put( myDataValue ); //a single uint16_t call OscopeCh1.put( myOtherValue ); //a single uint16_tThe additional wiring for the application configuration is also minimal: Main.StdControl -> OscopeC.StdControl; //initialize OscopeC MyApplicationM.OscopeCh0 -> OscopeC.Oscope[0]; //wire to channel 0 MyApplicationM.OscopeCh1 -> OscopeC.Oscope[1]; //wire to channel 1By default, this service supports up to two channels through theparameterized interface: 0 and 1. This quantity can be increased (ordecreased) with a compile time definition of OSCOPE_MAX_CHANNELS, forinstance by adding a line like this to your Makefile CFLAGS += -DOSCOPE_MAX_CHANNELS=4That's it! Go render some waveforms!Tools:Run the Oscilloscope Java visualization like this java net.tinyos.oscope.oscilloscopeKnown bugs/limitations:Some readings may be dropped by Oscope if a channel fills its oscope databuffer (10 readings) before that channel's previous data buffer has achance to get out over the radio. Dropped readings are indicated whenOscope.put returns FAIL instead of SUCCESS.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -