29 #include <ChimeraTK/ControlSystemAdapter/ApplicationBase.h>
30 #include <ChimeraTK/ControlSystemAdapter/DevicePVManager.h>
40 struct MyApp :
public ApplicationBase {
41 MyApp() : ApplicationBase(
"opcuaAdapter") {}
44 void run() { cout <<
"Application run..." << endl; }
47 ApplicationBase::shutdown();
48 cout <<
"Application shutdown..." << endl;
52 boost::shared_ptr<DevicePVManager>
devManager = this->_processVariableManager;
55 ProcessArray<int8_t>::SharedPtr intA8dev = this->_processVariableManager->createProcessArray<int8_t>(
56 SynchronizationDirection::controlSystemToDevice,
"int8Scalar", 1,
"Iatrou^2/Rahm");
57 ProcessArray<uint8_t>::SharedPtr intAu8dev = this->_processVariableManager->createProcessArray<uint8_t>(
58 SynchronizationDirection::controlSystemToDevice,
"uint8Scalar", 1,
"mIatrou*Rahm");
59 ProcessArray<int16_t>::SharedPtr intA16dev = this->_processVariableManager->createProcessArray<int16_t>(
60 SynchronizationDirection::controlSystemToDevice,
"int16Scalar", 1);
61 ProcessArray<uint16_t>::SharedPtr intAu16dev = this->_processVariableManager->createProcessArray<uint16_t>(
62 SynchronizationDirection::controlSystemToDevice,
"uint16Scalar", 1);
63 ProcessArray<int32_t>::SharedPtr intA32dev = this->_processVariableManager->createProcessArray<int32_t>(
64 SynchronizationDirection::controlSystemToDevice,
"int32Scalar", 1);
65 ProcessArray<uint32_t>::SharedPtr intAu32dev = this->_processVariableManager->createProcessArray<uint32_t>(
66 SynchronizationDirection::controlSystemToDevice,
"uint32Scalar", 1);
67 ProcessArray<float>::SharedPtr intAfdev = this->_processVariableManager->createProcessArray<
float>(
68 SynchronizationDirection::controlSystemToDevice,
"floatScalar", 1);
69 ProcessArray<double>::SharedPtr intAddev = this->_processVariableManager->createProcessArray<
double>(
70 SynchronizationDirection::controlSystemToDevice,
"doubleScalar", 1);
71 ProcessArray<string>::SharedPtr stringAddev =
72 devManager->createProcessArray<
string>(SynchronizationDirection::controlSystemToDevice,
"stringScalar", 1);
73 ProcessArray<string>::SharedPtr stringAddev2 =
devManager->createProcessArray<
string>(
74 SynchronizationDirection::deviceToControlSystem,
"1/FOLDER/defaultSep/stringScalar", 1,
"my unit",
"desc");
76 ProcessArray<int8_t>::SharedPtr intB15A8dev =
77 this->_processVariableManager->createProcessArray<int8_t>(SynchronizationDirection::controlSystemToDevice,
78 "int8Array_s15", 15,
"mIatrou*Rahm",
"Die Einheit ist essentiel und sollte SI Einheit sein...");
79 ProcessArray<uint8_t>::SharedPtr intB10Au8dev = this->_processVariableManager->createProcessArray<uint8_t>(
80 SynchronizationDirection::controlSystemToDevice,
"uint8Array_s10", 10,
"1/Rahm");
81 ProcessArray<int16_t>::SharedPtr intB15A16dev = this->_processVariableManager->createProcessArray<int16_t>(
82 SynchronizationDirection::controlSystemToDevice,
"int16Array_s15", 15,
"Iatrou",
"Beschreibung eines Iatrous");
83 ProcessArray<uint16_t>::SharedPtr intB10Au16dev = this->_processVariableManager->createProcessArray<uint16_t>(
84 SynchronizationDirection::controlSystemToDevice,
"uint16Array_s10", 10);
85 ProcessArray<int32_t>::SharedPtr intB15A32dev = this->_processVariableManager->createProcessArray<int32_t>(
86 SynchronizationDirection::controlSystemToDevice,
"int32Array_s15", 15);
87 ProcessArray<uint32_t>::SharedPtr intB10Au32dev = this->_processVariableManager->createProcessArray<uint32_t>(
88 SynchronizationDirection::controlSystemToDevice,
"uint32Array_s10", 10);
89 ProcessArray<double>::SharedPtr intB15Afdev = this->_processVariableManager->createProcessArray<
double>(
90 SynchronizationDirection::controlSystemToDevice,
"doubleArray_s15", 15);
91 ProcessArray<float>::SharedPtr intB10Addev = this->_processVariableManager->createProcessArray<
float>(
92 SynchronizationDirection::controlSystemToDevice,
"floatArray_s10", 10);
95 ProcessArray<int8_t>::SharedPtr intB15A8devMap =
devManager->createProcessArray<int8_t>(
96 SynchronizationDirection::controlSystemToDevice,
"Mein/Name_ist#int8Array_s15", 15,
"Iatrou^2/Rahm");
97 ProcessArray<int8_t>::SharedPtr intB15A8devMap2 =
devManager->createProcessArray<int8_t>(
98 SynchronizationDirection::controlSystemToDevice,
"Mein/Name_ist#int8Array", 15,
"Iatrou^2/Rahm");
99 ProcessArray<uint8_t>::SharedPtr intB10Au8devMap1 =
100 devManager->createProcessArray<uint8_t>(SynchronizationDirection::controlSystemToDevice,
101 "/Dein/Name//ist/uint8Array_s10", 10,
"Iatrou^2/Rahm",
"Beschreibung");
102 ProcessArray<uint8_t>::SharedPtr intB10Au8devMap2 =
devManager->createProcessArray<uint8_t>(
103 SynchronizationDirection::controlSystemToDevice,
"Unser/Name/ist_uint8Array_s10", 10);
104 ProcessArray<uint32_t>::SharedPtr intAu32devMap =
devManager->createProcessArray<uint32_t>(
105 SynchronizationDirection::controlSystemToDevice,
"Ist/Name/dieser/uint32Scalar", 1);
106 ProcessArray<int32_t>::SharedPtr intA32devMap =
devManager->createProcessArray<int32_t>(
107 SynchronizationDirection::controlSystemToDevice,
"Ist/Name/dieser/int32Scalar", 1);
108 ProcessArray<double>::SharedPtr doubledevMap =
devManager->createProcessArray<
double>(
109 SynchronizationDirection::controlSystemToDevice,
"Ist/Name/dieser/doubleScalar", 1);