12-08-2005 11:10 PM
12-09-2005 12:38 AM
Hi,
You may want to take a look at the Producer-Consumer design pattern for this. You will find a template for his here:
templates\Frameworks\DesignPatterns\ProducerConsumerEvents.vit
12-14-2005 09:15 AM
Khalid, thanks for replying. I looked over your suggestion but I'm not sure if that would work in my case or not. In the producer/consumer setup, I'm not sure what I would wire into the data input of the vi in that program. My main vi, isn't really dealing with "data" so much, as my question relates to controlling the code to execute an event which in turns will execute a couple of components of my instrument.
Basically I have a numeric control that controls integration time and would like for when this control is changed in value to execute an event. However, I also need to use this control in other event cases to control the integration time, without triggering the event it is connected to. I was trying to come up with a way to use two different controls, but that just wasn't working. I'm not sure if what I want to do is even possible or not. Basically I think I'd like to turn "off" the event form happening in one case or more and then have it "on" only when I need it, so it will run its own event. I wasn't sure if something like registering for events would work or not, but I'm not familiar with those functions at all.
Thanks again for your ideas, I really appreciate it. If you or anyone else can provide any further insights, I'd appreciate it.
12-14-2005 09:27 AM
12-14-2005 10:06 AM
12-14-2005 01:49 PM
12-15-2005 07:55 AM
12-15-2005 07:25 PM
Although all of the previous suggestions are correct and will solve the problem you have described I will throw out a simple solution.
Upgrade to LV 7.1 where you can use the property node "value(signaling)". This node has the same effect as a user triggering the event.
Ben
12-15-2005 08:55 PM
01-18-2006 10:32 PM
Finally getting around to replying to this...
Just to let all know who replied here, I was able to solve my problem by using the Dynamic Registering for Events method. It took a bit of work, but everything works fine, like it should.
Thanks agian to all who replied with suggestions, I appreciate. I was able to learn several things from all of the ideas.