From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

error: connected two terminals of different types

Solved!
Go to solution

The array size is much bigger than 256 samples. That's my problem 

0 Kudos
Message 11 of 16
(802 Views)
No, it is not - debugging clearly shows that. The problem is that you only evaluate the last waveform of probably many waveforms you've aquired!!!

Regards, Jens
Kudos are welcome...
0 Kudos
Message 12 of 16
(797 Views)
Solution
Accepted by topic author GM1710

Hi GM,

 

you use a chart to look at the acquired waveform.

The chart has its own buffer to keep a history - but not the waveform wire you use to transport data out of the loop!

 

Options:

- do the calculation inside the loop

- create your own buffer for sample data

- use autoindexing at the loop border

- …

Select which one fits your needs best!

Best regards,
GerdW


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

Hi Gerd:

 

Thank you, the code is working now. 

 

But I have still another question. If I have a multiwave how can I get the waveform of each of them? Is there a function like "get a wave form" for a multiwave?

0 Kudos
Message 14 of 16
(773 Views)

Sorry: "get waveform components" is the name of the function, which I refer to

0 Kudos
Message 15 of 16
(772 Views)

We already had that, this is an array of waveforms. To access the elements of an array, use Index Array. In order to execute some part of a vi for all elements of an array, use a for loop.

 

Regards, Jens

Kudos are welcome...
0 Kudos
Message 16 of 16
(759 Views)