Eng.

This example shows how to work with a profile for a specific positioner in the user program.


For run:

 * On OS X: library is a Mac OS X framework, and at example application it’s bundled inside testprofile_C.app.
Copy ximc/macosx/libximc.framework, ximc/ximc.h to the directory examples/test_C/testprofile_C.
Install XCode. Test app should be built with XCode project testprofile_C.xcodeproj.
Then launch application testprofile_C.app and check activity output in Console.app.
 * For Linux: install libximc*.deb and libximc-dev*.deb of the target architecture in the specified order. 
! IT is IMPORTANT to install the library only of the appropriate Linux bit depth and only in the specified order.
Then copy ximc/ximc.h to the directory
examples/test_C/testprofile_C. Install gcc. Test application can be built with the installed library with the following script:
$ make
In case of cross-compilation (target architecture differs from the current system architecture) feed -m64 or -m32 flag
to compiler.
Then launch the application as:
$ make run

To quickly build and run the example on Linux, you can run the script testprofile_C.sh . You don't need to install libraries for it to work.
It will automatically build and run the example. If the script outputs a message that the device has not been found, 
you can change the device address to the correct one in the script line:
./testprofile_C  xi-com:/dev/ttyACM0

 * In Windows: testprofile_C can be built using testprofile_C.sln. Make sure that Microsoft Visual C++ Redistributable Package 2013 is installed.
Open solution examples/test_C/testprofile_C/testprofile_C.sln, build and run from the IDE.



Rus.

Данный пример показывает как работать с профилем для конкретного позиционера в пользовательском приложении.

 
Для запуска примера:

* На OS X: библиотека для Mac OS поставляется в формате Mac OS X framework. Скопируйте ximc/macosx/libximc.framework, ximc/ximc.h в каталог
examples/test_C/testprofile_C. Должен быть установлен XCode. Пример testprofile_C дорлжен быть собран проектом XCode testprofile_C.xcodeproj.
Запустите приложение testprofile_C.app и проверте его работу в Console.app.
* Для Linux: установите libximc*.deb и libximc-dev*.deb целевой архитектуры в указанном порядке. 
! ВАЖНО устанавливать библиотеку только соответствующей разрядности Linux и только в указанном порядке.
Затем скопируйте ximc/ximc.h в каталог
examples/test_C/testprofile_C. Установите gcc. Тестовое приложение может быть собрано с помощью установленной библиотеки командой:
$ make
Выполнить приложение можно командой:
$ make run

Для быстрой сборки и запуска примера на Linux можно запустить скрипт testprofile_C.sh. Для его работы не нужно устанавливать библиотеки. 
Он автоматически соберет и запустит пример. Если скрипт выведет сообщение, что не найдено устройство можно поменять в строке скрипта: 
./testprofile_C  xi-com:/dev/ttyACM0
адрес устройства на правильный.

* В Windows для компиляции необходимо использовать MS Visual C++. Убедитесь, что Microsoft Visual C++ Redistributable Package 2013 установлен. 
Библиотека с зависимостями находится в папках ximc/win**. Для работы примера неоходимы следующие файлы: bindy.dll, libximc.dll, xiwrapper.dll.
Откройте пример /testprofile_C/testprofile_C.sln, создайте и запустите их из среды IDE.

