LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Very poor in array's

Hello,

          I still learning programming in labview and I am very poor in working with arrays. Currently, I am not working in any project but instead of I would like to improve myself in arrays especially in labView. Is there any exercise for this. Please give any links for that.

 

Thank you.

0 Kudos
Message 1 of 23
(3,692 Views)

Hi Peter,

 

have you tried all the examples coming with LabVIEW? Have you read the introduction to LabVIEW?

Best regards,
GerdW


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

Hello,

 

                    I have gone through that material many times. It's only introduction to labview. I understand labVIEW very well but I am not getting ideas when I want to work with especially arrays. Cause for this is poor knowledge about usage. I just need some exercises in the area of arrays instead of materials to leave my shivering.

0 Kudos
Message 3 of 23
(3,684 Views)

Hi Peter,

 

"I just need some exercises in the area of arrays"

Well, what about this:

Please calc all the primes upto N with N in the range of 10^9!

It's a nice exercise and has to do with arrays...

Best regards,
GerdW


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

You mean, how many prime numbers lies the range until 10^9. If so, I start my work here and will back here after finish.

Thank you.

0 Kudos
Message 5 of 23
(3,678 Views)

How many, and which numbers.

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 6 of 23
(3,644 Views)

Problem

-----------

I have an element coming everytime and I tried to save it in array by appending it to the previous value but it always shows the last added element. I have tried many ways and got irritation. I know that I should paste some code here but it is small task.

 

I had taken initialize array to add my input element everytime but it is only displaying last added element. How can I append it to the old one?

 

0 Kudos
Message 7 of 23
(3,607 Views)

Hi Peter,

 

as you don't care to show code I will do the same...

 

Hint: Maybe you have heard of shift registers before? Otherwise read the manual/context help, do the Basics course found on the NI website and study the examples coming with LabVIEW...

Best regards,
GerdW


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

Hello,

                I don't need any courses at the moment but as you told about using shift register. I don't want to use any loop or shift register for this operation. If I want to use loop for this operation, I can make it by own. Just I need to add the coming element into array.

0 Kudos
Message 9 of 23
(3,600 Views)

POST YOUR CODE!

 

I don't understand how you can say you don't want to use any loops.  You said "I have an element coming everytime and I tried to save it in array", that implies something happening repetitively, which would mean you have a loop.

0 Kudos
Message 10 of 23
(3,581 Views)