Go to Post Watch out, guys, Lisa's coming.... worse than any hurricane or tornado you can imagine! - KathieK [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 27-01-2009, 22:25
Sparky_68 Sparky_68 is offline
Registered User
FRC #0068
 
Join Date: Jan 2008
Location: Michigan
Posts: 4
Sparky_68 is an unknown quantity at this point
multitasking

Now that we have the three components of our code done (drive, shoot, and pickup) we started testing and we found a problem. We can only do one thing at a time. We have tried a few thing to fix this with no luck. Any ideas on how to fix this issue we are having?
Reply With Quote
  #2   Spotlight this post!  
Unread 04-02-2009, 23:51
airnate airnate is offline
Registered User
FRC #0236 (Techno Ticks)
Team Role: Programmer
 
Join Date: Feb 2009
Rookie Year: 2009
Location: southeastern CT
Posts: 93
airnate is a jewel in the roughairnate is a jewel in the roughairnate is a jewel in the rough
Re: multitasking

We need more details on how you implemented the tasks to answer your question properly, but I'll take a stab at it anyway.

LabVIEW will let you run multiple tasks in separate parallel loops (e.g. multiple while loops that are not nested).

One way to do this is to put each loop in a separate VI. When separating the loops be careful to note if you are using the same resource (e.g. joystick) in the different loops—in which case you may have to choose one loop to handle the resource and share the information with the other loops (e.g. global variables, functional global variables).
Reply With Quote
  #3   Spotlight this post!  
Unread 05-02-2009, 06:47
Sparky_68 Sparky_68 is offline
Registered User
FRC #0068
 
Join Date: Jan 2008
Location: Michigan
Posts: 4
Sparky_68 is an unknown quantity at this point
Re: multitasking

here is another thing i posted on another board yesterday -
So we are trying to get our robot to do 3 things. pick up balls, shoot, and suck the up through a convaire belt system. The drive is a pid car drive system that works well till you put it with shooting and picking up balls. The shooter works for a fraction of a second and than stops till the next ball is in place. The suck just goes for X amount of time. We put these parts in the basic framework and the result is the same. You can do one of them and if you get 2 of them to work they don't work right of just don't work at all. The shooter and suck start by microswitches on the DIO ports. We have tried this is a statemachine tonight and that didn't work. Can somebody tell me an easy way to do this or send me example code of some sort to look at and figure out what I have to do?
Reply With Quote
  #4   Spotlight this post!  
Unread 05-02-2009, 07:00
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,748
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: multitasking

There are lots of examples of doing this. To get help on your code, I think you need to post it.

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 08:45.

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