I have a complete Public Address system that annouces shift, break and lunch 
start and ending 

times along with other notifications,  24/7 for a factory.  All done in 
Rbase.   It plays different sounds 

for shift start, end etc.  I.E. you can specify the file, even ones you record 
yourself. 



The command that actually generates the output for sound is: 



--create event command 
 set quotes = " 
 set var vcommand = ("Beep " + "'" + "file " + .vEventFile + "'" ) 

  

&vcommand 



Where vEventfile is .wav file such as: 



C:\Windows\Media\windavinciopen.wav 



I then loop the command to have it play as many times as I need. 

The system has a table that holds the event name, time to activate, days to 
activate 

and file to play.    The system code then runs via a form timer.    I run the 
PC sound 

output through a pre-amp that then goes to a remote PA amp that broad casts 
over 

a 300,000 sqft facility.    Works really nice with a menu system for 
maintaining 

when and what is announced.  It then runs complete unattended. 



-Bob 







----- Original Message ----- 
From: "Faith" <[email protected]> 
To: "RBASE-L Mailing List" <[email protected]> 
Sent: Wednesday, December 23, 2009 10:40:10 AM GMT -06:00 US/Canada Central 
Subject: [RBASE-L] - Using RBASE 7.6 to control physical PC connected devices 
like speakers and USB or RS232 connected lights and sirens. 




Hello Folks 



It looks like I can send a sound or wav file to a set of PC speakers,  this is 
in the docs. 

Any advice, hints or gotchas on using this syntax in a form in an 'On Exit 
EEP'? 



        

SET VAR vPlay = (GETVAL('PlayAndWait','c:\windows\media\tada.wav'))   



        




Will play sound /wave file and waits for the sound to finish before continue to 
a next command. This could be a long time if the sound file is long. You would 
want this if, for instance, you're writing an answering machine aplication in 
R:BASE for Windows. 







Also, is it possible to do/send any or all of these from an RBASE 7.6 
application? 



1) flash the screen with a color for a certain duration ? 



2) send a command to a USB connected device ( in my case a stacklight) , 
(when we find one... in case the RS232 to USB adapters won't work with the 
devices below or ... 
in the event that RBASE 7.6  can send control commands through a USB port but 
not through an RS232 port) 



3) send a command to an RS232 connected stacklight? 



http://www.wolfautomation.com/Product.aspx?ProductID=21036 



Reply via email to