Jump to content

File extension for global variables


Recommended Posts

Yeah, I know that it is bad to use globals. But let's say you had too. What would you use as the file extension. LabVIEW will use the .vi extension, by default from the Save dialog. And, LabVIEW does not recognize the .glb extension. However, I have seen people use .gbl as a file extension for global variables. What naming convention do you use?

Link to comment
Yeah, I know that it is bad to use globals. But let's say you had too. What would you use as the file extension. LabVIEW will use the .vi extension, by default from the Save dialog. And, LabVIEW does not recognize the .glb extension. However, I have seen people use .gbl as a file extension for global variables. What naming convention do you use?

For LabVIEW 2 globals, if that's what you're referring to, I just use them as regular VI's, with VI extension, etc. However, I use the filename like InstrGlobal.vi or something similar. Perhaps, in retrospect, it would be better to put the Global as the first part of the name, so all global routines in the hierarchy would be grouped together when browsing. I also have some kind of pic of a globe on the VI icon, so it's obvious when looking at the BD it's a global.

Link to comment
  • 4 weeks later...
  • 1 year later...

QUOTE(Jim Kring @ Feb 11 2006, 09:43 AM)

The poll is now closed. Thank you to all who voted and for your feedback.

Yeah, I know the poll was closed back in 2006, but it appeared today on the front page of LAVA, and I thought I'd mention something that may not have been thought of back in 2006, since at that point LV8.0 was fairly new. The LabVIEW project will handle items that have the .vi file extension a lot better than VIs with non-standard file extensions. If you actually load non-standard-extension VIs into memory, then the project will know they're VIs. But until you do that, it judges based solely on the file extension, and it may not be displayed with the right icons or get the right popup menu items.

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.