LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

OPC UA architecture

Thank you.

open62541 v.0.2.2 compiles and works!

Now I would like to try v.1.0....I think it will be a more stable release...

But simply I cannot find open62541.c and .h on the site...

Someone have already faced with this issue?

0 Kudos
Message 51 of 57
(2,472 Views)

you can find it here, let me know if it works.

i will have to do a server.

you have done a client or server?

 

Davide Vittorio G. - TLGB S.R.L.
Italian SW Developer
0 Kudos
Message 52 of 57
(2,468 Views)

Dear all, I have some update about OPC UA based on open62541.

 

I've followed the build guide and create with Visual Studio 2022 a .dll with the .lib and .h from 1.3.8 source, the latest at this date, that works in CVI.

 

you have to use CVI from 2017 to later one because of the clang compiler, in the older version is obsolete, no need to add WS2_32 from windows kit anymore, just add the 3 files attached in the zip to your project.

 

the file .h have some little modification from the original, especially I've commented line 992-1000, maybe someone knows the correct header to include.

 

 

#if defined (_MSC_VER) || defined(__clang__)
# ifndef UNDER_CE
#  include <io.h> //access
#  define UA_access _access
# endif
#else
# include <unistd.h> //access and tests
# define UA_access access
#endif

 

 

you can use the example in the source code to do some experiment, let me know if you discover any bug.

 

There's also a video instruction of every step I've done to create the library for future reminder.

Davide Vittorio G. - TLGB S.R.L.
Italian SW Developer
Download All
Message 53 of 57
(1,668 Views)

Thank you so much for the sharing


Certified LabWindows/CVI DEVELOPER (2004)
LabVIEW since 5.01 | LabWindows/CVI since 4.01
0 Kudos
Message 54 of 57
(1,235 Views)

Hello, hello,

I know this is *ancient*, but I'm trying to compile open62541 with LW. Like vix said I tried version 0.2 but I don't really understand the methodology to get it to work with LW.

 

It normally uses "cmake && make" with possibly some options at the cmake level. You cannot do either with LW, but this process generates some new and needed header files, so you can't just dump all the header and C files in a project and call it a day, it won't be enough.

 

I have no problem on Linux. Do I need a cmake+make utility (and some C compiler) to get to project kickstarted before attempting the LW compilation ?

0 Kudos
Message 55 of 57
(208 Views)

If you follow evert post starting from this you will get it work. You have to use amalgamation c and h, not the single one. Or you can use the dll lib and h that I have attached in previous post, it will be more simple and updated

Davide Vittorio G. - TLGB S.R.L.
Italian SW Developer
0 Kudos
Message 56 of 57
(197 Views)

I *knew* I had seen a zip file with already compiled dll while reading up on OpcUA and LW, but when I posted the message I couldn't find it... Brain fart or vacations getting too close I guess.

 

Thanks

0 Kudos
Message 57 of 57
(174 Views)