LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Plotting of Waterfall in Lab View From The Continuous Data Stream Coming From Interfaced Software RTSA Suite Pro

Hi!
     I have interfaced RTSA Suite Pro with Lab View through VISA. I want to plot waterfall graph in Lab View. So, when I asked this question on Aaronia Forums. I got the following reply, you can see in the pic.

13.PNG

They give me command that is giving me continuous Data Stream in Lab View. But they and I both do not know how to plot waterfall graph from that continuous Data Stream. I am sharing the block diagram and its output in Lab View.

14.PNG

12.PNG

Now, I do not know how to proceed further to plot waterfall graph from this data. Kindly guide me.
Thanks.

0 Kudos
Message 1 of 22
(327 Views)

Hi qureshi,

 


@qureshi000 wrote:

But they and I both do not know how to plot waterfall graph from that continuous Data Stream. I am sharing the block diagram and its output in Lab View.

12.PNG


You need to split the received string into two parts, as written in this message.

Split at the hashmark, read the first char (4) to know how many chars to read next: "6800".

The remaining chars (should be 6800) need to be converted to "floats" (aka SGL): I recommend to use UnflattenFromString into an array of SGL (no length field, check byte order for reasonable values)…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 22
(308 Views)

How can I do it? Explain in detail. It would be better if you explain it by block diagram.
Thanks

0 Kudos
Message 3 of 22
(298 Views)

Hi qureshi,

 


@qureshi000 wrote:

How can I do it? Explain in detail. It would be better if you explain it by block diagram.
Thanks


Why don't you attach your VI with some received data in an indicator set to default?

Then we could implement our suggestions and even try/debug them…

 

(When attach a VI please downconvert an older LabVIEW version. I prefer to LV2019.)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 22
(293 Views)

VI is attached with some Data Stream set as default value. I am using LV2017. So, no need of down conversion on my side. 

0 Kudos
Message 5 of 22
(274 Views)

Hi qureshi,

 

like this:

Attention: I skipped the part about reading the number of data elements ("43408") by using a constant at StringSubset: replace this part by correctly parsing the numbers as described in your message above!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 22
(263 Views)

Can you please share the pic which also contain name of the blocks used.
Thanks

0 Kudos
Message 7 of 22
(259 Views)

Hi qureshi,

 


@qureshi000 wrote:

Can you please share the pic which also contain name of the blocks used.


You got an image and I already mentioned UnflattenFromString in a previous message!

What else do you need?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 8 of 22
(256 Views)

It is giving me plot of spectrum. How can I plot waterfall graph from data as shown in figure below.

3.PNG

 This pic is only for reference. It is from software which I interfaced with Lab View (RTSA Suite Pro).

0 Kudos
Message 9 of 22
(100 Views)

Hi qureshi,

 


@qureshi000 wrote:

It is giving me plot of spectrum.


Yes, that's what you get from your device!

 


@qureshi000 wrote:

How can I plot waterfall graph from data as shown in figure below.


What I see in this image is a large blueish rectangle with some grid lines: a waterfall plot typically looks like this.

 

So please show some useful example images!

 

Btw. LabVIEW comes with a Waterfall plot in the 3DGraph palette…

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 10 of 22
(89 Views)