取消
显示结果 
搜索替代 
您的意思是: 

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

已解决!
转到解答

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 项奖励
1 条消息(共 13 条)
2,219 次查看

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

 

2 条消息(共 13 条)
2,212 次查看

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
3 条消息(共 13 条)
2,210 次查看

That is basically what you are trying to do :

PinguX_1-1717402701049.png

 

 

4 条消息(共 13 条)
2,199 次查看

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 项奖励
5 条消息(共 13 条)
2,196 次查看

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
6 条消息(共 13 条)
2,161 次查看

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 项奖励
7 条消息(共 13 条)
2,152 次查看
解答
接受人 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

 

8 条消息(共 13 条)
2,075 次查看

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

0 项奖励
9 条消息(共 13 条)
2,047 次查看

@paul_a_cardinale wrote:

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


It is a 1D array of waveforms.

0 项奖励
10 条消息(共 13 条)
2,004 次查看