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 - AabeckControls

Pages: [1] 2 3 ... 13
1
Support Questions / Re: Anyone Else Have VS Installer Suddenly Empty?
« on: March 04, 2022, 10:01:25 PM »
Just to give an update after a week an half:

Microsoft is still implying that I went deep in \ProgramData and \AppData\Local and deleted the VS folders. So obviously all the other experienced VS users posting this same problem must have to?

They are still saying to delete EVERY VS folder in \Program Files,  \ProgramData and \AppData\Local and completely reinstall VS even though that will take a full day or more, and refuse to believe this is a problem either with VS or Windows Update that they need to deal with.

They also don't like the suggestion that VS Installer be able to look for installed components in \Program Files and figure out what is installed and then work, as both VS2019 and VS2022 are fully working, they just won't update.

2
Support Questions / Anyone Else Have VS Installer Suddenly Empty?
« on: February 24, 2022, 08:54:25 PM »
I opened VS Installer on one PC and it had some updates, so I opened it on my other PC to update it and it shows empty - no VS installed at all, nothing to update.

I have VS2019 and VS2022 Community installed and they both run, just Installer says no.

Go to Microsoft's Developers forum and there are posts from others of the exact same thing, but microsoft immediately closes them because they didn't run a Collector program and include the zip file in their post.

I ran the Collector and posted the result and the answer I am getting now is I deleted a folder in either ProgramData\... \VS or one in AppData\Local\ .....\VS

With so many posts of the exact thing this has to be a VS problem, or a Windows Update problem in my thinking.

Has anyone else had this come up?

Microsoft's clever answer is to delete all the VS folders in ProgramData, AppData and Program Files (86) completely and do a complete reinstallation. Since I install most of the components of VS each install takes over 8 hours, and then has to go through its First Time Ran routine., plus lose all the Recent projects links.

3
Support Questions / Anyone Having Issues With Visual Studio 2022?
« on: July 29, 2021, 06:52:50 AM »
I installed the VS2022 Preview community edition. It kept VS2019 installed and I use that for customers projects I am working on.

I have opened a new AHMI project and opened copies of existing projects.

I haven't found any glitch yet and was wondering if anyone out there has come across anything to watch out for? Whether it's Community or a paid version.

4
Support Questions / EPPlus New Version License
« on: April 14, 2021, 09:49:26 AM »
The latest version of EPPlus 5 has changed their license type.

I have searched their website and it shows to use it for a non-commercial application it is 'easiest' to register the environment variable.

However their examples are either C or web-based and I have not figured out how to do this on the VB code in VS2019, especially at the "User Level" as it says at the bottom.

Has anyone done this, and is there anything else different from the previous version (last version I used was v3)

Here is a copy from the website:

Code: [Select]
LicenseContext parameter must be set
With the license change EPPlus has a new parameter that needs to be configured. If the LicenseContext is not set, EPPlus will throw a LicenseException (only in debug mode).

This is a simple configuration that can be set in a few alternative ways:

1. Via code
// If you are a commercial business and have
// purchased commercial licenses use the static property
// LicenseContext of the ExcelPackage class :
ExcelPackage.LicenseContext = LicenseContext.Commercial;

// If you use EPPlus in a noncommercial context
// according to the Polyform Noncommercial license:
ExcelPackage.LicenseContext = LicenseContext.NonCommercial;

using(var package = new ExcelPackage(new FileInfo("MyWorkbook.xlsx")))
{

}
2. Via appSettings.json
  {
    "EPPlus": {
      "ExcelPackage": {
          "LicenseContext": "Commercial"
          }
      }
  }
3. Via app/web.config
<appSettings>
    <!--The license context used-->
    <add key="EPPlus:ExcelPackage.LicenseContext" value="NonCommercial" />
</appSettings>
4. Set the environment variable 'EPPlusLicenseContext'
This might be the easiest way of configuring this. Just as above, set the variable to Commercial or NonCommercial depending on your usage.

Important! The environment variable should be set at the user level.

5
Thanks Godra.

Never saw that down on the properties. Guess I'm going to have to find time to start trying every setting for all the objects sometime.

6
Support Questions / BasicLabel Time Display Leading Zero for 0-9 Value
« on: October 16, 2020, 02:03:09 PM »
I have some BasicLabels displaying the month/date/year  hour:minute (and some with :second). I want to show the day/time in the PLC to match logs in it, not use the computer day/time that may be off. Also, I can click on each label and enter a correct time to write to the PLC.

I don't like the display when the time is say 1: 3: 5, I want it to show 1:03:05. What I am doing now is setting 3 bits in the PLC if the hour, minute or second are 0-9 and using them as visibility bits for 6 labels.

I have 2 for hour - one showing the 2 digit value if the bit is NOT, and one showing the one digit value with a '0' prefix if the bit is on. Sort of a clunky way of doing it.

Is there a property for BasicLabel that if it is a single digit, or less than a specified value, a prefix is added?

If it was a specified value then adding a prefix or suffux may be usable for applications other than time - temperature, pressure, level, flow, pH, etc.

7
Support Questions / Re: example project won't build
« on: October 03, 2020, 11:03:48 AM »
I just got hit with this. My computer doesn't show the Security section on properties.

Finally figured out I was trying to rebuild the cop y of the project on the network NAS. Switched to the one on my local hard drive and it rebuilt.

But now I get a few errors that it could not write to obj/Debug/.NETFramework,Version=v4.0.AssemblyAttributes.vb. I went to the Security tab, changed ownership and set full access, even deleted the files in Debug, and still get it. No write error for bin/Debug.

But the project runs fine.

8
Archie,

Thanks - that was it. The sign manifest was checked.

I have heeded your advice and never Publish a project - just put a shortcut to the Debug folder.

9
VS Community just updated today and the project I am working on repeatedly fails on Rebuild with the same message:
 An error occurred while signing: Failed to sign bin\Debug\AdvancedHMI.exe. SignTool Error: No certificates were found that met all the criteria given.

I have closed & reopened the solution and VS entirely, I have tried Clean Solution-Rebuild and Build-Rebuild always with the same error

The Debug folder may have 1 file in it, or none, and 2 empty folders.

I haven't added any security to the project or deleted any files or certificates, haven't changed any settings in VS either.

I just tried the project on my laptop that (unfortunately) I update VS on it this morning also and it does the exact same thing.

10
I got in the habit of not using MainForm for anything but a splash screen with a START FormChangeButton and logo's that goes to the home operating screen. The logo's are mine, AHMI & the customers.

That way it doesn't need any driver on it, and I make it the only form that is Sizeable that it can close the application. From the home operating screen I put an EXIT FormChangeButton that goes to MainForm and can then close.

11
I am trying to update a project. The line has 32 stations that may have racks in them and presently the screen shows the rack number in each station, or 0 for empty, with a brick red background. If the station is the destination of one of the hoists a red background object becomes visible. The attached pic shows the objects separated for editing, otherwise the red would cover the brick red if visible.  These objects presently are programmed as BasicLabels and if clicked on the keypad allows entry of a new rack number 0 to 50.

The change I would like to make is clicking on either object for that station would bring up a small popup form that would show the station #, rack #, quantity on rack and surface area of each part, and allow entry of new values. This is an electroplating line so surface area and panel count determine plating amps.

Is there a way to get a BasicLabel to call a form?
If I change this to a FormChangeButton can I have it display the tag value and not set text?
Is there another object in the toolbox that would do this?  (I tried it and it reads "Carrier_In_Station[2]" instead of the value "3" of that tag)

I am not asking for the ability to change the background color as now it is changed by a visible bit on the second color object.





12
First I tried the Repair option on the VS installer & still the same problem. Now it is completely uninstalling, then I will delete the program and Documents folders for it just to be sure before reinstalling.


13
I have one that I am thinking might be a bad VS2019 Community.

I can open projects that are OK on other computers, even a fresh extracted copy of ver399xR1.

But, when ever I try to open any form it shows the error screen saying it could not load zForceItemsIntoToolbox - which is a public class in the VB file. It also prohibits me from opening the ForceItemsIntoToolbox.vb code at all. I tried copying the file from another AHMI application but still faults.

This only happens on one Windows 10 Pro desktop.

Is there anything I should try before uninstalling & reinstalling VS?

14
Support Questions / PLC Control Form Change
« on: August 15, 2019, 07:51:08 AM »
I have an existing application that has been running for a few years the customer would like a simple change on.

If the operator leaves the HMI on the "Motors' screen he would like it to automatically go to MainForm, which shows line and cycle status.

I have searched the forum and found posts about menu driven forms can be controlled by a PLC bit, but that would require a complete rewrite of this.

Is there any way, either with PLC bit or value, or a timeout in AHMI itself, that could change to MainForm?

15
Open Discussion / Forum Entry Bug
« on: May 06, 2019, 05:08:05 PM »
I have been accessing this forum with the following bookmark:
http://advancedhmi.com/forum/index.php#c1

However lately, on more than one computer and with IE and Firefox, when I click on Support Questions I get a blank screen, not a 404 screen, that says the page can not be found. If I click on the latest thread reply I do go that thread, then can go back to all the categories in the forum. This also happens whether I am connected directly to the internet via WiFi or through the office firewall on the wired network.

Pages: [1] 2 3 ... 13