02-07-2023 11:44 AM
Hi,
I start with labview.
I try to make some change in Two Plane Balancing Example with DAQmx.
Now the speed only show results when press aquire and need to change this to work continuously.
How to do it?
02-09-2023 03:02 AM
Hi artur,
@artur_1617 wrote:
I try to make some change in Two Plane Balancing Example with DAQmx.
Now the speed only show results when press aquire and need to change this to work continuously.
How to do it?
Use a loop to have it "work continuously".
When you need more/better answers you should attach your code...
02-09-2023 07:52 AM
I have absolutely no idea what the "Two plane Balancing Example" -- a Google search brings me back to your Forum post. You did not attach any code. You did not tell us what version of LabVIEW you are using. You did not tell us what NI Hardware you are using.
You did tell us that you are a beginning "student of LabVIEW". We are happy to help and make suggestions (possibly being "Learn more LabVIEW"), but you need to help us to help you (see first paragraph).
Bob Schor
02-09-2023 08:51 AM - edited 02-09-2023 08:54 AM
This is what I try to change https://forums.ni.com/t5/Example-Code/Two-Plane-Balancing-Example-with-DAQmx/ta-p/3996066
I have labview 2013
Acquisition card ni-6008
Try to put them (speed) in While loop and out of case structure but only working when press acquire...
02-09-2023 08:57 AM
Hi artur,
@artur_1617 wrote:
Try to put them (speed) in While loop and out of case structure but only working when press acquire...
Yes, it will wait for a ValueChange event of frontpanel controls in this event structure.
What have you tried so far?
02-09-2023 03:15 PM
Hello, @artur_1617.
Thank you for the reference to the original example, written with LabVIEW 10. I found the description of the process interesting (I'm not an engineer, but appreciate and understand the math involved), but the execution of the paradigm flawed. Using a Tab Control (instead of a model based on a State Machine or Message Handler) is very "old-fashioned" and hard to control/explain/improve (for example, there are 4 copies of many controls and indicators to keep straight).
I don't have a good solution for you. If this is something you are studying in order to learn LabVIEW programming, I'd say "find a better example" or "take a better LabVIEW course" (don't get me started ...). If this is something you need to use right away, I'd say "Hire a good Developer". The concepts aren't difficult (and are well-explained in the text included with the Example code), but the execution is too idiosyncratic and difficult to modify/improve.
Bob Schor