I have been working on creating a component for a Cognex Dataman BCR using the Dataman SDK.
Initial tests proved that I could add the component, set the IP address in the properties and once the application was started I could start receiving the scanned bar codes in AdvancedHMI.
My question is, I need to add another scanner component to the application. How would I go about debugging the two components separately? I am able to debug the component code during runtime, but it seems it is only showing me the running code for the last declared component. If that makes sense?
*Edit*
Or should the component (in my case), add a .vb file to the Solution Explorer for Scanner1 and Scanner2, respectively?
Since each scanner is it's own entity, it can't necessarily be running from one .vb file? Or can it?
I.E.,
In MainForm.Designer.vb
Friend WithEvents Scanner1 As CognexDatamanControl.CognexDataman
Friend WithEvents Scanner2 As CognexDatamanControl.CognexDataman ' Last declared component
Also, shouldn't these be initialized as:
Friend WithEvents Scanner1 As New CognexDatamanControl.CognexDataman
Friend WithEvents Scanner2 As New CognexDatamanControl.CognexDataman
Perhaps I do not fully understand how the component is built behind the scenes?