How do you force DAQmx output to 0 at the end of program execution?

I am using a 6713 to generate an arbitrary analog waveform on its output. However, once the labview vi has finished execution, the output voltage from the 6713 does not go back to 0 V. I have tried to force it back to 0 V by appending a 0 V amplitude waveform to the end of the analog waveform to mixed results (if I give it thousands of points, it goes to 0, but if I make it a more reasonable 100 points, it doesn't). How can I force the output back to 0 V. I tried stopping the task, clearing it, and stopping it and then clearing it. None of those worked.
Any help would be greatly appreciated.
Attachments:
6713 Interface.vi ‏144 KB

First, I have to ask, did you write this VI?
It is very hard to follow and has a lot of confusing structures in it.  IN the middle area where a lot of the DAQmx functions are, the error wire loops around so much it is hard to tell what is happening in what order.  To the lower left, an array is converted to a cluster, the cluster is unbundled, the individual elements are fed to a compound addition to get a single value.  Why not just use a sum array function on the original array?
The stop button is fed to the Stop Sign function.  This is Abort execution which is the same as hitting the red stop button at the top of the VI.  It ends the execution of the VI right then and there and doesn't allow anything else to happen.  Read the context help for that function.  As someone else has said on the forum,  "Using the Abort button is like using a tree to stop your car.  It will stop it, but there might be consequences."
How is this VI being run?  Is the Run Continuous button being used?  My guess is yes because I don't see any While loops and the only thing the stop button does is end the program abruptly.
You will need to rethink your whole architecture.  Stuff that needs to happen once should be set up before a while loop that has wires leading to the while loop or uses a flat sequence to make sure that it happens first.  This is you program initialization.
Everything that happens repeatedly would be in the while loop.  The front panel Stop button is what ends this loop.
Anything that has to happen before the program ends like closing out tasks happens after the while loop (either by wires for dataflow or in 3rd frame of a flat sequence structure.  With this, you should be able to reset your tasks so they output a zero voltage from the analog outputs before the tasks are closed and the program ends naturally.
Appending a zero to the end of the waveform won't help because if the waveforms run continuously, it will restart back at the beginning.
I would highly recommend looking at the example VI's for DAQmx functions and taking the tutorials for Labview that are available on the NI website.
Message Edited by Ravens Fan on 02-23-2008 10:45 PM

Similar Messages

  • How do you get word count to print at the end of a document in Pages?

    How do you get word count to print at the end of a document in Pages?

    Pages v5 does not provide a user assignable word count variable. With some AppleScript, and a paste operation from the clipboard, you can have locale punctuated word count in this format: 7,803 — anywhere in your document. The following AppleScript works with Pages '09 v4.3 through Pages v5.5.2 on Yosemite.
    I would suggest that you copy paste the following AppleScript into your [Apple] Script Editor and save it (suggestion) wordcnt.applescript. Then, follow this with an option+Save As… and this time set the File format to Script Bundle, or Application with hidden extension — saved to your Desktop. Provided you have a Pages document open, you are then a double-click from the ability to paste your current word count into Pages.
    Note: If you have Pages word count display enabled, it will automatically count your pasted value as another word which initially may deceive on true word count at the time the script was run.
    AppleScript
    --- copy below this line ---
    property locale : "en_US.UTF-8" -- In Terminal, use the locale command to see yours
    if not ApplicationIsRunning("Pages") then
         display dialog "Pages must be running to use this utility."
         return quit
    end if
    tell application "Pages"
        tell body text of front document
            set wordCnt to count words
            -- Don't want punctuated numbers? Remove the single quote from printf format
            set the clipboard to (do shell script "export LC_ALL=" & locale & "; printf \"%'d\" " & wordCnt)
        end tell
    end tell
    on ApplicationIsRunning(appName)
         tell application "System Events" to set appNameIsRunning to exists (processes where name is appName)
         return appNameIsRunning
    end ApplicationIsRunning

  • How do you force Pages 4.1 to be the default Pages app?

    Is there a way to use Pages 4.1 as the default pages app?  I have installed the new Pages and have found it will destroy things in older documents so I don't want to use it.  I would like to be able to click on the Pages icon and have it use Pages 4.1.   I would like to do this in Numbers as well.

    If you take the old pages icon off the doc, grab, lift, bursting cloud of small explosion, its sill around but not the go to program, then take Pages 5.1 icon (is that what you mean? Mavericks is 5.1) down to the doc then that version becomes the default program.
    The older version (9) still resides in the iWorks folder in the APPLICATIONS folder/section.
    in fact, you can switch back and forth until your totally confussed, back and forth.
    Took me a whild to figure that I only want to use 5.1, left 9 alone in the iWorks folder..
    I'm only a 1 level, I hope this helps.
    jojoguitar

  • How do you stop a movie from playing past the end?

    I uploaded a video to Vimeo I made from various clips and there was about 40 seconds of black after the end. How do you add a marker so it knows where to stop and hopefull return to the beginning. I already put the 'stop' marker in but it plays past it in the elements editor and assume that's what it did in the uploaded video. I believe 'stop' marker is only for DVD play.  I have Elements 11.

    dufusdad
    Expand the Timeline with the -+ slider above the Timeline. Make sure that the slider is all the way to the right so that you are at maximum expansion. Then, as Hunt suggested, hit the End key and inspect the area where the Timeline Indicator stops. These possible fragments/leftovers present typically as very thin vertical black lines scattered in the tracks. After you delete any such fragments, repeat the process to make sure you have all the fragments.
    The major reason for me adding to this thread was to remind you never to put a stop marker at the end of the last item on the Timeline. It is a bad practice to fall into. It is not needed and creates all sorts of problems especially as seen in burn to disc.
    Please let us know the outcome.
    Thanks.
    ATR

  • How do you use multiple outputs on a VSTi like Kontakt or Battery?

    how do you use multiple outputs on a VSTi like Kontakt or Battery with Logic Pro 7.1? I've heard someting about using AUX busses, but can anyone please provide an actual clear, step by step basic guide?
    I've had Logic 3 months now and just don't know how to do this yet, and have yet to actually find it in the manual!!
    thx

    http://www.sonikmatter.com/wiki/index.php/Tutorial:MultiChanAudioSetup

  • How do you force itunes comments to ID3 tags in MP3 files?

    I have comments all throughout itunes. The mp3 files do not have those comments in the ID3 info.
    How do you force itunes comments to write out to ID3 tags in MP3 files?
    The folder and files all have write permission.

    Yeah, don't do that, you probably also degrade the sound quality... If you've confirmed it is something odd with multiple tags try this.
    Select a group of mp3 files (You might want to start with a smart playlist so you don't mess with any other format)
    Right-click and use Convert ID3 Tags > None (may need to repeat this step if multiple tags)
    Then right-click and use Convert ID3 Tags > v2.3 (v2.4 support still patchy from various accounts)
    Downside is that it will lose any embedded artwork, but it should preserve all other meta-data, both tag-based and stored within the library itself.
    In fact, if you use my CreateFolderArt script before and after updating the tags it should archive any artwork as a local Folder.jpg image for each album and then reinsert that image on the subsequent run... Check it out on a single album first. If it doesn't work as expected let me know and I'll tweak the script to achieve this end.
    tt2

  • How do you FORCE FCPx to re-render a clip?

    here's the problem.
    Final Cut Pro X FREQUENTLY screws up transition renders. Did I say FREQUENTLY? It CANNOT be stressed enough, that FCPx DOES SOMETHING BAD to its transition renders Quite Often.
    ok, until Apple fixes that nightmare, I want a workaround. I thought I had it:
    if you hit control+r you tell FCPx to 'render selection.'  its right there in the menu.
    but its a lie. what it SHOULD read in the menu is: 'render selection, if it is not already marked as having been rendered.'  This is a problem for me, because FCPx FREQUENTLY SCREWS UP TRANSITION RENDERS*.
    *ok, I think I've said it enough, time for an example:
    imagine a crossfade, standard, stock crossfade, using the standard timing... EVERYTHING is standard. Well, How would you feel if you were scrubbing an otherwise perfect edit... to find that your crossfades... ALL OF THEM... pop the resulting image, into the first frame of the transition? I bet you'd be mad.
    How would you feel if you HAD NO RELIABLE WAY TO FORCE FCPx TO RE-RENDER THOSE TRANSITIONS?  You'd be livid. Lets put some more firewood on here... How would you feel if this happened randomly, all the time?  I really do mean ALL THE TIME. I can scarcely look at FCPx without it screwing up the transitions of my edit.
    point is. FCPx has a wonderful editor. its a joy to use. But its chock FULL of bugs, and its so SMUG that it doesn't provide ANY workarounds. The Documentation is a joke. So I'm here... trying to find a way To FORCE FCPx to re-render something IT thinks is already rendered. the smug jerk.

    OP here.
    I'd like to make a few comments.
    Apple has been slowly fixing critical bugs in FCPx, I'm happy with the direction things are headed. But we still have a long way to go.
    the "delete Project Render Files" option is a late edition, and I "think" it is meant to address this specific issue. I find however that in practice, it introduces as many problems as it solves. deleting the project render files forces a re-render on the entire timeline, and as stated way back in the OP, FCPX screws up transition renders. 
    Let me dig into that a little bit. Randomly, FCPx will cut out the first frame of a transiton, creating a jarring full frame jump (as it skips to the second frame) just at the front of a transition, and fill the last frame with black. All I want to do at this maddening point is force FCPX to re-render specific parts of the show, one at a time, because if I ask it to render the other stuff, invariably I will be subjected to the same amount of render bugs I am trying to eliminate. (or more) FCPX does this randomly, so if I can force it to re-render only a specific segment, there's a chance it won't render that bit incorrectly. And with finite control, I can step through and fix each transition, forcing as many re-renders as necessary, always getting closer to done, rather than starting from scratch at every step.
    so, the tip is appreciated, it just doesn't answer my needs. I like FCPX, and sometimes its a dream but it is still riddled with critical bugs and the lack of percision control over the system is a design flaw, IMHO.

  • How do you force LR to start in 64 bit?

    How do you force LR to start in 64 bit?
    I have Windows 7 64-bit and also downloaded LR 64 bit. But I don't see "x64" in the LR title bar. http://helpx.adobe.com/lightroom/kb/optimize-performance-lightroom.html
    Can you force LR to start in 64 bit mode?

    The Lightroom Installer has both 64bit and 32bit included and should automatically install the correct version. I can think of two ways to see which one is installed on your system. a. Click on the Start button and look under All Programs and it should show what version is installed. b. From the Lightroom main menu bar click Help > System Info and the dialog box that pops will display the details of your system and the software running i.e Lightroom.

  • I had over 200 e-mails.  I went to my webmail and deleted most of them.  However, my iPhone still shows 200 e-mails.  How can I force my iPhone to update from the e-mail server?  Or will I have to delete each e-mail from my iPhone as well?  Thanks.

    I had over 200 e-mails.  I went to my webmail and deleted most of them.  However, my iPhone still shows 200 e-mails.  How can I force my iPhone to update from the e-mail server?  Or will I have to delete each e-mail from my iPhone as well?  Thanks.

    You may have to try deleting all the music from your phone (by going to Settings>General>Usage>Music, swipping All Music and tapping Delete), then sync it all back on with iTunes in order to fix this.

  • How to view PDF documents because say you must launch adobe reader and accept the end user license

    I have a question about to display the PDF documents, could you tell me how can I display it?, I have this message that say before viewing PDF documents in this browser you must launch Adobe Reader and accept the End User License Agreement, then Quit and relaunch the browser

    I've got the same issue and I want to use Preview to read pdfs on Safari. At some point I had Acrobat Reader installed, but deleted it and everything associated with it. However no matter what, I get: "Before launching pdf documents in this browser you must launch Adobe Reader and accept the end user license agreement, then quit and relaunch the browser."
    This means I am forced to use Reader, when I don't want to. There seems no way to default to Preview to read pdfs on Safari, even after deleting Adobe Reader completely.
    Anyone have a clue how to fix this?

  • When displaying multiple curves on one 2d graph in reports how do I force one curve to be in the foreground?

    When displaying multiple curves on one 2d graph in reports how do I force one curve to be in the foreground? I have two signals and I want to show one overlayed on top of the other. Right now Diadem will only graph it the other way around. I have tried deleting the curves and re-adding them in differnt orders, changin the order they are in the curve list, changing their order inthe data portal, right clicking on the curve and selecting "move to forground" (this only moves the entire 2-d graph object to the foreground). Im using Diadem 12.0 Basic.
    Solved!
    Go to Solution.

    Hello Joe,
    I figured out what causes your curves to draw in the wrong "order".
    You are using two Y-axes, and DIAdem always draws the data for Y1 before Y2, no matter what the order of the curves is in the "Curve and Axis Definition" dialog.
    I am attaching your layout with a small modification, I changed the Y1 and Y2 axis order (I swapped which Y-axis the data is displayed on), and I get the following result:
    Once I looked at your layout it became clear why the order of the curves didn't reflect the order in which the curves were drawn. I didn't know this - so I just learned something new here as well.
    I hope this answers your question, feel free to ask if there is anything else I can help you with.
          Otmar
    Otmar D. Foehner
    Business Development Manager
    DIAdem and Test Data Management
    National Instruments
    Austin, TX - USA
    "For an optimist the glass is half full, for a pessimist it's half empty, and for an engineer is twice bigger than necessary."
    Attachments:
    Modified Report Layout.TDR ‏146 KB

  • How can you search this forum without searching all the other forums

    how can you search this forum without searching all the other forums at the same time which is a big fat waste of time.

    Follow this tip to create a bookmark to a search page that searches only the forum you want or...
    Browse with Firefox and enable this Greasemonkey script, which forces all searches from a sub-forum to be local.

  • How do you download is07 I tried to do the update but my computer times out

    How do you download is07 I tried to do the update but my computer times out

    If you are getting a network timeout then try temporarily turning off all your firewall and antivirus software on your computer until the download has completed.
    Before starting the actual update you should force a backup of the iPad via File > Devices > Back Up, and preferably copy any important documents, photos, files etc off the iPad so that you have copies of them outside of the backup.

  • I have a 120gb Classic that has no space left on it. i am going to buy a larger gb capacity ipod as soon as i get clearer instruction on how to get the old ipod content to the new ipod. How do you get content from one ipod to the other?

    how do you get content from one ipod to the new one? my content is on an external hard drive not on my pc and i have run out of space on my 120gb classic. can you get old ipod content to new? my itunes has only got short cuts, the real content is on an external drive? can this be done?? please help

    If the content is on an external drive, but your library knows where to find it, then it should all work. Connect your device, make some selections for what to put on it, and sync. If, on the other hand, your current iPod is the only place holding some of your media then see this user tip: Recover your iTunes library from your iPod or iOS device.
    tt2

  • How do you isolate an album or artist in the new iTunes? (12.0) It is really frustrating when trying to listen to one album and I get the album in the list with all 1,025 other albums in my library.

    How do you isolate an album or artist in the new iTunes? (12.0) It is really frustrating when trying to listen to one album and I get the album in the list with all 1,025 other albums in my library. Same with the artist.

    Welcome to the  Discussion Forums
    ... I assumed that if I played the 1st track, it would continue to play the rest of the album (as iTunes does on my Macs and PCs),...
    You assumed correctly, and it should continue to play the rest of the album in order. Does this happen to all your albums. Have you tried restarting the tv.

Maybe you are looking for