Go to Post Dave Lavery just responded to one of my posts. I think that I might die. - Karibou [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #15   Spotlight this post!  
Unread 03-02-2009, 13:23
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,561
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: labview comressor help!!

Quote:
Originally Posted by paulcd2000 View Post
Having done a pretty detailed run-through of the compressor code, i've decided that it's a load of rubbish. It's far easier to write your own compressor code than it is to actually use the library provided. In fact, i can see no way that the provided VIs would EVER work, but i could just be missing something. The code needed is quite simple. feed a relay and a DIO in, and then feed the DIO value to a case structure. If it's true, stop the compressor. if it's false, run the compressor in reverse (at least, that's what worked for us).
I agree that the compressor code is confusing (especially when I was looking at it as a new LabVIEW programmer). However, it does work, and there's a couple reasons it was written the way it was. While writing your own code to control the compressor is easy, it isn't easier then using the compressor VIs.

First how it works: Compressor Open spawns a new task that runs the compressor run VI. If you want to see how everything actually works, look at the compressor run VI (double click on the static VI reference in compressor open).

The reason that it works this way is so that it runs in both telop and in autonomous independent (which is also a separate task). If you chose the iterative style, it wouldn't be hard to do it in both auto and telop, however it's not as easy if you want to do a linear style programming in autonomous independent. By putting it in a separate task, you make sure it always works, regardless of the programming style of the user. Secondarily, it's a good example of how to spawn a task and do inter-task communication, which I know I appreciated.
Reply With Quote
 


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
LabView Help Please NumBeast NI LabVIEW 3 19-12-2008 15:11
Help to Deploy a Program in Labview. Delian NI LabVIEW 7 10-12-2008 21:13
Labview and communication with peripheral device help jaijaidin LabView and Data Acquisition 3 26-01-2007 19:17
HELP!!!!!! LABVIEW IS MAKING ME MAD!!!! cdennisxlx2 LabView and Data Acquisition 2 21-03-2006 21:50
help: cannot get the picture in the labVIEW program .. (was: need help!! quickly!) liad LabView and Data Acquisition 8 18-01-2006 12:20


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

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