09-25-2015 02:26 PM
I am trying to display m data on a quiver graph for 4000ms. Does this seem right?
Solved! Go to Solution.
09-25-2015 02:53 PM
Your question is very difficult to answer. Some of your VIs are almost self-documenting (you can more-or-less figure out what you are trying to do, now if only your wires were straighter, you used labels, gave variables mnemonic names, etc. However, one of them just goes on, and on, and on, with no indication of what is being done. Try to make every VI fit into a single (modest-sized) screen -- this means Make Lots of Sub-VIs (and, for goodness sake, make sure that each has an Icon with at least the name of the sub-VI shown). If your code is basically "Do this, then do that, then process this, then display that", consider creating a State Machine (which allows you to "layer" the four operations as different "states" in a Case Structure.
If none of this makes sense, ask questions and be prepared to learn.
Bob Schor
09-25-2015 03:03 PM
alright i guess ill learn to make a state machine.
09-25-2015 04:22 PM
@reggie2016 wrote:
I am trying to display m data on a quiver graph for 4000ms. Does this seem right?
Some general comments about posting here:
09-28-2015 11:24 AM
sorry i didnt explain it well the the main file is conduction velocity and the others are sub vis. i am not getting the results i want because nothing is appearing on the quiver plot. I am trying to get advice on readability and performance of the code. i am trying to display data on a quiver graph for 4000ms. sorry for the confusion.
09-29-2015 04:36 PM
Have you tried probing your data after your Re-arrange subVI? I would just probe various points or set up extra indicators to make sure that there is data being transferred into the Plot Helper node.
If there is data going into the Plot Helper node, I don't know if it affects your plot at all, but I don't see any inputs into the Nx, Ny, and Nz nodes. Is it possible that in order to plot your data you need those matrices defined?
If nothing else, I would set a simple error handler node at the end of your code and make sure that there are no errors coming out of the Plot Helper node. If you do see an error, could you post the error code on the forum? It would help everyone to be able to understand the issue better.
10-02-2015 03:32 PM
I have made my code look a little bit cleaner now by using the simple state machine sample. When i run the program it goes straight to the Display Movie State machine. How can I get it to run the states in order. The main vi is called Main and the other files are subvis.
10-02-2015 04:46 PM
Right now your state machine runs as:
The enum outside the loop represents the first state. after the first state runs you go to the next state. Wash rinse repeat.
Also you should always have a exit state .
10-06-2015 12:44 PM
how do i get it to run each state I thought i had it set up right?
10-06-2015 01:38 PM
here is a very simple example.