04-14-2010 10:35 AM
Hi,
I have a little problem for labview world, i use chart graph and if user choose 100 meter for x scale range in running mode, every time user must see last 100 meter on the chart x scale range in running mode. Also if user change x scale range for instance 200 meter in running mode, user can see last 200 meter every time.
I did little labview .vi for this but my problem is that
user choose: 100 meter in running mode (0-100 meter)
and chart value is 101 for x scale, x scale is 100-101,100-102,100-103... so on no update other range (100-200) "ı dont do this....
Thank you every one and i love labview:) by the way i added example coded for problem (labview 8.0), (block diagram explain problems with label) if u want u can see correct code solution....
Solved! Go to Solution.
04-15-2010 04:13 AM
hi again,
actually i want to update x scale width in run time if user choose 100 meter every time he or she can see last 100 meter on the screen if he choose 200 meter......
help me:))))))
04-15-2010 05:56 AM
04-15-2010 06:13 AM
04-15-2010 09:24 AM
by the way i wanna ask some question about event str. Why am i using time out terminal 50 milisecond? if i connect -1 while loop doesnt work, or if event str time out terminal is empty value, i see same problem(while loop doesnt work, chart is not running)
but event structure can use empty value for timeout terminal..... this vi no What is the meaning of this????
kudos is coming soon my friend this is good and very useful solution thank u.....
04-15-2010 09:51 AM
kacco wrote:by the way i wanna ask some question about event str. Why am i using time out terminal 50 milisecond? if i connect -1 while loop doesnt work, or if event str time out terminal is empty value, i see same problem(while loop doesnt work, chart is not running)
but event structure can use empty value for timeout terminal..... this vi no What is the meaning of this????
kudos is coming soon my friend this is good and very useful solution thank u.....
The timeout terminal lets you perform an action at a prescribed rate. If I didn't use it, the Event Structure would sit until a Front Panel control is changed; that would keep the Random Number function from adding to the chart. I wanted a new random number to continually add to the chart so I put it in the Timeout case. I used 50 ms, instead of your 150, because I wanted it to run faster. Not wiring something to that terminal results in the default value (-1) being used which makes it never time out, explaining why your VI doesn't work when you tried it.
04-15-2010 10:34 AM
everything is clear thank you for everything....
one day i want to be good labview programmer in my opinion more practice, more solution and friends is the key about this....
04-15-2010 10:51 AM
kacco wrote:everything is clear thank you for everything....
one day i want to be good labview programmer in my opinion more practice, more solution and friends is the key about this....
Read and write a lot of programs. It's how we learn to speak (listening & talking) and write (reading & writing). Stick around the forums, too. Folks will ask questions and you'll have an opportunity to learn as you work through problems and read what others have to say.
09-09-2011 02:30 PM
make sure to uncheck the auto-scale option in the properties of the front pannel. This created a problem that took me 2 hrs to find out