Go to Post And when I heard the word "Mentor Round" - you had me SOLD. - Chris is me [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 10-01-2009, 13:07
Pasha Pasha is offline
Registered User
None #1403
 
Join Date: Jan 2008
Location: Ukraine
Posts: 8
Pasha is an unknown quantity at this point
Relay Help, Keeping true, true.

Hi, I'm Paul from team 1403. I have my button one from my joystick set a case structure to true and there I would use set relay and so on.

My team wants the button 1 to set the case structure to true, and stay true and then upon pressing button 1 again, it sets the structure to false, and keeps it false. Here is a picture of what my "code" looks like:



I'm not that great at LabView, since I'm used to writing all this in C. Please give me some suggestions. Thank you.
Reply With Quote
  #2   Spotlight this post!  
Unread 10-01-2009, 15:25
whitetiger0990's Avatar
whitetiger0990 whitetiger0990 is offline
Registered User
no team
Team Role: Programmer
 
Join Date: Mar 2006
Rookie Year: 2006
Location: Earth
Posts: 157
whitetiger0990 is a glorious beacon of lightwhitetiger0990 is a glorious beacon of lightwhitetiger0990 is a glorious beacon of lightwhitetiger0990 is a glorious beacon of lightwhitetiger0990 is a glorious beacon of light
Re: Relay Help, Keeping true, true.

You could use global variables, or use some logic with the value saved between loops. If the value changes and it changes to true, then change the value of the thing you want.

(there might be a better way but I don't know it).
Attached Thumbnails
Click image for larger version

Name:	button toggled.png
Views:	42
Size:	3.9 KB
ID:	7121  
Attached Files
File Type: vi button toggle.vi (8.5 KB, 45 views)
__________________
print$q=chr(ord($q)+$1)while("7443-0201-8465130105-12-03135-82482113-06-7672-070208-0613-70"=~/(-?\d\d)/g);

Last edited by whitetiger0990 : 10-01-2009 at 15:27.
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
true? Pin Man Championship Event 4 08-01-2004 09:51
Is it true? kewlkid382 Chit-Chat 38 27-01-2003 23:17
Is this true? team222badbrad Regional Competitions 2 29-03-2002 16:30
True? Elgin Clock Chit-Chat 14 23-09-2001 20:59


All times are GMT -5. The time now is 08:09.

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