NOR-DAQmx 8.0.1 undefined reference

Hello

I'm new with NOR-DAQmx on Linux. After reading the posts in this forum, I was able to successfully install OR-DAQmx 8.0.1 on OpenSUSE 11.0. When you run "nilsdev", I get the following list of features:

OR PXI-6255: "Dev4.
OR PXI-6733: "Dev3.
OR PXI-6733: "Dev2.
OR PXI-6713: "Dev1".

What is correct. However, when you try to compile the following program example, using "gcc main.c:

#include "NIDAQmx.h".
#include
#define DAQmxErrChk (functionCall) if (DAQmxFailed (error = (functionCall))) goto error; on the other
int main (void) {}
error int = 0;
TaskHandle taskHandle = 0;
char errBuff [2048] = {'\0'};
float64 data [3] = {1.0,2.0,3.0};
/*********************************************/
DAQmx Configure Code
/*********************************************/
DAQmxErrChk (DAQmxCreateTask("",&taskHandle));
DAQmxErrChk (DAQmxCreateAOVoltageChan(taskHandle,"PXI1Slot4/ao0:2","",-10.0,10.0,DAQmx_Val_Volts,""));)
/*********************************************/
Starting code DAQmx
/*********************************************/
DAQmxErrChk (DAQmxStartTask (taskHandle));
/*********************************************/
DAQmx write code
/*********************************************/
DAQmxErrChk (DAQmxWriteAnalogF64(taskHandle,1,1,10.0,DAQmx_Val_GroupByScanNumber,data,,));
Error:
If (DAQmxFailed (error))
DAQmxGetExtendedErrorInfo (errBuff, 2048);
If (taskHandle! = 0) {}
/*********************************************/
Stop DAQmx code
/*********************************************/
DAQmxStopTask (taskHandle);
DAQmxClearTask (taskHandle);
}
If (DAQmxFailed (error))
printf ("Error");
GetChar ();
return 0;
}

I get several errors about undefined references:

main.c.text + 0 x 90): refers to 'DAQmxCreateTask' the undefined
main.c.text + 0xdc): refers to 'DAQmxCreateAOVoltageChan' the undefined
main.c.text + 0xf0): refers to 'DAQmxStartTask' the undefined
main.c.text + 0 x 140): refers to 'DAQmxWriteAnalogF64' the undefined
main.c.text + 0x15f): refers to 'DAQmxGetExtendedErrorInfo' the undefined
main.c.text + 0 x 171): refers to 'DAQmxStopTask' the undefined
main.c.text + 0x17c): refers to 'DAQmxClearTask' the undefined

I have already installed OR DAQmx on a Windows XP computer and got the same errors, but could (using this post) to create the libraries needed to link against. However, I have found no information similar to that in Linux (this message seemed to understand this problem, but unfortunately, the author does not share its solution). So far, I tried various options of connection with no success '-ldl ' etc. Obviously, I'm not bind properly.

Any help would be greatly appreciated.

Thank you

Grine

I solved step connects. (Why answers always come when you almost gave up? )

As I suspected, a liaison simple number. Compilation with 'gcc /usr/local/lib/libnidaqmx.so o main main.c', did the trick.

I have still some errors during execution of the program, but I can probably solve these on my own.

Tags: NI Hardware

Similar Questions

  • How can I create a Windows using NOR-DAQmx application in Visual Studio 2010 64-bit

    Hello

    How can I create a Windows using NOR-DAQmx application in Visual Studio 2010 64-bit?

    I'm transferring a 32-bit application on 64-bit.  In visual Studio, I added the 64-bit project configuration.  He compiled the source very well but the reports link errors:

    error LNK2019: unresolved external symbol DAQmxReadAnalogF64 referenced in function NI6008_AnalogInput NI_6281\NI6281.obj
    error LNK2019: unresolved external symbol DAQmxCreateAIVoltageChan referenced in function NI6008_AnalogInput NI_6281\NI6281.obj
    error LNK2019: unresolved external symbol DAQmxReadDigitalLines referenced in function NI6008_DigitalInput NI_6281\NI6281.obj
    error LNK2019: unresolved external symbol DAQmxCreateDIChan referenced in function NI6008_DigitalInput NI_6281\NI6281.obj
    error LNK2019: unresolved external symbol DAQmxWriteDigitalLines referenced in function NI6008_DigitalOutput NI_6281\NI6281.obj
    error LNK2019: unresolved external symbol DAQmxCreateDOChan referenced in function NI6008_DigitalOutput NI_6281\NI6281.obj

    These, of course, are the functions OR that I use.  The NIDAQmx.lib has been added to the Input of the link property.

    Any help would be appreciated.

    Thank you

    -Neil shore

    Hi LaserShore,

    Think you that you added the 64-bit platform settings target according to this page? : http://zone.ni.com/reference/en-XX/help/372636F-01/mstudiowebhelp/html/64bitcore/

    Already running 32-bit application? Have you changed references to the 64-bit version?

    You use Measurement Studio? If so some features are not supported with 64 bit.

    Also when you say that you have added the NIDAQmx.lib, did you follow this KB:http://digital.ni.com/public.nsf/allkb/38F67B28D995C6958625706E000C580C

  • How to choose destinations for counter/timer signals in NOR-DAQmx?

    In the document M Series DAQ
    M series user manual
    622 x, NI 625 x and the materials NOR x 628
    M series user manual
    July 2008
    371022K - 01

    appears on page 7-30:

    Counter/Timer default pinout
    By default, NEITHER-DAQmx routes counters/timers and outputs inputs to the PFI pin, shown in table 7-4.
    Table 7-4. 68 peripheral pins by default Counter/Timer pines NOR-DAQmx
    Counters/timers fail-safety connector 0 PIN (name)
    0 2 CTR (PFI 12)

    You can use these default settings or select other sources and destinations for the
    counters/timers of NOR-DAQmx signals. Refer to the connection counter signals
    in the NOR-DAQmx help or the help of LabVIEW in version 8.0 or later for
    more information on how to connect your signals for common counter
    measures and generations.

    I couldn't find any hint to the appropriate command of DAQmx in the "NOR-DAQmx C reference Help" to select other destinations for counter/timer signals in NOR-DAQmx.
    Please can you tell me the DAQmx command right? Thank you very much.
    I use the NI USB-6259 M material Series DAQ, BNC end unit.

    datafriend,

    If I remember correctly, you can "free" the output terminal of default counter by calling DAQmxSetCOPulseTerm and passing an empty string in the 'data '.

    Hope that helps,

    Dan

    Edit: You can also set this to any other valid terminal (IE... "Dev1/PFI0") and to send the output to.

  • Runtime error example NOR-DAQmx ANSI C in the Windows 7 virtual machine

    I am under a guest Windows 7 system with a host of Ubuntu 14, using VirtualBox and have encountered a problem running even the simplest examples provided by National Instruments, using the ANSI C API for NOR-DAQmx.

    The first time that the DAQ hardware is turned on, I can run a single measure, and after that, any other indicator displays the following error message:

    Attempted to read samples that are no longer available.
    The requested sample was previously available, but has since been overwritten.
    Increasing the buffer size, reading the data more frequently, or specifying
    a fixed number of samples to read instead of reading all available samples
    might correct the problem.

    Property: DAQmx_Read_RelativeTo
    Corresponding Value: DAQmx_Val_CurrReadPos
    Property: DAQmx_Read_Offset
    Corresponding Value: 0

    Task Name: _unamedTask(0)
    Status Code: -200279

    In order to start a new measurement, I have to restart the DAQ hardware, probably in order to clear the internal buffers that are in the process of substitution.

    I am interested in a measure of continuous tension in basic by using a callback function. (The example of ContAcq_IntClk provided by OR)

    The exactly the same setup, same version of NOR-DAQmx (9.7.5) and running on Visual Studio 2012 smoothly on a computer that is running Windows 7 directly.

    I suspect that the problem is with the internal buffer being somehow messed up because of the connection with the Virtual Machine, but do not find an elegant solution to fix it.

    The camera I use is NI USB-6289.

    Hello fromm8

    Thank you very much for your help, I managed to locate the problem.

    He was not the actual code, or something like that, it was a problem of communication between the VirtualBox machine and the physical device.

    Kept launches MAX test panels a comparable as error the program C.

    I fixed the problem by opting for VMWare, which seems to have the best compatibility with USB devices.

    See you soon!

  • 5112 does not appear under devices NOR-DAQmx

    Why does not list MAX my 5112 under NOR-DAQmx devices, but it is displayed (undefinded) PXI system? Also, I can communicate with the map using the flexible Panel so I think that the device is correctly installed.  The main problem is that I can't use this card with my 5600 because MAX reports no digitizer.

    The 5600 must be coupled with a 5142 to form a DAA.  If you must use the 5112, you can use the 5600 on its own with the pilot DAMA downconvert only mode.  Then, it would be possible to manually use the OR-Scope driver with the 5112 to read in the data, but this is not recommended.  (It would be essentially the same using a third frequency step-down converter or digitizer).

    -Christina

  • NOR-DAQmx compatibility with the system in real time

    I try to use a time system 11 with LabVIEW Real-time. When I try to connect with the driver OR DAQmx, an error saying that the version of the NOR-DAQmx drivers are bundles with the one on the real time. I tried to use different versions of the NOR-DAQmx drivers that are available in the table of compatibility, but not those who worked. I have an old computer working with the same real-time system that uses LabVIEW 9 and has the driver NOR-DAQmx 9.3.5 f0 driver installed on it but I can't find the drivers on the web. What should I do?

    I am using LabVIEW 2015 in my current computer.

    Thanks in advance.

    Looks like you can just have a lag in the versions of software installed on your host computer and the target.  In order to deploy the code from your host to your target, the two must have corresponding to libraries of functions.  See this link for instructions on updated versions of the software on your target match those installed on your host computer, the wizard of the LabVIEW RT software.  If you have already done this, and it did not help, please provide a screenshot or error code of the message that is to appear.

  • DASYLab w / support NOR-DAQmx NI 9227, NI 9229 & cDAQ 9174

    I am trying to use DASYLab 11 w / NOR-DAQmx 8.5 to my configuration material of NI 9227, NOR 9229 & cDAQ-9174. After decommissioning of my PC Win7 for XP that takes in charge OR-DAQmx 8.5 (the OR-DAQmx last, supported by 11 DASYLab), I discovered that NEITHER-DAQmx 8.5 does not support the cDAQ 9174. Right now, looks like I'm watered except so use LABView. Is there any other way at this time to use this hardware configuration with DASYLab or any other application?

    DASYLab V11 supports Windows 7 when you install the Service Pack (see www.dasylab.com).

    Where are we going to say that it does support NOR-DAQmx 8.5? I installed the most recent NI.com last week, and it seems to work very well. I use only simulated devices so far, but DASYLab is data collection and display correctly.

  • drivers for simulated devices of NOR-DAQmx (NI9211 etc.) in cDAQ9174

    I'm trying to understand the three methods of calculating the maximum analog input sampling rate below NI CompactDAQ system

    http://zone.NI.com/DevZone/CDA/tut/p/ID/4320

    Problem 1

    In method 1. Build your physical hardware system or simulate your configuration able & Automation Explorer (MAX) using NOR-DAQmx simulated devices

    Buy using my MAX, I was able to build a simulated chassis cDAQ7192, but the NI 9233 modules or 9215, and NI 9211 is not found in the MAX. do I need special disks for them?

    My MAX is verson 4.6.2f1 and LABVIEW2009.

    Problem 2

    Following the method 2 to use the NI CompactDAQ Advisor, 'Performance of analog to calculate' does not appear upward after you set up the chassis.

    Thanks a lot for your help

    Concerning

    Bing

    Your version of MAX and LabVIEW is not relevant. What is your version of DAQmx?

    After you add the chassis, you right click on it to select "set up simulated cDAQ chassis? I did this and was able to select all the devices you mentioned.

  • Data acquisition tool NOR-DAQmx with Matlab R2012a

    Hello

    I'm trying to control NI USB-6211 of Matlab 2012 using NOR-DAQmx Data Acquisition tool:

    http://zone.NI.com/DevZone/CDA/tut/p/ID/3005

    I'm working on win7 64 bit. And I see the device AND Measurement & Automation Explorer.

    The tool does not work: DAQ_Demo_Browser do nothing. And I got the error "unexpected or unbalanced parenthesis or support" of AcqNUpdates_nonUI.m

    What is the problem?

    Thank you and best regards,

    Arthur Shulkin

    Hi Arthur,.

    Tools OR DAQmx for Acquisition of data with the Software Inc. MATLAB® from The Mathworks, supports up to the 2008 version of the MATLAB® software.  In order to use our products DAQ Multifunction with MATLAB® software, you could get back to 2008 or earlier, or instead use the Data Acquisition Toolbox provided by The Mathworks, Inc.

    Another option would be to import your ".m" files in a node MathScript in LabVIEW and use the functions of NOR-DAQmx everything in the LabVIEW development environment.  For more information on the Module LabVIEW MathScript, you can consult the information available on this link:

    Inside of the LabVIEW MathScript RT Module

    MATLAB® is a registered trademark of The MathWorks, Inc.

    Katie

  • I don't see the icon of NOR-DAQmx in measurement window in Labview 2013 (student Edition)

    Hi all:

    I installed the driver NOR-DAQmx and Labview 2013 (Student Edition). I connected an acquisition of data NI USB-6008 and tested using NOR-DAQmx and that it works correctly.

    Now, I tried to make registration of data of this device using the software Labview installed but as I open a new project and go to the block diagram and show the measure menu I can't NEITHER-DAQmx icon in the window (Menu) measurement in Labview 2013 (student Edition).

    Any suggestion?

    I enclose two screenshots.

    Help, please.

    Thank you

    In what order did you install software?

    You must install LabVIEW first, followed by DeviceDrivers!

  • NOR-DAQmx run options under additional installers are not displayed

    At halfway in this FAQ (http://zone.ni.com/devzone/cda/tut/p/id/3021) talks about the various Runtime options available when you include the NOR-DAQmx driver in a LabVIEW Installer - they are full and 5 different options of operation. I have 2011 LabVIEW and NOR-DAQmx 9.3.5; the only installation type I see is complete. No idea what I may have missed to install or configure correctly?

    Thank you

    Jorge

    Hi Jorge -.

    You make an excellent point raise this question.  The reality is that the documentation is a bit a type-o.  The latest version of DAQmx which allowed this ability multiple-install type was 8.7.1 that allowed full, TERM 3 and 5.  Version 8.6.1 allowed all full of Runtime and RT 2-5 selectable options.

    This was changed in the development of the installer because features such as Measurement & Automation explore (MAX) by omitting makes it much more difficult to program source files that use the DAQmx driver.  Limited choice DAQmx Installer problems in future development. SignalExpress is also omitted in some versions.   This change was made in order to avoid questions that were considered to be a problem when the installers have been created with these minimalist installs.  So I'll make this change to the Developer Zone confusion invites future readers.

    I really appreciate your message and bring it to our attention.

  • NOR-DAQmX hardware synchronization for module 2 OR-9223.

    Dear all

    I use NEITHER cDAQ 9184-2 NOR-9223(1M) analog acquisition module 6 input channels of the sensors of acoustic emission (frequency of 20 to 400) with external signal conditioning.

    Please please let me know how to synchronize using NOR-DAQmX? NOR-9223 does support hardware synchronization?

    Thanks and greetings

    Luong.Tran

    Hi QuanLuong.Tran,

    here http://www.ni.com/white-paper/4322/en/ you can find how to trigger and synchronize the different channels. It should work.

    Best regards

    CaravagGIO

  • NOR-DAQmx 9.2.2 for 6251 USB works for labview 8.2?

    Driver download OR-DAQmx 9.2.2 USB 6251 work for labview 8.2?

    Thanks in advance

    NOR-DAQmx 9.1.1 was the last version to officially support LabVIEW 8.2

    NIquist: I'm a student as to why this KB seems to have disappeared in the air.  I can see inside, but not outside.  I'll update the post you linked when I tell me what's wrong.

  • Clock and hw external trigger with USB-6210 on Linux with NOR-DAQmx Base?

    I have two devices USB-6210 I need to synchronize so that they both collect data exactly at the same time. I was told by support OR I can send the clock off Dev1/PFI4 and have the two USB-6210 s read the clock in through their own PFI0. I also want to trigger data collected for each device by sending a trigger off Dev1/PFI6 and have two devices to receive the signal on PFI2.

    All my attempts to try this are filled with error messages and my research online seem to say that's not possible with USB devices on NOR-DAQmx Base 3.4.0f2 on Linux.

    I "ve tried using example AI programs and those who do not seem to work either for external clocks. Here is the code I tried:

    #include "NIDAQmxBase.h"#include 
    
    #define DAQmxErrChk(functionCall) { if( DAQmxFailed(error=(functionCall)) ) { goto Error; } }
    
    int main(void){    // Task parameters    int32       error = 0;    TaskHandle  taskHandle = 0;    char        errBuff[2048]={'\0'};    int32       i;
    
        // Channel parameters    char        chan[] = "Dev1/ai0";    float64     min = -10.0;    float64     max = 10.0;
    
        // Timing parameters    char        clockSource[] = "/Dev1/PFI7";    uInt64      samplesPerChan = 1000;    float64     sampleRate = 10000.0;
    
        // Data read parameters    #define     bufferSize (uInt32)1000    float64     data[bufferSize];    int32       pointsToRead = bufferSize;    int32       pointsRead;    float64     timeout = 10.0;
    
    printf("Calling CreateTask...\n");    DAQmxErrChk (DAQmxBaseCreateTask("",&taskHandle));printf("Calling CreateAIVoltageChan...\n");    DAQmxErrChk (DAQmxBaseCreateAIVoltageChan(taskHandle,chan,"",DAQmx_Val_Cfg_Default,min,max,DAQmx_Val_Volts,NULL));printf("Calling CfgSampleClkTiming...\n");    DAQmxErrChk (DAQmxBaseCfgSampClkTiming(taskHandle,clockSource,sampleRate,DAQmx_Val_Rising,DAQmx_Val_FiniteSamps,samplesPerChan));printf("Calling StartTask...\n");    DAQmxErrChk (DAQmxBaseStartTask(taskHandle));printf("Calling ReadAnalogF64\n");    DAQmxErrChk (DAQmxBaseReadAnalogF64(taskHandle,pointsToRead,timeout,DAQmx_Val_GroupByChannel,data,bufferSize,&pointsRead,NULL));
    
        printf ("Acquired %d samples\n", pointsRead);
    
        // Just print out the first 10 points    for (i = 0; i < 10; ++i)        printf ("data[%d] = %f\n", i, data[i]);
    
    Error:    if( DAQmxFailed(error) )        DAQmxBaseGetExtendedErrorInfo(errBuff,2048);    if(taskHandle != 0) {        DAQmxBaseStopTask (taskHandle);        DAQmxBaseClearTask (taskHandle);    }    if( DAQmxFailed(error) )       printf ("DAQmxBase Error %d: %s\n", error, errBuff);    return 0;}
    

    When I run the resulting program, I see this:

    $. / acquireNScans-ExtClk
    The CreateTask call...
    Call for CreateAIVoltageChan...
    Call for CfgSampleClkTiming...
    Error-89136 DAQmxBase: route specified cannot be satisfied, because the hardware does not support it.

    For example, a clock and a trigger can be imported via one of the PFI lines by using a USB-6210 on Linux with NOR-DAQmx Base? A clock and a trigger exportable via one of the PFI lines?

    If so, does anyone have the code example illustrating how to do this, or can you at least tell me the names of the lines ("PFI0/Dev1" or other) so I can try again?

    Clues or suggestions would be helpful.

    Thank you

    -Tom

    The clockSource in the example specifies an output rather than an input channel channel. Change source "/ Dev1 / PFI0" solved the problem.

    Please close this post.

  • HAVE Start.vi - number of buffers to acquire - equivalent in NOR-DAQmx

    Hello

    I'm trying to convert a VI above NOR-DQA traditional to NOR-DAQmx.  I'm unable to find the equivalent of some inputs to the AI Start.vi

    number of scans to acquire

    number of buffers to acquire

    Also it HAVE buffer Read.vi which is equivalent to the

    time limit

    I would be grateful for any guidance.

    Thank you in advance.

    He mailed examples for DAQmx Analog Input tasks in LabVIEW.

    In the toolbar, go to:

    Help > find examples (this will open the Finder of example of OR).

    Select:

    Material input and output > DAQmx > input analog (then select the type of task you did.)

Maybe you are looking for

  • My smart playlist sort by release date in ascending order

    Hello I have a 7th generation iPod nano, the version of the software 1.0.4. Synchronize all all the podcasts of the nano unplayed episodes. I also sync a smart playlist that includes episodes of a number of podcasts I listen to. I want to have podcas

  • Product key for windows 10

    Hello Recently, I have a laptop HP preinstalled Windows 10. Everything was fine until tonight. System has proved to be valid until the 12.03.2016. Pressing on 'Activate' does not help. As you can see below... "Windows is activated" but expires on "so

  • How to set the affinity of the nucleus in shortcut?

    I tried this in the target field:\D start /affinity D:\windows\system32\cmd.exe 1 'D:\Program Program Games\GTA San Andreas\gta_sa.exe. The problem is that the cmd.exe remains open and it recognizes the path as a command.

  • driver and card chart

  • Jabra Halo 2 driver not available in Windows 7

    I tried to pair my headset Jabra Halo 2 to my PC running Windows 7. Matching ends, but Windows shows the helmet as works do not and gave the reason that no driver available. Can you let me know where I can get the correct bluetooth driver to make it