|
Code Packages
1
Add-on code processing modules
|
Provides a reference type to represent a channel More...
Public Member Functions | |
| Channel () | |
| Initialize a new instance of the Channel class More... | |
| Channel (string name, string group) | |
| Initialize a new instance of the Channel class with the specified Name and Group More... | |
| override string | ToString () |
| Shows the name and group of a channel More... | |
| void | UpdateStatistics () |
| Updates all statistical values More... | |
Protected Member Functions | |
| void | OnPropertyChanged (string name) |
Properties | |
| string | Color [get, set] |
| Gets or Sets the color of the channel More... | |
| dynamic | Data [get, set] |
| Gets or Sets the data of the channel More... | |
| double | Fs [get, set] |
| Gets or Sets the sampling rate (Hz) of the channel More... | |
| string | Group [get, set] |
| Gets or Sets the group of the channel More... | |
| bool | IsSelected [get, set] |
| Gets or Sets the selection property of the channel More... | |
| string | Name [get, set] |
| Gets or Sets the name of the channel More... | |
| double | Period [get] |
| Gets the sampling period (Sec) of the channel More... | |
| int | Samples [get] |
| Gets the samples number from the channel More... | |
| Stats | Statistics [get] |
| Holds statistical values More... | |
| object | Tag [get, set] |
| Gets or Sets a Tag object to the channel More... | |
| TimeSpan | Time [get] |
| Gets the total duration of the channel More... | |
| string | Type [get] |
| Gets the Data type of the channel More... | |
Events | |
| PropertyChangedEventHandler | PropertyChanged |
Provides a reference type to represent a channel
| ChannelData.Channel.Channel | ( | ) |
Initialize a new instance of the Channel class
Example
The following example instantiates one Channel (c1) and assigns its reference to another channel (c2).
Since the Channel type is a class, the variables pass by reference and not by value.
| ChannelData.Channel.Channel | ( | string | name, |
| string | group | ||
| ) |
|
protected |
| override string ChannelData.Channel.ToString | ( | ) |
| void ChannelData.Channel.UpdateStatistics | ( | ) |
Updates all statistical values
If the data type is not double array (double[]) NaN is returned
|
getset |
Gets or Sets the color of the channel
|
getset |
|
getset |
|
getset |
|
getset |
Gets or Sets the selection property of the channel
|
getset |
|
get |
|
get |
|
get |
Holds statistical values
|
getset |
Gets or Sets a Tag object to the channel
|
get |
|
get |
| PropertyChangedEventHandler ChannelData.Channel.PropertyChanged |