06-03-2024 03:04 AM
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"
Fig 2 - After connecting the "Get Waveform Components" function
After connecting the "Get Waveform Components"
Solved! Go to Solution.
06-03-2024 03:10 AM
Hello Flonares,
By placing the cursor on the red cross (top left in your second picture), you should have the following warning message :
06-03-2024 03:13 AM
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…
06-03-2024 03:18 AM
That is basically what you are trying to do :
06-03-2024 03:24 AM
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
06-03-2024 03:36 AM - edited 06-03-2024 03:37 AM
06-03-2024 03:45 AM
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
06-03-2024 01:27 PM - edited 06-03-2024 01:31 PM
@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.
06-03-2024 05:13 PM
I don't understand the concept of a "1D Waveform".
06-04-2024 12:50 PM
@paul_a_cardinale wrote:
I don't understand the concept of a "1D Waveform".
It is a 1D array of waveforms.