Go to Post ...Al Skierk, uh, Skierwike, uh, you know who I mean - Gary Dillard [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 23-01-2010, 17:21
Lucario231's Avatar
Lucario231 Lucario231 is offline
Registered User
FRC #0033 (Killer Bees)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2007
Location: United States
Posts: 29
Lucario231 is an unknown quantity at this point
Question Sub VI and controls inside it Questions

Hi

I was programming a sub vi and i have controls that are the numeric type. When i changed the data entry of one of the controls from0.0 to 0.01 that one works. But when i do this to another control of the same kind it does not work and when i select the data entry property I see the 0.01 entry from the last control even though i put it in the last one.

When i run it the first control iterates at 0.01 while the second control iterates by 1.0. Is this a bug that i found or am I doing something incorectly.

Another thing that I found was when the sub vi is running after robot main is running in the volatile mode (clicking the arrow) and when i go to the controls I can't type in to them with numbers or even select it. Is this because it is in a sub vi of is it a bug again?? If just being in a sub vi causes this bug then no controls that virtual controls will work by typing in them like in teleop or auto.

Any advice would be appreciated.
Reply With Quote
  #2   Spotlight this post!  
Unread 23-01-2010, 18:09
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: Sub VI and controls inside it Questions

VIs can be executed directly using the run button, or they can be used as subVIs. When used as subVIs, any controls connected to the connector pane will be passed in and out each call. Any values that you type in are temporary, and if the calls are fast, you cannot edit at all. If you are testing, you can set a breakpoint before the value is read and type in temporary values when at the breakpoint.

If you primarily want to use the controls for input, and you do not need them as parameters, disconnect them from the connector pane.

As for the first issue, is is possible that the first numeric is a float and the second an integer? LV won't let you enter 0.1 into an integer.

Greg McKaskle
Reply With Quote
  #3   Spotlight this post!  
Unread 24-01-2010, 12:34
Lucario231's Avatar
Lucario231 Lucario231 is offline
Registered User
FRC #0033 (Killer Bees)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2007
Location: United States
Posts: 29
Lucario231 is an unknown quantity at this point
Re: Sub VI and controls inside it Questions

ok that is helpful but when i have these controls they are not connected to the connector pane, which i am assuming is the input output part of the symbol in the top right, are not connected to that at all. I can't select them and type in values for example if the default value is 0 and I want to get to 100 I must hold the up arrow all the way to 100. This control is orange so real numbers should work. So decimals are legal for this control.

Another thing with last years LV I could , if i wanted type in a decimal value or any number and the orange class would take that value and it would work.

I am able to change the iteration to .01 on one of these controls in its properties panel, but I can't on others. I can type in decimals but the iteration is stuck at whole numbers. so if I type in .25 and hit the arrow i have 1.25 entered in the control.

I can copy and paste that first control and the copy works just as the first, I can use decimal values. But that seems cumbersome.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
SetPWM and our IR controls taggartbg Programming 17 14-01-2008 18:35
pic: 383`s controls and driver Manoel Robot Showcase 13 03-03-2005 00:57
4 Controls/Electrical Questions Mr. Mac OCCRA 1 08-10-2003 05:53
About WRRF and this sub-forum Ken Leung Western Region Robotics Forum 0 16-07-2002 10:26


All times are GMT -5. The time now is 22:43.

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