LabVIEW sequencing DAQmx, setting outputs on input triggers

I am still learning labVIEW.  I am an engineer in a mechanical test lab and I am currently working on a test.
The test needs to run through a sequence controlling a stepper motor, sensing when a touch screen is activated, and write load cell DAQ to a file.  This needs to repeat as much as 1,000,000 times.  It is a cycle test.
I have been working on learning labVIEW for the past month and it has gotten me pretty far but I am having trouble with tying together my first VI for an actual test to be performed in the lab.
My biggest constraint is:
I don't understand how to set an ouput to a level (HIGH/LOW) at the condition of a rising/falling edge of a input.  This pertains to how the stepper motor and touch screen works.  I want to set an output to high to extend the motor and wait until it activates the screen which will send a digital high input.  I want to collect DAQ at this point then set a second output to hight that will retract the motor to a 'home' position.
I have attached photos of my setup, a diagram of how it is wired (hand drawn), and two VI files.  Both VI files don't work since I don't know how to 'tie' everything together and control an output when an input edge is triggered.
Load Cell VI_V2 uses DAQ Assistants to sequence through.
000_Touch_Screen.vi uses DAQmx which are seperated into operations that I want to sequence.
Any thoughts on best method for a newbie?
Thank you in advance for any help!
Attachments:
Xerox IS_MP_001.pdf ‏126 KB
000_Touch_Screen.vi ‏23 KB
Load Cell VI_V2.vi ‏268 KB

Your application should be written using state machine as discuss in http://www.ni.com/white-paper/3024/en. One of a very good example could be found in https://decibel.ni.com/content/docs/DOC-8596.

Similar Messages

  • Setting output to onboard and input to USB interface ?

    Hi all,
    Does somebody now a way to "split" the input and output in logic?
    What I want is using my Alesis USB interface for the incoming signals and the onboard (headphone) output for the the master output. The reason is, when recording guitars through ie Amplitube, the Alesis interface is giving both the clean guitar input signal and the processed signal form Logic back on the output. There's no way to stop the clean input signal going to the output... IF there's a way to set the output to onboard, I only monitor the Logic output.
    In Garageband you can easily set both the input and output in Preferences, but Logic only gives me the option to select the soundcard for both in and output.
    I hope someone can help me out. Thanks a lot
    Kind regards,
    Martijn

    You may be able to configure your interface to do this...
    But if not, you can create an aggregate device (in Audio MIDI setup - may be in Applications>Utilities).

  • Can I set the audio INPUT to my pre-amp, and audio OUTPUT to the built in?

    I am using Logic Express 7. I want to set the audio input to my Firefox pre-amp, but set the audio output to my computer's built in speakers. I want to essentially record into the pre-amp and listen to the playback through my speakers. I can easily do this in GarageBand, but haven't found a way in Logic.

    The remaining problem I'm having is when I record into an "Audio" track via my microphone which is plugged into the Firebox, I'm still only hearing the playback from the Firefox headphone jack, not the computer's built in speakers.
    Did you select your new aggregate device in Logic's audio preferences? If so, then the problem is probably with your settings in the control panel which controls the Firebox - I don't use it, so I don't know what it's called, but it controls the routing and monitoring for the Firebox. Check the Firbox manual - there are probably two settings, one for playback and one for direct monitoring when tracking.

  • Setting up audio input/output devices

    I'm running AA3 with an Alesis USB 2.0 mixer attached to my computer. I want the mixer to act as my audio input device, and the computer's soundcard to act as the output. Now, when using AA1.5, I could simply set the audio input device as the USB mixer, and the output device as the soundcard, and I could record and playback without any issue. However, when I go to set the mixer as my input device, AA3 also seems to want to make this my output device. I do not want the mixer to act as the output, I want all output to go through the soundcard. How can I make this distinction in AA3? Let me know if you need more information, I'll be happy to provide it.
    Cheers!
    Sean

    >So, while working in AA1.5, I'd arm a track for recording, hit record, and it would record the sound source I plugged into the mixer. Then I'd hit play, and it would play what I just recorded through my speakers, which are hooked into my soundcard. Then, I'd arm a different track for recording, and once I hit record, I would hear the track I'd just recorded playing through my speakers, while recording a new track, which was being brought in through the mixer. I'm still not entirely clear on why this isn't possible in AA3, or if it is, and I'm just missing something.
    That's a different issue. And it's perfectly possible in 3.0, assuming that you have your sound device set up correctly to use ASIO, and Audition's input and output assignments set to use what's available in it. In fact there are more options in 2.0 and 3.0, because if you use the ASIO driver directly, you can use real-time monitoring
    through Audition rather than through the mixer direct path (which is the usual way). The advantage is that you can add channel effects like reverb to the monitor mix, which often helps singers. This only applies to the monitor feed though - what's actually recorded is 'dry', so you still have all of the effects options available afterwards. To use this mode set the monitoring to 'Audition Mix'.
    But however you look at it, the overall monitoring situation works fine - or believe me, just about every user going would have complained about it by now!
    So, you can't really compare AA1.5 and 3.0 from a monitoring point of view - the ASIO situation makes them look somewhat different. 1.5 effectively ignores monitoring - it just uses the Windows APIs and DLLs to record, which is essentially what's provided by the operating system. And that's why it works with any sound device that the OS recognises. But with 2.0 and 3.0 you are entirely reliant on a system that bypasses most of the OS in order to work faster (lower latency).
    One of the snags with this is that a lot of sound device providers that aren't producing what might be described as 'pro' devices - in other words the providers of on-board sound chips, and a few more besides - don't always provide anything like an acceptable ASIO driver for their devices, and that's why ASIO4ALL was developed.

  • Posttrigge​red DAQmx Read output if no trigger received.

    I am running a posttriggered analog voltage input on a PCIe-6251 via DAQmx and I need to know what voltage Labview bins if no posttrigger is received and I set the timeout response to "cancel error on match."

    MikeK,
    I am not sure what you mean by post-triggered. Are you referring to a reference trigger, which keeps a buffer of data so that after it is triggered that buffer of data can still be recorded?
    Please attach a snippet of code.
    If you are in fact using a reference trigger and the DAQmx Read times out and the error is ignored by your error handler, no voltage data should be recorded. If you have this running, you can easily test this by creating an indicator on your DAQmx Read output and verifying that nothing is recorded.
    Best.
    Joey S.
    Software Product Manager
    National Instruments

  • Setting NI5641R ADC input level

    Hi,
    I am using a NI5641R board and I am programming it using the LabVIEW FPGA Module.
    How can I set the maximum input level of the ADCs?
    Concerning the DACs, there is a VI to set the maximum output level in the library that comes with the board.
    Isn't there anything equivalent for the ADCs?
    Thank you

    Probably, I have found the solution.
    I post it for those who are interested. Of course, comments are welcome.
    IQ rate at the output of the ADC (downconversion):
    - use "ni5640R ADC Configure NCO.vi" VI to configure the sampling frequency (e.g. sample frequency= 100 MHz);
    - use "ni5640R ADC Configure DDC.vi" VI to configure the decimation (e.g. decimation=4);
    - than, the resulting IQ rate is: sampling frequency/decimation (e.g. 100/4=25).
    IQ rate at the input of the DAC (upconversion):
    - use "ni5640R DAC Configure for Quadrature Mode.vi" VI to configure the CIC Interpolation Factor (remember that there is an addictional fixed interpolation factor of 4);
    - than, the resulting IQ rate is:: 200M/(4*CIC Interpolation Factor).

  • Le noeud de méthode "Set Output Enable"

    Bonjour,
    J'ai un NI cRIO 9074 avec un module NI TTL High-Speed Digital input/output 9401et je veux savoir si c'est possible d'utiliser un noeud de méthode "Set Output Enable" et comment le configurer car j'arrive pas a trouver la configuracion pour cette option et j'ai le besoin pour finir mon projet.
    Merci
    hello,
    I have a NI cRIO 9074 with NI High-Speed Digital TTL input / output unit 9401et I want to know if it is possible to use a method node "Set Output Enable" and how to configure it because I can not have find configuracion for this option and I need to finish my project.
    Thank you

    Bonjour ,,
    Cette question a déja été posée sur notre forum,
    http://forums.ni.com/t5/LabVIEW/How-do-you-configure-a-cRIO-9401-for-output/td-p/365842
    Je vous souhaite une bonne journée,
    Cordialement,
    Sabri JATLAOUI - Certified LabVIEW Developer

  • How to set the table input in Query template?

    Hi all.
    I need to call a Bapi_objcl_change, with import parameter and a table as an input. I have done this, in BLS. I have set the table input in the
    form of xml. In BLS, I get the output(the value gets change in SAP R3, what i have given in BLS).  But if i set the same xml structure  in
    query template, I didn't get the output. Table input parameter does not take that xml source.  How to set the table input in Query template?
    can anyone help me?
    Regards,
    Hemalatha

    Hema,
    You probably need to XML encode the data so that it will pass properly and then xmldecode() it to set the BAPI input value.
    Sam

  • In TestStand, How do I pass variables to a sequence, other than the standard Input Buffer?

    I have Labview VIs that have arrays as inputs, I want to pass information in that array to the VI. TestStand already has the Input Buffer setup, but how do I create more input buffers, like array input buffers?? I know that the "Parameters" section in the sequence file is for passing info to subsequences, but that does not help me, Thank you in advance!!

    See the TestStand shipping example located in the directory \Examples\AccessingArrays\UsingLabVIEW. This will show you how to pass arrays back and forth from a VI to a sequence variable.
    If you are trying to create a step that handles arrays, then you will need to create a new step type that has an array step property. There is an example on the NI web site of a step type that handles arrays. Go to www.ni.com/support and search the Examples Program database using the search string of:
    +"step type" +waveform +teststand

  • Setting output aspect ratio

    I have a jpeg background with 1080p video scaled down to 16.2%  overlayed over it. It also has a powerpoint (jpeg) overlayed on it.  The final product is an instructor to the right of the powerpoint discussing his presentation. Everything is square pixels (1.0). My sequence is set to 996x625 the same size of the background .jpg. I need to output it to .mp4. in two sizes. When I set the height in my output settings to 996 and leave it set to maintain the aspect ratio, Premiere changes it to 996x560 and adds vertical letterbox. If I unlink the aspect ratio and change the width to 625 I get a message "Invalid frame size/frame rate for this level. Please lower the video bounds or frame rate, or increase the level and profile and try again"
    I also wanted to  make a second version reduced by 1/3 which is 664x374. Premiere allows that size, but adds letterboxing. If I am in the same ratio as the original I don't understand why it is letterboxed.
    thank you

    Projects to tend to go sideways at some point when using oddball sizing...best to stick with some sort of standard if at all possible, not just a random set of dimensions. Video encoders work on video content in blocks (matrixes) and odd numbers just don't fit into that world, as Jim stated.
    Perhaps you could create a 720p sequence, copy the content of your curent sequence into it, and rework things a bit to fit? That will also then provide a smooth pathway to smaller "standard" encoding sizes such as 640x360.
    Thanks
    Jeff Pulera
    Safe Harbor Computers

  • How to create a a labview sequence with teststand

    hi  everybody,
    it might be this question but i haven't found any. I am using TestStand 2.0 and LabVIEW 7.0 and i wanna use labView Sequence adapter to create sequences by using labView step.
    So that's how i do.
    1) After choosing the labveiw standard prototype adapter, i select a step in the sequence let's say the numeric limit step
    2) then I specify the module and choose the option create VI...
    3) Then I have a labview front panel window that appears with test data and error out
    4) I just add a sequence context in the front panel, take a set property value module, link that module to  the sequence context and in the test data as show as in different examples i found
    5) but after all when i run the step that is error message i have:
         LabVIEW : parameter Sequence Context not found in the VI's connector pane.
         -18002; LabVIEW reported an error. See 'LabVIEW : ' message for more details.
    it's seems that i don't connect my sequence context to the VI's connector pane but i don't know how to do it. i tried to figure that out by reading some previous post but i still can't.
    First what's is a VI's connector pane and do you have access to that? Can you explain me that step by step
    Thanks in advance for your help.
    Christelle

    Hi,
    In the Specify LabVIEW Module is a checkbox if you need the Sequence Context in your VI.
    You should enbale this before creating the VI. If this is done, then you will not have to add the sequence context control to your VI, because it will already be there.
    But from your notes, you dont appear to be adding the Sequence Context control to your VI connector pane.
    If you do this, then it should all start to work.
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • Output message type triggering for all

    Hi,
    I want the output messages to be triggered for particular Vendor and doc type with ALE config.
    Now the config is such tht whenever the PO is created for doc type, the output type gets triggered for ALE partner .
    So need guidance.
    Thanks

    hi,
    Please check whether the access sequence attached to your Condition type has a condition table with Document type and vendor field, if not then you can add one or create a new Access sequence and attach it to you condition type.
    Next you maintain the Condition Records for the doc type and vendor combination, and the system shall trigger the message type automatically.

  • How to set audio hardware input channels for narration & to what?

    Searched forum - hope I didn't miss solution for the following:
    Using PE3 in Windows XPSP3
    Tried for the first time to add narration to a project. Was using a stereo/microphone headset. Got nothing but noise. Could record in Windows recorder and Audacity. However, the microphone as part of the set would not work in Windows Audio Hardware Test Wizard. The set was using a sound chip on the motherboard.
    A friend of mine has the same OS, motherboard and is using PE3. He too had never tried adding narration - but tried with a USP connected set, and was successful.
    I removed my stereo set, and connected a USB set. To make sure all settings were reset, I did a cold reboot. The USB set worked in Windows Audio Test Wizard. I opened my project again, and in Edit/Preferences/Audio Hardware, clicked AIIO Settings. Unchecked the old set (Realtek) in both the Output and Input Ports area, checked the USB Audio Device, moved to the top of both lists.
    Then tried to add narration and got the error message "Your current audio hardware selection does not have any input channels. Please use Preferences>Audio Hardware to correct this problem.
    Thinking that maybe this was a preset for the project and couldn't be changed, I started a new project, no video, just tried to add narration, and got the same message.
    The entries in the columns in the ASIO Direct Sound for Full Duplex Setup menu for the USB Audio Device in the Input section are: 2048, 0, 1, 16, Yes
    The only one of these that seems to be able to be adjusted is the second number - the Offset (Samples). The Audio Channels number is set to 1 and doesn't seem to be changeable. Suggestions?

    When working with Audio in most NLE's, i.e. Premiere Elements, or Pro, there are basically three areas that can affect how the Audio is handled on one's system. First, there is the Sound settings in Windows (from Control Panel). Next, the Audio card/chip probably/possibly has a console to make settings at the card/chip level. Last, and these are really two locations, but I'm only counting them as one since they are both in the NLE - Edit>Preferences>Audio & Audio Hardware. This is where Steve is referring to. Check all settings, and I'd suggest doing so in the order that I listed them above: OS, Audio card, then Premiere. A Mute, or by-pass in the first two, can override the settings in Premiere, and you may have its setting correct, but still not be able to effectively use your hardware.
    The exact settings chosen will depend on the exact hardware that is properly installed. Without knowing all of your hardware and other settings elsewhere, one cannot give you a definitive answer. Ideally, in the settings drop-downs, you *should* see your hardware listed. Look closely, as these can be a bit cryptic.
    If you are still unable to get your hardware working properly, a fourth place to look would be Control Panel>System>Hardware>Device Manager for your Audio hardware. Check that Device Manager sees your hardware, and that it is working properly.
    If all is set up properly, but still not working, report back with exact specs on your system, including all of your Audio hardware. There are possibly some more steps that can be taken. I will not mention them now, as they *should not* be needed. If you do need further assistance, please list every option in all of the drop-down lists from Premiere, so we can know what your choices are.
    Good luck,
    Hunt

  • How to address digital input & output, analogue input & output when communicate with mitsubishi fx1n plc

    dear all,
    i am new to labview, how to code or address digital input & output, analogue input & output when communicate with mitsubishi fx1n plc or crouzet plc.
    pls help.
    HM

    http://search.mywebsearch.com/mywebsearch/redirect.jhtml?searchfor=mitsubishi+fx1n&cb=ZO&p2=%5EZO%5E...
    Try the above link. I know it is a screen-full, but is a search result for Matrikon. They have a whole slew of OPC servers/clients you can try out. Personally, I would go with their OPC server for the Mitsubishi, and use Labview Datasockets. That would be the simplest with the lowest learning curve.
    Otherwise, if you wish to use Modbus, you would have to get the commands/syntax from Mitsubishi; might be in their user manual, but I wouldn't lay bets on it. With the Matrikon stuff, the syntax is all built in.
    Good luck which ever way you decide to go.
    Dave

  • FaceTime set Output Device

    Hi guys,
    this question is not specifically related to Yosemite or Handsoff, but I noticed it the first time trying to make phone calls via FaceTime.
    I got a iPhone 5s and a MacBook Pro Retina (Early 2013) – both updated to the latest OS version.
    I was trying to use the new feature of iOS 8 and OS X Yosemite to make a phone call via the iPhone.
    I've connected a 2.1 Soundsystem via Belkin Dock to my Mac and also a USB Headset.
    FaceTime has the possibility to set the audio input device only for this app, but not the output device.
    I would like to change the output device for any FaceTime calls (via iPhone or Internet) to the USB headset.
    Is there a chance to set the audio in/output device app specific?
    I think that it is a common problem, as I cannot imagine that anyone would use the build-in microphone and speakers in any office?!
    Of course I searched for the problem, but didn't find anything useful.
    Kind regards
    caldi

    You can get only a single document preview, I think. I have never tried, but I don´t think that is possible.
    What you see is not the second document preview, but the last document in the batch, is that right?
    You can experiment with the form bundling (bundling the forms when sending them to ADS improves performance), but I don´t think that will help.
    Why do you need to do this "mass preview" anyway? Maybe you should create a tool to help the user display these preview. I am close to HR and can imagine a tool, which is used for mass personal profile forms. I would create a simple report, where you click on the line and get the document preview/ profile of the selected person.
    Imho if you do the "mass" print/ generation, your task is to be fast and you target on the printer. If you work with a single form, then it is like "user-oriented".
    Regards, Otto

Maybe you are looking for

  • ISE 1.2 Admin Access via Active Directory

    Hi Experts, Good Day! I want to configure my ISE 1.2 to authenticate (for admin) against the active directory. I know it is possible but our AD doesn't have any groups named for admins. Is it possible for the ISE 1.2 to configure a local user ID and

  • Laptop to HDTV connection

    I just bought a Panasonic HDTV (Model TC-P50C2) and I watched a lot of video from internet on my laptop (Toshiba Satellite L305D-S5895).  I read somewhere that I can connect my laptop to my HDTV.  Then I can watch the internet video on the TV.  The T

  • Numbers won't open after updating to iOS 6

    I updated my iPad 2 to iOS 6 and everything works except Numbers.  Unfortunately, I use Numbers in my work all the time, so I need a fix.  Any suggestions are appreciated.

  • Non-printing Snippets

    Help, I am using RoboHelp HTML version 7.02.001 My problem is that my Snippets are visible in the work area and in the chm when compiled, however, when I generate a Word (or PDF) file from the topic they are nowhere to be seen! This is quite a proble

  • What methods should a controller interface contain? (MVC)

    Implementing MVC architecture in hope of achieving good design in OO. Using Observer pattern (java,util. Observable/Observer etc...) Many people talk about having an Interface for both Controller code and View (GUI) code. I don't see the point really