10-01-2020 11:17 AM
Hello to all,
I would like to disable all diagram block of my VI.
Is there any way to do that?
(It is very huge and It is imposible to do with diagram disable structure by hand)
Thanks!
10-01-2020 11:48 AM
Hi Alvaro,
@Alvaro.S wrote:
I would like to disable all diagram block of my VI.
Is there any way to do that?
You want to disable the complete block diagram? What about removing the complete VI call from the calling MainVI?
@Alvaro.S wrote:
(It is very huge and It is imposible to do with diagram disable structure by hand)
This may be the problem behind your request: why is the block diagram so huge? Can't you split your "huge block diagram" into several smaller subVIs?
10-01-2020 11:52 AM
Thanks for replying!
I would like to diseble the complete block diagram. Because would like to test an aditional functionality in the same VI. Test it separately and when I will have tested it then enable the other functionalities.
How can I "removing the complete VI call from the caliing MainVI"?
Thanks a lot
10-01-2020 12:10 PM
Do a CTRL-U on your block diagram and see if that makes it a more manageable size. If your block diagram is more than one screen then you should consider putting some of your in subvis as GerdW suggested. Also, posting your code here might lead to further suggestions.
10-01-2020 12:38 PM
@Alvaro.S wrote:
I would like to diseble the complete block diagram. Because would like to test an aditional functionality in the same VI. Test it separately and when I will have tested it then enable the other functionalities.
In addition to the *very* good advice from @GerdW and @johntrich1971...
Can you just test the additional functionality in a new VI? Then once it's working, copy the code into your original VI.
Or better yet, keep your new functionality in the new VI, make that into a subVI, and call the subVI in your original VI.
(Hopefully your original VI will be cleaned up and organized into subVIs by then).
Just thought I would recommend that as an option.
-joeorbob
10-01-2020 12:47 PM
Thanks a lot.
I really would like to do what you say if it is possible.
Can you give me some links abou variables and structures behaviour between VIs?
Thanks a lot
10-01-2020 01:06 PM
@Alvaro.S wrote:
Thanks a lot.
I really would like to do what you say if it is possible.
Can you give me some links abou variables and structures behaviour between VIs?
Thanks a lot
The main forum page is full of them. Look under "LabVIEW Training Resources".
10-01-2020 01:15 PM - edited 10-01-2020 01:16 PM
@Alvaro.S wrote:
Can you give me some links abou variables and structures behaviour between VIs?
Are you talking about making a local variable in one VI and using it in another...? That isn't possible.
Though if you're asking that question (or about variables and structures in general), it seems like you may need to look at the training resources...
@billko wrote:
The main forum page is full of them. Look under "LabVIEW Training Resources".
The main forum page @billko mentioned is here (in case you were having trouble finding it). "LabVIEW Training Resources" is near the top.
10-01-2020 01:52 PM
What if you go to the upper right most area of your block diagram. Add a small diagram disable structure. Make sure auto grow is on.
Do a Select All (Ctrl-A) then Shift-Click the DDS to deselect it. Then try dragging the selection into the disable structure.
10-02-2020 06:44 AM
@Alvaro.S wrote:
I would like to diseble the complete block diagram. Because would like to test an aditional functionality in the same VI. Test it separately and when I will have tested it then enable the other functionalities.
This isn't a LabVIEW issue. It is a Source Code Control (SCC) issue. This is why SCC, such as SVN and GIT, have things like branches.