Skip to content

Commit ce2b412

Browse files
jamesobutleradamrankin
authored andcommitted
ENH: Get actual Andor HSSpeed value
1 parent 440e15f commit ce2b412

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

src/PlusDataCollection/Andor/vtkPlusAndorVideoSource.cxx

+12
Original file line numberDiff line numberDiff line change
@@ -986,6 +986,18 @@ PlusStatus vtkPlusAndorVideoSource::SetHSSpeed(int type, int index)
986986
return PLUS_SUCCESS;
987987
}
988988

989+
// ----------------------------------------------------------------------------
990+
float vtkPlusAndorVideoSource::GetHSSpeed()
991+
{
992+
float speed;
993+
unsigned status = checkStatus(::GetHSSpeed(0, HSSpeed[0], HSSpeed[1], &speed), "GetHSSpeed");
994+
if(status != DRV_SUCCESS)
995+
{
996+
LOG_ERROR("GetHSSpeed command failed.");
997+
}
998+
return speed;
999+
}
1000+
9891001
// ----------------------------------------------------------------------------
9901002
PlusStatus vtkPlusAndorVideoSource::SetVSSpeedIndex(int index)
9911003
{

src/PlusDataCollection/Andor/vtkPlusAndorVideoSource.h

+3
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ class vtkPlusDataCollectionExport vtkPlusAndorVideoSource: public vtkPlusDevice
7373
/*! Set horizontal shift speed. */
7474
PlusStatus SetHSSpeed(int type, int index);
7575

76+
/*! Get the actual HS Speed in MHz for the current HSSpeed index. */
77+
float GetHSSpeed();
78+
7679
/*! Set index to use in the vertical shift speed table. */
7780
PlusStatus SetVSSpeedIndex(int index);
7881

0 commit comments

Comments
 (0)