02-22-2024 10:55 AM - edited 02-22-2024 10:58 AM
@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
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.
02-22-2024 10:57 AM
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?
02-22-2024 11:00 AM - edited 02-22-2024 11:03 AM
@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?
you can use complex to re/im to get the x and y values to save.
I would NOT do it after the loop, but as a state. Currently, all data is lost if you would accidentally abort the VI.
02-22-2024 11:04 AM - edited 02-22-2024 11:06 AM
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?
02-22-2024 11:06 AM
The "select" replaces the data in the complex 1D array with an empty complex array. That's all you need to do.
02-22-2024 11:11 AM - edited 02-22-2024 11:16 AM
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.
Now its resetting the graph but the value of the measuremnt is still the same
02-22-2024 11:13 AM - edited 02-22-2024 11:15 AM
Thank you, i will do this.
@altenbach wrote:
you can use complex to re/im to get the x and y values to save.
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
02-22-2024 11:21 AM
@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.
02-22-2024 11:26 AM
The angular Position is a counter.
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.
02-22-2024 11:35 AM
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.