LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

nisyscfg for x64 application

Hi, I'm trying to use nisyscfg.lib in my C++ application - it works, but only for win32 configuration. How can I use this library in x64 application? Should I download another file? From where?

Thanks for reply.

0 Kudos
Message 1 of 11
(5,600 Views)

This is weird. I just tried to compile the application I sent you yesterday as x64 and could run it without a problem. Maybe try to reinstall the system configuration and check is there is a x64 support file to install.

 

Can you also tried the application I compiled for x64 OS? What do you get? 

 

Best regards 

______________
Florian Abry
Inside Sales Engineer, NI Germany
0 Kudos
Message 2 of 11
(5,599 Views)

Your application works fine.

Hi, i'm trying to compile simple program(on x64 machine):

#include "stdafx.h"
#include "nisyscfg.h"  
int _tmain(int argc, _TCHAR* argv[])
{
   NISysCfgSessionHandle session = NULL;
   char target[NISYSCFG_SIMPLE_STRING_LENGTH] = "";
	
   NISysCfgInitializeSession(target, NULL, NULL, NISysCfgLocaleDefault, NISysCfgBoolTrue, 10000, NULL, &session);
		
   return 0;
}

 And when Platform is set to Win32, works fine, but when platform is set to x64, I'e got a linker error:

Error 1 error LNK2019: unresolved external symbol NISysCfgInitializeSession referenced in function wmain C:\Users\zero\Documents\Visual Studio 2010\Projects\NormalDaqTest\NormalDaqTest\NormalDaqTest.obj

 

I'm linking to my program file: nisyscfg.lib from directory: C:\Program Files (x86)\National Instruments\Shared\CVI\ExtLib\msvc

I'm sure, that for x64 I need to link file msvcx64\nisyscfg.lib, but I haven't this file(in msvcx64 I've got only visa.lib file).

From where can I download nisyscfg.lib for x53 platforms?

0 Kudos
Message 3 of 11
(5,592 Views)

I can confirm you I have the lib in nsvcx64 directory.

 

I would advise you to try to reinstall the system configuration and see in the custom install if you have the possibility to install the support for 64 bit Operating System.

 

Cheers 

______________
Florian Abry
Inside Sales Engineer, NI Germany
0 Kudos
Message 4 of 11
(5,586 Views)

from where can I download install file? I was trying to reinstall it, but maybe I haven't good installation file.

0 Kudos
Message 5 of 11
(5,584 Views)

Sorry I went too fast and forgot to paste the link. here it is:

 

NI System Configuration 5.3.2 - Windows Server 2003 R2 32-bit/XP/7 32-bit/Vista 64-bit/Vista 32-bit/7 64-bit/Server 2008 R2 64-bit, Real-Time OS

http://joule.ni.com/nidu/cds/view/p/id/3336/lang/en

 

Regards 

 

______________
Florian Abry
Inside Sales Engineer, NI Germany
0 Kudos
Message 6 of 11
(5,581 Views)

Thanks, it helps me:) But which libraries should I use? C:\Program Files (x86)\National Instruments\Shared\CVI\Bin\msvc(64)  or C:\Program Files (x86)\National Instruments\Shared\CVI\ExtLib\msvc(64) ?

0 Kudos
Message 7 of 11
(5,577 Views)

normally you do not need to link explicitely the library from CVI. The compiler will lik the appropriate one regarding the application.

______________
Florian Abry
Inside Sales Engineer, NI Germany
0 Kudos
Message 8 of 11
(5,575 Views)

maybe you're right, but I dont' compile it on the machine, where NI System Configuration 5.3.2 is installed. I only copy there *lib files. 

0 Kudos
Message 9 of 11
(5,571 Views)

Hi adamenk

 

difference between /bin libraries and /extlib libraries is described here: http://digital.ni.com/public.nsf/allkb/74ADE302D7461E30862569DE00550F1D?OpenDocument

 

The /bin libraries are meant to be used with LabWindows CVI compiler whereas the /extlib libraries are meant to be used with external compiler.

 

Hope this helps.

Message 10 of 11
(5,538 Views)