NI DAQ Task with LabWindows/CVI

Bonjour,
A partir de l'outil NI DAQ, j'ai créé une tache pour générer une tension sinusoidale que j'inclus dans mon projet
Je créé un handle, j'appele la fonction générée par NI DAQ, puis je libère correctement la tache
aucune remontée d'erreur des fonctions NI appelantes.
le problème : à partir de NI DAQ, j'observe bien ma tension sinusoidale en sortie sur Dev1/ao0 mais quand j'execute mon projet LabWindows, rien ne se passe...
merci

Bonjour,
Je vous propose de vous assurer dans un premier temps que l'exemple CVI "ContGen-IntClk.c" fonctionne correctement.
Si oui, il faudra dans un deuxième temps supprimer les lignes suivantes:
DAQmxErrChk (DAQmxCreateTask("",&gTaskHandle));
DAQmxErrChk (DAQmxCreateAOVoltageChan(gTaskHandle,chan,"",min,max,DAQmx_Val_Volts,NULL));
DAQmxErrChk (SetSampleClockRate(gTaskHandle,frequency,sampsPerBuffer,cyclesPerBuffer,
                            &desiredSampClkRate,&sampsPerCycle,&resultingSampClkRate,&resultingFrequency));
DAQmxErrChk (DAQmxCfgSampClkTiming(gTaskHandle,"",resultingSampClkRate,DAQmx_Val_Rising,DAQmx_Val_ContSamps,1000));
et de les remplacer par la fonction "DAQmx Load Task".
Le start et le write qui suivent doivent être gardés.
Cordialement,
Thomas B. | CLAD
National Instruments France
#adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
>> Inscrivez-vous gratuitement aux Journées Techniques : de l'acquisition de données au contrôle/com...

Similar Messages

  • NI USB-6501 - 24-line Digital I/O (NI-DAQ) with LabWindows/CVI 7.0 ?

    Hi
    Can I use a recent NI USB-6501 - 24-line Digital I/O (NI-DAQ) with LabWindows/CVI 7.0, even if Labwindows/CVI 8.x is required ?
    Thank you
    Dayn
    Solved!
    Go to Solution.

    Hello.
    In DAQmx Readme, you can see which version of CVI are supported by the actuel DAQmx version. For a 6501 card, 8.7.2 or 8.9.5 DAQmx versions will work.
    Regards

  • Usb ni-6008 with LabWindows/CVI version 5.0

    Hello,
    I would like to use USB NI-6008 with LabWindows CVI version 5.0. The hardware comes with DAQmx version 9.3.5, which does not support CVI v.5.0.
    Any ideas how to use this CVI version with USB NI-6008?
    Many thanks..

    Hi there,
    Like you said, DAQmx is only officially compatible with LabWindows/CVI 7.0 or later. This link has more information on this compatibility: http://zone.ni.com/devzone/cda/tut/p/id/2931
    In addition, USB-6008 is only officially compatible with DAQmx (previously, the plaform was Traditional DAQ). You would need Traditional DAQ to work with CVI 5.0, but the USB-6008 doesn't officially work with that.
    Someone here might have an alternative solution, but though it seems you need to use CVI 5.0, is it possible to upgrade this?
    Ravi A.
    National Instruments | Applications Engineer

  • The applicatio​n uninstalle​r ,created with Labwindows CVI, doesn´t work after upgrading to 2010 version

    Hi,
    I have been working with Labwindows CVI 2009 with no problem but after upgrading to 2010 version I have the following problem:
    When i´m going to execute the unistaller, either from Windows Control Panel or directly from the uninst.exe icon, it doesn´t work. The PC thinks a few seconds and does nothing, and it happens with all the applications I build with Labwindows CVi 2010.
    Thanks,
    Asier
    Solved!
    Go to Solution.

    Hello -
    Are you installing these distributions on a non-English operating system?  If so, the first thing to try would be the workaround listed on this known issue. 
    The known issue only lists Italian OSs as the troublesome OS, but it could actually happen on many different non-English OSs. I will update the text accordingly the next time I update the known issues list.
    NickB
    National Instruments

  • Using DLLs created with LabWindows/CVI 8.0.0 in LabWindows/CVI 8.0.1

    Hi,
    I have created a project containing some methods with LabWindows/CVI 8.0.0 and then build the project and generated the DLL and LIB files. These DLL and LIB files are working fine in another projects created in LabWindows/CVI 8.0.0 (even on another machines).
    But when I use these DLL and LIB files in a project created with LabWindows/CVI 8.0.1 on another machine and try to call the methods of these files, the following error occurs: -
    "The program has caused a 'Unknown' fault at 001B:7C812AFB"
    Is this error occurs due to ther version mismatch or there is some other problem?
    Please help me to resolve this issue.
    Thanks,
    Sarabjit Singh

    Judging from this, I don't think NI has a newer version of this tool:
    http://forums.ni.com/t5/Measurement-Studio-for-VC/Convert-project-from-LabWindows-CVI-to-Visual-Stud...

  • 82351a with labwindows cvi

    Hello,
    I am trying to use Labwindows CVI 2013 with a GPIB card, Agilent 82351a and it can't talk with a GPIB instrument connected to the GPIB card.
    NI-MAX can see the 82351a card but I can't use this card to talk with an instrument.
    I installed Labwindows CVI with NI-VISA 5.4, AGILENT IO suite 16.3 with Agilent Visa a secondary VISA.
    With NI-MAX, in the options VISA, I enable "Passport for Tulip" and with Agilent Connexion Expert, I tried to enable '"programs Agilent GPIB cards for 488" but it reboots the PC and the option remains not validated.
    I wan't to know if this Agilent 82351a card can work with Labwindows CVI 2013.
    thanks

    http://forums.ni.com/t5/Instrument-Control-GPIB-Serial/82351a-with-labwindows-cvi/m-p/2818356/highli...
    Paolo_P
    National Instruments France
    #adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
    Travaux Pratiques d'initiation à LabVIEW et à la mesure
    Du 2 au 23 octobre, partout en France

  • I'm looking for examples of CAN control code with LabWindows CVI

    I'm looking for examples of CAN control code with LabWindows CVI.

    Hi,
    The NI-CAN driver installs some examples for both the frame API and Channel API (NI-CAN 2.0).
    The typical installation directory is:
    C:\Program Files\National Instruments\MeasurementStudio\CVI\samples\nican.
    It might change depending on where you installed CVI.
    DiegoF

  • Getting tarted with LabWindows​/CVI realtime

    Hello everyone, i'm getting started with LabWindows/CVI and it's realtime module. I've got a NI PCI-6221 and i want to use it to generate some signals. I want to know how to communicate the host (control) part of my software and the targetRT part. Please advice me some example or tutorial which describes howto do that. 

    There are several examples available in the example finder under Toolkits and Modules » Real-Time which should demonstrate what you are looking for.
    Communication between the host and target is usually done using network published shared variables, the whitepaper below discusses this:
    http://www.ni.com/white-paper/4679/en#toc1
    You can find an example of this usage here:
    https://decibel.ni.com/content/docs/DOC-3806
    Are these resources what you are looking for?
    Craig H. | CLA | Systems Engineer | National Instruments

  • Mysql database connection with Labwindows/CVI 2009 sql toolkit

    Dear experienced users,
    I am using the following software/hardware:
    Windows 7/ Mysql database 5.6.15 64-bit with MySql ODBC 5.2 Ansi driver installed
    Labwindows/CVI 2009 with sql toolkit
    The user DSN of ODBC Data source administrator have been confiugred to one of mysql database. The test MYSQL Connector/ODBC is succesful.
    The Labwindows/CVI build setting is configure to debug64 after trying debug (32)
    The source code is from the example readtab.c with changes to the dsn I am testing
        hdbc = DBConnect ("DSN=dvd_collection");   
    The error message I have is confusing me.
    (it is in the attachd png)
    I thought it was due to the 64 bit mysql database. That's why I tried the 64 bit build from Labwiondws/CVI. I alsow tried Labview DB tools open connect.vi. It shows me the same error.
    Any suggestion is appreciated.
    Thanks,
    Jimmy
    Attachments:
    Capture.PNG ‏24 KB

    Jimmy
    I always use connection strings of the form "DSN=datasourcename;UID=database_user_id; PWD=database_user_password".
    Where:
    datasourcename = The name of the connection defined in the ODBC connection.
    database_user_id = One of the user identities created by the database administrator. Obviously the administrator will lock down the permissions appropriate to the task in hand.
    database_user_password = The password that identifies database_user_id, again set by the database administrator.
    Note that while it is obviously desireable to lock the permissions down as far as possible on the MySQL server, the more you do so, the slower the database will run, because of the way mySQL searches the permissions tables.

  • I used to working with Labwindow CVI and i would like to know how can i use the commands "loadpanel" and "Displaypanel " in Labview. Using Invoke Nodes?

    I want to make another panel appears and runs, but i don´t want to use a subpanel. So, i would like to use somenthing similar to Loadpanel and Displaypanel, that you can use in Labwindows CVI, but in Labview, is ti possible?I hope your answers, thank you!!!

    Hi Bichillo,
    I posted an example here.
    http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=137&HOID=50650000000500000014570100&HTHREAD=000087828&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0
    It demonstrates how to do what you are asking.
    I do not mind you laughing at the code.
    Have fun!
    Ben

  • Current pulse with labwindow cvi

    Hello,
    I'm just a beginner in labview cvi! I have a continuous generator current and i  want to make pulse with it.
    i want to define the cycle time and the frequency and i don't want to depend of the clock of window
    I've already define the channel of the current generator
    #include windows.h
    int i;
    int cycle_time= 1200(s);
    int frequency = 1000 (hz);
    while (i<=cycle-time*frequency){
    DAQmxWriteAnalogScalarF64 (current_task, 1, 0, 100, 0);
     DAQmxWriteAnalogScalarF64 (current_task, 1, 1/2Frequency, OFF, 0); 
    wait (1/2frequency) (or sleep(1/2frequency);
    i++;
    thanks for your help

    Hi Bichillo,
    I posted an example here.
    http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=137&HOID=50650000000500000014570100&HTHREAD=000087828&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0
    It demonstrates how to do what you are asking.
    I do not mind you laughing at the code.
    Have fun!
    Ben

  • I would like to do a loop (with LabWindows CVI 5.0) if the result of the toggle button check box is right. But it doesn't run because I don't know how can I have this data?

    If you have an answer, please send me an e-mail.
    Thank you very much for your help.
    A French guy.

    Guess I'm missing something...
    The simplest way to do this is to use GetCtrlVal (panel, Control, &val);
    val (integer) will be 0 if checkbox is not checked, 1 if checked.
    Should your actual problem be different just explain me and I'll try to help you.
    Roberto
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • Can capture the service control message with LabWindows/CVI ?

    Using the Instsrv.exe and the srvany.exe tools to register my application as a Windows service, expecting  the application will follow  the OS starting. Due to the service can be interrupted through the manual way, for example, in the service window, one can start o stop a service, so hope to receive the service stop message in my CVI application.
    The application use "RunUserInterface()" to support the message  procedure, onece can capture the service stop message, I can use QuitUserInterface() to complete the application. Is there any way to do that? Thanks.
    David

    Hi,
    The NI-CAN driver installs some examples for both the frame API and Channel API (NI-CAN 2.0).
    The typical installation directory is:
    C:\Program Files\National Instruments\MeasurementStudio\CVI\samples\nican.
    It might change depending on where you installed CVI.
    DiegoF

  • Instrument I/O Assistant Task with Device Driver

    Hello All,
    I got some messag pop-up hint while using Tools»Create Instrument I/O Task in Labwindow/CVI.
    => "The feature requires the Instrument I/O Assistant.
    => Please install the Instrument I/O Assistant from the NI Device Drivers CD..
    I want to practive to create Instrument I/O Task.
    Is there any download entry on NI's web site for this?
    Much thanks,
    nonomiya

    Hi Nonomiya,
    You simply need to install the Instrument I/O assistant from the device
    driver CD that ships with CVI. It should allow you to use these tasks.
    As far as something that will act like the assistant and let you create
    those tasks in CVI without actually installing the Instrument I/O
    Assistant from the device driver CD, there's not much available.
    Hope this is helpful,
    Regards,
    Matt S.
    LabVIEW Integration Engineer with experience in LabVIEW Real-Time, LabVIEW FPGA, DAQ, Machine Vision, as well as C/C++. CLAD, working on CLD and CLA.

  • Visual Studio or LabWindows/CVI?

    I have a bit of a dilemma.
    I currently own Visual Studio 2010, IMAQ Vision Development Module 2013, and Measurement Studio (not sure of version). I currently do all of my programming in VB.net. Because IMAQ VDM is stuck in .Net framework 3.5 and there will be no further .net development by NI, I need to plan for the future. My applications need run on Win 8, 9, 43, or whatever my company decides to migrate to from Win 7.
    My understanding is that the NI modules I currently own will work with LabWindows/CVI. Correct? I also believe I can use them with C++ using the VS IDE. Is this also correct?
    Within my applications I do a lot of interfacing with Excel, writing text files, and interfacing to non-NI devices (cameras, DAQs, scanners, etc). I am able to do these things pretty easily using VB.net using vendor-provided SDK's.
    Therefore, my question is this...given the investment I have in software already, do I gain anything by migrating to LabWindows/CVI? What do I lose?
    I should point out that regardless of the path I choose I will need to bone up on my programming skills in the corresponding language.
    Thanks for all your help!

    Hello Steverino!
    Here are some advantages when using LabWindows/CVI over Visual Studio, which make the product more suitable for various industry-related applications:
    You are correct, LabWindows/CVI integrates with the NI platform: NI hardware and software, like TestStand or LabVIEW (e.g. debugging source code from one software to another, seamlessly).
    NI hardware and third-party hardware connectivity.
    OpenMP support.
    CVI integrates with intrument control.
    CVI Run-Time benefits from User Protection.
    Run-Time checking (e.g. for uninitialized variables).
    Scientific User Interface Controls and GUI Editor.
    Advanced debugging capabilities:
    Remote debugging support from ADE.
    Real-Time debugging support from ADE.
    Memory leak detection using the LabWindows/CVI Resource Tracking Window.
    Just-In-Time debugging.
    Deployment: build custom installers and patches that you can ship as stand-alone easy-to-use installers.
    LabWindows/CVI libraries: Advanced Analysis, Toolbox, Connectivity (Network Variables, Network Streams, DataSocket), etc.
    Support for LabWindows/CVI Toolkits: SQL Toolkit, Vision, PID, RT.
    Regards,
    - Johannes.

Maybe you are looking for

  • Upgraded to iTunes 7, get the error report window!

    I just upgraded to iTunes 7 from the most recent 6 version. When I tried to open iTunes, however, I got the Windows error message, "iTunes has encountered a problem and needs to close. " In the error report, it said that the file "C:\DOCUME~1\MAXWEN~

  • Installati​on error 0x00004005 when installing aHP 1220c network printer on a win 7 - 64 bit

    I am attempting to install an HP 1220c printer on my new Win 7-64 laptop. The laptop finds the printer connected to a desktop XP computer automatically when I click "Add New Network Printer" but the installation fails with error 0x00004005. If I conn

  • Authorization Object - Sales orders Terms of Payment

    Hi, How can we add the terms of payment field in the authorization? Such that some users may change the terms of payment, while others can only display?

  • Validating keys using triggers

    I have a primary key item in a detail block, I want to validate the uniqueness of the item before I move on to the next item (instead of on commit). What trigger should I use? Will I have to loop through the block checking to see if anything matches

  • SecurityException: Access Denied [in Nokia N70]

    Hi, I m making a midlet which accesses a php from the web server and writes the output to a text file in Nokia N70. It works fine in WTK 2.5.2 simulator, but fails in Nokia N70(when writing the file), with the error Message: SecurityException: Access