Use DIAdem to Define a Data Preprocessor Configuration
Use the Data Preprocessor Configuration dialogs to define the Data Preprocessor processing steps which will configure a Data Preprocessor in the TDM Server Manager. For convenience, it is easier to load one example file into the DIAdem Data Portal and use drag and drop for some configuration steps:
- Select the DIAdem NAVIGATOR panel.
- Click the Delete Internal Data symbol.
- Select File>>Open. Change the file type to National Instruments TDM Streaming (*tdms).
- Navigate to the TDM Server Demo Data folder C:\Users\Public\Documents\National Instruments\DataFinder\Data and select a file.
- Click Load to load a TDMS example file into the DIAdem Data Portal.
Create New DataFinder Preprocessor
- Select the DIAdem SCRIPT panel.
- Select Settings>>TDM Server>>Data Preprocessor.
- Click the Data Preprocessor Configuration symbol.
- Enter the Name of the new Data Preprocessor and an optional Description and Author.
- Click OK.
Configure the Property Identifier Mapping
- Select the Replace identifiers tab.
- Enable Replace property identifiers.
- Click Edit.
- Click the Add DataPlugin Mapping symbol and select TDMS as DataPlugin name.
- Click OK.
- Select the TDMS column by clicking into the column header.
- Click Edit DataPlugin Mapping to open the dialog box.
- Select the root element in the Data Portal (the root of the tree structure).
- Select all Custom Properties and drag and drop them into the still open Edit TDMS DataPlugin Mapping dialog.
- Specify the <vacant> Standardized Identifier as defined in the table above. Where applicable, replace the separators like “_” with “~” using the Find and Replace dialog box along with the Transfer Property Names tool to copy the Original Identifier text over.
- Repeat this procedure for ChannelGroup and Channel on the respective tabs.
- Click OK.
- Click Close.
Configure the Property Value Mapping
- Switch to the Replace Values tab.
- Enable Replace property values.
- Click Edit.
- Expand Channel and select Name in the tree.
- Select three channels (Temp_A, Temp_B, and Temp_C) in the Data Portal
- Drag and drop the selected channels into the Mapping rules area of the Replace Property Values dialog box.
In the mapping rules, specify the following:
- For Temp_A, specify Temperature_A as Output Value
- For Temp_B, specify Temperature_B as Output Value
- For Temp_C, specify Temperature_C as Output Value
The Search pattern wizard will detect the pattern and appear in a dialog box.
- Click Yes to use this pattern and map all Temp_? channels to Temperature_?
- Confirm the Edit rule dialog box by clicking OK.
- Close the Replace Property Values dialog box.
Define Additional Channel Statistics
- Switch to the Statistics tab.
- Enable Calculate statistics.
- Click Edit.
- In the Calculate statistics dialog box, configure the following settings:
- Enable Minimum. Use Statistics~Minimum as Custom Property Name.
- Enable Maximum. Use Statistics~Maximum as Custom Property Name.
- Enable Arithmetic mean. Use Statistics~ArithmeticMean as Custom Property Name.
- Enable Standard deviation. Use Statistics~StandardDeviation as Custom Property Name.
- Click Close.
Define the Standard File Format
- Switch to the Convert File tab.
- Define Save with DataPlugin as TDM.
- Click Save Data Preprocessor Configuration As and save the DPP file to a folder you specify.
Verify the Data Preprocessor Routine
- Select Data Preprocessor Chain Test with Debugger.
- Browse to C:\Users\Public\Documents\National Instruments\DataFinder\Data.
- Select National Instruments TDM Streaming (*tdms) from the File name drop-down menu.
- Select a TDMS file and click Load. A pop-up dialog will appear letting you know the data has been processed and loaded into the Data Portal.
- Explore the Data Portal and verify the channel names changed from Temp_X to Temperature_X and the Custom Properties show the new organization set in previous steps.
Deploy Data Preprocessor Package via Web Server
Now we can deploy the Data Preprocessor to the server via the TDM Server Manager. The Data Preprocessor uses a configuration file (*.DPP), which you created in DIAdem, to convert raw file data from one or more raw data folders to homogenous data, which you save in the respective processed data folder.
To set up the Data Preprocessor, complete the following steps in the wizard:
- Open TDM Server Manager in your web browser and login using your credentials.
- Select New>>Data Preprocessor to start the configuration wizard.
- Enter ConvertExampleData as the Name of the new Data Preprocessor server. Click Next.
- Enter the Name of the raw data area.
- Specify the Raw data folder. Click the Choose a Folder symbol and select the TDM Server Demo Data.
- Specify the Processed data folder. Click the Choose a Folder symbol and navigate to C:\Users\Public\Documents\National Instruments\TDM Server Demo\Processed_Data.
- Click Next to continue the configuration wizard
- Select Use custom configuration and specify your Data Preprocessor that you saved previously.
In case you want to use a preconfigured Data Preprocessor file, you can find the Configuration file at C:\Users\Public\Documents \National Instruments\Data Preprocessor\Configuration\Process_Example_Data_TDMS.DPP.
- Click Next to continue the configuration wizard.
- Select the ADVANCED license.

- Click Finish to complete the initial configuration of the Data Preprocessor.
- Select the newly created Data Preprocessor in the list and click Start to initiate processing.