LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

a acquirement system

Solved!
Go to solution

Hello, everybody.

I use labview 8.2. I am programming a acquirement system, which with 8 channel, the two important channel is Sound pressure Lever and wind speed, I will use a graph to display them together as attachment. The X-axis is wind speed, it is divided into several bins, when a new data is acquired (1Hz), depend on its value of wind speed and Sound pressure Lever; it will be filled into bins. When every bins is filled enough data, I can stop acquiring.  Sound pressure Lever signal and wind speed signal both are Voltage.

 

Many thanks

fay

Message Edited by fay_001 on 02-04-2009 04:06 AM
Message Edited by fay_001 on 02-04-2009 04:08 AM
0 Kudos
Message 1 of 13
(13,847 Views)
Is this just to let the world know what you're doing, or is there a question too?
0 Kudos
Message 2 of 13
(13,821 Views)
Hello Jacco K I just want to display the signal data as spot. As attachment wind speed and Leq are both spot. I want to display them in a graph .the X-axis is invariable.
0 Kudos
Message 3 of 13
(13,794 Views)
You still haven't asked a question. We don't know if you have a problem or are just showing your work. If you do have a problem, explain exactly what it is.
0 Kudos
Message 4 of 13
(13,788 Views)
0 Kudos
Message 5 of 13
(13,783 Views)

You have a graph.  In order to show more than just a single point, you need to build your newly acquired data into an array on each iteration of the loop, storing the array in a shift register.

 

You have an odd construction there with the conversion of the I32 value to a cluster that is than converted to an array to go into the graph.  I suggest you look in the examples for the ways you need to build the data to feed into an XY graph. 

 

Your formula node doesn't make much sense.  It doesn't use Leq at all.  And the code just seems to be a complicated way to round WS and output it as Leq2.  Also, the notation 3.5<=WS<=4.5 doesn't work the way you think it does.  You would want to use 3.5<= WS AND WS <=4.5.  As it is now the first condition always evaluates as true because it is evaluate din order 3.5<=WS is either true or false which is mathematically equivalent to either 1 or 0.  Both of these are <=4.5 which means the first statement in the if then else structure is always true.

 

You have some unusual font going on that just gives some crazy characters such as È·¶¨°´Å¥ for our Stop button and some other nonsense characters for your graph and chart axis titles.

 

 

Message Edited by Ravens Fan on 02-04-2009 11:32 PM
0 Kudos
Message 6 of 13
(13,781 Views)

hi ,Ravens Fan

thank you for your remind, now I have a little improve, but it is not what I want, I want x-axis is not changable, x-aixs range is 0~20 m/s(wind speed).

Message Edited by fay_001 on 02-05-2009 01:18 AM
0 Kudos
Message 7 of 13
(13,766 Views)

Please see this vi

0 Kudos
Message 8 of 13
(13,750 Views)

You are doing the same thing as the earlier porgram. With each iteration, you are creating a brand new array. You are not using the shift register at all.

Message 9 of 13
(13,726 Views)

I'm not sure what you mean by X-axis is not "changeable".

 

See the attached.  You need to build an array in ths shift register to maintain all your previous data.  I also set the X axis range to be 0 to 20.

Message 10 of 13
(13,721 Views)