LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I build an array using two numeric controls and a button? Whenever I press the button a column of 2 rows (the numeric controls) should be created.

Solved!
Go to solution

Here's my version 😄

 

 

Download All
0 Kudos
Message 11 of 20
(1,519 Views)
Solution
Accepted by topic author patomated

As I said, Adding rows (instead of columns) is significantly more simple and efficient, because the existing elements remain in memory order. Maybe the original problem can be reformulated. We can always transpose at the end if needed.

 

 

Message 12 of 20
(1,513 Views)

And here's my modified version. 🙂

I used the case structure since I understand it better than the event structure. It'll be easier for me to modify or work on it later.

Anyway Thanks for your solutions 🙂

What are ur opinions on my version?

Download All
0 Kudos
Message 13 of 20
(1,510 Views)

Ok so I just realized that in my case its also continuously running the false case.. So I think I'll just stick with the event structure

0 Kudos
Message 14 of 20
(1,492 Views)
What happens in the false case? (Sorry posting by phone).
What determines the loop rate?
0 Kudos
Message 15 of 20
(1,488 Views)

It does the same job as the timeout case previously which will waste CPU

here's a screenshot

0 Kudos
Message 16 of 20
(1,481 Views)

I just checked the CPU

In your case only 2% is being used whereas in mine it reaches 20% 

 

Thanks for your help!

0 Kudos
Message 17 of 20
(1,475 Views)
OK, you are basically burning 100% of one cpu core doing absolutely nothing useful. 🙂
0 Kudos
Message 18 of 20
(1,468 Views)

Patomated,

 

Sixclear has a great video describing what the event structure is, located here.

Message 19 of 20
(1,443 Views)