; AMW WinScript source file, Alcorn McBride Inc. [WindowPlacement] InputColWidths=3875, 8500 OutputColWidths=3875, 8500 FlagColWidths=3875, 8500 VariableColWidths=3875, 8500 PortWindowPosition=99, 332, 874, 757 PortColWidths=2765, 10255, 2625, 3500 DataStringColWidths=3875, 8500, 8500 LCDStringWindowPosition=56, 351, 836, 751 LcdStringColWidths=3875, 8500, 8500 XRefColWidths=3875, 8500, 28783, 28261, 25436, 28015, 24941, 3875 SequenceListWindowPosition=155, 189, 1039, 606 SequenceColWidths=5145, 12145, 0, 6720, 0 smpteColWidths=3875, 8500, 15717 CompileWindowPosition=0, 403, 790, 903 CompileErrorWindowPosition=373, 321, 652, 454 [Unit] FileFormat=1.0 FileFormatType=Ascii Description=This example script plays two video players (Alcorn McBride DVM-7400's) in sync with each other. If you want to add more players or different types of players, you can use this script as a template. Version=1.0 Type=InterActivator Address=0 FrameRate=30 ClockSource=External ExternalFrequency=29.97 [Compiler] Optimization=Speed Messages=Verbose ErrorDetection=Normal [Connection] Method=Serial ComPort=Com1 Timeout=3 Seconds Pacing=150 ms PacketSize=128 [Inputs] Input01=button1 Input02=button2 Input03=button3 Input04=button4 Input05=button5 Input06=button6 Input07=button7 Input08=button8 [Outputs] [Flags] [Vars] [Ports] Port00=Programmer,9600,N,9,1,Alcorn_9_Bit_Control Port01=port1 ,9600,N,8,1,Alcorn_McBride_DVM-7400,Error1 Port02=port2 ,9600,N,8,1,Alcorn_McBride_DVM-7400,Error2 [DataStrings] [LcdStrings] Error1Msg="Unit A Faulted " Error2Msg="Unit B Faulted " ; ********************** ; * * ; * Sequence 1: Start * ; * * ; ********************** [Sequence: Start] EventsWindowPosition=0, 357, 763, 616 EventColWidths=420, 1750, 2100, 2100, 3815, 1750, 1750, 1750, 7385 Description=Start Playback StartTrigger=button1 GOES ON Events=Standard ; Time Event Data1 Comment ; -------- ----- --------------- ------- 00:00.00 Off flag1 00:00.00 Off flag2 00:00.00 Start SearchUnitA 00:00.00 Start SearchUnitB 00:00.00 Start WaitForSearches 00:00.00 Nop ; **************************** ; * * ; * Sequence 2: SearchUnitA * ; * * ; **************************** [Sequence: SearchUnitA] EventsWindowPosition=237, 583, 1017, 753 EventColWidths=400, 2265, 2085, 3475, 2340, 2340, 2340, 2340, 7500 Events=Standard ; Time Event Data1 Comment ; -------- ------ ----- - ------- 00:00.00 Search port1 1 ;Search Clip 1 00:00.00 On flag1 ;Set flag when search is complete ; **************************** ; * * ; * Sequence 3: SearchUnitB * ; * * ; **************************** [Sequence: SearchUnitB] EventsWindowPosition=44, 44, 824, 214 EventColWidths=400, 2265, 2085, 3475, 2340, 2340, 2340, 2340, 7500 Events=Standard ; Time Event Data1 Comment ; -------- ------ ----- - ------- 00:00.00 Search port2 1 ;Search Clip 1 00:00.00 On flag2 ;Set flag when search is complete ; ******************************** ; * * ; * Sequence 4: WaitForSearches * ; * * ; ******************************** [Sequence: WaitForSearches] EventsWindowPosition=258, 221, 1305, 697 EventColWidths=420, 1750, 2100, 2100, 3990, 1750, 1750, 1750, 14140 Looping=Enabled Events=Standard ; Time Event Data1 Comment ;--- -------- ----- --------------- --- ------- 00:00.00 IfOff flag1 end ;Check 'search' flags to see if the searches have completed yet 00:00.00 IfOff flag2 end 00:00.00 Off flag1 ;Seach Complete! - Reset the 'search' flags 00:00.00 Off flag2 00:00.00 Start PlayUnitA ;Trigger 'Play' sequences so they both start on the next frame 00:00.00 Start PlayUnitB 00:00.00 Reset WaitForSearches ;Done waiting now - Stop this sequence from running end 00:00.00 Nop ; ************************** ; * * ; * Sequence 5: PlayUnitA * ; * * ; ************************** [Sequence: PlayUnitA] EventsWindowPosition=154, 154, 934, 324 EventColWidths=400, 2265, 2085, 3475, 2340, 2340, 2340, 2340, 7500 Events=Standard ; Time Data1 Comment ; -------- ---- ----- ------- 00:00.00 Play port1 ; ************************** ; * * ; * Sequence 6: PlayUnitB * ; * * ; ************************** [Sequence: PlayUnitB] EventsWindowPosition=176, 176, 956, 346 EventColWidths=400, 2265, 2085, 3475, 2340, 2340, 2340, 2340, 7500 Events=Standard ; Time Data1 Comment ; -------- ---- ----- ------- 00:00.00 Play port2 ; ********************* ; * * ; * Sequence 7: Stop * ; * * ; ********************* [Sequence: Stop] EventsWindowPosition=88, 88, 910, 260 EventColWidths=420, 1750, 2100, 2100, 4200, 1750, 1750, 1750, 10325 Description=Stop Playback StartTrigger=button8 GOES ON Events=Standard ; Time Event Data1 Comment ; -------- ----- --------------- ------- 00:00.00 Stop port1 ;Stop Playback on all DVM's 00:00.00 Stop port2 00:00.00 Reset WaitForSearches ;Terminate Search (in case search is in progress) ; *********************** ; * * ; * Sequence 8: Error1 * ; * * ; *********************** [Sequence: Error1] EventsWindowPosition=0, 0, 1138, 166 EventColWidths=385, 2240, 2065, 3465, 2835, 2310, 2310, 2310, 19425 Events=Standard ; Time Event Data1 Comment ; -------- ------- --------- --- ------- 00:00.00 Display Error1Msg ;This display is useful for controllers with displays, but doesn't hurt to leave in for InterActivator 00:00.00 Blink output1 1.0 ;Blink output every second to indicate error ; *********************** ; * * ; * Sequence 9: Error2 * ; * * ; *********************** [Sequence: Error2] EventsWindowPosition=22, 22, 1034, 171 EventColWidths=420, 1750, 2100, 2100, 2380, 1750, 1750, 1750, 19110 Events=Standard ; Time Event Data1 Comment ; -------- ------- --------- --- ------- 00:00.00 Display Error2Msg ;This display is useful for controllers with displays, but doesn't hurt to leave in for InterActivator 00:00.00 Blink output2 1.0 ;Blink output every second to indicate error