10-15-2014 06:55 AM
It is still just a Value property. You use the exact same data you would to set the value with a terminal. In the case of an XY graph, it is likely a 2D array.
10-16-2014 01:44 PM
Thanks. But how can I implement that? Do I need to create two propety nodes, one for the X- and one for the Y-axis, with two separate references?
Christian
10-17-2014 01:30 PM
Use Value and wire in a 2D array.
10-17-2014 01:56 PM
@christianwos wrote:
Thanks. But how can I implement that? Do I need to create two propety nodes, one for the X- and one for the Y-axis, with two separate references?
How do you wire up an XY Graph terminal? It is EXACTLY the same for the value property node. It is just simply a 2D array.
10-23-2014 01:38 PM
Sorry everybody if I am hard-headed, but if I create a Value property node, LAB View won't allow me to wire it to a 2D array. That is why I am asking how to actually do this. I understand that I have to supply the X- and Y-axis. So, should I create a Value property node for each axis? And if I do so, how can I then merge the two references into a 2D array in the main VI?
Thanks in advance.
10-23-2014 02:38 PM - edited 10-23-2014 03:28 PM
@christianwos wrote:
Sorry everybody if I am hard-headed, but if I create a Value property node, LAB View won't allow me to wire it to a 2D array. That is why I am asking how to actually do this. I understand that I have to supply the X- and Y-axis. So, should I create a Value property node for each axis? And if I do so, how can I then merge the two references into a 2D array in the main VI?
Show us a simplified version of your code once more. (Your ealier code contains way too much garbage...:))
An xy graph does not accept 2D arrays. XY graphs accept a variety of datatypes (array of points, cluster of x and y arrays, complex arrays, etc.) and the terminal will adapt accordingly. If you want to write to a value property, you need to keep the same datatype used earlier of the terminal.
10-23-2014 02:55 PM
Thank you,
This was enough for me to figure it out. I unchecked "Include Data Type" from the refnum pop-up menu and now the XY-graph updates teh values normally. Thank you for your help.
Christian