02-19-2020 11:02 AM
In the attached file, "Class 1.lvclass" has a property "Checkbox". "Read Checkbox.vi" is set to Public scope. and "Write Checkbox.vi" is set to Community scope.
"Friend.vi" is designated as a friend of "Class 1.lvclass".
Why can't "Friend.vi" write to the "Checkbox" property of "Class 1.lvclass"?
02-19-2020 03:16 PM - edited 02-19-2020 03:20 PM
It is interesting to note that, while the property node cannot change to "Write Checkbox", you can just drag the Write Checkbox accessor VI to Friend.vi and it will work fine.
Edit: This is weird. Drop "Write Checkbox.vi" onto the diagram and wire it up. Right clicking the property node now gives you the option to change to Write. Delete the accessor VI, and now the property node can be changed from Read to Write freely. Very strange.
02-20-2020 09:41 AM
What version of LabVIEW are you using?
I'm using LabVIEW 2019 and I was able to unzip your attachment, open Friend.vi and change to write. I wrote a TRUE to that property node then read it back from another property node so it seems to work as expected for me.
02-20-2020 10:41 AM
@Jacobson-ni wrote:
What version of LabVIEW are you using?
I'm using LabVIEW 2019 and I was able to unzip your attachment, open Friend.vi and change to write. I wrote a TRUE to that property node then read it back from another property node so it seems to work as expected for me.
2018
02-20-2020 11:01 AM
For what it's worth I'm using 2018 as well. When I right click the property node, "Change to Write" is grayed out and is unselectable. When I manually add the Write accessor as described above, I can then right click and set the property node to Write.