Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Instrument Control
NomadSpecialModules
Commits
b960cb91
Commit
b960cb91
authored
Mar 08, 2016
by
Abdelali Elaazzouzi
Browse files
commit before merge
parent
1c259e58
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/drivers/princeton/usbpvcam/RealUsbPVCamDriver.cpp
View file @
b960cb91
...
...
@@ -45,12 +45,15 @@ RealUsbPVCamDriver::~RealUsbPVCamDriver() {
* init
*/
void
RealUsbPVCamDriver
::
init
()
{
if
(
!
plPVCamInit
())
{
cerr
<<
"failed to init pvcam"
<<
endl
;
print_pv_error
();
}
else
{
plPVCamInit
();
// if (!plPVCamInit()) {
// cerr << "failed to init pvcam" << endl;
// print_pv_error();
// } else {
char
cam_name
[
CAM_NAME_LEN
];
if
(
plCamGetName
(
0
,
cam_name
))
{
cout
<<
"camera "
<<
owner
()
->
camID
()
<<
endl
;
if
(
plCamGetName
(
owner
()
->
camID
(),
cam_name
))
{
cerr
<<
"camname for cam 0 is "
<<
cam_name
<<
endl
;
if
(
plCamOpen
(
cam_name
,
&
m_Handle
))
{
}
else
{
...
...
@@ -61,7 +64,7 @@ void RealUsbPVCamDriver::init() {
cerr
<<
"didn't get cam name"
<<
endl
;
print_pv_error
();
}
}
//
}
readInfos
();
readStatus
();
}
...
...
src/drivers/princeton/usbpvcam/UsbPVCamDriver.cpp
View file @
b960cb91
...
...
@@ -38,6 +38,9 @@ UsbPVCamDriver::UsbPVCamDriver(const string& name) :
registerStates
(
new
RealUsbPVCamDriver
(
this
),
new
PerfectUsbPVCamDriver
(
this
),
new
PerfectUsbPVCamDriver
(
this
));
camID
.
init
(
this
,
SAVE
,
"cam_ID"
);
/*
* Init the device command list
*/
...
...
@@ -54,6 +57,7 @@ UsbPVCamDriver::UsbPVCamDriver(const string& name) :
initCommand
(
DetectorCommon
::
REGROUP_COMMAND
);
initCommand
(
AcquisitionCommon
::
WRITE_PARAMETERS_COMMAND
);
// Init functions
registerParentFunction
(
NONE_FUNCTION
);
registerFunction
(
NONE_FUNCTION
);
...
...
src/drivers/princeton/usbpvcam/UsbPVCamDriver.h
View file @
b960cb91
...
...
@@ -59,6 +59,9 @@ public:
* \param[in] command the command to apply on the controller
*/
virtual
void
execute
(
const
std
::
string
&
aCommand
);
// Global properties
Property
<
int32
>
camID
;
/*!
* \brief Calculate the progression state.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment