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