Added "getnumchan" command to fetch the number of available counter channels for a scan object.

Mark Koennecke agreed to this change on the 15/03/07.
Search for
Re: getnmonitor from scan.c and counter.c
on plone for the transcript.

r1673 | ffr | 2007-03-20 10:55:16 +1100 (Tue, 20 Mar 2007) | 6 lines
This commit is contained in:
Ferdi Franceschini
2007-03-20 10:55:16 +11:00
committed by Douglas Clowes
parent faa2302019
commit 3b7eccf481

1
scan.c
View File

@@ -2236,6 +2236,7 @@ static int DumpScan(pScanData self, SConnection *pCon)
else if(strcmp(argv[1],"getnumchan") == 0) { else if(strcmp(argv[1],"getnumchan") == 0) {
snprintf(pBueffel,511,"%s.getnumchan = %ld", argv[0], GetNMonitor((pCounter)self->pCounterData)); snprintf(pBueffel,511,"%s.getnumchan = %ld", argv[0], GetNMonitor((pCounter)self->pCounterData));
SCWrite(pCon,pBueffel,eValue); SCWrite(pCon,pBueffel,eValue);
return 1;
} }
/*----------- setchannel */ /*----------- setchannel */
else if(strcmp(argv[1],"setchannel") == 0) else if(strcmp(argv[1],"setchannel") == 0)