Hi all,
First time poster.
I am having some issues getting some VBA code to copy over to FactoryTalk in hopes of displaying a screen for a vision system on the HMI. I have the code that works fine in Visual Studio, but I am not sure what steps need to be taken to get it to initialize the connection and launch on my HMI using FactoryTalk. I will paste my current code at the bottom, and any insight on what steps need to be followed for this to work in FactoryTalk is much apprecitated.
Thanks in advance.
PublicClass Form1
PrivateSub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) HandlesMyBase.Load
EndSub
PrivateSub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) HandlesMyBase.Load
Dim state AsLong
state = VWXG.Initialize()
VWXG.Address = "192.168.0.10"
VWXG.Port = 8502
state = VWXG.Connect()
state = VWXG.StartRemoteDesktop(0)
EndSub
EndClass
First time poster.
I am having some issues getting some VBA code to copy over to FactoryTalk in hopes of displaying a screen for a vision system on the HMI. I have the code that works fine in Visual Studio, but I am not sure what steps need to be taken to get it to initialize the connection and launch on my HMI using FactoryTalk. I will paste my current code at the bottom, and any insight on what steps need to be followed for this to work in FactoryTalk is much apprecitated.
Thanks in advance.
PublicClass Form1
PrivateSub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) HandlesMyBase.Load
EndSub
PrivateSub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) HandlesMyBase.Load
Dim state AsLong
state = VWXG.Initialize()
VWXG.Address = "192.168.0.10"
VWXG.Port = 8502
state = VWXG.Connect()
state = VWXG.StartRemoteDesktop(0)
EndSub
EndClass