ni / niveristand-communications-bus-template

Template custom device for using communications buses in VeriStand
http://www.ni.com
MIT License
0 stars 3 forks source link

Create a utility to automatically re-roll GUIDs #24

Closed rtzoeller closed 4 years ago

rtzoeller commented 4 years ago

What does this Pull Request accomplish?

Create a utility for automatically re-rolling GUIDs.

It builds a set of all GUIDs used by the custom device, creates a map from these GUIDs to new GUIDs, and then replaces all instances of the GUIDs with the new ones.

Why should this Pull Request be merged?

We need to update the GUIDs each time we create a copy of this custom device. This is tedious and error prone to do by hand.

What testing has been done?

Run the VI and confirm the XML and Constants.vi are both updated in sync.

Note: This does not replace GUIDs hard-coded in other VIs. There is at least one instance of this in the custom device; that cleanup will happen independently.

rtzoeller commented 4 years ago

I think long-term this belongs in a different repository, since it's potentially useful for custom devices in general. That said, I'd like to keep it (and any other utilities we create for duplicating custom devices) in this repo for now.

niveristand-diff-bot commented 4 years ago

Bleep bloop!

LabVIEW Diff Robot here with some diffs served up hot for your pull request.

Notice something funny? Help fix me on my GitHub repo.

Utility.lvlib--Create GUID Substitution Map.vi.png ![capture](https://raw.githubusercontent.com/niveristand-diff-bot/diff-images/master/NI/niveristand-communications-bus-template/PR-24/2020-10-02/08%3A38%3A55/Utility.lvlib--Create%20GUID%20Substitution%20Map.vi.png)
Utility.lvlib--Get GUID Controls on Constants VI.vi.png ![capture](https://raw.githubusercontent.com/niveristand-diff-bot/diff-images/master/NI/niveristand-communications-bus-template/PR-24/2020-10-02/08%3A38%3A55/Utility.lvlib--Get%20GUID%20Controls%20on%20Constants%20VI.vi.png)
Utility.lvlib--Get GUIDs from Constants VI.vi.png ![capture](https://raw.githubusercontent.com/niveristand-diff-bot/diff-images/master/NI/niveristand-communications-bus-template/PR-24/2020-10-02/08%3A38%3A55/Utility.lvlib--Get%20GUIDs%20from%20Constants%20VI.vi.png)
Utility.lvlib--Get GUIDs from Custom Device XML.vi.png ![capture](https://raw.githubusercontent.com/niveristand-diff-bot/diff-images/master/NI/niveristand-communications-bus-template/PR-24/2020-10-02/08%3A38%3A55/Utility.lvlib--Get%20GUIDs%20from%20Custom%20Device%20XML.vi.png)
Utility.lvlib--Replace All GUIDs.vi.png ![capture](https://raw.githubusercontent.com/niveristand-diff-bot/diff-images/master/NI/niveristand-communications-bus-template/PR-24/2020-10-02/08%3A38%3A55/Utility.lvlib--Replace%20All%20GUIDs.vi.png)
Utility.lvlib--Replace GUIDs in Constants VI.vi.png ![capture](https://raw.githubusercontent.com/niveristand-diff-bot/diff-images/master/NI/niveristand-communications-bus-template/PR-24/2020-10-02/08%3A38%3A55/Utility.lvlib--Replace%20GUIDs%20in%20Constants%20VI.vi.png)
Utility.lvlib--Replace GUIDs in Custom Device XML.vi.png ![capture](https://raw.githubusercontent.com/niveristand-diff-bot/diff-images/master/NI/niveristand-communications-bus-template/PR-24/2020-10-02/08%3A38%3A55/Utility.lvlib--Replace%20GUIDs%20in%20Custom%20Device%20XML.vi.png)
niveristand-diff-bot commented 4 years ago

Bleep bloop!

LabVIEW Diff Robot here with some diffs served up hot for your pull request.

Notice something funny? Help fix me on my GitHub repo.

Utility.lvlib--Create GUID Substitution Map.vi.png ![capture](https://raw.githubusercontent.com/niveristand-diff-bot/diff-images/master/NI/niveristand-communications-bus-template/PR-24/2020-10-02/09%3A32%3A18/Utility.lvlib--Create%20GUID%20Substitution%20Map.vi.png)
Utility.lvlib--Get GUID Controls on Constants VI.vi.png ![capture](https://raw.githubusercontent.com/niveristand-diff-bot/diff-images/master/NI/niveristand-communications-bus-template/PR-24/2020-10-02/09%3A32%3A18/Utility.lvlib--Get%20GUID%20Controls%20on%20Constants%20VI.vi.png)
Utility.lvlib--Get GUIDs from Constants VI.vi.png ![capture](https://raw.githubusercontent.com/niveristand-diff-bot/diff-images/master/NI/niveristand-communications-bus-template/PR-24/2020-10-02/09%3A32%3A18/Utility.lvlib--Get%20GUIDs%20from%20Constants%20VI.vi.png)
Utility.lvlib--Get GUIDs from Custom Device XML.vi.png ![capture](https://raw.githubusercontent.com/niveristand-diff-bot/diff-images/master/NI/niveristand-communications-bus-template/PR-24/2020-10-02/09%3A32%3A18/Utility.lvlib--Get%20GUIDs%20from%20Custom%20Device%20XML.vi.png)
Utility.lvlib--Replace All GUIDs.vi.png ![capture](https://raw.githubusercontent.com/niveristand-diff-bot/diff-images/master/NI/niveristand-communications-bus-template/PR-24/2020-10-02/09%3A32%3A18/Utility.lvlib--Replace%20All%20GUIDs.vi.png)
Utility.lvlib--Replace GUIDs in Constants VI.vi.png ![capture](https://raw.githubusercontent.com/niveristand-diff-bot/diff-images/master/NI/niveristand-communications-bus-template/PR-24/2020-10-02/09%3A32%3A18/Utility.lvlib--Replace%20GUIDs%20in%20Constants%20VI.vi.png)
Utility.lvlib--Replace GUIDs in Custom Device XML.vi.png ![capture](https://raw.githubusercontent.com/niveristand-diff-bot/diff-images/master/NI/niveristand-communications-bus-template/PR-24/2020-10-02/09%3A32%3A18/Utility.lvlib--Replace%20GUIDs%20in%20Custom%20Device%20XML.vi.png)