LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

XY-Graph TORQUE AND POWER IN FUCNTION OF ROTATE SPEED

Dear,

 

I have  made a program in Labview for my endwork so i have now one problem ; i read data (torque,temperature,power,speed of an engine with an USB-6009 daq-kaart.) now i want to make a graph of the torque (koppel in dutch) in funtion of rotate speed and also power(vermogen in dutch).  i have used xy graph but  i get nothing  . What do i wrong can some one help me? I send the program also as attachement ; on the y i will torque(=koppel) and x i will rotate speed (toerental)  

 

thank you

0 Kudos
Message 1 of 15
(4,612 Views)

Drayton,

 

You have this graph inside a loop which suggests you really want the behavior of a chart - meaning you want to carry history data between iterations to get a results versus time view.

 

I don't think there is a XY chart. This means that you will have to create and maintain your own set of "history" data.

 

Try moving away from the express VI's - make arrays for both X and Y and carry them from iteration to iteration with shift registers - each iteration puts a new number on the end of each array. You can then bundle these arrays and feed that to a XY graph - if this is still inside the loop it will behave very similar to a chart.

 

Have Fun!

 

 

0 Kudos
Message 2 of 15
(4,599 Views)
thanks for the reply but i have not so much experiance with labview can anyone change in the program ?
0 Kudos
Message 3 of 15
(4,583 Views)

There may be shipped examples that show some of the ways to use the XY graph. Please look them up when you have a chance.

 

To illustrate your specific scenario I created a VI that draws a basic ellipse within a For loop. This VI demonstrates the idea of shift registers and array building. The way I have done this in not ideal from a memory management standpoint and would not be appropriate for very large data sets. However I think it will work in your case.

 

You should be able to copy these ideas into your own VI.

 

It is still possibly that this is not exactly what you are trying to do - if not, please clarify how you want this graph to behave.  

 

Cheers,

Message Edited by Jolt on 04-08-2009 06:40 AM
0 Kudos
Message 4 of 15
(4,569 Views)

Hey Drayton,

 

 

Please have a look at the attached VI.  

Left of the While Loop I created a 2 dimensional array.  Column zero is representing the RPM, column 1 the Torque (koppel) and column 2 is the Power (vermogen).

Then I am simulating the measured data of RMP, Torque and Power.  As I would like to limit the number of elements in the array, I used the "Remainder and Quotient" function to round to a nearest lower multiple of 20.  This means you will have steps of 20 RPM in your graph.  The lenght of the array is in the case: 4000 RMP max / 20 = 200 elements.  Of course you can change this but then also your array size will become larger (more processor time needed to analyze).

 

Next step is to get the index number in the existing array which equals the current measured RPM.    This index is needed to replace the corresponding torque and power values in the array.

If the newest torque or power value is greater than the already available value for the corresponding RPM,  then this value will overwrite the existing value. If not, then the existing torque and power value will be kept.  

 

Finally I will extract the complete columns of the array for RPM, torque and power to apply them to the XY graph.

 

You can almost copy/paste this into your VI.

As your data is coming from Express VI, the wires contain waveform data which also inclused timestamp information.  As you cannot use waveform data with arrays and actually don't need it, you have to use the function "From DDT". This is also an express VI to convert the Dynamic Data Type from the Express VI into a scalar datatype.  You can show to analyze only one point at a time of by using an array.

 

 

I have also seen that you have place additional numeric indicators on your front panel beside the meters.

This is great. You only used an additional object to do so causing also an additional terminal appearing on your block diagram.

Actually, the numeric front panel objects have already an numeric indicator related to it.  This way no additional block diagram terminal will show up.
You only need to enable it.
Right click on the object to open the shortcut menu ---> Visible Items --> Numeric Display.  There is your numeric indicator directly related to the object.

If you do this for all you front panel objects, your block diagram will look much nicer and easier to read.

 

Best regards,
Joeri

National Instruments
Servicesg
0 Kudos
Message 5 of 15
(4,559 Views)

thanks but i can't open it i am using labview 8.5 . can you save as 8.5

 

 

0 Kudos
Message 6 of 15
(4,543 Views)

This looks like a common dynomometer program. Typically you would graph instant torque as you run a test. Power (or torque) as a function of RPM is normally plotted after the run. It almost makes no sense to plot it real time. Like the previous poster, I would consider storing data in separate arrays then post-processing for power and torque graphs. This can easily be done in xy graphs this way.

 

Labview 8.5
Meas Studio 2008
0 Kudos
Message 7 of 15
(4,538 Views)

nobody can save the program "array.vi"  in Labview 8.5? I can't open it

thanks

 

0 Kudos
Message 8 of 15
(4,524 Views)

hello,

 

here in 8.5

CLAD / Labview 2011, Win Xp
------------------------------------------------------
Mission d'une semaine- à plusieurs mois laissez moi un MP...
RP et Midi-pyrénées .Km+++ si possibilité de télétravail

Kudos always accepted / Les petits clicks jaunes sont toujours appréciés
Don't forget to valid a good answer / pensez à valider une réponse correcte
0 Kudos
Message 9 of 15
(4,518 Views)

I have used the program 'array.vi' as a subvi in my own program but it isn't working . someone know why it's not working?? I am getting nothing as graph? Please help me

 

thank you

0 Kudos
Message 10 of 15
(4,471 Views)