LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VI's bogging down?

 


@Britoa wrote:

 


@Ray.R wrote:

It's always a good idea to backup development software on a regular basis (ie once a day) 😉


True, but it's an even better idea to use Source Code Control to handle your backups.  (For a single developer, even setting up a local SVN with tortoise does wonders)

 


 

Ok, I"m not familar with these terms...  I'll have to go do some reading.    What is Tortoise?  SVN?

THX

C

0 Kudos
Message 41 of 53
(1,228 Views)

Short answer:  Tortoise:  http://tortoisesvn.tigris.org/

 

Long answer:  SVN is Subversion, it's a source code control server/scheme that generally tracks changes (when you submit them to the source code repository that you set up).  Tortoise is a client, that happens to be able to impliment it's own local SVN repository to work with.  To make a 'backup' it's as simple as a few mouse clicks (to commit your changes to the repository).  And to restore, it's again, in a right click menu.

 

Neat stuff (it works better with text based files, but still does a good job with Labview)

0 Kudos
Message 42 of 53
(1,224 Views)

Looks pretty slick... I'll see about digging into it tonight.  Thanks for the tip!

C

0 Kudos
Message 43 of 53
(1,212 Views)

 


@chuggins143 wrote:

Ok guys/gals, quick question.... when creating a subVI... When I highlight a section of code that I want to create the sub from, if there are shift registers going in and coming out will those be pulled into the subVI or will they create inputs & outputs on my icon?

THX

C


 

If you select the loop with shift registers they'll end up inside the subvi, the wires get turned into controls/indicators to make a direct replacement in your code.

 

Sometimes i've managed to get some extra stuff or too little stuff into my subvi, which can have strange effects. Most of the time a simple ctrl+z works and reselect. As mentioned, backup alot, it's always good.

 

As for SVN, we've rather recently started to use it, and it's simply lovely. One nice thing is the saving of space, as a submit only updates updated vi's even if you submit a full project (it keeps tracks of it), and the data is compressed for nice storage.

 

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 44 of 53
(1,197 Views)

 


@Yamaeda wrote:

 

If you select the loop with shift registers they'll end up inside the subvi, the wires get turned into controls/indicators to make a direct replacement in your code.

 

Sometimes i've managed to get some extra stuff or too little stuff into my subvi, which can have strange effects. Most of the time a simple ctrl+z works and reselect. As mentioned, backup alot, it's always good.

 

/Y


 

Yep, when I tried it the first time I ended up with a subVI with about 20 inputs/outputs.... way too many to keep track of.   So I'm reworking it.  Thanks for the insite.

C

0 Kudos
Message 45 of 53
(1,186 Views)

@chuggins143 wrote:

 


@Yamaeda wrote:

 

If you select the loop with shift registers they'll end up inside the subvi, the wires get turned into controls/indicators to make a direct replacement in your code.

 

Sometimes i've managed to get some extra stuff or too little stuff into my subvi, which can have strange effects. Most of the time a simple ctrl+z works and reselect. As mentioned, backup alot, it's always good.

 

/Y


 

Yep, when I tried it the first time I ended up with a subVI with about 20 inputs/outputs.... way too many to keep track of.   So I'm reworking it.  Thanks for the insite.

C


"STOP right there!" (Paradise by the Dashboard Lights Meatloaf, Bat out of Hell album)

 

You can pass more than one value using a cluster, but if you want to add something latter, you will have to redefine the cluster over again (oh bother).

 

So please review this Nugget I wrote on "type definitions" before you start using clusters.

 

Now I feel better.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 46 of 53
(1,178 Views)

Ok guys/gals... I've done some serious rewriting and have had it running today to verify that I didn't screw anything up... everything seems to be working fine.  Last iteration ran for about 2.5 hrs before locking up.  All of this time I was running the Profile Performance and Memory feature.... so I've got it saved, I can look and see what's used Max Bytes and such,  but I have nothing to reference it against.  ...what am I looking for?

Thanks!

Chad

0 Kudos
Message 47 of 53
(1,123 Views)

You should be looking for VI's that have an ever increasing memory usage.

 

A large but stable memory footprint is usually not the issue, look for the ever increasing.

 

Once you have identified the offending VI you can start using

 

Tools >>> Profile >>> Show Buffer Allocations

 

to play "wack a mole" and start reducing the buffers.

 

This thread has some links and suggestions.

 

These tags are related to LV memory and performance.

 

If you know the offending VI but still can't figure out to fix it, post it up and let the team here advise.

 

Ben

 

 

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 48 of 53
(1,113 Views)

Sounds good.  Thank you for the direction and insite!

C

0 Kudos
Message 49 of 53
(1,108 Views)

Ok.. I figured out what was going wrong...  didn't have a issue with an array or anything like that, or anything Labview related as a matter of fact. 

 

I'm an idiot... my harddrive was full.  DOH!  Went and pulled most of my extraneous crap (music and pics), defragged it and it runs like new. 

 

Thanks for the help guys, at least I did learn a few new things about diagnosing LabView related issues!  Smiley Wink

C

Message 50 of 53
(1,071 Views)