.. highlightlang:: us .. index:: Browser=>Interpolation .. index:: OnGridInterpol .. index:: Channel Interpolation .. _browser-interpolation: .. _browserinterpolation: Browser=>Interpolation ---------------------- This command creates a new NC file which contains one time channel. Data channels are interpolated for the selected time channel. The function cannot perform an extrapolation. Example: A test contains data channels logged with 10 Hz and 100 Hz. Now you would like to execute some computations between channels of different time groups. In this case you can use this function to interpolate all data channel to a time channel with 100 Hz. .. image:: S:/uniplot-obj/images/OnGridInterpol-en.* If the functions could be executed the result file will be displayed in the browser. The new file name is the name of the original file followed by the string ``_trans``. To execute the function open the data browser (:ref:`fileimport-data`) and right click in the data grid. From the shortcut menu choose **More Functions**. .. us.dlgitem **Time Channel List** The list displays all channels that possess the channel attribute ``Type="Time Channel"``. For MDF and IFILE files the attribute is created during the import. To create the attribute manually right click a time channel and choose **Add Attribute** from the shortcut menu. .. image:: S:/uniplot-obj/images/OnGridInterpol_AddAttribut-en.* .. us.dlgitem **Use Time Channel from File** Specifies whether a new time channel is created or a time channel from the list is used. .. us.dlgitem **Channel Name** Name of the new time channel. .. us.dlgitem **Unit** Unit of the new time channel. .. us.dlgitem **Minimum** Minimum value of the time channel. The value should be in the measured time range. Values outside this range will be set to missing. .. us.dlgitem **Maximum** Maximum value of the time channel. The value should be in the measured time range. Values outside this range will be set to missing. .. us.dlgitem **Delta** Distance between two consecutive data points. .. us.comment **Comment** For MDF files (VS100/Inca) the channel name prefix ``Gxx_`` is removed. :ref:`import-of-mdf-files`. The :ref:`browserinterpolation` function is written in UniScript. The source code is found in the file :file:`mn_grid.ic`. *String Channels* String channels can be interpolated and UniPlot uses the following rule: the interpolated channel take the original channel value until the interpolated time channel is equal or above to an existing time point in the original time channel. Example: .. code-block:: none - Original file at 1Hz Time String Channel 0 A 1 B 2 C - Interpolated file at 2Hz Time String Channel 0 A 0.5 A 1 B 1.5 B 2 C **History** .. list-table:: :header-rows: 1 * - Version - Description * - R2022.4 - String channels are interpolated. * - R2022.4 - _nc_enum information is kept during interpolation. .. seealso:: :ref:`the-data-browser`, :ref:`NC_Interpolation` :sub:`id-62907`