diff --git a/modules/sensor/test/force-torque/testComedi.cpp b/modules/sensor/test/force-torque/testComedi.cpp index 99d851d17f..09c62c09b1 100644 --- a/modules/sensor/test/force-torque/testComedi.cpp +++ b/modules/sensor/test/force-torque/testComedi.cpp @@ -1,7 +1,7 @@ /**************************************************************************** * * ViSP, open source Visual Servoing Platform software. - * Copyright (C) 2005 - 2023 by Inria. All rights reserved. + * Copyright (C) 2005 - 2024 by Inria. All rights reserved. * * This software is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -30,13 +30,12 @@ * * Description: * Test force/torque ATI sensor. - * -*****************************************************************************/ + */ /*! \example testComedi.cpp This example shows how to retrieve data from a sensor connected to a DAQ - board. He we have 1 signe main threads that acquires physical values at 100 + board. Here we have 1 single main threads that acquires physical values at 100 Hz (10 ms) and records data in recorded-physical-data-sync.txt file. */ @@ -58,9 +57,11 @@ int main() vpPlot scope(1, 700, 700, 100, 200, std::string("ATI physical sensor data (") + comedi.getPhyDataUnits() + std::string(")")); scope.initGraph(0, comedi.getNChannel()); +#if (VISP_CXX_STANDARD >= VISP_CXX_STANDARD_11) for (unsigned int i = 0; i < comedi.getNChannel(); i++) { scope.setLegend(0, i, "G" + ((std::ostringstream() << i)).str()); } +#endif #endif std::string file("recorded-physical-data-sync.txt");