November 26, 2024, 07:26:27 AM

News:

Got VSA?  Want to use your Prop-SX?  Now you can!  See the VSA section of the Library forum for Prop-SX code that works with VSA.


Use of !

Started by ScaryTinker, October 18, 2007, 03:46:33 AM

Previous topic - Next topic

ScaryTinker

I've noticed that you use muliple '!' characters when you do a reset on serial accessories.  Here's a sample from one of your sample programs "SEROUT Sio, Baud, ("!!!!!!!AP8", %00, "X")    ' stop on reset" 

I didn't see anything in the AP-8 documentation explicitly about the use of the '!' character other than the standard command syntax that you must preface the serial accessory name with the '!'.

I'm guessing that the '!' character in effect says "Listen up serial devices a command is coming".  Is the intent of using it multiple times in the reset statment to give the devices time to power up so they don't miss a command?  Are there other times when multiple '!' characters is appropriate?

JonnyMac

I only do that in the reset section to re-sync with the external device in the event that the controller reset button gets pressed while it was transmitting; it doesn't make sense to do it elsewhere. 
Jon McPhalen
EFX-TEK Hollywood Office