main()
{
   string systemName;
   
   systemName = getSystemName();
   dpConnect("setTestData", systemName+"setTestData.trigger:_online.._value");

}

void setTestData(string dpeTrigger, bool trigger)
{	
	int response;
	float dpeValue;
	string dpeParameters, systemName;
	dyn_string parametersSplit;

	DebugN("====================0");
	systemName = getSystemName();
	if(trigger)
		{
  			response=0;
  			dpGet(systemName+"setTestData.parameters:_online.._value", dpeParameters);
  			parametersSplit=strsplit(dpeParameters,"|");
  			DebugN("====================1");
  			//sscanf(param[1],"%s",dp_path);
  			sscanf(parametersSplit[1],"%f",dpeValue);
 			DebugN("========================== dpeValue = ", dpeValue);
  			//value=2;
  			//SCTdcs01:Limi01.FatL
 			DebugN("====================2");
 			//=================put here your code====================
 			//for example triggering a state traninsition
  			//response=dpSetWait(systemName+"Host.Stat:_original.._value",dpeValue);
  			//DebugN(dpeValue);
  			//=======================================================
      		if(response!=0) response=0-response;
 			DebugN("====================3");
   			dpSet(systemName+"setTestData.response:_original.._value",response,
         		  systemName+"setTestData.trigger:_original.._value",!trigger);
 			DebugN("====================4");
 		}
}

