Skip to content
Snippets Groups Projects
Commit ccb16fdd authored by Sonia Minolli's avatar Sonia Minolli
Browse files

Update simulation mode

parent 8bdabe40
No related branches found
No related tags found
No related merge requests found
......@@ -35,6 +35,7 @@ namespace dsl {
#else
typedef unsigned long HardwareHandle;
typedef unsigned long DigitizerErr;
typedef unsigned int ViInt32;
#endif
// ============================================================================
......
......@@ -8,7 +8,7 @@
</parent>
<groupId>fr.soleil.lib</groupId>
<artifactId>DSL4Agilent-${aol}-${library}-${mode}</artifactId>
<version>2.1.0</version>
<version>2.1.1-SNAPSHOT</version>
<packaging>nar</packaging>
<name>DSL4Agilent</name>
<description>Agilent/Acqiris Digitizers Support Library</description>
......@@ -48,6 +48,7 @@
</includePaths>
<defines>
<define>_AGILENT_SUPPORT_</define>
<!--define>_SIMULATION_</define-->
</defines>
</cpp>
</configuration>
......
......@@ -145,9 +145,12 @@ int AcqirisDigitizer::register_hardware ()
"AcqirisDigitizer::register_hardware");
}
#else // _SIMULATION_
return 0;
std::cout << "register_hardware SIMULATED" << std::endl;
if (is_calibration_at_init_)
{
std::cout << "calibrating..." << std::endl;
Sleep(15000);
}
#endif // _SIMULATION_
return 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment