Jump to content

Change "Read"/"Write" to "Get"/"Set"?


Recommended Posts

QUOTE(jaegen @ Sep 6 2007, 09:19 AM)

The Create Accessor dialog automatically uses "Read" and "Write" in the VI names - is there any way to make this default to "Get" and "Set" instead?

I had exactly the same thought the first time I used the Create Accessor dialog.

Typically I use the Read/Write semantics to refer to some kind of data transfer (to/from instruments, files, maybe even queues, etc.). When I'm just changing the value of a piece of private class data, I think Get/Set.

Link to comment

Yes, you can change this to Get/Set. I pull those strings from the global CLSUIP_LocalizedStrings.vi. So, you can just change those two strings by opening <labview>\resource\Framework\Providers\LVClassLibrary\NewAccessors\CLSUIP_LocalizedStrings.vi and changing "Read %s.vi" to "Get %s.vi" and "Write %s.vi" to "Set %s.vi". Then don't forget to pop up on each and select Data Operations>>Make Current Value Default. Save and close the VI and you're good to go! You don't even have to restart LabVIEW.

And FYI...if you reinstall or have a new installation, you'll have to repeat this procedure.

Link to comment

QUOTE(Robbie Gehbauer @ Sep 7 2007, 06:54 AM)

Yes, you can change this to Get/Set. I pull those strings from the global CLSUIP_LocalizedStrings.vi. So, you can just change those two strings by opening <labview>\resource\Framework\Providers\LVClassLibrary\NewAccessors\CLSUIP_LocalizedStrings.vi and changing "Read %s.vi" to "Get %s.vi" and "Write %s.vi" to "Set %s.vi". Then don't forget to pop up on each and select Data Operations>>Make Current Value Default. Save and close the VI and you're good to go! You don't even have to restart LabVIEW.

Awesome! :thumbup:

Note that you also have to switch the Global to Edit Mode first (Operate >> Change to Edit Mode) before you can do Make Current Value Default.

Link to comment

QUOTE(Robbie Gehbauer @ Sep 7 2007, 06:54 AM)

Yes, you can change this to Get/Set. I pull those strings from the global CLSUIP_LocalizedStrings.vi. So, you can just change those two strings by opening <labview>\resource\Framework\Providers\LVClassLibrary\NewAccessors\CLSUIP_LocalizedStrings.vi and changing "Read %s.vi" to "Get %s.vi" and "Write %s.vi" to "Set %s.vi". Then don't forget to pop up on each and select Data Operations>>Make Current Value Default. Save and close the VI and you're good to go! You don't even have to restart LabVIEW.

And FYI...if you reinstall or have a new installation, you'll have to repeat this procedure.

Fabulous! :worship:

Jaegen

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.