LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

problem with dbl data to array generation

thanks sir

shift register produce only two element array with this i have shown dynamic data array in vi.

I just want to know how produce same array with dbl data also.

0 Kudos
Message 11 of 15
(1,183 Views)

Hi Vikas,

 

why did you add another WHILE loop? Why don't you use the one already present in your VI?

 

Code analysis:

- you get a scalar value and build an array from this.

- then you take that array of one element into the inner while loop and append a random value to receive an array of just two elements

- then the inner loop stops as it is set to iterate just once and you get an array of two elements as result…

All this analysis should be done by you! Do you really understand what you are programming in your own VI?

 

 

The random function in my snippet was just for demonstration, replace it with your measurement data. You haven't used a lot example VIs before, haven't you?

They are just examples to explain certain aspects of the language. You need to ADAPT to your specific requirements…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 12 of 15
(1,170 Views)

hello sir

I just create shift register with random signal it shows only two element of scalar value not array. so please modified it. 

regard 

vikas

0 Kudos
Message 13 of 15
(1,153 Views)

Wire the built array into the shift register on the right.

 

If this is difficult for you, please start with a few simple LabVIEW tutorials.

0 Kudos
Message 14 of 15
(1,140 Views)

Hi Vikas,

 

as Christian already told you: you did the wiring wrong…

 

I just create shift register with random signal it shows only two element of scalar value not array.

Your VI does exactly what you have programmed it to do!

 

- I added that snippet in one of my previous posts, but you still aren't able to reproduce it in your code?

- Please learn the LabVIEW basics (as suggested several times) - I recommend to say the mantra "THINK DATAFLOW!" each minute again when looking at your block diagrams!

-

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 15 of 15
(1,128 Views)