Quantcast
Channel: Measurement Studio for VC++ topics
Viewing all articles
Browse latest Browse all 654

ANSI C example : "DAQmx Error: No device by the given name was found."

$
0
0

Hi everybody,

 

I'm trying to build and run a DAQmx ANSI C example, which is "/Analog Out/Generate Voltage/Cont Gen Volt Wfm-Ext Clk" (Windows 7 Pro, NI-DAQmx 17.1.0, NI-MAX 17.0.0).

 

I modify it to correspond to my PXIe-6361 virtual card and to build and run it without Visual Studio but just with gcc on Cygwin.

Here is attached the modified code and a screenshot of my virtual card configurations on MAX.

 

It builds but when I run it, it says : "No device by the given name was found" without any error code.

Nano@Nano-PC ..Gen Volt Wfm-Ext Clk-old $make && ./ContGen-ExtClk.exe
gcc.exe -g   -c -o ContGen-ExtClk.o ContGen-ExtClk.c
gcc.exe -g -o ContGen-ExtClk ContGen-ExtClk.o -lnidaqmx
TEST1
DAQmx Error: No device by the given name was found.
Explanation:
No device by the given name was found.
End of program, press Enter key to quit

I think the problem occurred during this function "DAQmxWriteAnalogF64"; because my TEST2 is not printed.

 

I don't know what's the problem and I didn't find any solution on the internet for this error message.

Do you have any idea?

 

Thanks and have a nice day.


Viewing all articles
Browse latest Browse all 654

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>