- Posts: 3
- Thank you received: 1
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?
and many thanks for great support!
Please Log in or Create an account to join the conversation.
github.com/OPCLabs/Examples-QuickOPC-PowerShell/tree/main/Wi...mples/DataAccess/_EasyDAClient
Best regards
Please Log in or Create an account to join the conversation.
Good catch! - Thanks for pointing it out, we will fix it.
Best regards
Please Log in or Create an account to join the conversation.
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!
Please Log in or Create an account to join the conversation.
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.
Best regards
Please Log in or Create an account to join the conversation.
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: (

+ 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.