Test NI cDAQ-9188 using LabWindows/CVI

I am looking for help to create test for cDAQ-9188 with DIO and AIO modules.
Would you please advise with information as follow:
1. Adding device driver to a project.
2. Sample of UI.
3. Sample of test script for DO (AO) control.
4. Sample of test script for DI (AI) acquisition.
Thank you.
Sincerely,
Sam.
[email protected]  

There is a tutorial on using DAQmx with LabWindows/CVI here: http://zone.ni.com/devzone/cda/tut/p/id/2931. That is probably a good place to start.
Another good article to check out is the NI Ethernet Data Acquisition Overview here: http://zone.ni.com/devzone/cda/tut/p/id/7374.
As far as examples go, there are several text-based examples (as long as you have DAQmx installed) located at: Start Menu >> All Programs >> National Instruments >> NI-DAQ >> Text-based Code Support >> ANSI C Examples. 
National Instruments

Similar Messages

  • How do I send e-mail to a distribution list using LabWindows/CVI?

    I need to be able to send e-mail to a user-defined distribution list using LabWindows/CVI? Has anyone done this? Any ideas where I could look?

    I commented on something similar to this awhile back.  My issue was that I had the base version and didn't have the Internet classes.  So this external app worked like a charm
    It has a lot of command-line inputer options to use as well.
    http://forums.ni.com/t5/LabWindows-CVI/Need-Help-for-Sending-Email-with-LabWindows-8-5-or-9/m-p/1095...

  • How to access the result list in teststand after execution using labwindows​/cvi

    I am developing a user interface in labwindows/cvi that runs multiple teststand sequence files and would like to combine their reports (generated in teststand) into a single file at the end of a UUT. What is the best way to do this? At the moment, I'm trying to access the result list local variable after the execution has ended using API calls from labwindows/cvi and an end-of-execution callback event but those run-time variables do not exist anymore. How do I get a hold of the result list array at the end of an execution? I would like to grab this variable and pass it along from sequence to sequence using labwindows/cvi and not teststand itself. Is this possible? Any help would be great.
    Thanks in advance,
    Luis

    Hey Luis,
    Check out the response to this thread at the NI TestStand board here!

  • Documentation on How to Develop an OPC Client Using LabWindows/CVI?

    What documentation is there on how to develop an OPC client application using LabWindows/CVI?  What tutorials, if any, are there?  What reference manuals, if any are there?
    I am completely new to LabWindows/CVI.  I will be starting soon with the tutorial, "Getting Started with LabWindows/CVI".  However, our application needs to communicate with an RSLinx OPC Server.  Any documentaiton on how to learn to do this would be very much appreciated.

    http://www.ni.com/white-paper/4626/en/  Just did a quick google and this came up, Labwindows CVI and Labview are quite different but I usually look at Labview examples then try take the general idea from the example and apply it in CVI, hope this helps

  • Configure PXI-2567 to Trigger on Rising Edge using LabWindows​/CVI

    I need some help configuring the trigger edge for a PXI-2567 using Labwindows/CVI.  I have been able to successfully create and execute a scan list using both the ni-switch and daqmx APIs.  However, currently the PXI-2567 triggers on the falling edge of an input trigger.  I need to configure it to trigger on the rising edge of an input trigger.  Every function I could find in the daqmx API for configuring the trigger edge gave a non-fatal runtime error, and I could find no such functions in the ni-switch API.
    Any help configuring the input trigger edge on the PXI-2567 using Labwindows/CVI would be appreciated.
    Thanks

    Hi JonRice,
    You can configure the scan list to execute on the rising edge of an input trigger.  Here are the Labwindows/CVI and LabVIEW functions you would want to use to retrieve, specify or verify the edge of a digital signal that advances to the next entry in a scan list.
    NI-DAQmx C Property: More >> Advance >> Digital Edge >> Edge
    You can get/set/reset this property using:
    DAQmxGetDigEdgeAdvTrigEdge
    DAQmxSetDigEdgeAdvTrigEdge
    DAQmxResetDigEdgeAdvTrigEdge
    NI-SWITCH C Attribute: NISWITCH_ATTR_TRIGGER_INPUT_POLARITY
    You can get/set/check this attribute using:
    niSwitch_GetAttributeViInt32
    niSwitch_SetAttributeViInt32
    niSwitch_CheckAttributeViInt32
    NI-DAQmx LabVIEW Property: More:Advanceigital Edge:Edge
    DAQmx Trigger Property Node
    Short Name: Adv.DigEdge.Edge
    NI-SWITCH LabVIEW Property: Trigger Input Polarity
    niSwitch Property Node
    Short Name: Trigger Input Polarity
    Hope this helps!  Let me know if you have further questions.
    Chad Erickson
    Switch Product Support Engineer
    NI - USA

  • Using Labwindows CVI Version 10.0.1 USB communication with FTDI FT2232D to unit under test.

    Communication with unit under test works fine in hypterminal after I downloaded virtual driver from FTDI site.
    Never done any USB communication before in LabWindows CVI. What functions can I use in labwindows CVI?

    Since the device presents itself as a COM port (pretty standard with the FTDI chips) you should be able to use the RS-232 library in CVI.  OpenComConfig() will open a connection to the device, ComWrt() will write data to it, and the various ComRd() functions can be used to read the responses back.

  • TCP using LabWindow/CVI ? ?

    Hi !
    I'm looking for ways to learn & use "TCP" communication ( Client /
    Server ) together with LabWindows/CVI.
    ( all examples at your site are for LabView only )
    Can you please let me know where to find an TCP Client / Server
    applications examples for LabWindows/CVI ??
    If posible i'll like the exact addresse of pages contains this
    examples/information !
    Also if posible i like to know if there is something about Ethernet or /
    and Lan ( Local Area Network ) in the LabWindows/CVI.
    I want to add that i know about the TCP Client/Server example in the
    LabWindow/CVI - Samples, but it is not complete - it is only a skeleton
    which not explain
    it all.
    I also want to know about the hardware i need to establishes a TCP
    connection !!
    Which cable should i use to connect the Server & Client computers ?
    Where exactly should i connect the cable in the computer ?
    It very importent for me to get full answer as soon.
    Thank you very much !!
    Regards
    Noam G.

    I would also like to see these examples, but I can help you on some of this. You don't really need any hardware (since you are accessing this site, I assume you have an ethernet card). For a cable, if you are connecting both computers to a LAN or the internet (direct or via a hub) use a RJ-45 ethernet cable. If you are connecting the computers directly to each other, you must use an ethernet crossover cable. The cables just connect into your ethernet port (where your internet access is plugged into now).
    Go here for more info on a crossover cable:
    http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/38528df7b4d1feae86256dcf0069b14d?OpenDocument
    Derek

  • How to write to MS Word using LabWindows/CVI

    HI all
    is there any toolkit available to write to MS Word in LabWindows/CVI. like the report generation toolkit in Labview is there any option in CVI.
    regards
    Regards
    Solved!
    Go to Solution.

    Hi,
    there is an instrument driver (toolslib\activex\word\wordreport.fp) and several examples are shipped with CVI, i.e. word2000demo.cws

  • How can I use LabWindows/CVI do Roulette Wheel ?

    This is LabVIEW's example.
    I want use cvi to like it. (push  start button & picture will be whirl)
    How do I create an image and Rotate it ?

    The LV program does not rotates the image: it recalculates and redraws it instead. You can observe that numbers are not rotated but are always drawn horizontally.
    You could replicate this behaviour using a canvas control and the appropriate functions to draw text and arcs and paint them. You can look at canvas.cws and piedemo.cws examples. They are already installed on your machine in samples directory: use the example finder (Helo >> Find examples menu function) to locate it.
    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?

  • I use LabWindows/CVI and SCXI modules, how can i check the polarity of a capacitor during an ICT?

    I am a newbie using CVi Lab Windows and SCXI modules, how can i perform ICTs to check the proper polarity of a capacitor?

    Hello,
    That's a big question for a single sentence. Could you give some more details about the hardware you have, and the measurements you want to take?
    By the way, when you say ICT, do you mean In-Circuit Test or something else?
    Thanks,
    John N
    Applications Engineer
    National Instruments

  • How do I configure ports for PCI-1200 using LabWindows/CVI?

    I want to use 2 ports of the PCI-1200 DIO ports as oup ports. Whenever I write to a port using WriteToDigitalPort, the other port will be reset.
    Shoud I congigure the ports at the beginning of the program? If so How do I do it?
    (LabWindows 5.5)

    I would suggest using the lower level NI-DAQ functions instead of the Easy I/O functions. (You have a lot more flexablity this way.) To configure seperate ports use the function DIG_Prt_Config, then instead of using WriteToDigitalPort, use DIG_OutPort. Here is an example that writes to one port using these NI-DAQ functions. All you need to do to write to two ports is add two lines in; another DIG_Prt_Config and another DIG_Out_Port.
    Good luck and let me know if this does not work for you.
    Brian
    Attachments:
    DOOnePort.zip ‏4 KB

  • USB comunication with a device using LabWindows CVI 7.1 or more late.

    Hello Partners.
     I am try to  get information about USB comunication with a device using CVI 7.1 or more late, I will need to developed a aplication for comunicate with a device but I  have not  idea of How do this. I know how comunicate with the serial port in CVI, but I never have developed any application using the USB port.
    Do you know which are the requirements for do this??
    I have read some information and I am seeing that I needed the driver of device for do this but I do not know what is the command line that will need to send in the aplication for comunicate with my device.
    Somebory knows how can I do this in my application??
    Somebory has some exemplo code in where I can see the commands that I needed to send to the USB port?
    Thanks a lot for your help.
    I will be to hope some suggestion.

    hi,
    think there are three possibilities:
    1. the product comes with an own driver & api
    2. the product comes with an FTDI-device to communicate over
    2.1 you can talk with the device over a virtual COM (rs232)
    2.2. you can talk with the device over  the D2XX-layer (look at the FTDI-webside: "D2XX Programmers guide....")
    best regards
    Simon

  • How can I transfer a XML file content to a MS SQL database by stored procedure using LabWindows/CVI SQL Toolkit?

    Hi,
    I have a problem to transfer a XML file content to a MS SQL database by a given/fixed stored procedure. I'm able to transfer the content of the file by using following method ...
    hstmt = DBPrepareSQL (hdbc, EXEC usp_InsertReport '<Report> ..... </Report>');
    resCode = DBExecutePreparedSQL (hstmt);
    resCode = DBClosePreparedSQL (hstmt);
    ... but in this case I'm not able to fetch the return value of the stored procedure! 
    I have tried to follow the example of the stored procedure in the help documentation (DBPrepareSQL) but I miss a datatype for xml?!?
    Any idea how to solve my problem?
    KR Cake  
    Solved!
    Go to Solution.

    After some additional trials I found a solution by calling the stored procedure in this way
    DBSetAttributeDefault (hdbc, ATTR_DB_COMMAND_TYPE, DB_COMMAND_STORED_PROC);
    DBPrepareSQL (hdbc, "usp_InsertReport");
    DBCreateParamInt (hstmt, "", DB_PARAM_RETURN_VALUE, -1);
    DBCreateParamChar (hstmt, "XMLCONTENT", DB_PARAM_INPUT, sz_Buffer, (int) strlen(sz_Buffer) + 1 );
    DBExecutePreparedSQL (hstmt);
    DBClosePreparedSQL (hstmt);
    DBGetParamInt (hstmt, 1, &s32_TestId);
    where sz_Buffer is my xml file content and s32_TestID the return value of the stored procdure (usp_InsertReport(@XMLCONTENT XML))
    Now I face the problem, that DBCreateParamChar limits the buffer size to 8000 Bytes.
    Any idea to by-pass this shortage??

  • I am not able to set high and low limits for each channel seperately using LabWindows/CVI

    I am using AI_StartAcquisition and AI_ReadAcquisition functions to acquire data using PCI 6025E DAQ card and iam using Lab/Wuindows/CVi5.0 software. But one of my transducer has its range in +/- 500 mV soi need to set the high low limits of each channel seperately for that i am using commond string function(cmd) but still i am not able to set the limits properly. Does anyone has any idea about this trouble

    You can set the gain on a per channel basis by using the lower level functions. (As opposed to the easy i/o functions.) For example, look at the "SCANsingleBufSync.C" NI-DAQ shipping example that uses the SCAN_Op() function. It's gain parameter is an array of gains that will allow you to change the input limits for each channel separately.
    -Russell

  • Q: Must one use special LabVIEW types (e.g. float64) for DLLs in LabWINDOWS/CVI?

    Hello,
    I have recently started compiling C code using LabWindows/CVI, and have successfully called a simple DLL function from within LabVIEW.
    I have a question about the types defined in LabVIEW's extcode.h file:
    These are defined to explicitly quantify the number of bits used for each data type (e.g. float64 instead of float) in order to eliminate ambiguity across compilers.
    When I am using LabWindows/CVI to compile, do I need to use the LabView numeric types defined in LabView's extcode.h, or can I use the standard C types (int, float, etc.)?
    Is there a distinction between having to use these special types for CIN versus shared library calls in LabVIEW?
    Thanks
    in advance,
    Frenk

    You do not have to use the defines in extcode.h, but you certainly can if you want to.
    The float64 is equivalent to CVI's "double", and the float32 is equivalent to CVI's "float".
    These correspond to the double- and single-precision types in the IEEE Standard for Floating Point Arithmetic, IEEE-754.
    I hope this helps.
    Brian

Maybe you are looking for

  • MSI Workstation 2D/3D Animation Short Film Contest

    OBJECT :MSI Workstation 2D/3D Animation Short Film Contest THEME:From Dream to Design –What is your dream? Life dream, dream journey, dream job, or a day dream? MSI Workstation hopes accompany you to reach your dream! Now, put MSI Workstation logo &

  • How can I use the FM tuner in Windows Media Center?

    Hi everyone. New to the threads. Found this site while looking for answers to a problem I'm having. ?:| I received my Toshiba Satellite computer as a Christmas gift. I noticed it has a cool FM tuner feature. I also have been playing around with Windo

  • Show in explorer

    Hi I've moved my Catalog on an other hard drive. Since then the option "Show in explorer" in the Exportation doesn,t work! Thank for your help. Francois

  • How to make iphone show up in windows explorer?

    i know with my ipod theres a option to make the ipod a device to store data too but i cant seem to find the option on the iphone, is there a way for it to show up in windows explorer

  • Deriving system date

    hi i have to derive age , that is (current_date-birth_date) calculation must be done ,how can i derive current date in odi. how to calculate age from tat thanks