DataBus

Put data from a function onto a bus

Inherits from:: Object

DataBus evaluates a function at a regular time interval and puts the resulting data on a control bus on the server.

Creation / Class Methods

*new(function,nchan,server)
Creates a new DataBus
nchan
Number of channels for the bus. The function should give as a result an Array with the same size as the number of channels given.
server
An instance of Server. If none is given the default server is used.
function
Function to be evaluated which provides the data for the server

Accessing Instance and Class Variables

renew
Create the bus, and start the updater. This is called automatically when a new instance is created, but it may be used if the method free was called previously during the session.
free
Free the bus, and stop the updater.
scale
Scale factor with which the result of the function is scaled before putting the values on the bus.
scale_
Set the scaling.
dT
Get the update rate. This is the delta time at which the function is evaluated.
dT_(dt)
Set the update rate. This is the delta time at which the function is evaluated.
bus
The Bus object to which the data is set.
func
The function to be evaluated.
nc
Number of channels of the bus.
server
The Server object on which the bus is.

This helpfile was created with the class HelpFile2