LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how do I initialize a XY graph, in a running process

Hi

we have a question concerning a XY graph.

we have a running process and as a subVI , we can see the XY graph.

we didn't figure out how to initialize it every time we call the subVI.

thank you in advance

shahar
0 Kudos
Message 1 of 9
(4,629 Views)
What do you mean by initialize, do you just want to clear the graph, or do you want to initialize it to a known value, whichever you want to do, all you have to do wire an emty array to a local variable or property node before you start the process in the subvi.



Joe.
"NOTHING IS EVER EASY"
0 Kudos
Message 2 of 9
(4,629 Views)
may I ask how to clear the graph 🙂 ?

Suds
0 Kudos
Message 3 of 9
(4,615 Views)
As I said wire an empty array to a local variable or property node



Joe.
"NOTHING IS EVER EASY"
Message 4 of 9
(4,605 Views)
oops...
0 Kudos
Message 5 of 9
(4,596 Views)
or another way would be to use an invoke node and reinitialize it to default.



Joe.
"NOTHING IS EVER EASY"
0 Kudos
Message 6 of 9
(4,583 Views)
Please see the following program attached. The subVI writes data to an XY Graph. The Main VI calls the subVI and then when the subVI finishes excuting, reinitializes all values on the subVI (the XY Graph in this case)to default.

Hope this helps!

Nandini Subramaniam
Applications Engineer
National Instruments
0 Kudos
Message 7 of 9
(4,562 Views)

The invoke node to reinitalize the graphs (and tables too) to a default (clear) works really well!  Why isn't this described in the on-line help....I learn something new everytime I read this board!

 

Regards to all....

Jay

0 Kudos
Message 8 of 9
(4,500 Views)


@Radman wrote:

Why isn't this described in the on-line help....I learn something new everytime I read this board!


It is described somewhere. LabVIEW is such a rich environment, that not everything can be on page 1 of the documentation. 😉

(In this case, you need to search for Reinitialize instead of Initialize to get to the right place in the online help. So, yes, it's a bit buried...)

 

If you have ideas on how to improve the documentation, feel free to give some constructive feedback at the Product Feedback page. 🙂

Message 9 of 9
(4,491 Views)