ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

PXI

cancel
Showing results for 
Search instead for 
Did you mean: 

64-bit header files missing?

I'm not sure this belongs in PXI but equally as applicable anywhere. I am trying to invoke some NI instrument functions externally from another piece of software. To do so, I need to load NI dlls. Please note that I am not a programmer and my knowledge of C/C++, etc is extremely poor.

 

I followed basic documentation and got hold of the relevant dll & h files I thought I needed. Upon trying to load these, I encounter "...niRFmxWLAN.h is not a valid Win32 application". I grabbed the h-file from "..Program Files (x86)\...", which I assume is a 32-bit file and incompatible with what I'm using. "...Program Files\..." doesn't seem to contain an "ExternalCompilerSupport" folder at all under <NIDir>/Shared. So where do I get the corresponding 64-bit h-files? Thanks.

0 Kudos
Message 1 of 4
(1,230 Views)

I don't have NI-RFmx but other drivers installed. You can see \lib64 folder exists under Program Files (x86)

 

ZYOng_0-1738885692418.png

 

https://github.com/ZhiYang-Ong
0 Kudos
Message 2 of 4
(1,212 Views)

Thanks. Somewhere under Program Files (x86), I do have \lib64, but this contains library files (.lib) as expected. It doesn't contain any header (.h) files. NI's RFmx readme at: https://www.ni.com/pdf/manuals/377911f.html?srsltid=AfmBOorUSwofl79-YsgCbM-ncqTU5bRNtWBaNnKIaWV-uCet... says header files are located at: <NIDir>\Shared\ExternalCompilerSupport\C\include. I pulled the .h files from here, but when I try to load a library using one of these .h files, the compiler complains that the header file is not a valid system32 file (meaning not 64-bit). So are there 64-bit versions of these files and if so, how do I get them?

0 Kudos
Message 3 of 4
(1,206 Views)

Can someone suggest a better forum to post this question? I don't think this is something specific to PXI and will be a general issue whenever you need to integrate NI dlls into some external 64-bit compiler application, as any dll calls need to first include the corresponding header files. I believe this is a general 64-bit vs 32-bit header file question. Thanks for any suggestions.

0 Kudos
Message 4 of 4
(1,184 Views)