# 1 "../sncLaserSoft.st"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "../sncLaserSoft.st"

program sncLaserSoft
option -c;
# 23 "../sncLaserSoft.st"
%%#include "math.h"
%%#include "epicsPrint.h"

%%#include "tsDefs.h"
%%#include "string.h"
%%#include "stdio.h"


float value;
int i;




float camr_proj_v[480]; assign camr_proj_v to "CAMR:LS00:1:PROJ_V";
float camr_proj_h[640]; assign camr_proj_h to "CAMR:LS00:1:PROJ_H";




ss camerapixelsSS
{
   state init
     {
          when(1)
  {
           printf("state init");
        for(i=0;i<480;i++) {value = i; camr_proj_v[i]=value*9/1000;}

           for(i=0;i<640;i++) {value = i; camr_proj_h[i]=value*9/1000;}
           pvPut(camr_proj_v);
           pvPut(camr_proj_h);
         }state check
     }
    state check
     {
       when(delay(10000))
         {
         }state check
     }
}
