LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

The same number is written to the array.

Solved!
Go to solution

Hello! I'm working with NI myRIO, in Labview 2013. In my work, an electret microphone was designed. My country was recording data, from a microphone, to an array of nx1 (n-lines, 1-column). But in my case, the same number is always written to the array. File attached.

0 Kudos
Message 1 of 7
(2,924 Views)

Здравствуйте! Я работаю с NI myRIO, в среде Labview 2013. В моей работе был спроектирован электретный микрофон. Моей страной была запись данных, с микрофона, в массив nx1 (n-строк, 1-столбец). Но в моем случае в массив записывается всегда одно и тоже число. Файл прикреплен.

0 Kudos
Message 2 of 7
(2,883 Views)
Solution
Accepted by topic author Юлия_96

All you do is creating a 3D array of the newest data.

 

Get rid of the inner FOR loops, place an initialized shift register on the outer while loop, and append the current data to the existing data using "built array", creating an evergrowing 1D array (ultimately, you'll run out of memory, of course).. There are plenty of examples if the forum.

0 Kudos
Message 3 of 7
(2,918 Views)
Solution
Accepted by topic author Юлия_96

Here's how it could look like.

 

 

Note that "built array" is in concatenate mode and that the indicator has been changed to a 1D array.

0 Kudos
Message 4 of 7
(2,916 Views)
Thank you so much!
0 Kudos
Message 5 of 7
(2,906 Views)

Edit because of misreading…

Best regards,
GerdW


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