[IGSTK-Developers] Setting the Polaris Spectra illuminator rate?

Patrick Cheng cheng at isis.georgetown.edu
Tue Oct 28 08:26:58 EDT 2008


Hi Janne Beate,

IGSTK implements the NDI combined API. The IRATE command is specific to 
Polaris, and it's not supported right now.

If you really want to play with this feature, you can add a methods in
igstkNDICommandInterpreter.cxx
void IRATE(int rate){
   this->Command("IRATE:%04X", rate); }

And then in igstkPolarisTracker.cxx

ResultType SetIRate(int i) // should use an enum of 0, 1, and 2}
{
   commandInterpreter->IRATE(2); //60Hz
   if (this->CheckError(commandInterpreter) == FAILURE)
     {
     return FAILURE;
     }
}

These code are not tested.

Patrick


Janne Beate Lervik Bakeng wrote:
> Hello.
> 
> I’ve been looking for some way to specify which illuminator rate (IRATE, 
> page 77 from the Polaris Application Program Interface Guide) our 
> Polaris Spectra tracker should use.
> 
> We want to set it to 60 Hz, is it possible with todays igstk version? If 
> so how?
> 
> Best regards,
> Janne Beate Lervik Bakeng, SINTEF Health Research
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> IGSTK-Developers mailing list
> IGSTK-Developers at public.kitware.com
> http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-developers



More information about the IGSTK-Developers mailing list