LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

My VI diagrams keep disappearing

Every now and then my VI diagrams disappear, meaning the VI only consists of a front panel. There are two developers sharing one directory. We try to be careful not to modify the same VI at the same time. When a diagram is lost, we have to restore a previous version and rewrite code.
0 Kudos
Message 1 of 7
(3,225 Views)
tj robertson wrote:
> Every now and then my VI diagrams disappear, meaning the VI only
> consists of a front panel. There are two developers sharing one
> directory. We try to be careful not to modify the same VI at the same
> time. When a diagram is lost, we have to restore a previous version
> and rewrite code.
>
I've accidentaly used "Save As Application Distribution" before and that
deletes the diagrams.
0 Kudos
Message 2 of 7
(3,225 Views)
Unfortunatly, that's not what's happening. We're just using the software as usual, and all of a suden we load up the LabVIEW and find missing diagrams.

I'm preety sure it has to do with the fact that we are both working on the same software. But we never work on the same VI's concurently, we're working on different parts of the system. Still though, when you change one little thing in LabVIEW, it marks every other VI in your project as modified.
0 Kudos
Message 3 of 7
(3,225 Views)
Are you by accident using .llb files to save your vi's ?
I would suggest to save all your vi's in subdirectories instead !
greetings from the Netherlands
0 Kudos
Message 4 of 7
(3,225 Views)
No, we're not using LLB's
0 Kudos
Message 5 of 7
(3,225 Views)
TJ,

Unless NI would care to offer dissent, the ONLY way that your diagrams can be removed, is either by selecting that option while saving, or through VI Server. Now, there is a possible way that this could be affecting you. If you are using any software to maintain your source code, such as SCC, or any LabVIEW code that uses VI Server, that could be causing your diagrams to disappear.

I would suggest the following:

Use Source Code Control. I recommend LabVIEW's SCC, Perforce, or (god forbid...) Visual Source Safe. I have experience with VSS and Perforce, and find either acceptable, though you do have to be VERY careful with VSS.

Source Code Control will ensure that two people do not modify the files concurrently. But you also have to be aware
of how LabVIEW marks a VI as changed. When you modify any subVI, ALL callers are marked as modified. Therefore, when you check out code, you have to check out the caller as well. This means that you have to be very careful when working with multiple developers. I strongly recommend that a discipline be adopted to take into consideration this fact about how LabVIEW saves.

Going back to your problem, I would suggest that you make note of anything that may be causing this to happen. Remember, it can ONLY happen through VI server (the most common method) and if a VI is saved with optinos, and the "remove diagram" choice is selected. So, either someone is saving the VI incorrectly, and you don't know it, or some external program, using VI server, is removing the diagrams for you. In either case, using SCC would prevent this disaster, and allow you to easily go back to previous code, as well as determine the most likely source of your problem.

It would also help if you posted a
ll the details about your issue, such as Version of LabVIEW, SCC if any, and any other third party software that may be affecting this.

Good luck
0 Kudos
Message 6 of 7
(3,225 Views)
Well, we use LabVIEW 6.02. Every few days, one of us loads Visual Source Safe, and checks in all modified VI's from our shared directory. If a VI in our shared directory loses it's diagram, we go into source code control and restore the last submited version.

Neither of us ever has a need to save with options, and neither of us ever uses VI server to save a VI (with or without options).
0 Kudos
Message 7 of 7
(3,225 Views)