Software Description

Open report file.
Initialize RS232 port
Wait 1 second

Wait_Quarter_Hour
       Wait for minutes to equal 00,15,30,45
       If minutes not equal to 00,15,30,45 then goto Wait_Quarter_Hour
       Else then goto Gather_Data

Gather_Data
       Output 00 to digital control (MOTOR = OFF,V=PANEL,CHARGE=ON 00)
       Wait 500 msec for relays to close.
       Read DrDAQ Panel Voltage multiply by 10 to scale back to proper value.
       Read DrDAQ External Temperature.
       Read DrDAQ Light. Save reading for later to determine if panel need to move
       Output 11 to digital control (MOTOR = OFF,V=LOAD,CHARGE=OFF 11)
      Wait 500 msec for relays to close.
       Read DrDAQ Load Voltage, multiply by 10 to scale back to proper value.

Write Data to report file.

Wait_Quarter_Hour_Over
       If minutes equal to 00,15,30,45 then goto Wait_Quarter_Hour_Over
        Else then goto Move_To_Light

Move_To_Light
        Output 01 to digital control MOTOR = ON,DIR= FOR,V=BATT,CHARGE=ON 01
        If light is less that 50, and Limit switch is OPEN then goto Move_To_Light
        If light is greater than 50 or Limit switch is shorted (closed) then Goto Motors_Off.

Motors_Off
       Output 11 to digital control MOTOR = OFF,V=LOAD,CHARGE=OFF 11

Routine_End_?
       If Limit switch is shorted, or Stop button is pressed, then goto End
       Else, goto Wait_Quarter_Hour

End.

I will email you the LabVIEW source code if you request. robert.c.bowen@gte.net