LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

clearing mixed signal graph with 2 plot areas

Solved!
Go to solution

I have a simple 2 plot area mixed signal graph.  When I try to reset or clear the graph by writing an array of 0 to it, it bombs out.  Anyone know whats wrong here?  Seems like it should be fundamental to the operation of this object.

0 Kudos
Message 1 of 3
(2,020 Views)

Hi id, 

 

     I'm not sure why it crashes, but it may have something to do with the size of the array you are passing to the value property.  Try sending an array of zeros that is the same size as the value array.

0 Kudos
Message 2 of 3
(1,988 Views)
Solution
Accepted by topic author id

Thats seems to work for this case.  However, I had tried that in the past and it had issues with things too.  I even had the code still there to generate an array of the same size but making it all 0's but it wasn't connected to the input of the graph in my code now.  Instead, the graph was hard wired to a constant with a single element at 0,0 of a value of 0.   We can call this a success for now.  Thanks 

0 Kudos
Message 3 of 3
(1,982 Views)