LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Reset XY Graph on Button Press Fully

Solved!
Go to solution
Solution
Accepted by topic author Julsbng

@Julsbng wrote:

I got it the way you did it and its working thank you. I still got the same problem sadly. 

Do i now have to reinitalize to default? 

Best regards

Screenshot 2024-02-22 174756.png

 

 

   


Notice the coercion dot? Your constant to initialize the array needs to be complex! (right-click...representation...cdb).

 

The current code resets before another point is added. You can also reset after the build array, but it won't really make a difference after the next iteration.

As I said, all that matters is the data in the wire. If the array is empty, nothing will be graphed. No need for properties and methods. 

0 Kudos
Message 11 of 24
(597 Views)

Okay, thanks. If i want to save my data now it just saves the Angle values and not the Torque values. 

How can i fix that, do i have to save the torque seperatly in an array? 

Saving.png

0 Kudos
Message 12 of 24
(594 Views)

@Julsbng wrote:

Okay, thanks. If i want to save my data now it just saves the Angle values and not the Torque values. 

How can i fix that, do i have to save the torque seperatly in an array? 

Saving.png


you can use complex to re/im to get the x and y values to save.

 

altenbach_0-1708621375662.png

 

 

I would NOT do it after the loop, but as a state. Currently, all data is lost if you would accidentally abort the VI.

0 Kudos
Message 13 of 24
(591 Views)

So i need to reset the values which comes from the wires of the measurement right?

I need to reset my counter then to 0, thats the problem i understand... How can i do this? 

 

0 Kudos
Message 14 of 24
(588 Views)

The "select" replaces the data in the complex 1D array with an empty complex array. That's all you need to do.

0 Kudos
Message 15 of 24
(585 Views)

I did, but the value of the Angle Measurement is still in the wire... I need to reset the angular position (the counter TTL) to get the value 0 in the wire and not the last one which was measured. 

Screenshot 2024-02-22 180930.png

Screenshot 2024-02-22 181001.png

Screenshot 2024-02-22 181014.png

   Now its resetting the graph but the value of the measuremnt is still the same 

 

0 Kudos
Message 16 of 24
(581 Views)

Thank you, i will do this. 


@altenbach wrote:


you can use complex to re/im to get the x and y values to save.

 

altenbach_0-1708621375662.png

 

 

I would NOT do it after the loop, but as a state. Currently, all data is lost if you would accidentally abort the VI.


I will do it inside the loop with a button to save. Thank you very much

 

 

 

EDIT: This worked perfectly thank you very much

 

0 Kudos
Message 17 of 24
(574 Views)

@Julsbng wrote:

So i need to reset the values which comes from the wires of the measurement right?

I need to reset my counter then to 0, thats the problem i understand... How can i do this? 

 


I don't see anything labeled "counter". Please explain.

0 Kudos
Message 18 of 24
(564 Views)

The angular Position is a counter. 

Screenshot 2024-02-22 18101.png

Screenshot 2024-02-22 182523.png

  So i need to reset this counter otherwise there will always ne the last value of the measurement. This counter only resets when i stop and run again. 

0 Kudos
Message 19 of 24
(559 Views)
Solution
Accepted by topic author Julsbng

I don't have any drivers install and thus cannot look at your express configurations.

 

A counter outputs a relative value, so all you might need is keep the reference value in a shift register (or feedback node) and subtract it from the measurement. When you reset, place the current value in that shift register.

0 Kudos
Message 20 of 24
(549 Views)