LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Data Conversion

Hello

In the attached VI, I am getting the data from a waveform using "get waveform components". The output is in the form of 1D array, I want to convert the data to integer to perform the analysis. I tried using the index array but realized it is not working. Can any one please let me know how to convert the data type to make the VI working. 

Thank you in advance

Ram

Using LabVIEW 2014 

0 Kudos
Message 1 of 6
(3,326 Views)

If you want to extract one component, using "Index Array" is a right way.

Didn't it work correctly? How didn't?

 

By the way, you are developing FPGA VI but you cannot use "DBL" data type on FPGA.

 

image.png

 

Certified LabVIEW Developer
There are only two ways to tell somebody thanks: Kudos and Marked Solutions

GCentral
0 Kudos
Message 2 of 6
(3,302 Views)

Hello Emboar

I tried that but, it didnt work for me. Please look at the VI attached. My generated sinusoidal waveform has an amplitude of 1, but when i see the elements from the array index my values are varying differently. My idea is to get same sinusoidal data in number format from the array. 

Thank you

Ram 

0 Kudos
Message 3 of 6
(3,283 Views)

Hi Ram,

 

My generated sinusoidal waveform has an amplitude of 1, but when i see the elements from the array index my values are varying differently. My idea is to get same sinusoidal data in number format from the array.

Then you should analyse all samples in the waveform, not just one 1 of 1000:

check.png

Are you sure you want to use ExpressVIs in the FPGA?

(When attaching FPGA VIs you should attach the whole project. You also forgot those subVIs…)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 6
(3,277 Views)

Hi GerdW

I understand what you said, taking more number of samples will help me to resolve the issue.  but I am not sure how do we get 1000 samples from the array index at once.

 

Thank you

Ram

0 Kudos
Message 5 of 6
(3,253 Views)

Hi Ram,

 

how do we get 1000 samples from the array index at once.

Forget about that IndexArray function and use the array wire to get all 1000 samples…

(Basic LabVIEW stuff: When you want to process each sample, one after the other, you should think about using an autoindexing FOR loop!)

Best regards,
GerdW


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