November 23, 2024, 08:33:16 PM

News:

Be sure to checkout our Vixen interfaces in the Library forum -- if you want PC automation at near zero cost, EFX-TEK and Vixen is a great combination of tools.


a little program help

Started by brads, October 10, 2010, 10:57:19 PM

Previous topic - Next topic

brads

October 10, 2010, 10:57:19 PM Last Edit: October 10, 2010, 11:09:00 PM by brads
hey fellas, if anyone knows how to do this it would be helpful.

this rather large simple code is running fine but I would like to simultaneously fire another output hold it high for 1 second and low for one second high for one second low for one second ..on and on looped for the entire run of this program, but separate and not mixed in with the running code. Is there a loop or something that can be done?

thanks.

--------------------------------------

Trigger             PIN     14
trip                PIN 15
' -----[ Constants ]-------------------------------------------------------

Deactive        CON     0

' -----[ Program Code ]----------------------------------------------------

Audry_Talking:
  IF Trigger = Deactive THEN Audry_Talking


Main:
PAUSE 100 ' start audry talk cycle 1
HIGH trip
PAUSE 250
LOW trip
PAUSE 150
HIGH trip
PAUSE 250
LOW trip
PAUSE 150
HIGH trip
PAUSE 250
LOW trip
PAUSE 150
HIGH trip
PAUSE 250
LOW trip
PAUSE 150
HIGH trip
PAUSE 250
LOW trip
PAUSE 150   ' 2 seconds in
HIGH trip
PAUSE 250
LOW trip
PAUSE 150
HIGH trip
PAUSE 250
LOW trip
PAUSE 150
HIGH trip
PAUSE 250
LOW trip
PAUSE 150
HIGH trip
PAUSE 250
LOW trip
PAUSE 150
HIGH trip
PAUSE 250
LOW trip
PAUSE 150
HIGH trip
PAUSE 150
LOW trip    ' end talk cycle 1

PAUSE 500    ' start talk cycle 2
HIGH trip
PAUSE 250
LOW trip
PAUSE 150
HIGH trip
PAUSE 250
LOW trip
PAUSE 150
HIGH trip
PAUSE 250
LOW trip
PAUSE 150
HIGH trip
PAUSE 250
LOW trip
PAUSE 150
HIGH trip
PAUSE 250
LOW trip
PAUSE 150
HIGH trip
PAUSE 150
LOW trip    ' 2 seconds
HIGH trip
PAUSE 250
LOW trip
PAUSE 150
HIGH trip
PAUSE 250
LOW trip
PAUSE 150
HIGH trip
PAUSE 250
LOW trip
PAUSE 150
HIGH trip
PAUSE 250
LOW trip
PAUSE 150
HIGH trip
PAUSE 250
LOW trip
PAUSE 150
HIGH trip
PAUSE 150
LOW trip   ' 4 seconds
HIGH trip
PAUSE 250
LOW trip
PAUSE 150
HIGH trip
PAUSE 250
LOW trip
PAUSE 150
HIGH trip
PAUSE 250
LOW trip
PAUSE 150
HIGH trip
PAUSE 250
LOW trip
PAUSE 150
HIGH trip
PAUSE 250
LOW trip
PAUSE 150
HIGH trip
PAUSE 150
LOW trip  ' 6 seconds end second talk cycle 2
PAUSE 500    ' start talk cycle 2
HIGH trip
PAUSE 250
LOW trip
PAUSE 150
HIGH trip
PAUSE 250
LOW trip
PAUSE 150
HIGH trip
PAUSE 250
LOW trip
PAUSE 150
HIGH trip
PAUSE 250
LOW trip
PAUSE 150
HIGH trip
PAUSE 250
LOW trip
PAUSE 150
HIGH trip
PAUSE 150
LOW trip    ' 2 seconds
HIGH trip
PAUSE 250
LOW trip
PAUSE 150
HIGH trip
PAUSE 250
LOW trip
PAUSE 150
HIGH trip
PAUSE 250
LOW trip
PAUSE 150
HIGH trip
PAUSE 250
LOW trip
PAUSE 150
HIGH trip
PAUSE 250
LOW trip
PAUSE 150
HIGH trip
PAUSE 150
LOW trip   ' 4 seconds
HIGH trip
PAUSE 250
LOW trip
PAUSE 150
HIGH trip
PAUSE 250
LOW trip
PAUSE 150
HIGH trip
PAUSE 250
LOW trip
PAUSE 150
HIGH trip
PAUSE 250
LOW trip
PAUSE 150
HIGH trip
PAUSE 250
LOW trip
PAUSE 150
HIGH trip
PAUSE 150
LOW trip  ' end of talk cycle
HIGH trip
PAUSE 250
LOW trip
PAUSE 150
HIGH trip
PAUSE 250
LOW trip
PAUSE 150
HIGH trip
PAUSE 150
LOW trip  ' end of talk cycle


'--------------------loop 2
PAUSE 10000
PAUSE 100 ' start audry talk cycle 1
HIGH trip
PAUSE 250
LOW trip
PAUSE 150
HIGH trip
PAUSE 250
LOW trip
PAUSE 150
HIGH trip
PAUSE 250
LOW trip
PAUSE 150
HIGH trip
PAUSE 250
LOW trip
PAUSE 150
HIGH trip
PAUSE 250
LOW trip
PAUSE 150   ' 2 seconds in
HIGH trip
PAUSE 250
LOW trip
PAUSE 150
HIGH trip
PAUSE 250
LOW trip
PAUSE 150
HIGH trip
PAUSE 250
LOW trip
PAUSE 150
HIGH trip
PAUSE 250
LOW trip
PAUSE 150
HIGH trip
PAUSE 250
LOW trip
PAUSE 150
HIGH trip
PAUSE 150
LOW trip    ' end talk cycle 1

PAUSE 500    ' start talk cycle 2
HIGH trip
PAUSE 250
LOW trip
PAUSE 150
HIGH trip
PAUSE 250
LOW trip
PAUSE 150
HIGH trip
PAUSE 250
LOW trip
PAUSE 150
HIGH trip
PAUSE 250
LOW trip
PAUSE 150
HIGH trip
PAUSE 250
LOW trip
PAUSE 150
HIGH trip
PAUSE 150
LOW trip    ' 2 seconds
HIGH trip
PAUSE 250
LOW trip
PAUSE 150
HIGH trip
PAUSE 250
LOW trip
PAUSE 150
HIGH trip
PAUSE 250
LOW trip
PAUSE 150
HIGH trip
PAUSE 250
LOW trip
PAUSE 150
HIGH trip
PAUSE 250
LOW trip
PAUSE 150
HIGH trip
PAUSE 150
LOW trip   ' 4 seconds
HIGH trip
PAUSE 250
LOW trip
PAUSE 150
HIGH trip
PAUSE 250
LOW trip
PAUSE 150
HIGH trip
PAUSE 250
LOW trip
PAUSE 150
HIGH trip
PAUSE 250
LOW trip
PAUSE 150
HIGH trip
PAUSE 250
LOW trip
PAUSE 150
HIGH trip
PAUSE 150
LOW trip  ' 6 seconds end second talk cycle 2
PAUSE 500    ' start talk cycle 2
HIGH trip
PAUSE 250
LOW trip
PAUSE 150
HIGH trip
PAUSE 250
LOW trip
PAUSE 150
HIGH trip
PAUSE 250
LOW trip
PAUSE 150
HIGH trip
PAUSE 250
LOW trip
PAUSE 150
HIGH trip
PAUSE 250
LOW trip
PAUSE 150
HIGH trip
PAUSE 150
LOW trip    ' 2 seconds
HIGH trip
PAUSE 250
LOW trip
PAUSE 150
HIGH trip
PAUSE 250
LOW trip
PAUSE 150
HIGH trip
PAUSE 250
LOW trip
PAUSE 150
HIGH trip
PAUSE 250
LOW trip
PAUSE 150
HIGH trip
PAUSE 250
LOW trip
PAUSE 150
HIGH trip
PAUSE 150
LOW trip   ' 4 seconds
HIGH trip
PAUSE 250
LOW trip
PAUSE 150
HIGH trip
PAUSE 250
LOW trip
PAUSE 150
HIGH trip
PAUSE 250
LOW trip
PAUSE 150
HIGH trip
PAUSE 250
LOW trip
PAUSE 150
HIGH trip
PAUSE 250
LOW trip
PAUSE 150
HIGH trip
PAUSE 150
LOW trip  ' end of talk cycle
HIGH trip
PAUSE 250
LOW trip
PAUSE 150
HIGH trip
PAUSE 250
LOW trip
PAUSE 150
HIGH trip
PAUSE 150
LOW trip  ' end of talk cycle

PAUSE 10000



GOTO Audry_Talking
END


BigRez

Hmmm. could be tough depending on how your current program is written.  You should post your code so we can see.  But also, probably describe (exactly) what the existing program does because a complete rewrite may be needed to do what you want.

JonnyMac

1) Please... help us keep our forums useful by posting with a subject line that makes sense (for others scanning) and in the correct forum -- you have violated both of these guidelines.  I hate locking threads but you've forced me. 

2) The Prop-2 (which is what your program is written for) has only one brain and can, therefore, do only one thing at a time.  The only way to do this is to create a program that runs all outputs at the same time, some are on, some are off.  This is near impossible to do (while synchronizing) without external help, which is why we setup a "helper" tool with Vixen (see the Vixen section of the forums for details).

Jon McPhalen
EFX-TEK Hollywood Office