01-18-2023 03:28 AM
Hi everyone!
I have a problem with System Configuration API not finding any DAQmx hardware when an application is built to EXE.
When I run the code from LabVIEW environment there is no problem, all my hardware (real and simulated) is discovered and listed. However when I run it from built application I get an error:
daqmx isn't listed by 'Get System Experts' VI from EXE.
I tried reinstalling DAQmx and System Configuration with no result.
LabVIEW v21
DAQmx v21.8
System Configuration v21.5
Thank you for help!
01-18-2023 07:37 AM
Same PC on which you run the LabVIEW program?
01-18-2023 07:40 AM
Hi rolfk,
Yes, it's the same machine.
01-18-2023 07:52 AM
I've never used "Get System Experts". To find attached DAQmx devices, I've always used something like the following to find specific or groups of devices -- this works identically (for me, anyway) in Development or Executable modes. [I have, successfully, used the System call that looks for remote TCP/IP targets, very handy if there is a particular IP I want to use as a target for Network Streams -- such code also works find in Development and Executable modes].
Bob Schor
01-19-2023 01:41 AM
Hi Bob,
Thank you for your suggestion!
Your solution indeed works well both in executable and in development modes. However I specifically used System Configuration API to check whether the device is present in the system. In my case (various cDAQ-9185 chassis, frequently disconnected/connected from the LAN) it is quite annoying to see the devices listed by DAQmx System property that are not present in the system. I can't find anything from DAQmx nodes that matches System Configuration's 'isPresent' property, but I may be missing something.
01-19-2023 08:29 AM
I don't have any issues with LabVIEW 2022 Q3, NI-DAQmx 2022 Q4 and NI-SystemConfig 2022 Q4.
01-20-2023 09:55 AM
In my reply, I also said "I have, successfully, used the System call that looks for remote TCP/IP targets, very handy if there is a particular IP I want to use as a target for Network Streams -- such code also works find in Development and Executable modes", which is how I find the "connected RIOs". For IMAQdx, there are similar calls that will list the available cameras if you are doing video stuff, and the list probably goes on ...
Bob Schor
01-23-2023 12:59 AM
Hi ZYOng,
I've upgraded LabVIEW, NI-DAQmx and NI-SystemConfig to matching versions with you and still can't get it to work... Then I guess the problem is specific to my machine.