Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   New Programmer (http://www.chiefdelphi.com/forums/showthread.php?t=113249)

theboyer 11-02-2013 13:13

New Programmer
 
1 Attachment(s)
Hi,I'm a new programmer and I was following a tutorial and it kept using a certain vi,but i couldn't recognize it or find it in the tool pallet.Can someone tell me what it is and where to find it

Kevin Sevcik 11-02-2013 13:20

Re: New Programmer
 
Feedback node. Located in the Programming -> Structures pallet.

James H 11-02-2013 13:20

Re: New Programmer
 
Quote:

Originally Posted by theboyer (Post 1231584)
Hi,I'm a new programmer and I was following a tutorial and it kept using a certain vi,but i couldn't recognize it or find it in the tool pallet.Can someone tell me what it is and where to find it

That is called a feed back node. It stores the last value fed in so that you can compare a variable or value to itself. It is found in the Structures pallet towards the bottom right.

theboyer 11-02-2013 13:34

Re: New Programmer
 
Thank You

theboyer 11-02-2013 14:12

Re: New Programmer
 
1 Attachment(s)
Oh one more.Sorry for the nuisance

Team3763 Adam 11-02-2013 14:15

Re: New Programmer
 
No need, that's why we're all here; to help.

That is a Boolean> True/False. Depending on which letter, T or F, has green behind it tells you which is running. (i.e. Green-background T means it's running True).

Alan Anderson 11-02-2013 14:46

Re: New Programmer
 
The feedback node is found in the Structures palette. It points from right to left by default. The diamond underneath it is how older versions of LabVIEW marked the initializer terminal; this year it looks like an asterisk which becomes a cursive i when wired.

The green T/F is a Boolean constant from an older version of LabVIEW. It would alternately highlight the T and the F when clicked on. LabVIEW 2012 instead displays it as a single square with either a T or an F in it. You'll find the T and F constants in the Boolean function palette.

theboyer 11-02-2013 17:56

Re: New Programmer
 
Now I'm trying to insert a process much like this which will set a servo to 90 activate a relay forward and then set both of them back to their natural position
but it seems to be running too fast and starving the drive system any pointers

Alan Anderson 12-02-2013 00:08

Re: New Programmer
 
Quote:

Originally Posted by theboyer (Post 1231809)
Now I'm trying to insert a process much like this...

Unless we see what you're actually doing, we won't be able to give much in the way of help. Show us your code, not the example you're emulating.

theboyer 12-02-2013 00:34

Re: New Programmer
 
1 Attachment(s)
oh sorry yes here

Greg McKaskle 12-02-2013 07:15

Re: New Programmer
 
If you place the code into teleop, it will prevent teleop from running frequently enough. Try moving it to Periodic tasks.

Greg McKaskle

Racer26 12-02-2013 09:31

Re: New Programmer
 
I can't be the only LabVIEW developer that despises the use of the feedback node, can I? IMO, while feedback nodes *can* make a diagram cleaner, they actually make it *harder* to understand, as compared to using the equivalent shift register.

theboyer 12-02-2013 16:43

Re: New Programmer
 
I attempted this and it still says it is starving the drive loop

Mark McLeod 12-02-2013 17:37

Re: New Programmer
 
You can attach your vi's directly to a post.
Show us your Teleop.vi & Periodic.vi, and any other vi you might have added code to.

The code you posted looks fine as long as it's in Periodic Tasks.vi (it would not work in Teleop).

Greg McKaskle 12-02-2013 19:56

Re: New Programmer
 
Quote:

I can't be the only ...
I also learned LV long before there were shift registers and in many ways prefer them, but I now use both, typically for different things. I really like the compare to last with a shift register, but otherwise typically use shift registers.

Greg McKaskle


All times are GMT -5. The time now is 12:02.

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