02-04-2009 03:58 AM - edited 02-04-2009 04:08 AM
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
Solved! Go to Solution.
02-04-2009 06:10 AM
02-04-2009 08:40 PM
02-04-2009 09:21 PM
02-04-2009 09:56 PM
Sorry for my poor english
thanks a lot
02-04-2009 10:23 PM - edited 02-04-2009 10:32 PM
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.
02-05-2009 01:17 AM - edited 02-05-2009 01:18 AM
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).
02-05-2009 03:24 AM
Please see this vi
02-05-2009 08:57 AM
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.
02-05-2009 09:05 AM
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.