LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to perform sweep?

Solved!
Go to solution

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

Certified LabVIEW Developer (CLD)
Certified TestStand Developer (CTD)
Using LabVIEW 8.5.1 (2008) to LabVIEW 2024
0 Kudos
Message 11 of 16
(1,209 Views)

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

Message 12 of 16
(1,191 Views)

Hi Ritesh,

 

Nice post. Thanks for sharing with all of us. Hopefully it would be useful for everyone!

 

Sincerely

 

 

Krisna Wisnu

Certified LabVIEW Developer (CLD)
Certified TestStand Developer (CTD)
Using LabVIEW 8.5.1 (2008) to LabVIEW 2024
0 Kudos
Message 13 of 16
(1,189 Views)

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

0 Kudos
Message 14 of 16
(1,171 Views)

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!

 

Certified LabVIEW Developer (CLD)
Certified TestStand Developer (CTD)
Using LabVIEW 8.5.1 (2008) to LabVIEW 2024
Message 15 of 16
(1,161 Views)

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

0 Kudos
Message 16 of 16
(1,140 Views)