CTplugin is a sink application that enables DataTurbine (DT) to view CloudTurbine data.  A corollary application is CTarchive, which converts DataTurbine data to CloudTurbine-formatted folders and files.

Usage:

CTplugin checks for available CloudTurbine source folders at startup and maps these to DataTurbine server sources/channels.

As shown in the following table, CloudTurbine channel extensions are mapped to a file type code which in turn corresponds to the way data is presented to the DataTurbine server.  The “typeDefault” startup argument provides the default file type code which specifies how to interpret data for files with unrecognized types.

Data type mapping
File extension File type code DataTurbine data type
“.bin” ‘B’ byte array
“.jpg” ‘B’ byte array
“.wav” ‘j’ 2-byte integer (short)
“.pcm” ‘j’ 2-byte integer (short)
“.mp3” ‘B’ byte array
“.pcm” ‘j’ 2-byte integer (short)
“.txt” ‘s’
“.f32” ‘f’ 4-byte floating point (float)
“.f64” ‘F’ 8-byte floating point (double)
“.i16” ‘j’ 2-byte integer (short)
“.i32” ‘i’ 4-byte integer (int)
“.i64” ‘I’ 8-byte integer (long)
“.Num” ‘N’ 8-byte floating point (double)
“.num” ‘n’ 4-byte floating point (float)
“.csv” ‘N’ 8-byte floating point (double)

 

You can run a quick CTplugin demonstration as follows:

Produce a sample CloudTurbine source using the CTsource example:

The image below shows CTadmin displaying information about this test source.

Start DataTurbine server:

Have CTplugin discover the sample source data in the CTdata folder and make it available to the DataTurbine server running at the default address (localhost:3333):

The images below show the rbnbAdmin utility listing the DataTurbine channels, including those from CloudTurbine; data from CloudTurbine channel c0 is displayed using rbnbPlot.