Professional OPC
Development Tools

logos

Online Forums

Technical support is provided through Support Forums below. Anybody can view them; you need to Register/Login to our site (see links in upper right corner) in order to Post questions. You do not have to be a licensed user of our product.

Please read Rules for forum posts before reporting your issue or asking a question. OPC Labs team is actively monitoring the forums, and replies as soon as possible. Various technical information can also be found in our Knowledge Base. For your convenience, we have also assembled a Frequently Asked Questions page.

Do not use the Contact page for technical issues.

Powershell library problem with new version of dll?

More
22 Jul 2024 19:51 #12970 by makodse
I was looking in the wrong place, thanks
and many thanks for great support!

Please Log in or Create an account to join the conversation.

More
22 Jul 2024 19:01 - 22 Jul 2024 19:01 #12969 by support
Last edit: 22 Jul 2024 19:01 by support.
The following user(s) said Thank You: makodse

Please Log in or Create an account to join the conversation.

More
22 Jul 2024 18:56 #12968 by support
Oh, you are right. The majority of the examples have been updated, but some were not, and the one you pointed to is one of them.

Good catch! - Thanks for pointing it out, we will fix it.

Best regards

Please Log in or Create an account to join the conversation.

More
22 Jul 2024 18:45 #12967 by makodse
I diden't manage to find it in the included example or on github examples:
github.com/OPCLabs/Examples-QuickOPC-PowerShell/blob/main/Windows/ReadAndDisplayValue.ps1
But your speedy help is much apreaciated and i now got my example running.
Many thanks!
The following user(s) said Thank You: support

Please Log in or Create an account to join the conversation.

More
22 Jul 2024 18:05 #12966 by support
Hello,

there is a new assembly that you need to reference, in addition. I have checked our current examples and they seem to do so correctly.
E.g.
Add-Type -Path "../../../Components/Opclabs.QuickOpc/net472/OpcLabs.EasyOpcClassicComponents.dll"
I hope this helps. Let me know please.
Best regards
The following user(s) said Thank You: makodse

Please Log in or Create an account to join the conversation.

More
22 Jul 2024 17:47 #12965 by makodse
Hi,
I'm pretty new to quick opc and want to use it to read/write some values.
I tried it a year or so ago and got my case to work. Altough, we dident move forward with it we are trying to do so now.
I tried to install the program and run my program that i wrote last time, but the new version has updated the library/path.
With the changed path i get an error (same as with the example below)
I try the example powershell code in the terminal: "ReadAndDisplayValue.ps1" included with the install.

using namespace OpcLabs.EasyOpc.DataAccess
Add-Type -Path "C:\Program Files (x86)\OPC Labs OPC Studio 2024.1\Components\OpcLabs.QuickOpc\net472\OpcLabs.EasyOpcClassicCore.dll"
Add-Type -Path "C:\Program Files (x86)\OPC Labs OPC Studio 2024.1\Components\OpcLabs.QuickOpc\net472\OpcLabs.EasyOpcClassic.dll"

So far so good.

Doing "$client = New-Object EasyDAClient" i get the following error:


PS C:\Users\adi> $client = New-Object EasyDAClient
New-Object : Cannot find type [EasyDAClient]: verify that the assembly containing this type is loaded.
At line:1 char:11
+ $client = New-Object EasyDAClient
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidType: (:) [New-Object], PSArgumentException
+ FullyQualifiedErrorId : TypeNotFound,Microsoft.PowerShell.Commands.NewObjectCommand


Did the dll change or is there something wrong with my machine? Tried on a couple of different ones.

Thanks!
Kind Regards
Micke

Please Log in or Create an account to join the conversation.

Moderators: support
Time to create page: 0.052 seconds