Pico2204A Excel macro to VB.NET

Post your VB and VBA discussions here
Post Reply
Sergium
User
User
Posts: 2
Joined: Wed Jul 07, 2021 1:08 pm

Pico2204A Excel macro to VB.NET

Post by Sergium »

Hi,
Several days I'm just trying to convert Excel macro to VB.Net for tests without success.
Using Pico2204A, basic file is ps2000_x64.xls and keeping "open", "get_unit_info", "get_timebase", "stop" and close" functions are working fine.
Copying and convert code to Win Form VB.Net application, "open" and "get_unit_info" are working fine, but cannot get parameters from "get_timebase" - see enclosed screenshots of both codes.
Pease, can you see/advise what is wrong or missing or ...
In advance thank you for your support.
Attachments
ps2000_x64_xls_OK.jpg
ps2000_x64_VB_NOK.jpg

Sergium
User
User
Posts: 2
Joined: Wed Jul 07, 2021 1:08 pm

Re: Pico2204A Excel macro to VB.NET

Post by Sergium »

Arghh ...
Need to send this post to realize problem is coming from output argument that needs ByRef for value copy ...

Post Reply