LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Programming Structures, what is best?

Solved!
Go to solution
Hi guys,
Sorry to jump in here and ask questions, but I am out of source to ask for help.
I was wondering if someone can take a look at my code and see if there anything i can do to make it better.
I have 41 controls that I don't know what to do with.
I noticed from previous examples from co-workers is that, the controls, they leave it as local variables and they only bundle/unbundle the indicators.
I don't know if that is the right approach. I want to learn labview programming the right way, so maybe local variables is not a way to go.
I have lots of local variables that I don't know where to put it.
i have moved from stacked sequence in the intializing stage to STATE MACHINE..but now i have two parallel loop that i don't know how to approach it.
can someone please help me out.
thank you in advance

so...i dont know why everytime i click on attachments...i am not able to add an attachment. i can't upload pictures/zip file or anything..does anyone know why i am also facing that issue?
Message Edited by krispiekream on 01-23-2009 07:52 PM
Best regards,
Krispiekream
0 Kudos
Message 1 of 50
(4,918 Views)

First, this is the place to ask questions, you don't have to make it your last resort though. It is a good idea to look around first, best way to learn, but answering LabVIEW related questions is what this forum is for.

 

You didn't attach your code, so we can't look at it! When you do, mention in what version it was developed. I do wonder, with the 41 controls, whether they are all needed at the same time. Not sure what you mean by leaving them as local variables and bundle/unbundle indicators though. Generally though local variables can get you into problems if not used carefully, but we shall have to wait and see how you are using them.

Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



Message 2 of 50
(4,864 Views)
hello it's may be due to server maintenance ... make a new try in few hours... @+ Tinnitus
CLAD / Labview 2011, Win Xp
------------------------------------------------------
Mission d'une semaine- à plusieurs mois laissez moi un MP...
RP et Midi-pyrénées .Km+++ si possibilité de télétravail

Kudos always accepted / Les petits clicks jaunes sont toujours appréciés
Don't forget to valid a good answer / pensez à valider une réponse correcte
Message 3 of 50
(4,863 Views)
Sorry, hadn't noticed the last line regarding your difficulties uploading.  Not sure what the problem might be, what are your symptoms trying to upload? How big are the files. When you try does it appear to link and just not upload, or do you not get the option when you click on Add Attachments? You might post that question to the forum (towards the bottom of the list when you click on "NI Discussion Forums" under Special Interest Boards "Feedback on NI Discussion Forums" to let the forum moderator know>
Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



Message 4 of 50
(4,860 Views)

Well,  Since we can't look at it... Ummmm  

 

1) I would check your structure of events, and make sure you are using frames.   You don't need processes running when you don't need to. That just makes things slow

 

2) To help clean up those controls...   I would use the frames in the first part, and turn on and off their visibility of the controls. I do this mostly in factory controls when I want the operators to only see what I want them to see at specific parts of the processes. In 8.5 you can sub-VI control panels, but in 8.6; NI fudged us all over and removed it so you have to do this visible on/off junk. IT SUCKS

 

3) For the  "While loops"; use the timer functions in the "date and time" box to control to help control how fast they update.  If you have a bunch of loops running at once; this can really slow down things.  The times will regulate how the update.  

 

4) If you have a ton of wires everywhere;  Use the clusters.  its cool because its just ment to bundle all the wires togeather and clean up the diagrams...  also if you want to send 10,000 variable into a sub-VI, you can do it with only 1 terminal... Its really nice. 🙂

Message 5 of 50
(4,842 Views)
There are many different design pattern people use for solving problems. One that I find interesting, though moderately advanced, is the queued state machine, best exemplified here with free, well-documented template code and a tutorial video. Worth checking out, even if you don't decide to use it.
Jarrod S.
National Instruments
Message 6 of 50
(4,833 Views)
yeah..i am not allowed to add any attachments. everytime i click on ADD ATTACHMENTS. the site move me to the MESSAGE SUBJECT... i can't browse the file because the popup didnt pop up.
Message Edited by krispiekream on 01-26-2009 11:05 AM
Best regards,
Krispiekream
0 Kudos
Message 7 of 50
(4,773 Views)

Try the following:

 

  • Use a different browser
  • Clear your browser cache
  • Change your browser security settings (e.g. back to defaults).
  • Make sure Live Edits is enabled in your persoal preferences
  • If you have personal security software, try with security software disabled.
  • If you are behind a corporate firewall, see if they block certain traffic.
Message 8 of 50
(4,713 Views)

just to be sure,  put your vi on usb key and try from home :smileysurprised:

 

@+

 

Tinnitus

 

 

CLAD / Labview 2011, Win Xp
------------------------------------------------------
Mission d'une semaine- à plusieurs mois laissez moi un MP...
RP et Midi-pyrénées .Km+++ si possibilité de télétravail

Kudos always accepted / Les petits clicks jaunes sont toujours appréciés
Don't forget to valid a good answer / pensez à valider une réponse correcte
Message 9 of 50
(4,709 Views)

Jarrod,

 

I like that.   I did something a similar that I made up a while back.   I am going to play with your's in about a month on a retooling project.

 

Do you mind feed back if I find anything bad or cool improvements?

Message 10 of 50
(4,659 Views)