mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-01-18 01:38:06 +01:00
added check if reciever is running
This commit is contained in:
@@ -551,6 +551,7 @@ int ClientInterface::set_num_analog_samples(Interface &socket) {
|
|||||||
if (detType != CHIPTESTBOARD && detType != XILINX_CHIPTESTBOARD) {
|
if (detType != CHIPTESTBOARD && detType != XILINX_CHIPTESTBOARD) {
|
||||||
functionNotImplemented();
|
functionNotImplemented();
|
||||||
}
|
}
|
||||||
|
verifyIdle(socket);
|
||||||
try {
|
try {
|
||||||
impl()->setNumberofAnalogSamples(value);
|
impl()->setNumberofAnalogSamples(value);
|
||||||
} catch (const std::exception &e) {
|
} catch (const std::exception &e) {
|
||||||
@@ -567,6 +568,7 @@ int ClientInterface::set_num_digital_samples(Interface &socket) {
|
|||||||
if (detType != CHIPTESTBOARD && detType != XILINX_CHIPTESTBOARD) {
|
if (detType != CHIPTESTBOARD && detType != XILINX_CHIPTESTBOARD) {
|
||||||
functionNotImplemented();
|
functionNotImplemented();
|
||||||
}
|
}
|
||||||
|
verifyIdle(socket);
|
||||||
try {
|
try {
|
||||||
impl()->setNumberofDigitalSamples(value);
|
impl()->setNumberofDigitalSamples(value);
|
||||||
} catch (const std::exception &e) {
|
} catch (const std::exception &e) {
|
||||||
@@ -1736,6 +1738,7 @@ int ClientInterface::set_num_transceiver_samples(Interface &socket) {
|
|||||||
if (detType != CHIPTESTBOARD && detType != XILINX_CHIPTESTBOARD) {
|
if (detType != CHIPTESTBOARD && detType != XILINX_CHIPTESTBOARD) {
|
||||||
functionNotImplemented();
|
functionNotImplemented();
|
||||||
}
|
}
|
||||||
|
verifyIdle(socket);
|
||||||
try {
|
try {
|
||||||
impl()->setNumberofTransceiverSamples(value);
|
impl()->setNumberofTransceiverSamples(value);
|
||||||
} catch (const std::exception &e) {
|
} catch (const std::exception &e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user