Home / System Design

Pass _device_id to sibling device as a property in XML??

CommunityMartin AI Open
Started by draudio · 17y ago · 14 views · 0 replies
17y ago

I am trying to send the device id of a block to another block as a property in a .pres.xml file. When I attempt to use the syntax:

it always returns zero, no matter what the actual device id.
Using this syntax:


I get an error that 'io_1_device_id' doesn't exist even though the device 'io_1' exists. Error message reads:  label_t::evaluate()--"access to undefined term"
Using the syntax:

causes NWare 1.4.4 to crash...!
The property is defined as a positive_int in the .if.xml file and replacing 'io_1_device_id' with a random integer gives me the result I am looking for...only I don't want a random integer, I want the specific integer that is the device id of io_1!
Can anybody give me a whack on the side of the head to get through this???
Thanks for your help!!!

Log in to reply to this topic.