- Adding first working version of the McStas SICS connection to cvs
SKIPPED: psi/polterwrite.c
This commit is contained in:
17
counter.c
17
counter.c
@@ -529,6 +529,13 @@
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* test for McStas simulation counter driver
|
||||
*/
|
||||
if(strcmp(argv[2],"mcstas") == 0){
|
||||
pDriv = NewMcStasCounter(argv[1]);
|
||||
}
|
||||
|
||||
if(!pDriv)
|
||||
{
|
||||
sprintf(pBueffel,"ERROR: cannot create requested driver %s",
|
||||
@@ -666,6 +673,16 @@
|
||||
return self->pDriv->lCounts[iNum];
|
||||
}
|
||||
}
|
||||
/*-----------------------------------------------------------------------*/
|
||||
void SetMonitorValue(pCounter self, int index, long value)
|
||||
{
|
||||
assert(self);
|
||||
|
||||
if(index >= 0 && index < self->pDriv->iNoOfMonitors)
|
||||
{
|
||||
self->pDriv->lCounts[index] = value;
|
||||
}
|
||||
}
|
||||
/*------------------------------------------------------------------------*/
|
||||
float GetCountTime(pCounter self,SConnection *pCon)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user