From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
09-20-2012 03:12 AM - edited 09-20-2012 03:26 AM
Hello, I have created a flat sequence structure but it doesnt run as intended can anyone give me some advise? Ty 🙂
Intention: fly to a certain height for 2000ms > rotate anticlock wise for 2000ms > rotate clock wise for 2000ms > land slowly.
1st and last part works fine except for the middle ones. i tested the middle ones without sequence and they are working..
09-20-2012 03:24 AM - edited 09-20-2012 03:29 AM
Hi John,
what do you expect us to explain for such a VI:
???
- All subVIs are missing.
- Even an error description is missing! (Saying "doesnt run as intended" is not considered a valuable error description...)
- The timings in the sequence doesn't fit to your intention...
Btw. in your other thread you have been told to use a state machine architecture instead of (flat) sequences. Why not adopt that suggestion?
09-20-2012 03:29 AM - edited 09-20-2012 03:30 AM
Hello. Weird I did attach the sub VIs.. mmm let me try reattach.
I did not adopted State machne instead because I am new to Labview and find it much harder to understand. Whereas flat sequence structure seems smpler.
09-20-2012 03:29 AM - edited 09-20-2012 03:34 AM
Hi John,
again only one (main) VI...
See edited comment above!
You could have sticked with your original thread instead of posting a copy of your VI in a new one...
Edited:
- Drawing a state chart on a sheet of paper will help to understand that approach. Drawing on a sheet of paper will help to understand all programming tasks and should be the recommended way before starting to code...
- Flat sequences might be simpler, but surely will not help you in cleaning up your code...
09-20-2012 03:32 AM - edited 09-20-2012 03:34 AM
Okay now I am confused. All the Sub VIs is on my com, and I don't know why when i attach it, it went missing.. hmmm any idea? Oh man..
09-20-2012 03:37 AM
09-20-2012 03:42 AM - edited 09-20-2012 03:43 AM
Sub1 & sub 2 controls the anticlockwise or clockwise movement of AR drone.
Sub 3 is level AR drone.
Sub 4 is descend/landing of AR drone
09-20-2012 03:43 AM - edited 09-20-2012 03:51 AM
Here is sub 4
open and close vi
Sorry there buddy, am too new to Labview hence I did not know it was neccessary to attach the Sub VIs. I have attached all of them already. 🙂
09-20-2012 03:57 AM
Omg I am so sorry. I have compiled all the files into a Zip. Please download this one instead. Sorry 😞
09-20-2012 04:53 AM
Hi John,
you use all those timing functions in parallel. What will be the result of them?
You put a 9s-wait in the sequence frame, call a subVI parallel to the wait and in the subVI you have another 500ms-wait in parallel. In your question you wrote "I want to wait for 2000ms". I don't see any of your intended timings in the code...