LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to make the wires disappear?

I was also an EE type.

When I was troubleshooting mainframes, I could have used at least two approaches.

1) Start at the switches on the FP and check every signal on every chip as the signal progressed

or

2) Check the signal at the half way point and decide if the isseu was before or after were I was looking.

Sub-VI's are to LV as ckt borads or chips are to an electronic systems.

I would be hard pressed to design a system using only discrete components on a giant proto-board.

Rather I would use of the shelf boards and chips adding only the discrete devices I had to use.

When you create a sub-VI you are creating virtual chips that can be used again and again.

If I was torubleshooting and suspect a bad chip, I could put that chip in a tester and verifiy its operation. Similarly with sub-VI's. There FP's serve as built in testers.

Still trying to help,

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 21 of 38
(1,604 Views)
People have strong individual opinions, and styles, and it is never easy to view the other side of the story.
 
Your content rated 5 stars easily.  Whoever rated you probably objected more to the tone of voice in:  "you would never get a job", "did you ever take a programming class".
 
Things average out, so you could easily ignore the  1 star.
0 Kudos
Message 22 of 38
(1,594 Views)

Hosehead wrote:
Notice the white box in the upper left corner is the size of my screen, making the total block diagram about 10 screens wide and 6 screens tall. 
 

Abrakadabra!!!

Well, I agree that you made 98.3% (1 - 1/60)  of the wires disappear (to an offscreen location beyond the window border), but I don't think that's what the original poster had in mind. :o:D

Seriously: You already got quite a few stellar* (see footnote) comments, so I won't bother repeating. Please read them carefully. They are true!

At any given time, you see less than 2% of your diagram! Talk about tunnel vision! Lets say you're looking for some detail and your pattern recognition is so good that you need to glance at a screenful of code for only 10 seconds to fully comprehend it. It will take you 10 minutes just to go over your diagram. Looks like you need to work through lunch hour again... 😉

Be very aware that most larger organizations have very strict coding guidelines and monster diagrams such as your's would be junked unseen. This is not maintainable code.

Now I am curious about the front panel....

 

For some distraction, have a look at our collection of labview proverbs. One that might apply here is the following:

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
If your LabVIEW problem can be solved by getting a bigger monitor, the problem is elsewhere.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++


* "stellar: worthy of 5 stars.

Message Edited by altenbach on 07-24-2007 03:12 PM

0 Kudos
Message 23 of 38
(1,574 Views)

@altenbach wrote:

Now I am curious about the front panel....


Just when you thought it was safe to go back into the water...

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
Message 24 of 38
(1,566 Views)
smith_j said

Whoever rated you probably objected more to the tone of voice in:  "you would never get a job", "did you ever take a programming class".

I pretty much suspected as much, though those snippets are taken out of context. The tone behind the programming class question was borne out of incredulity at the actual code and the apparent fact that this type of programming is actually accepted at their place of work rather than asking a question intended to belittle or insult. There was actually no tone implied or present in my final statement. I was making a factual statement and, unfortunately, the truth is sometimes difficult to state in "nice" terms.

The harsh reality is that if this person were to lose their job due to a layoff or company closure and thus need to find another one and they presented this as an example of their coding style and experience they would likely find themselves with a problem. It's the truth. It's undeniable, and sometimes you need to say it as bluntly as you can so the message gets through in the hopes they seriously consider to improve their skillset and approach. My European background isn't much for political correctness which helps me to be necessarily blunt in situations like this. It also means that if I really wanted to insult someone they'd know I was doing it without having a single doubt in their mind. Smiley Wink

I'm actually more miffed at someone hiding behind an anonymous rating system like we have on this board than getting the one-star. My take: If you don't have the courage to justify your rating, don't give one. I should also point out that I did not rate Hosehead's post.

Message 25 of 38
(1,555 Views)

Wow, a lot of new messages in 4 hrs.

I believe the original problem was, "My program has grown pretty big and now there are wires everywere."  I can see the consensus (and expert) opinion is use Sub-VIs.  Good to know.  And this was pretty much said before I posted as well, which is why I put a (1-star) alternative.

You've all figured out that I'm not a programmer and don't have an EE (and couldn't get a job doing such).  As mikeporter says, "the real key is to put the same level of professional effort into it that you would when performing your primary responsibilities (a.k.a. "your real job"). It's this level of care that separates software engineering from hacking."

So I guess my post is for the hackers out there.  Those who don't use LabVIEW on a daily or even weekly basis, but use it once in a while to do some specific task, do it well (not the programming but the end result), and that's it.  The great thing about LabVIEW is you don't need to be a programmer or have an EE degree to use it - after all they even let people like me use it!  People who don't give a darn about being a programmer but just need to log data from a thermocouple or (insert your own task here), and do it yesterday.  People who don't have time to become software engineers on the side, or even to learn how to use Sub-VIs with enough confidence that they won't cause your program to hang or crash.  People who use LabVIEW as (gasp!) just another tool to get the job done.

I applaud all of you for trying to instill proper programming practices in me (and others reading this).  Just don't forget that sometimes it's like answering the question, "How do I drive to work?" with a lecture on proper driving habits, when all they really want is the directions.

P.S.: smercurio - I don't mind if you did give me 1-star.  As far as proper programming goes, I submit to the experts willingly, plus it's not like I'm using them anyway Smiley Very Happy.  And I did not rate you or anyone else here - it's not my place!

Message 26 of 38
(1,542 Views)
Good response Hosehead.  We all tend to forget that not everyone out there using Labview is a professional programmer or even an engineer.  I must say that if I had to inherit your program, I would die.  However, if it works for you and your are happy with it, who am I to criticize it.  We can only offer suggestions, but it is you who lives with it in the end, therefore it is really your choice.  I'm glad that you didn't take all the criticism the wrong way.  In my book, that makes you a professional.
- tbob

Inventor of the WORM Global
Message 27 of 38
(1,510 Views)
One point just touched, my manager always asks:

What happens if you get an accident tomorrow or leave the job

I have to make sure my code is clean and documented, I doubt your code will be that.

Not to punch, just to push

Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 28 of 38
(1,484 Views)
Close your eyes click your heals and say "theres no place like C, theres no place like C ..."  Presto the wires are gone.
Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 29 of 38
(1,481 Views)

falkpl wrote;


Close your eyes click your heals and say "theres no place like C, theres no place like C ..."  Presto the wires are gone.


"OUT OUT you demons of stupidity!" (Dogbert). Smiley Very Happy

Sorry, I could not resist.

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 30 of 38
(1,467 Views)