How to control a digital output signal using the DAQ assistant?

I am using a USB 6251 DAQ board and would like to control a switch. I am gathering airflow, pressure, and acoustic data on the same board (analog input) and would like the switch to trigger when the airflow value is within a pre-determined range. Finally, I would like to reverse the polarity of the switch (to off) about a second after the initial digital signal, all of which is during continuous data acquisition.
I am able to actuate the switch only when pressing the "run" button in the DAQ assistant window. I am proficient with data acquisition but have never tried programming an output... Please help!
Thanks!
-a troubled researcher
P.S. I am running LabVIEW 8.5 as well.

blsmith4,
You probably won't get the control of the digital port on your card by only using the DAQ Assistant. One of the following examples should provide you the functionality that you would like out of the box:
Digital - SW - Timed Output (Simple)
Digital - Continuous Output (More Complex)
Continuous Write Digital Port - External Clock - Non Regeneration (Most Complex)
Let me know if these work better for you.
Best,
Jason M.
Applications Engineer
National Instruments

Similar Messages

  • How to do a digital output triggered by the falling edge of a clock?

    Hello !
    I would like to do a digital output (on a given line of a pci 6602 card) triggered by the falling edge of a clock.
    More precisely, a pulse train is generated. I have to output each bit of a variable (first, the LSB ; then, the others bits, until the MSB), each bit being transfered on a falling edge of the pulse train. How could I do that, please ?
    Thank you for helping me.
    Julian.

    see the following link (other forum same subject)
    http://forums.ni.com/ni/board/message?board.id=40&message.id=1634

  • How do you save dynamic data type, from the DAQ assistant, for use in Excel or matlab?

    Currently, I have the following basic VI setup to save Data from my PCI6221 Data Aquisition Card.  The problem I'm having is I keep getting the last iteration of the while loop in the measurement file and that's pretty much it.  When I try to index the data leaving the loop it gives me a 2D array of Data which cannot be input into the "Write to Measurement File" VI.  How would I save this to a useful Data/time step format?  I was wondering of a way to continuously collect the Data and then save it in a large measurement file that I would manipulate in Matlab/excel?  Am I using the wrong type of loop for this application?  I also noticed my Dynamic Data array consists of data, time, timestep and then a vector of the data taken.  Is it possible to just get a vector of the time change per sample alongside the data?    Sorry for the barrage of questions but any help would be greatly appreciated, and thanks in advance!
    -Bryan
    Attachments:
    basic DAQ.vi ‏120 KB

    There is a VI in the Express > Signal Manipulation palette called "From DDT" that lets you convert from the Dynamic Data Type to other data types that are more compatible with operations like File I/O....for instance, you could convert your DDT into a 2D array and use the Write To Spreadsheet File.vi.  Just a thought...
    -D
    Darren Nattinger, CLA
    LabVIEW Artisan and Nugget Penman

  • How do I include all the necessary files required for the DAQ Assistant to create an executable file?

    I am creating an executable file to run on a computer that does not have LabVIEW installed.  The problem is that I am using the DAQ Assistant.  The VI Hierarchy is rather large, and I am not sure how to include all of the required files to eliminate the error "The full development version of LabVIEw is required to fix the errors."  Attached is an image of the VI Hierarchy.
    Solved!
    Go to Solution.
    Attachments:
    hierarchy.jpg ‏419 KB

    Yes I did create an installer.  See image installernoDAQmx.jpg  
    When this is all I do I get an error that subvi is not included, a list of about 6 subvi's.  To eliminate this error I manually add the subvi from the dependencies list to the my computer list. This allows me to add them as support files.  This eliminates the error about subvi not included, but then I get the error I spoke of earlier.
    If I include the DAQmx I get an error.  See image installererror.jpg
    Not sure what MAX refers to?
    Attachments:
    installernoDAQmx.jpg ‏259 KB
    installererror.jpg ‏103 KB
    dependencies.jpg ‏344 KB

  • Digital audio input via mini jack/toslink from ADA, monitored via USB audio output... is this do-able? I know digital audio input should be okay but how do I monitor it, apart from using the internal speakers?

    Digital audio input via mini jack/toslink from ADA converter, monitored via USB audio output to amplifier... is this do-able? I know digital audio input should be okay but how do I monitor it, apart from using the internal speakers?

    You can output audio thru HDMI, with appropriate adapter.
    You can use additional cheap external usb audio for monitoring.

  • How do I control a digital output on NI9144 FPGA with fpga code running on NI9082.

    Due to a recent change in our hardware configuration I need to locate my various I/O modules in various locations around the facility. I am attempting to use an etherCAT setup consisting of an NI9082 and multiple NI9144 (for now only one NI9144). I need both devices to run code in the respective FPGA and make the results available to the other devices and for user interface software. My question is is it possible for the two FPGA code segments to communicate directly with each other without going through the RT or computer interfaces. I need to fire a digital output bit on the NI9144 based on logic running on the NI9082.
    Are there any good code examples around that someone can point me to?
    Thanks for the help.

    Hi, you can include trigger conditions (digital, or analog) on your FPGA VI and connect directly the I/O from module to module (analog with analog & digital with digital), however, if the chassis are meant to be at different locations the cable used to connect the ports is equals the length in between each device and that could degrade the signal if we are taking about a couple meters or kilometers. The most reasonable way to send/receive data from great distances is through ethernet using a regular communication protocol (such as TCP/IP, network streams, network shared variables...etc).
    Alejandro | Academic Program Engineer | National Instruments

  • How can I control a stepper motor drive using a DAQ card?

    I need to control a simple CW/CCW stepper motor drive using a DAQ
    card.  I simply need to output a 5 volt signal and then a drop in
    the signal, and so on 200 times or steps for 1 revolution.  I have
    desiigned the basic program, but do not know how to output the
    appropriate signal.
    Cheers,
    Matt

    What DAQ card do you have? Ideally, one with a counter output to generate the steps, where you can control frequency. If you try to start the motor too fast (acceleration or abrupt application of fast pulses) it may stall out. Search in Help/Search for Examples for 'frequency' and 'pulse' for example of frequency generation. You can also use a digital output on the DAQ card to control direction.
    If DAQ card does not have a counter, you coul do a software timed loop to toggle a digital output to generate the pulse train. It may not be fast enough nor accurate for your application, do not know from info you have given
    ~~~~~~~~~~~~~~~~~~~~~~~~~~
    "It’s the questions that drive us.”
    ~~~~~~~~~~~~~~~~~~~~~~~~~~

  • Controlling fpga digital output node from realtime boolean

    I have a system where I want to turn on / off a digital output running on the FPGA.    
    Once I set the boolean on my realtime side (which turns on the FPGA output), I see the output turn on the CRIO, but it flickers on and off.   (not latching?).   I just want the FPGA to stay on as long as the output is turned on, on the realtime side.  I cant change the mechanical action of the switch due to limitations on FPGA / RT according to labview ( I get an error at compile)
    Any suggestions on how to correct this?
    Solved!
    Go to Solution.

    I have simplified my program to something very basic to replicate the problem. 
    The digital output D0 switches on and off everytime the realtime loop cycles through. 
    If I run just the FPGA seperate and turn on the digital output control D0 it stays on solid. (until I turn it off again)
    What am I doing wrong?
    Attachments:
    FPGA_RT_TEST.zip ‏144 KB

  • How should i do?when i use the sc2345 for analog signal acquired!

    please help me!
    I have to use the sc2345+NI6221 for analog signal acquired. but i don't have a analog input module such as SCC-AIXX.
    So I want to pass the signal to the DAQ device. how should i do to connect the wire on the sc2345?
    how can I use the sc2345 for a pass connector?
    Thank you very much and look forward to your reply...
    Solved!
    Go to Solution.

    What kind of signal do you want to acquire?
    If it does not need any conditioning, then, you can connect the signal to 6221 with a terminal block such as SCB-68.
    Best regards,
    NISH AE Haiping.Fei

  • How can I link my daqmx code to another daq assistant to hear my audio output?

    Hi,
    I got a burning question about my school project. I need to use labview and my NI-mydaq to test the difference between
    various samples rates and bit depths.
    I linked an mp3 file to the AUDIO IN of my NI-mydaq and created a way to be able of switching sample rate while running my program.
    Now I would like to link my program inside the NI-mydaq to my AUDIO OUT...
    So...  I generated daqmx code out of an input daq assistant, how can I link my daqmx code to another daq assistant to hear my audio output?

    Hello Fontys_Student...,
    I am not sure I properly understand your question.
    You want to, first, acquire a signal from the AUDIO IN input, second, do some processing on the acquired signal and, third, generate this processed signal at the AUDIO OUT, right? What is the part causing some troubles?
    If you already have the signal acquired and processed, you can simply wire this processed signal to the "data" input of a second DAQ Assistant, right?
    Did you already have a look at the myDAQ User Guide (http://www.ni.com/pdf/manuals/373060e.pdf)? On page 32-35, there is an example showing what you need I suppose. 
    Cédric | NI Belgium

  • How to delete an operation from order using the bapi

    Can somebody please tell me how to delete an operation from order using the bapi
    BAPI_ALM_ORDER_MAINTAIN.
    Following was the test data for the BAPI.
    000000 OPERATION DELETE 0000040052810070
    000000 SAVE 0000040052810070
    Even I tried entering the operation table. The BAPI control ends fine, but when I check the order using IW32, the operation still exists.
    So, can you please tell me where Iam going wrong.

    Hi Subash Mohanvel,
    Check bapireturn parameter of the bapi BAPI_ALM_ORDER_MAINTAIN after execution of the code , and if there is no error message in the return table then call bapi_Transaction_commit.
    Unless you call this database saving of the records/values will not get reflected in the system.
    Hope that helps.
    Regards
    Kapadia
    ***Assigning points is the way to say thanks in SDN.***

  • How to sync 2 different Mac users using the same Apple ID and with out mixing each other info?

    How to sync 2 different Mac users using the same Apple ID and with out mixing each other info?
    We are two people using three difrent Macs, 1 Iphone and 1 Ipad with separate USERS  on each Mac but sharing the same Apple ID: xxxxxx
    I set up the first user to iCloud and it was OK but when I set up the second user to use iCoud the first users's info gets mixed with the second user's info?
    Do we have to set up a diffrent Apple ID for each other?
    Sometime ago I added my friends E mail (yyyyy) to the main Apple ID (xxxx) as for using his E mail account (to separate our e mail accounts, and it's working ok) but now when I try to create a new apple ID whith the same friend's e mail (yyyyyy)  it says that his mail (yyyyy) is already an apple ID when the Apple ID is really my E mail (xxxxx)... any clue?
    Thanks

    I believe because you migrated from a Nokia to an iPhone you need to register the Bn phone number with your Apple ID so it can be used for iMessage. The Pn number seems to be the only one registered
    Go here > https://appleid.apple.com/cgi-bin/WebObjects/MyAppleId.woa/
    Manage your Apple ID and see if that does the trick
    Hope that helps

  • How can i create multiple accounts but use the same itunes?

    how can i create multiple accounts but use the same itunes?

    Hi iCloud is Making Me Go Crazy,
    You will need to create a new Apple ID for your GameCenter and iCloud services.  You can continue to use the current Apple ID you share with your Mom for access to iTunes Store purchases if you wish. 
    Using your Apple ID for Apple services
    http://support.apple.com/kb/HT4895
    Frequently asked questions about Apple ID
    http://support.apple.com/kb/HT5622
    Cheers,
    - Judy

  • HT5538 How do you separate multiple iOS devices using the same apple id account for Face Time calls and iMessaging?

    How do you separate multiiple ios devices using the same apple id account for Face Time calls and iMessaging?

    The only way I have seen is to have each device use a if fervent email account, if they all are on the same email the FaceTime connection is either to a phone number or to an email address.  If they ar all on the same email, it is up to the user to decide which to use.

  • I want to download an audiobook, but my daughter has a giftcard credit on the account. How can I download my audiobook without using the money from her giftcard?

    I want to download an audiobook, but my daughter has a gift card on the account.  How can I download my audiobook without using the money from her gift card?

    go directly to your ibook app. and you're going to find it. it's only with ibooks app.
    best
    Olivier
    <Edited by Host>

Maybe you are looking for

  • XSLT - New Line/Carriage Return not displaying when deployed

    Hello everyone, I have an XSL Style Sheet that is supposed to transform an XML into plain text using Oracle SOA 11g BPEL transformation. The plain text transformation is working fine, but whenever I try to add a new line or carriage return, the text

  • Need a help on stored procedure

    I have the sample data like the below. Employee Id Key Value 1 Name Joe 1 Age 28 1 Addr Houston 1 Sex M      2 Addr Chicago      I need to get a result somethin like the below using a stored procedure. ID Name Age Addr Sex 1 Jose 28 Houston M 2     n

  • Media Go Installation/Upgrade Issues

    A user of Media Go since day one, I was informed that there was an upgrade (version 1.7) and preceeded to install it... Unfortunately, The installation failed. According to the Media Go installation (in a dialog box): There was an error during the in

  • Cannot get a HELLO WORLD

    Please take the time to answer this very simple but ANNOYING question. does anybody know a good (preferably free) C compiler to build java compatable dll files?? The ones that are supposedly "the best out there, ect" seem to alway want to link dll's

  • Failure to install

    Have you discovered how to install the LR4 plugin for Silver Efex Pro 2 on Mac OS X Lion (v10.7)?