10-07-2008 02:12 AM
Hi Ritesh,
No problem. Glad that I can be a help. Let me know if you have further queries.
Sincerely,
Krisna Wisnu
Applications Engineer
NI ASEAN
SR:66735
10-08-2008 03:17 AM
Hi Wisnu,
I found another solution to this problem at LAVA Forum.
Wanted to share this knowledge with you.
"
To make your graph acts like an ocsilloscope you need to design its bahavours. In this case, the scale factors for X and Y axis.
To
have V/Div and Time/Div settings you must also have a Reference values
for both axis, then use this Ref value to calculate the
scaling factor based on user input. Eg. the X ref is: 10ms/Div, if user select 5ms/Div then the scale factor for X axis is:
XScaleFactor = XRef/Select = 10/5 = 2. (zooming in) etc...
"
Ritesh
10-08-2008 03:21 AM
Hi Ritesh,
Nice post. Thanks for sharing with all of us. Hopefully it would be useful for everyone!
Sincerely
Krisna Wisnu
10-08-2008 03:04 PM
Dear Krisna,
If you had gone through the ScaleFactorIdea.vi, you would have noticed that a cluster of 3 elements is passed to the array.
Is there any method to pass just 1D array of scaled data to the graph and not cluster of 3 elements ?
Thanks,
Ritesh
10-08-2008 09:20 PM
Hi Ritesh,
I have gone through the ScaleFactorIdea.vi. Basically, what the VI do is that, it behave like oscilloscope. It perform Zoom In and Zoom Out. So, the cluster of 3 elements is similar like a Waveform datatype (WDT), which contains t0 (initial time), delta t (interval time) and y (data). The data itself remain the same, the VI only playing around with delta t, which controls the Zoom In or Zoom Out. In otherwords, the VI do not change the number of the samples of the data, only change the way it shown up. So, you would not see the ScaleFactor data without the 3 elements of the cluster.
Sincerely,
Krisna Wisnu
Note:
I do not understand why there is a for loop which performs nothing. Its a redundant!
10-10-2008 03:41 AM
Hi Krisna,
Thanks for replying in such a clear way.
Even i dont know what is the need of the for loop which is doing nothing. I have asked the person who posted it on LAVA forum. But no reply from him till now.
Thanks,
Ritesh