03-12-2009 01:43 PM
03-12-2009 01:45 PM
Can you post your VI?
I'm sorry but your English is just not that clear so several ideas/concepts seem to run together. What is "paaeter"?
03-12-2009 02:19 PM
Ravens Fan wrote:Can you post your VI?
I'm sorry but your English is just not that clear so several ideas/concepts seem to run together. What is "paaeter"?
Yes posting code will help with the language barier.
I believe "paaeter" = parameter
So guessing at what is being asked:
How can I change a prameter and imediately realize that change in anothe parallel loop?
Answer: Action Engine ! See this Nugget to learn about Action Engines and how they can be used to share data between multiple threads.
Ben
03-12-2009 04:20 PM
Hi attached a simplified circuit for my detailed one, I need to chang the multiplication factor from combo box while the program running, and see the chang immediatly on chart graph with outneed to stop and run again the program to see the updated change.
03-12-2009 04:27 PM - edited 03-12-2009 04:28 PM
You have some issues with data flow.
You have two completely separate loops that will operate in parallel. The bottom loop will execute 10 times rather slowly because of the 2000 millisecond wait. The upper loop will execute 12 times as fast as the CPU will allow. Pretty much instantaneously. So whatever is in your combo box before the program starts, you'll wind up with an array of 12 of those immediately. If you want to see changes to the chart as they are happening, just move it inside the loop.
You probably want to merge the two loops into one. It is hard to know what you want to do because this just seems like a basic exercise to learn about LabVIEW. I would recommend you learn more about LabVIEW from here. How to Learn LV.
03-12-2009 07:09 PM
03-12-2009 10:54 PM
First, let me correct you on terminology. You don't have a "circuit". You have a block diagram. A circuit is what you have if you are dealing with copper wires and electrical devices.
If you want to analyze data in one loop while collecting data in another loop, you should look at the producer/consumer architecture. Look under File / New .....
If you have something that takes 15 minutes per iteration, you really do have a lot going on and probably need to look for ways to break that down further.