LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

OPC UA architecture

Yes.

Could you double check that at the very beginning of .c and .h file you see something like

/* THIS IS A SINGLE-FILE DISTRIBUTION CONCATENATED FROM THE OPEN62541 SOURCES
 * visit http://open62541.org/ for information about this software
 * Git-Revision: v0.2.2
 */

It's necessary that Git-Revision is v0.2.something

You can't compile v0.3 with CVI.

 

Which kind of compilation errors do you see?

 

Vix
-------------------------------------------
In claris non fit interpretatio

-------------------------------------------
Using LV from 7
Using LW/CVI from 6.0
0 Kudos
Message 21 of 54
(4,071 Views)

doesn't find this file:

 

# include <stdbool.h> /* C99 Boolean */

# include <malloc.h>

Davide Vittorio G. - TLGB S.R.L.
Italian SW Developer
0 Kudos
Message 22 of 54
(4,071 Views)

To use C99 extensions you must enable them in CVI.

Options >> Build Options...

and enable "Build with C99 extensions"

Vix
-------------------------------------------
In claris non fit interpretatio

-------------------------------------------
Using LV from 7
Using LW/CVI from 6.0
0 Kudos
Message 23 of 54
(4,068 Views)

This is my setting, i'm using CVI 2012

 

Setting.PNG

Davide Vittorio G. - TLGB S.R.L.
Italian SW Developer
0 Kudos
Message 24 of 54
(4,066 Views)

I forgot to say that you must use CVI 2013 or later.

Since CVI 2013 an almost-standard porting of clang compiler is used and this allows you to use standard third party libraries.

I suggest either CVI 2015 or CVI 2017 (since CVI 2013 is full of bugs).

 

Based on my experience, a version older than CVI 2015 is not usable nowadays (except for old legacy projects built and maintanined with old CVI).

 

Vix
-------------------------------------------
In claris non fit interpretatio

-------------------------------------------
Using LV from 7
Using LW/CVI from 6.0
0 Kudos
Message 25 of 54
(4,064 Views)

I've Tryed CVI 2017 evaluation but get other problem.

 

Undefined Symbols.PNG

Davide Vittorio G. - TLGB S.R.L.
Italian SW Developer
0 Kudos
Message 26 of 54
(4,054 Views)

These are objects and functions from Windows SDK.

After you install CVI 2017 you must download and install Windows SDK (8.1 unfortunately).

Vix
-------------------------------------------
In claris non fit interpretatio

-------------------------------------------
Using LV from 7
Using LW/CVI from 6.0
0 Kudos
Message 27 of 54
(4,052 Views)

i've downloaded from this link the windows 8.1 SDK setup, this started a downloader from where i get the installer

 

SDK.PNG

 

and after running the installation i have this page but still doesn't compile with the same problem

 

up to date.PNG

 

i'm using Windows 7 64 bit

Davide Vittorio G. - TLGB S.R.L.
Italian SW Developer
0 Kudos
Message 28 of 54
(4,048 Views)

You have to install SDK through CVI installer, because it copies the relevant files where necessary.

If you download and install it with its own package, CVI isn't able to see it.

Otherwise it would be possible installing a newer version of the SDK and configuring CVI so that it uses it Smiley Wink

Vix
-------------------------------------------
In claris non fit interpretatio

-------------------------------------------
Using LV from 7
Using LW/CVI from 6.0
0 Kudos
Message 29 of 54
(4,046 Views)

Nothing to do, tryed to repair the installaion of this components:

  • MSDTRedistributables_WindowsSDK_81
  • MSDTRedistributables_BuildTools_81
  • MSDTRedistributables_SDKHeaderFiles_81

but still have the same problem compiling.

i've tryed to create a new project with only this file in it and also doesn't compile.

Davide Vittorio G. - TLGB S.R.L.
Italian SW Developer
0 Kudos
Message 30 of 54
(4,033 Views)