Go to Post Ok, I am geting flustered since I can't perform trigonometric functions with the tools FIRST provides. - jweric [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 09-07-2013, 23:37
joecloud joecloud is offline
Registered User
FRC #2805
Team Role: Programmer
 
Join Date: Apr 2013
Rookie Year: 2013
Location: Texas
Posts: 22
joecloud is an unknown quantity at this point
Talking Getting used to Labview 'logic'

Hello!
I'm fairly new to the forums- as a member. But I have been on here a lot in the past because it has always been a good resource for code and getting better with the electronics/labview.
Anyways, I'm trying to understand the 'logic' if you will- behind labview programming. I'm starting to get used to the idea of the VIs, and putting together block diagrams. But I'm clueless about structures. I haven't messed with them, mainly because I haven't needed to, but I've seen a lot of sample code for different things, even screenshots posted here on CD that include them. Can anyone explain to me the purpose behind them, and when to use what appears to be the different types of structures? (while loop etc..)

Thanks,
Reply With Quote
  #2   Spotlight this post!  
Unread 10-07-2013, 01:21
nicholsjj's Avatar
nicholsjj nicholsjj is offline
Registered User
AKA: John Nichols
no team (Devil Bots)
Team Role: Coach
 
Join Date: Jan 2013
Rookie Year: 2011
Location: Murpyhsboro, IL.
Posts: 261
nicholsjj has a brilliant futurenicholsjj has a brilliant futurenicholsjj has a brilliant futurenicholsjj has a brilliant futurenicholsjj has a brilliant futurenicholsjj has a brilliant futurenicholsjj has a brilliant futurenicholsjj has a brilliant futurenicholsjj has a brilliant futurenicholsjj has a brilliant futurenicholsjj has a brilliant future
Re: Getting used to Labview 'logic'

This page is a good start on the basic types of programming structures http://en.wikipedia.org/wiki/Structured_programming

A very simple view of the three basic labview structures would be...

While: A programming structure that will repeat as long as(while) the condition set in the loop exists. This can be through time, sensor data, loop iteration etc...

Sequence: A programming structure that will carry out events in order from left to right(in sequence). The best way to look at this structure is as a movie real or newspaper cartoon. The structure will go frame by frame. Our team used this structure to run our autonomous routine this year.

Case: A programming structure that will run an event based on a Boolean input of true or false.(the stated case) Let's say you have a button that returns the value of 0 when not pressed and 1 when pressed. You use a case to run a different VI for when the button is and isn't pressed.
__________________
2011-FRC Team 3862, Team Captain
2012-FRC Team 3862, Strategy Mentor
2013-FRC Team 3885, Programming Mentor, Razorback Regional, Curie Inspector
2014- FRC Team 3885, Programming Mentor, Arkansas Regional, Newton inspector
2015-??? Teacher Murphysboro High School


“They call it coaching but it is teaching. You do not just tell them…you show them the reasons.”- V. Lombardi

Reply With Quote
  #3   Spotlight this post!  
Unread 10-07-2013, 09:27
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Getting used to Labview 'logic'

My suggestion would be to google LabVIEW Loops, LabVIEW case structure, etc.

You should find a combination of videos, walk throughs and reference material that in many ways is easier than digging through the stuff installed with the product. And of course if you still have specific questions, you should ask them here.

Greg McKaskle
Reply With Quote
  #4   Spotlight this post!  
Unread 12-07-2013, 15:54
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Getting used to Labview 'logic'

I found a few additional resources that may be what you were looking for.

The first is generically called the 101 content. It can be found at ni.com/lv101.

The structure descriptions are located at http://www.ni.com/academic/students/...on-structures/


A more basic and different style of instruction is found at http://curriculum.cs2n.org/lv1

Greg McKaskle
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 20:59.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi