02-06-2025 11:42 AM
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.
02-06-2025 05:50 PM
I don't have NI-RFmx but other drivers installed. You can see \lib64 folder exists under Program Files (x86)
02-06-2025 07:15 PM
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?
02-10-2025 01:34 PM
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.