323 views
in Embedded Wizard Studio by

I create property1 in Application::DeviceClass and want to send value to property2 in Application::Application.

 

1 Answer

0 votes
by
 
Best answer

Hello,

I assume, you want to copy the value between two properties. A property can be accessed like a variable in context of an object the property exist inside. You need thus an instance of the DeviceClass. Such instance is usually added automatically as so-called autoobject to your project when you use the Device Interface template from the Gallery folder Device. If there is no autoobject of the DeviceClass, you can easily add a new one to your project.

As described in Use the autoobject, autoobjects are global entities, you can access from elsewhere in you project. This can occur e.g. in context of the Application component. In this manner you can access the property of Device autoobject and copy its value to the property in Application component. Assuming, the autobject is named Application::Device, following would be the code to copy its AlertValue  to the property ReceiveAlertValue in context of the Application component:

ReceiveAlertValue = Application::Device.AlertValue;

Best regards

Paul Banach

Embedded Wizard Website | Privacy Policy | Imprint

...