The Gain/Offset I/O can be used to multiply a signal with a certain factor and to add
an offset.
Both an input offset and an output offset are available.
An input offset can be automatically removed using the Neutralize input offset action.
A typical application of the Gain/Offset I/O is converting sensor output signals. For example, if you are measuring with an acceleration sensor which produces 420 mV/g, you can convert the measured voltage to g's with a gain factor of 1 / 0.420 = 2.38.
To control the behavior of the Gain/Offset I/O, several properties and actions are available. These can be accessed through a popup menu which is shown when the I/O is right clicked.
The Gain property determines how much the input signal is multiplied. A value smaller than 1 reduces the signal magnitude. Several default values are available and it is also possible to enter a user defined value.
In the example with the accelerometer, you can convert the measured voltage to g's with a gain factor of 1 / 0.420 = 2.38. Note that you do not have to calculate this. You can enter this value directly as "1/0.420" or "1/420m".
To invert a source, you can use a Gain/Offset I/O with a gain of -1.
The Input offset is applied to the input signal before the gain is applied. Several default values are available and it is also possible to enter a user defined value. In the example with the accelerometer, you can subtract the component caused by gravity by entering an input offset of -167 mV.
When an input signal contains an offset, it can be removed automatically by using the Neutralize action. This action uses the current data in the I/O to determine the offset and stores the inverted value in the Input offset property to remove the offset. Each time new data arrives at the Gain/Offset I/O, this determined offset value is used.
The Auto neutralize action also removes the offset of data in the Gain/Offset I/O, but it uses the next data that will arrive in the I/O. Once the data has arrived, it will determine the offset and store the inverted value in the Input offset property to remove the offset. The action is then disabled again and each time new data arrives at the Gain/Offset I/O, this determined offset value is used.
This action is useful when a measurement setup with a Gain/Offset I/O that is used to compensate an offset in the signal is saved to disk, in a TPS file. Before saving the TPS file, the Auto neutralize action is enabled and then the TPS file is saved. When the TPS file is loaded again in a later situation, and the first measurement is performed, the auto neutralize action will determine the correct offset value and neutralize it.
The Output offset is applied to the input signal after the gain is applied. Several default values are available and it is also possible to enter a user defined value. In the example with the accelerometer, you can subtract the component caused by gravity by entering an output offset of -1 g.
When the source of the Gain/Offset I/O is a spectrum, you can use the Spectrum to density setting to convert a magnitude spectrum into a density spectrum. For example if the unit of the source spectrum is V, the output unit will become V/Hz.
You can change the displayed name of an object by giving it an Alias. This can be handy when you are dealing with a lot of objects and have problems keeping them apart. You can for example give channel one of your instrument the alias "Battery", when it is measuring a battery voltage. To give an object an alias, use the item Alias ... in its menu. To remove an alias and revert to the original name of the object, set the alias to an empty string.
An I/O has an output range which is based on the output range(s) of the source(s) of the I/O. The default output range is set to a value that will contain all theoretically possible output values of the I/O, based on the input range(s) and the operation the I/O performs. When an I/O is used as source for e.g. a graph, the range of the graph will be set to the output range of the I/O.
To overrule the default output range of an I/O, use the Output range property. A dialog box is opened in which the upper and lower limit of the output range can be entered. To avoid that an auto ranging input will override the manual selected output range, check the Fixed option.
When the source of an I/O has an auto ranging feature, the output range of the I/O will follow the output range of the source and be determined again each time the input range changes. To avoid that an auto ranging source will change the output range of an I/O, enable the Fixed property of the I/O.
An I/O has an output range which is based on the output range(s) of the source(s) of the I/O. The default output range is set to a value that will contain all theoretically possible output values of the I/O, based on the input range(s) and the operation the I/O performs.
All TiePie engineering instruments have ranges in a 2-4-8 sequence: 2 Volt, 4 Volt, 8 Volt, 20 Volt, 40 Volt, 80 Volt, etc.. The default output range of an I/O is likely to have an output range that does not follow the 2-4-8 sequence. That can make visual comparison of an instrument channel and the output of an I/O in a graph difficult, because they have different ranges. The property Snap to standard range will force the I/O to select an output range that follows the 2-4-8 sequence.
By default, the unit of most sources and I/O's is V for Volt. You can change the unit of most sources and I/O objects with the item Set unit... in the menu of the object. A string value can be entered in the dialog box that is shown.
When multiple sources or I/O's are displayed in a graph or a meter, they can be distinguished from each other by their Color. Three different color settings are available for a source or an I/O.
To disconnect all sources from an I/O or Sink at once, use the Disconnect all sources action.
To disconnect one or more sinks from an I/O or Source, use the Disconnect sink(s) action. This will show a dialog that lists all connected sinks. Individual sinks can then be selected and disconnected from the object.
To disconnect all sinks from an I/O or source at once, use the Disconnect all sinks action.
When a new object is to be created, similar to an already existing object, with the same properties, the Clone action can be used. This will create an identical copy of the original object, with the exact same properties. Source(s) and sink(s) of the new object are not yet connected.
The Delete action deletes a source, I/O or sink. All connections of the object will be disconnected and then the object will be removed from the object tree. The source property of the objects that used this object as source will be cleared. The sink property of the objects that used this object as sink will be cleared. An axis in a graph that was connected to this object will be also deleted.
The Export data action allows to export the data of an object to a file. This is detailed described on the page about Exporting data.
The Load action allows to load the settings and data for an object from a TPS or TPO file. This is detailed described on the page about Loading into selected objects.
The Save as action allows to save the settings and data of one or more objects to a TPO file. When multiple objects are selected, the connections between the objects are saved as well. This is detailed described on the page about Saving objects to a TPO file.