LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

NXG - Lack of virtual folders is going to play hell with versioning software...

With virtual folders, you could move the files around anywhere in the project, and only the project and/or library files would change.  In NXG, moving a files (and, [insert your favorite deity/deities here] forbid, a folder) would result in physical changes to the disk, which would have to be reconciled in your versioning software.  Talk about churn...

 

Or, maybe since I am a newcomer to NXG, I haven't found out how to do virtual folders yet?

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 1 of 6
(2,577 Views)

In my understanding, folder structure and project structure must be synchronized.

For example when you add a VI which is placed in other folder to your project, the VI is copied to your project folder.

 

I thought It was helpful but once I considered Version Control, would be troublesome...

I also couldn't find a virtual folder feature in NXG. To be honest when I created class, it was really inconvenience.

Certified LabVIEW Developer
There are only two ways to tell somebody thanks: Kudos and Marked Solutions

GCentral
0 Kudos
Message 2 of 6
(2,507 Views)

Interesting thing I just read.  (NXG) VIs are now xml documents; you may want to make your versioning software treat them as binary files, so it doesn't try to outsmart itself and do some kind of fancy text merge that corrupts the VI.  (The document recommends turning off auto-merge, but that seems a bit heavy-handed to me.)

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 3 of 6
(2,483 Views)

@billko wrote:

Or, maybe since I am a newcomer to NXG, I haven't found out how to do virtual folders yet?


Nope.  Virtual Folders were explicitly rejected in NXG.  I'm with you, that is a HORRIBLE decision.  But it does avoid the cross-linking issue.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 4 of 6
(2,474 Views)

@billko wrote:

Interesting thing I just read.  (NXG) VIs are now xml documents; you may want to make your versioning software treat them as binary files, so it doesn't try to outsmart itself and do some kind of fancy text merge that corrupts the VI.  (The document recommends turning off auto-merge, but that seems a bit heavy-handed to me.)


Yeah, this is one of those things that didn't quite pan out the way NI wanted.  They specifically went with XML to help with SCC.  But there were many things with a graphical language that didn't quite work in a text-based file when it comes to merging.  Quoting somebody from NI R&D (not on the NXG team, but has good knowledge of the decisions made) from a private board (I don't think I'm breaking any NDAs here):

"But it turns out that a nested, cyclic graph with lots of metadata references across graphs is nearly impossible to merge in a linear text format, even for fairly simple edits...Purely textual merging was a goal of the original design. LV NXG R&D has spent a lot of research time trying to make it work. So far, it is not really seeming feasible."

 

There are plans to create a merge tool for NXG.

 

So my speculation: Do not be surprised if NXG eventually goes to a binary file format like LabVIEW 20xx.  We will be dependent on a diff/merge tool regardless and NI can make a format that would load a lot faster than parsing an XML file.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 5 of 6
(2,466 Views)

Taylor's response a bit down in this post explains the design decisions about virtual folders and mentions SCC.

 

(edit: billko, I just saw that you started by replying to that post, but anyway I think that post and comments is good to read for anyone else seeing this thread)

Certified LabVIEW Architect
0 Kudos
Message 6 of 6
(2,397 Views)