11-26-2012 02:28 PM
I have a problem with the speed of my program when i insert the simulate signal vi into my program. It goes from the speed i set it too to a very slow speed. I need some help understanding why it is doing this and how to fix it. attatched is the vi and an image of the problem area if anyone has any ideas please help
11-26-2012 02:34 PM
I'm more concerned about the Wait inside of a Timed Loop. That is totally unnecessary. Change the timed loop into a normal while loop.
As far as the Simulate Signal, I have no clue. The settings look find as far as I can tell.
11-26-2012 02:46 PM
I'm shuddering. your "Stop" logic is somewhat insane Inside the timed loop stop if true pass the true to the containing while loop set to stop if false garunteeing a infinate loop which you break with two possible abort vi's (Bad bad bad do not use abort vi it does not alow the Express vis to shut down cleanly and you'll have some insane states in your code.
11-27-2012 02:55 PM
The stop logic needs to be the way it is because it is scaning with two dc mottors and it cause the second mottor to trigger with the true statement for the y axis the inner most loop is for the x axis. But that still does not explain why when i add the signal generator the program slows down significantly and when i remove it, it runs at normal speed. Any ideas or if you know how to create a function generator from scratch if that would solve the problem.
11-27-2012 06:05 PM - edited 11-27-2012 06:09 PM
You are not only simulating a signal, but also sending it out via DAQ assistant. Sorry, I don't have DAQmx installed, so I cannot see the configuration. WIth each iteration of the inner loop, you are creating 500 points, so the time to output those depends on the output rate that I cannot see. What is it?
(And no, your stop logic does not make any sense. All you need is a single outer loop and a state machine architecture)