FORUM CTRLX AUTOMATION
ctrlX World Partner Apps for ctrlX AUTOMATION
Dear Community User! We are updating our platform to a new
system.
Read more: Important
information on the platform change.
10-07-2020 05:09 PM
I had tried to use the sample for datalayer in the sdk. I was able to connect to virtual core and do some stuff. After that i want to use it in my own application.
But it didn't work: I get the Assertion, shown in the picture below. I try it on the same virtual machine, connected to the same virtual core with the same connection string.
When i try in the meantime to connect with the adapted datalayer example it works. But not with my aplication.
Has Anybody an idea or Solution?
Matthias
Solved! Go to Solution.
10-12-2020 04:33 AM
I had stripped down my program to few files.
Steps to reproduction:
1.) Copy file in your ubuntu and extract it and go to folder
2.) Adjust location of sdk in ./CMake/CntrlX/CMakeLists.txt (line 11: "set (BASE_DIR_SDK ~/com.boschrexroth.sdk.control-1.4.2/public)")
3.) cd CMake
4.) mkdir build
5.) cd build
6.) cmake ..
7.) make
8.) cd CntrlX
9.) export LD_LIBRARY_PATH=/home/dev/com.boschrexroth.sdk.control-1.4.2/public/bin/zmq/linux-gcc-x64/release:/home/dev/com.boschrexroth.sdk.control-1.4.2/public/bin/comm.datalayer/linux-gcc-x64/release (!!! when neccessary adjust path)
10.) ./gcode_cntrlx
11.) you got the error
Output:
* find out which device file has to be used
ERROR: no file /sys/class/uio/uio0/name found
Connection string 'tcp://boschrexroth:boschrexroth@192.168.1.1:2069'
Assertion failed: rc == 0 (/var/jenkins/workspace/oss.zmq/src/socket_poller.cpp:311)
Abgebrochen (Speicherabzug geschrieben)
10-12-2020 05:20 AM - edited 10-12-2020 05:22 AM
Sometimes it's so easy....
The variable "comm::datalayer::DatalayerSystem datalayer" must be alive the whole time. Not only in context of method.
Create a member in the class and it works.