12-14-2023 08:56 AM - edited 12-14-2023 08:58 AM
I want to plot (or a csv data file),
1. torque with respect to angular position
2. angular velocity with respect to angular position
I can only plot torque vs time, angular position/speed vs time as I am not good at LabVIEW.
Encoder: MEH 60 3600 which is a open collector, x4 decoding type, with Z indexing. It has PPR 3600.
Torque meter: NTS TCR-100N Torque Sensor
DAQ system: cDAQ 9174
For encoder: NI 9361
For torque meter: NI 9237
Thank you
12-14-2023 09:10 AM - edited 12-14-2023 09:11 AM
@msi48 wrote:I can only plot torque vs time, angular position/speed vs time
If you use an X-Y Graph your X-Axis can be anything you want it to be.
12-14-2023 09:46 AM
You can name the x-axis anything you want (... and if the angular positions are spaced equally, you don't even need an xy graph. You can set the offset and multiplier of the x axis of a plain graph). I assume both plots share the same x-values, right?
The hardware is completely irrelevant for your question. Do you have a typical CSV file and your VI (The correct name for what you call a "LabVIEW coding file") attempt?
12-14-2023 10:41 AM
You need to ensure that you sample Torque and Angular position on the same sample rate so you can plot XY properly . I did something similar before but I in my case I acquire Torque and angular position from the same data acquisition.
In your case since you're using encoders, you need to sample the data from different sources and then plot XY .
12-14-2023 11:02 AM
Hi LVNinJa
Can you please share your code?
You mean sample from two different DAQ and input it to a plot?
This is my first ever LabVIEW, so I am sorry that I am struggling to grasp.
Thank you, guys, for helping me here. I appreciate it.
12-14-2023 12:07 PM
@msi48 wrote:
This is my first ever LabVIEW, so I am sorry that I am struggling to grasp.
You said you have a CSV file, so attach that. Make sure you tell us what the columns are, e.g.
angular position, torque, angular velocity
Can we assume that the angular position is a full revolution with fixed increment?
Yes, show us your VI. Did you write it?
12-15-2023 02:03 PM - edited 12-15-2023 02:06 PM
Are you tracking Angular Position using differential (A,B along with Anot,Bnot)? Do you check direction to ensure that readings do not jump states [(AB) >< (ABnot) >< (AnotBnot) >< (AnotB) >< (AB)]? Z is simply a marker for each full rotation. Caution, It is possible to travel faster than the sensor acquires [IE A 3600 pulses/rev sensor that reads less than 3599 between Z pulses (3600 if one of the Z points is included)].
12-15-2023 02:08 PM
12-15-2023 02:27 PM
You would have the information in front of you. If you have Angular velocity, you have position per delta time. With that position, you can create a Torque vs Angular position based upon reading the two instruments simultaneously (as close in time as possible). Just make sure to monitor the delta time and to initialize your system at a known angular position in order to synchronize results.
12-15-2023 02:35 PM
Since you're a complete LabVIEW beginner, sharing your current code (attach the VIs) will help us understand where you stand and the changes required to achieve your goals.