05-21-2013 02:05 PM
Kossmann wrote:But in the waveform chart where i can change the interval????
The property is xscale.multiplier and you are already using it. You just don't wire the correct value.
05-21-2013 02:45 PM
Still don´t function.
I take print screens, to show you. The first, grafico1, works with xscale.mutiplier on value constant "1". The second, grafico2, works with value constant "5". Both were worked during 4 minutes. But the scale changes, not de plot. I wish hold scale fixed and plot the graph on each 5 seconds.
05-21-2013 02:48 PM
can you attach the newest version of you program once more? Make sure NOT to change "xscale.offset". That should be set only once.
05-21-2013 02:53 PM
Ok, "xscale.offset" don´t changed.
05-21-2013 02:59 PM - edited 05-21-2013 03:01 PM
@Kossmann wrote:
Ok, "xscale.offset" don´t changed.
Yes, you rewrite it with the current time with each iteration of the while loop. This property should only be written once outside the loop.
(I haven't commented on the rest of the code yet, but everything is way too complicated. You can do the same thing with 10% of the code. Why do you write to a terminal and its local varaible at the same time. this is duplication.)
05-21-2013 03:07 PM - edited 05-21-2013 03:13 PM
Sorry. i send to you the wrong VI.
That´s the correct.
05-21-2013 03:20 PM - edited 05-21-2013 03:21 PM
@altenbach wrote:
(I haven't commented on the rest of the code yet, but everything is way too complicated. You can do the same thing with 10% of the code. Why do you write to a terminal and its local varaible at the same time. this is duplication.)
Here's how you could do this particular computation (top). If you would use array indicators, a single indicator would be sufficient. THe rest of your code is equally inefficient.
05-21-2013 03:41 PM
@Kossmann wrote:
Sorry. i send to you the wrong VI.
That´s the correct.
Your code is really not manageable for me. I extracted the important parts and made a demo to show that things work just fine (LabVIEW 8.6).
(I made minor changes for easier demonstration: 10Hz update, only 100 pts history buffer)
05-21-2013 03:57 PM - edited 05-21-2013 03:58 PM
05-21-2013 11:11 PM
Sir altenbach,
Please dont judge the VI which is posted only for demo. I just want to show him the settings for X axis. I was using this VI for other purpose in the mean time I saw his post so I tried to make in his way. I know this can be optimized in better way.
Thanks for your time