LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

extract data from while loop while running

Correct from the SubVI. because it will be running continuously then it won't pass the data

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 11 of 16
(966 Views)

Thank you all for your help. I'm going to have to make some changes in my project. The problem with deleting the while loop inside of the subvi is because thats a module inside my project that aquire information every 100ms from a joystick to control throus web a robotic arm. The idea was to show the user some leds indicating the speed of the arm, but those are in the main user interfase.

 

Again... thanks for your help!

 

 

0 Kudos
Message 12 of 16
(950 Views)

Welcome to the world of non-trivial computer programming. Sometimes you have to do just that - tear down your program and use a completely different architecture. Or at least, that's my experience. You can't count on guessing the right one the first time, every time, especially if you're still relatively new at it.

 

Cameron

 

To err is human, but to really foul it up requires a computer.
The optimist believes we are in the best of all possible worlds - the pessimist fears this is true.
Profanity is the one language all programmers know best.
An expert is someone who has made all the possible mistakes.

To learn something about LabVIEW at no extra cost, work the online LabVIEW tutorial(s):

LabVIEW Unit 1 - Getting Started</ a>
Learn to Use LabVIEW with MyDAQ</ a>
0 Kudos
Message 13 of 16
(947 Views)

Then you need to run both while loops in parallel, not one inside the other.

Use a producer consumer design pattern and queue updates from the joystick loop to the display loop.

Troy - CLD "If a hammer is the only tool you have, everything starts to look like a nail." ~ Maslow/Kaplan - Law of the instrument
0 Kudos
Message 14 of 16
(930 Views)

product consumer is one better way to do this.

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 15 of 16
(919 Views)

This thread seems to have an echo? Does anybody else here it? Smiley Tongue

Troy - CLD "If a hammer is the only tool you have, everything starts to look like a nail." ~ Maslow/Kaplan - Law of the instrument
0 Kudos
Message 16 of 16
(917 Views)