627 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

Ask Embedded Wizard - Archive

Welcome to the Ask Embedded Wizard archive. This community forum served us well for many years, but we've evolved our support approach!

Your resources:

The Embedded Wizard Online Documentation provides comprehensive documentation, tutorials, examples and ready-to-use software packages.

For dedicated assistance, explore our Embedded Wizard Product Support.

You can still browse the valuable discussions from our community history here.

Embedded Wizard Website | Privacy Policy | Imprint

...