Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - doggo

Pages: [1] 2
1
Tips & Tricks / Re: AdvancedHMI on a Raspberry Pi
« on: April 12, 2015, 11:44:36 AM »
http://www.itontec.com/about-us/

I love this part:

About

Keep connecting, keep simple.Tontec are primarily focused on the wireless communication technology, we aims at providing electronic products of premium quality at fair price with great customer service. Nowadays our main products are Bluetooth remote shutter, powerbanks,Bluetooth speakers;In the long run we will provide more products depending on the consumer’s demand. We devote ourselves to to make your life much simpler and more wonderful.


:)


2
Archie,

I upgraded recently to 398a from 397e using the project folder swap method. Works great. The only way it could be more seamless is if you were to put purchased controls in AdvancedHMI project folder instead of AdvancedHMIControls folder, so that any purchased controls move with the project folder, like any user-added resources do.

You should mention the folder swap method in your quickstart file, if you haven't already.

3
Stepping thru did it. I was able to see the Z1-4 values were actually being read as 10 times their actual value, to eliminate the need for decimal point. So all the values were out of range and the chart doesnt show them.  Dividing by 10 before dispalying on the chart fixed everything.

Thanks!

4
It is. The form runs and the digitalindicators update, I just cant get the chart to update.

5
Support Questions / Modbustcpcom1.read not working in VBA chart component?
« on: February 26, 2015, 05:07:35 PM »
Archie,

Ive got another VBA chart display where there are 4 analog channels being read from an omega temperature device. All four channels update correctly in your Digitalpanelmeter component on the same form as the chart component, and update temperatures every 5 seconds. The panel meters work fine, so I know the Modbus ethernet addresses are correct.

But putting those same addresses in the Timer code below, the chart does not update. Any ideas? How can I check the variables valueZ1 to Z3 to see what is actually getting read from the omega?

Private Sub Timer1_Tick(sender As System.Object, e As System.EventArgs) Handles Timer1.Tick
        Dim valueZ1, valueZ2, valueZ3, valueZ4 As Single
        '* Z1-Z4 = the temperatures from the omega device
        Try
            valueZ1 = ModbusTCPCom1.Read("400005", 1)(0)
            valueZ2 = ModbusTCPCom1.Read("400006", 1)(0)
            valueZ3 = ModbusTCPCom1.Read("400261", 1)(0)
            valueZ4 = ModbusTCPCom1.Read("400262", 1)(0)
        Catch ex As Exception
            Exit Sub
        End Try

        '* Add the next point to the chart
        Chart1.Series(0).Points.Add(valueZ1)
        Chart1.Series(1).Points.Add(valueZ2)
        Chart1.Series(2).Points.Add(valueZ3)
        Chart1.Series(3).Points.Add(valueZ4)

        '* Do not let more than 500 point be on the chart
        If Chart1.Series(0).Points.Count > 500 Then
            Chart1.Series(0).Points.RemoveAt(0)
            Chart1.Series(1).Points.RemoveAt(0)
            Chart1.Series(2).Points.RemoveAt(0)
            Chart1.Series(3).Points.RemoveAt(0)
        End If
 End Sub

6
That was it. Thanks!

7
Archie,

I was updating my solution to 3.97e from 3.96a and got new forms imported no problem. But when I went to build, it would not accept the items I have in the "resource" folder:

this is from one of the designer forms that wont build:

 Me.ImageDisplayByValue2.ForeColor = System.Drawing.Color.WhiteSmoke
        Me.ImageDisplayByValue2.HighlightColor = System.Drawing.Color.Red
        Me.ImageDisplayByValue2.HighlightKeyCharacter = "!"
        Me.ImageDisplayByValue2.Image =

       Global.MfgControl.AdvancedHMI.My.Resources.Resources._051560_glossy_silver_icon_natural_wonders_star6_ps

        Me.ImageDisplayByValue2.KeypadText = Nothing
        Me.ImageDisplayByValue2.KeypadWidth = 300

I have some small .png images (like 051560_glossy...above) that are part of my forms and they display fine before but now they wont build in the new rev. FYI the path to the new 3.97e solution is different than the old 3.96A one, but since I did a "add existing items" with these graphics resources to the new solutions resources folder, I would think VBA would know they were in the new location now.

Any ideas?

As always, thanks for the excellent software tools and support.

Here's the actual VBA error:

Error   4   '_051560_glossy_silver_icon_natural_wonders_star6_ps' is not a member of 'MfgControl.AdvancedHMI.My.Resources.Resources'.   
C:\Users\Desktop\AdvancedHMIBetaV397e\AdvancedHMI\formtest.designer.vb   864   41   AdvancedHMI





8
Open Discussion / Re: Linux Mint and AdvancedHMI
« on: February 13, 2015, 04:57:37 PM »
Archie,

What processor platform did you run this on? If AHMI could be made to run on something like a Raspberry Pi, that would make one heck of a price performer for HMI front ends.




9
Support Questions / Re: VB chart component scrolling x-axis?
« on: January 20, 2015, 02:42:36 PM »
Using the VB chart component and your code corrections, I'm sucessfully trending two collections in an AHMI 1920 x 1080 screen which are 1000 points in length each, no problem or delay updating 4 times a second. Talking to an L71 CLX processor. Gonna try 3500 points. PC is mid-range intel I5 w 8GB ram.

Well done Archie!


 

10
Support Questions / Re: VB chart component scrolling x-axis?
« on: January 19, 2015, 10:58:09 PM »
Archie,

I had an example of code that went like this;

 If Chart1.Series.Count > 100 Then
            Chart1.Series(0).Points.RemoveAt(0)
            Chart1.Series(1).Points.RemoveAt(0)

and it woudn't work- points would not come off the left side...NOW I see why! ( If Chart1.Series(0).Points.Count)

What is the 100 point limit about? Is that a VB limit or an arbitrary limit based on typical PC CPU speed?  Ideally, we would like to have two trend collections displayed over about 30 minutes along the same x-axis, but each collection is being scanned about 4 times a second...7200 pts/collection.



11
Support Questions / VB chart component scrolling x-axis?
« on: January 19, 2015, 05:15:53 PM »
AHMI folks,

Anyone know a good way to configure the VB chart component so the x-axis (time) will scroll off the screen to the left as new values populate the screen on the right side?  I did google this and there seem to be some half-examples of code which changes the min and max ChartAreas properties. Not a VB God here so a specific example showing how to implement this with using the VB timer (like in Archie's examples) control as the tick source would be great.

Archie, you may be working on a similar advanced trend control for later release, hopefully it will have lots of options to configure time-based trend scrolling, because although the VB chart is powerful, it really isn't that easy to use for time-based trending.

Thanks,
Doggo


12
Support Questions / Re: Unstable environment
« on: January 12, 2015, 06:37:26 PM »
I noticed this one as well...thought it was me at first...Thanks for posting!

13
Open Discussion / Re: ISA 101
« on: January 02, 2015, 01:28:23 PM »
How about a link so we can see what you are referencing?

14
Feature Request / basicdatalogger log more than one tag?
« on: December 21, 2014, 02:09:26 PM »
Archie,

Any chance of having the basicdatalogger log a collection or series of tags? One just isn't enough LOL. Just 5 or so would be great, in typical datalog row format:

HEADER DATE TIME TAG1NAME TAG2NAME ETC
ROW1 : DATE1, TIME1, TAG1, TAG2, TAG3 etc.
ROW2 : DATE2, TIME2, TAG1, TAG2, TAG3 etc.
ROW X...

I'm thinking basic datalog for Modbus RTU temperature controllers like fuji PXR series etc. Don't need a lot of tags for a single controller.

Regards, Doggo


15
Support Questions / Re: new features
« on: December 07, 2014, 01:19:56 AM »
In the Basictrendchart, is there a way to adjust the sampling rate since there does not seem to be a way to set timespan on the x axis? Im using SimulatorCom1 to create a tag to trend, but it scrolls off the left side of the trend in just a few seconds.

Would be great to have the trend only log a point when the value changes.

Pages: [1] 2