Go to Post anything is possible with dedication. - [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 14-03-2011, 01:49
EHaskins EHaskins is offline
Needs to change his user title.
AKA: Eric Haskins
no team (CARD #6 (SCOE))
Team Role: College Student
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Elkhorn, WI USA
Posts: 998
EHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond repute
Send a message via MSN to EHaskins
Re: Play sound file with FRC Control system?

Quote:
Originally Posted by CNettles11 View Post
a couple more questions,
1) can you control digital ouputs from the drivers station?
2)Which DIO wires would run to the trigger?
1) You can. In Java, C++ is very similar. You'll need to find someone else to help if you're using LabView.
Code:
DigitalOutput file0 = new DigitalOutput(1);
Joystick stick = new Joystick(1);
//...

public void teleopPeriodic() {
	//...
	if (stick.getRawButtons(1)){
		file0.set(false);
	}
	else{
		file0.set(true);
	}
	//...
}
}
2) You would connect the signal wire, white, to the pin on the MP3 Trigger device.
__________________
Eric Haskins KC9JVH
Reply With Quote
  #2   Spotlight this post!  
Unread 14-03-2011, 07:51
CNettles11's Avatar
CNettles11 CNettles11 is offline
Registered User
AKA: Chris Nettles
FRC #3502 (Octo-Pi-Rates)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Tallahassee, FL
Posts: 122
CNettles11 is a jewel in the roughCNettles11 is a jewel in the roughCNettles11 is a jewel in the roughCNettles11 is a jewel in the rough
Re: Play sound file with FRC Control system?

well, i can dissect what i would need to do in labview from the java code you posted, Thanks!
__________________

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 20: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