22
« on: October 05, 2016, 12:46:21 PM »
I'm trying to do the same thing (run a test console app). but I;m getting a null reference exception thrown for OmronEthernetFINSCom.synchronizingObject.
Since I don't have a form to use as the synchronizingObject in my test app what can I do to resolve this?
OmronEthernetFINSCom comComponent = new OmronEthernetFINSCom()
{
IPAddress = "192.168.1.80",
ProtocolType = OmronEthernetFINSCom.ProtocolOptions.UDP
};
main.Initialize(comComponent);
public void Initialize(OmronEthernetFINSCom comComponent)
{
this.comComponent = comComponent;
this.comComponent.Subscribe(RUN, 1, 100, DataSubRun_DataReceived);
this.comComponent.Subscribe(FIXTURE_ID, 1, 100, DataSubFixtureID_DataReceived);
}