AdvancedHMI Software
General Category => Open Discussion => Topic started by: aquilmustafa on February 22, 2016, 07:22:53 AM
-
Hey Guys,
I've been working with DataSubscrber2 where I've called an Boolean array of 800 called "ALARM" but whenever datasubscriber2 is called and array no is greater then 0 the below attached error pops up. Please guide me as to what's wrong and how to correct the mistake
-
The NumberOfElements is not yet supported with subscriptions/DataSubscribers. You would need to add a timer to your, then in the event handler use this code:
Dim alarms() as string=EthernetIPforCLXCom1.Read("ALARM[0]",800)
-
Version 3.99c has been posted. This version will now return all elements. A DataChanged event will only fire when the first element changes, so you will need to use the DataReturned event.
-
Hey Archie,
I'm just installing 3.99 c version. Only one more request can you please provide us with a list of updates made in 3.99 C I've downloaded 3.99 b but could not find the details of the update.
Thanks a lot again.
-
The changes are listed in the ReleaseNotes.txt that is part of the AdvancedHMI project.
-
Hey Archie,
When i try to open AHMI-3.99 C in VS-2010 the CLX Drivers and Micro-800 drivers does not form a component they appear in the form of .vb file and on double click opens the code.
Please help me to get these drivers up and running.
-
Have you tried it in VS 2015?
-
Hey Archie,
My Application has been completely developed in vb2010 and it is in the installation stage. At this stage i cannot convert it to VS2015
-
VS2015 will open VS2010 applications without updating them, so they can still be opened in 2010 after working with them in VS2015. VS2015 also targets all the same .NET frameworks. In other words, as of VS2010, the version of Visual Studio you use does not play a role in the compatibility of the final application.
-
I opened the same application in 3 different versions (2010, 2013, and 2015) of Visual Studio to verify they all work the same
-
Thanks Archie for the upgraded version. Could bee please guide me as to how to compare boolean values coming in datasubscriber2. I've tried everything i knew but couldn't make it work. Please guide me I'm using v3.99C
-
Thanks Archie for the upgraded version. Could bee please guide me as to how to compare boolean values coming in datasubscriber2. I've tried everything i knew but couldn't make it work. Please guide me I'm using v3.99C
Can you give me more details of exactly what you want to do
-
I'm trying to compare the boolean values of the array coming from datasubscriber2. The code I've written is as follows
Private Sub DataSubscriberAlarm_DataReturned(ByVal sender As Object, ByVal e As Drivers.Common.PlcComEventArgs) Handles DataSubscriberAlarm.DataReturned
If e.PlcAddress = "ALARM" Then
If e.Values(0) = True Then
Alarm_status_Patti.Text = "EMERGENCY PRESSED AT STATION-1"
AlarmPanel.Visible = True
ElseIf e.Values(1) = True Then
Alarm_status_Patti.Text = "EMERGENCY PRESSED AT STATION-2"
AlarmPanel.Visible = True
ElseIf e.Values(2) = True Then
Alarm_status_Patti.Text = "EMERGENCY PRESSED AT STATION-3"
AlarmPanel.Visible = True
ElseIf e.Values(3) = True Then
Alarm_status_Patti.Text = "EMERGENCY PRESSED AT STATION-4"
AlarmPanel.Visible = True
ElseIf e.Values(4) = True Then
Alarm_status_Patti.Text = "EMERGENCY PRESSED AT STATION-5"
AlarmPanel.Visible = True
ElseIf e.Values(5) = True Then
Alarm_status_Patti.Text = "EMERGENCY PRESSED AT STATION-6"
AlarmPanel.Visible = True
Else
AlarmPanel.Visible = False
End if
End sub
-
e.Values is an array of string, so try putting the True in parentheses:
If e.Values(0) = "True" Then
Alarm_status_Patti.Text = "EMERGENCY PRESSED AT STATION-1"
AlarmPanel.Visible = True
-
Hey Archie,
I've updated my application from V35-a to V35-d and but now EthernetCLXCom1.Read("ALARM[0]", 800) is also not working. Please guide me as to what is to be done DataSubcriber2 is also not working. Please guide me.