Repository navigation
Add a ReplaceDeprecatedNodes utility to help users update old applications. #20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
047fe44
Add rename migration utility
mjohanse-emr 5636e2f
Create comparison subVI. General cleanup.
mjohanse-emr d9ca6c3
Add close reference nodes where appropriate.
mjohanse-emr 0cddebf
Add a README
mjohanse-emr c5bdaa6
Rename the utility to 'ReplaceDeprecatedNodes' so it's more accurate
mjohanse-emr 72ddd33
Re-link after renaming utility.
mjohanse-emr d929950
Update the README to reflect the utility rename
mjohanse-emr 978d029
Account for 'deprecation' where old VIs are still present. Fix Poly V…
mjohanse-emr c1faf5a
Fix error handling. Diagram cleanup. Add more comments.
mjohanse-emr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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" | ||
| } | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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.