Nikunj Posted February 25, 2009 Report Share Posted February 25, 2009 Hi, There is one machine Quote Link to comment
dannyt Posted February 25, 2009 Report Share Posted February 25, 2009 Is that one machine to rule them all ? Quote Link to comment
JustinThomas Posted February 26, 2009 Report Share Posted February 26, 2009 So what happened to this machine? Quote Link to comment
Norm Kirchner Posted February 26, 2009 Report Share Posted February 26, 2009 QUOTE (dannyt @ Feb 24 2009, 05:08 AM) Is that one machine to rule them all ? And through the shift register bind them. Quote Link to comment
Justin Reina Posted March 23, 2009 Report Share Posted March 23, 2009 Hey Nikunj, Sounds like you have a fun project to work with. As you have multiple tasks (or processes/threads, whatever suits your fancy), you might want to try out structuring your code as such. In an OS they're typically referred to as threads, and in LV there is potential for the same structure, and it is really efficient. One option in LV that may work well for you is a Queued-State Machine(QSM), where each 'task', or collection of common tasks is it's own thread (or QSM). There is a ton of info on the forum about this concept, but it essentially mimics the behavior of an OS. Here is an example, but by no means the best example (check the forum): -http://forums.lavag.org/PM341-t13547.html (the stepper_II.zip file) For your application, one effective method for the graph plotting would be to make it a seperate thread. It would then be up to the 'serial' thread to pass incoming data to it. If you are interested and your project warrants the time for it, play around a bit with this option. You may find it can be very flexible for your needs. Best of Luck, -Justin *I've also attached a simple vi showing that queues can pass anything you want them to. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.