Skip to content
76 changes: 76 additions & 0 deletions Utilities/ReplaceDeprecatedNodes/DeprecationInfo.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
{
"NamePairs": [
{
"OldName": "Read Data from Condition (Boolean Array).vi",
"NewName": "Read Condition Value.vi"
},
{
"OldName": "Read Data from Condition (Double Array).vi",
"NewName": "Read Condition Value.vi"
},
{
"OldName": "Read Data from Condition (I32 Array).vi",
"NewName": "Read Condition Value.vi"
},
{
"OldName": "Read Data from Condition (String Array).vi",
"NewName": "Read Condition Value.vi"
},
{
"OldName": "Read Data from Measurement (Boolean Array).vi",
"NewName": "Read Measurement Value.vi"
},
{
"OldName": "Read Data from Measurement (DBL Analog Waveform).vi",
"NewName": "Read Measurement Value.vi"
},
{
"OldName": "Read Data from Measurement (DBL Array).vi",
"NewName": "Read Measurement Value.vi"
},
{
"OldName": "Read Data from Measurement (DBL Complex Waveform).vi",
"NewName": "Read Measurement Value.vi"
},
{
"OldName": "Read Data from Measurement (DBL Spectrum).vi",
"NewName": "Read Measurement Value.vi"
},
{
"OldName": "Read Data from Measurement (Digital Waveform).vi",
"NewName": "Read Measurement Value.vi"
},
{
"OldName": "Read Data from Measurement (I16 Analog Waveform).vi",
"NewName": "Read Measurement Value.vi"
},
{
"OldName": "Read Data from Measurement (I16 Complex Waveform).vi",
"NewName": "Read Measurement Value.vi"
},
{
"OldName": "Read Data from Measurement (I32 Array).vi",
"NewName": "Read Measurement Value.vi"
},
{
"OldName": "Read Data from Measurement (String Array).vi",
"NewName": "Read Measurement Value.vi"
},
{
"OldName": "Read Data from Measurement (XY).vi",
"NewName": "Read Measurement Value.vi"
},
{
"OldName": "Get Data Type (Condition).vi",
"NewName": "Get Value Type (Condition).vi"
},
{
"OldName": "Get Data Type (Measurement).vi",
"NewName": "Get Value Type (Measurement).vi"
},
{
"OldName": "Data Type.ctl",
"NewName": "Value Type.ctl"
}
]
}
10 changes: 10 additions & 0 deletions Utilities/ReplaceDeprecatedNodes/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Replace Deprecated Nodes
This utility will update customer code to account for any VIs or controls that have been deprecated in the MDS LabVIEW API. The utility will replace those deprecated nodes with their new preferred versions. This will help customers clean up their applications more quickly than manually replacing each deprecated node.

## How To Use
1. Open ReplaceDeprecatedNodes.vi
2. Select the root directory for your user code
3. Run the VI. The utility will find all .ctl and .vi files in the selected directory and replace nodes as appropriate.

## Assumptions
The current version of this utility assumes that the deprecated and new versions of the files exist in the same directory. If deprecations occur where the new file moves to a different directory, changes will need to be made to this utility to handle that.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Replacing PolySubVIs in this manner doesn't work. It ends up cuasing broken VIs when converting read waveform (and other) nodes because the output value terminal doesn't line up with the old version.

Image

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.