May 18, 2024, 08:46:12 PM

News:

You can now use Vixen to program your Prop-1 and Prop-2 controllers!  Get started quickly and easily, without having to learn PBASIC.  Details in the Library forum.


FC4 hangs after fade command

Started by steveo, February 27, 2008, 04:09:04 PM

Previous topic - Next topic

steveo

February 27, 2008, 04:09:04 PM Last Edit: February 27, 2008, 05:11:54 PM by steveo
Jon,
I'm playing around with the FC4, and I'm having a bit of a problem. If I fade a channel, it seems to not get any other instructions after that event. If I fade up, that's it, it hangs full bright. I can write a program that turn the channel on and off with the "L" command, but as soon as I use a fade command it won't respond.

It's probably me, so I hope you can check out the code below and tell me why this is hanging on the fade up and ignoring the next line.



' {$STAMP BS2}
' {$PBASIC 2.5}
' {$PORT COM1}



Trigger         PIN       1
TX              PIN       15
Addr            CON       %00


T2400           CON     396
T38K4           CON     6
Open            CON     $8000
Baud            CON     Open + T38K4


Main:



IF Trigger = 0 THEN Main


SEROUT TX, Baud, ["!FC4", Addr, "F", 1, 1, 255, 10]

PAUSE  2000

SEROUT TX, Baud, ["!FC4", Addr, "F", 1, 255, 0, 10]


GOTO Main


p.s.
I have the Prop2's upper bank using a ULN2003 so PIN15 is free of interference.

UPDATE:
Doh!!!! I was sending commands to the FC4 while it was still in the middle of previous actions.

JonnyMac

So... problem solved?  With your fades you've got 10 x 255 milliseconds, so set you PAUSE to 2600 or higher.

We are in fact working on a firmware update that will accept commands in the middle of another process. 
Jon McPhalen
EFX-TEK Hollywood Office

steveo

That update will be greatly appreciated for my intended application. Did I mention i love the FC4?