LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
Mr._Jim

Create Accessor dialog: Accessors for DVRs

Status: New

Hello,

 

I frequently use DVRs to store data members in my classes, depending on the use case of the class.

 

Instead of having to manually create accessors for DVR data members, it would be convenient (for me, at least) to be able to create these accessors from the "Create Accessor" dialog.

 

Am I the only one who uses DVRs this way?

 

Thanks for your consideration.

 

Jim

 

P.S. Here's an example of my DVR accessors:

accessor_read.pngaccessor_write.png

5 Comments
AristosQueue (NI)
NI Employee (retired)

No, you're not the only one who uses them this way. Yes, it would be convenient to have some tool for scripting such accessors and methods generally.

Mr._Jim
Active Participant

Thanks, AristosQueue.  That means a lot, coming from you!

fefepeto_kb
Member

I also need to create a lot of DVR property accessors. I would love if this would appear on the Create Accessor dialog.

On the other hand, I'm also willing to create my own templates and add them as plug-ins for accessors.

fefepeto_kb
Member

As a workaround for me, I created a QuickDrop plug in, which replaces or extends the bundle by name or unbundle by name respectively with code to access the cluster values inside the DVR.

Possible improvements could be to automatically choose the DVR if there are more properties of the class and to use the QuickDrop text input to choose the cluster element. I try to include the snippet of the plug in, but it is quite a long code, so might not be useful.LabVIEW DVR Accessor.png

fefepeto_kb
Member

After resurrecting this old post I have gone down the path of creating a quick drop plug in myself. I made a forum post about it: Quick Drop plug in for DVR cluster element access - NI Community