I have a component that requires a sequence of sequences of booleans which can be set using the following property:
<Property name='bit_sequences' type='struct' initial='true' sequenceLength='64'>
<Description> The bit sequences to be transmitted. </Description>
<Member name='bits' type='bool' sequenceLength='1024'/>
</Property>
I want to be able to set the values of each sequence before the app starts.
If the sequences have already been set using the application XML like this:
<Instance component='tx' name='tx'>
<Property name='bit_sequences' value='{bits {1,0,0,1}}, {bits {0,0,0,0}}'/>
</Instance>
I am able to change an existing bit’s value using the app.setProperty()
method, with an access list. So to set the first bit in the second sequence to 1 I would use:
m_app->setProperty ("tx.bit_sequences", "1", {1, "bits", 0}) ;
However, if I try to set any bit that hasn’t already been set in the XML, (fifth bit in the first sequence or first bit in the third sequence for example) nothing happens and no error is produced.
For this same reason, if the sequences are never set by the XML, there is no way I know of to set them from the ACI.
Thanks in advance,
Dan