01-20-2021 09:37 AM
In the past I have used Single Element Queues (SEQ) and am now just learning how to use DVRs and the In-Place structure..
I am exploring developing a Registry List using DVRs. Here is a scaled down block diagram which shows the essential parts of how it would work. In other words, the stuff in the sequence structures would be in a subVI.
1) Am I on the right track?
2) Is this pattern a good idea if Value is not a double but a very large array of doubles?
3) Are there any special gotchas to look out for?
For completeness, here is how it would be done with a queue.
01-20-2021 09:41 AM
Sure, that works as a way of getting references to instruments and such. You can go down that route, or install G# from VIPM and get reference based classes doing about the same thing. 😉
01-20-2021 11:54 AM
Yamaeda, thank you for the reply. G# toolkit looks a little daunting for me at the moment. I am hoping to find something a little more specific just concerning the Instrument Registry list and accessing data in the Instrument Objects in the list.
Anyone else have a comment on my example?
01-20-2021 01:26 PM
I think I'd store the DVR itself in another class instead of passing around the DVR wire. I think G# does something similar, maybe?
You'd then be able to make child classes for specific instrument subgroups/types/etc and you'd get protection from someone accidentally using the DVR incorrectly.
01-20-2021 01:38 PM
OK. Thank you. I will code something up and get back with you all.