How to use the "Save (Create a New Node)" feature on a SVB node and find the DMI file?

How to use the "Save (Create a New Node)" feature on a SVB node and find the DMI file?

book

Article ID: KB0077665

calendar_today

Updated On:

Products Versions
Spotfire Statistica 13.3 and higher

Description

Loading a scripted SVB node in a workspace usually requires two files:
1. SVB macro code (.svx file) that has codes to implement the function of the node.
2. The dmi file that calls the .svx macro and takes input information from the user through the SVB node UI.

In a legacy SVB node, you can save the current parameters dialog box with its current settings under a new name, and thus to create a new node accessible to you via the Node Browser.

This option is particularly useful when you have a complex set of specifications that define the typical types of analyses for your work (e.g., such as complex specifications for quality control charts). By saving the settings in the Parameters dialog box under a new name, you can make the settings available as a new node (with the different default settings) for future analyses. Hence, this option provides a quick method for further customizing and "programming" your Data Miner, and specifically, the Node Browser configurations for your Data Miner.

To enable this option, you will need to deselect "Use modern UI for editing scripted nodes" under Options|Documents|Workspaces(check this KB000032616). 

Please note this option only applies to SVB nodes that have original DMI files present in the local machine. In other words, it does not work for a SVB node with original DMI file missing.

The first question is how to save a SVB node with the entered parameters.
The next question is how to find the DMI file of a SVB node with saved parameters. 
This article walks through an example to address those two questions.

Issue/Introduction

This article talks about how to apply "Save (Create a New Node)" feature on a SVB node and find its associated DMI file.

Resolution

1. In a workspace with an "Alarm Trigger" SVB node, fill parameters, open the node and click "Save (Create a New Node) As...".

User-added image

2. In the prompted dialog, enter the name for the new node and click "OK".

User-added image

3. Choose a Folder that the new node will be saved under and click "OK".

User-added image

4. Click "OK" again.

User-added image

5.  Now the newly saved node will be shown under the assigned folder.

User-added image

6. To find the DMI file that is auto-generated for the newly saved node, type "%AppData%" under Windows File Explore and hit "Enter".

User-added image

7. Navigate to the StatSoft folder and then the subfolder of the installed Statistica version in the machine.
e.g. C:\Users\JohnDoe\AppData\Roaming\StatSoft\STATISTICA\13.5.0.17.1033

User-added image

You will see a DMI file for each newly created node with the pattern *originalname*_x.dmi, where orginalname is the original name of the node (like "Alarm Trigger") and x is an index. First time saved there is 1, then 2, then 3.

Note: To find paths for DMI files, you can also run the attached macro "EnumNodes.svb" with an open workspace, it iterates the nodes. And for SVB nodes, it outputs the name of the path to the DMI file.The path is the relative path to the $/StatisticaInstallDir/DataMiner directory, where $/StatisticaInstallDir is usually c:\program files\statistica\statistica 13 or wherever it is installed. The macro is not guaranteed to work under all scenarios and is subjected to further modification when necessary.



 

Attachments

How to use the "Save (Create a New Node)" feature on a SVB node and find the DMI file? get_app