LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview does not allow me to get components of a 1D Waveform

Solved!
Go to solution

Hello,

 

I am trying to build a 2D array by merging the Y component of a Waveform with a DBL 1-D Array containing frequency (the number of rows on both Waveform and 1D array is the same).

 

However, when I try to use "Get Waveform Components", I get a broken wire, and I am not understanding very well how to overcome this issue. In the Front Panel, the "data" waveform appears as a normal waveform should appear. I also don´t understand the sink type - why is it "Dynamic Data"?

 

The pictures below offer an overview of the before and after connecting the "Get Waveform Components" function.

 

Any help understanding this issue would be greatly appreciated.

 

Fig 1 - Before connecting the "Get Waveform Components" function

Before connecting the "Get Waveform Components"Before connecting the "Get Waveform Components"

 

Fig 2 - After connecting the "Get Waveform Components" function

After connecting the "Get Waveform Components"After connecting the "Get Waveform Components"

0 Kudos
Message 1 of 13
(324 Views)

Hello Flonares,

 

By placing the cursor on the red cross (top left in your second picture), you should have the following warning message :

PinguX_0-1717402205013.png

 

Message 2 of 13
(317 Views)

Hi Flonares,

 


@Flonares wrote:

However, when I try to use "Get Waveform Components", I get a broken wire, and I am not understanding very well how to overcome this issue. In the Front Panel, the "data" waveform appears as a normal waveform should appear. I also don´t understand the sink type - why is it "Dynamic Data"?

 

Any help understanding this issue would be greatly appreciated.


When moving the mouse cursor over the "X" marking of the broken wire you typically get a good error description why the wire is broken: you connect an array of waveforms to a function that only accepts a scalar waveform!

 

I don't see where "DDT" (aka "dynamic data") come into play with your specific question…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 3 of 13
(315 Views)

That is basically what you are trying to do :

PinguX_1-1717402701049.png

 

 

Message 4 of 13
(304 Views)

Hello GerdW,

 

The DDT appears in the "Broken wire" description, and that is why I am confused. Isn´t this the correct way to get the waveform components?

Cheers,

Flo

DDT.PNG

0 Kudos
Message 5 of 13
(301 Views)

Hi Flonares,

 

this is how it explains the broken wire for me:

You need to index an element from your waveform array to be able to access its waveform components…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 6 of 13
(266 Views)

Thanks for the swift reply.

 

So essentially I need to iterate in a for loop with a shift register in order to extract the values per each index and append it to an array that I can later manipulate, it seems...

 

Thanks for the insight!

 

Cheers,

flo

0 Kudos
Message 7 of 13
(257 Views)
Solution
Accepted by topic author Flonares

@Flonares wrote:

Thanks for the swift reply.

 

So essentially I need to iterate in a for loop with a shift register in order to extract the values per each index and append it to an array that I can later manipulate, it seems...


Why would you need a shift register for that??? You don't!

 

Just index over the array of waveforms and autoindex at the output tunnel. This will be OK if you are extracting the Y values and all have the same length. LabVIEW does not allow ragged 2D arrays. If the lengths differ, bundle first and create a 1D array of clusters, each containing a 1D array of Y values.

 

altenbach_0-1717439491254.png

 

Message 8 of 13
(180 Views)

I don't understand the concept of a "1D Waveform".

0 Kudos
Message 9 of 13
(152 Views)

@paul_a_cardinale wrote:

I don't understand the concept of a "1D Waveform".


It is a 1D array of waveforms.

0 Kudos
Message 10 of 13
(109 Views)