02-24-2009 09:54 AM
02-24-2009 01:49 PM
You need to learn a little patience, as you created 3 threads for this subject. MikeS81 has provided links to this thread so all discussion can take place in one spot. I had seen your thread this morning but did not have time to respond, and was planning to do so later. Remember: these forums are not a venue for instant responses - if you need more immediate help then you should contact NI Tech Support directly.
With respect to your project: It seems you started writing some "driver" functions for the camera using the ActiveX control. This is a good place to start as it provides modularity and easy coding. It's not clear whether you have a top-level VI, unless "CamRun_wb" is supposed to be the top-level. If it is, it's not clear how it's supposed to work, or what it is that you need to be able to do. I would suggest doing some reading on using event structures and architectures such as state machines and the producer-consumer.
A few specific comments about your code:
02-25-2009 02:58 AM
02-25-2009 09:14 AM
I don't really see how CamRun_wb can be integrated into anything. It's set up as an infinite loop, and it seems designed to be a top level. Perhaps this is a prototype.
In terms of your question about the "1 wire". What I meant was that you would only need to have one connection terminal rather than 4. Your "SetRegion" VI would accept a cluster that is the rectangle. This cluster consists of 4 numbers (top, left, bottom, right). Use Bundle/Unbundle/Bundle By Name/Unbundle by Name to access the cluster elements. Makes for cleaner code.
If you haven't already done so you should go through the tutorial(s) and look over the material in the NI Developer Zone's Learning Center which provides links to other materials and other tutorials. You can also take the online courses for free.