How can one counter be sources (or gated) with the output of the other?

I'm trying to use the counters to generate a square pulse train that contains a certain number of pulses (on 6036E). For that I need to gate counter0 with the output of counter1. The manual seems to indicate that I need to use
GPCTR_Change_Parameter (deviceNumber, ND_COUNTER_0, ND_GATE, ND_COUNTER_1) ,
however it makes no difference to the output; I see no gating. What am I doing wrong? Am I missing something?
I would also like to source counter1 with the output of counter0. There's a similar function call to choose the source signal, but so far I've been unable to source a counter with anything but the internal timer.  I guess the reason for it might be the same as the gating problem.
Petro

Hi Petro-
This example shows how to output a finite gated pulse train on an E Series board.  It mentions that it is a CVI example, but the main .c file does not include any CVI-specific functionality so it should work if you're using ANSI C.
Equivalent functionality is available in NI-DAQmx for your board and is considerably more intuitive.  An example of pause-triggered pulse train generation is available in the "C:\Program Files\National Instruments\NI-DAQ\Examples\DAQmx ANSI C\Counter\Generate Pulse\Dig Pulse Train Cont-Pause Trig" directory of your local drive.  One method to generate the "pause trigger" pulse train is shown in "C:\Program Files\National Instruments\NI-DAQ\Examples\DAQmx ANSI C\Counter\Generate Pulse\Dig Pulse Train-Cont" .
I'm not sure what you mean when you say "I would also like to source counter1 with the output of counter0."  What do you need to perform this operation for?  The reliance of counter 1 on counter 0 and counter 0 on counter 1 creates a type of circular reference that is almost guaranteed to be problematic.
Hopefully this helps-
Tom W
National Instruments

Similar Messages

  • How can one remove a raised texture pattern from a scan of the original photo?

    How can one remove a raised texture pattern from a scan of the original photo?
    Have several wedding photos scanned into PS Elements that were printed by the pro, photography studio on a raised pattern paper. Would anyone know how to remove the honey comb type pattern so that the picture canbe printed flat on glossy color photo paper?
    Any help would be greatfully appriciated.
    Thanks,

    The best way to remove a pattern is to use a Fast Fourier Transform.  There's a free plugin (as well as examples and instructions) here:
    http://dl.dropboxusercontent.com/u/6795661/4N6site/improc/fftplugin/examples.htm
    Using the plugin requires editing the individual colour channels, which PSE does not natively allow.  You'll need the reasonably-priced Elements+ addin:
    http://elementsplus.net/
    Here's a crop at 100% of the result I got:
    The pattern is much reduced.  With some experimenting, you can probably do a little better.
    Ken

  • How can one store hd video for use with ipad and apple tv?

    I'm looking for solutions. I don't have a computer. Not interested in renting what i really like or collecting blu rays.
    Buy enough hd video films from the store and the iPad runs out of hard drive. I could buy more storage from the iCloud. What else could I do? The new apple tvs don't have a hard drive for storage. Hypershop.com has a hyperdrive external drive for the iPad, but 720P, is that full HD? They also have a new kickstarter funded product cloudFTP which connects hard drives etc to the iPad wirelessly. Not sure if this would work ok.
    Any other ideas?

    There are some cables you can use. Depends on what model iPad you have and what interface is on the projector. You could also get a router to take with you and set up your wifi connection. There's some portable routers.
    You can connect via a cable or wireless using an Apple TV.
    http://ipad.about.com/od/iPad_Guide/a/How-To-Connect-Your-Ipad-To-Your-Tv.htmhttp://ipad.about.com/od/iPad_Guide/a/How-To-Connect-Your-Ipad-To-Your-Tv.htm
    Connect an iPad to a Television or Projector
    http://www.everymac.com/systems/apple/ipad/ipad-faq/how-to-connect-ipad-to-tv-te levision-projector.htmlhttp://www.everymac.com/systems/apple/ipad/ipad-faq/how-to-connect-ipad-to-tv-te levision-projector.html
    Connecting iPad iPhone or iPod to TV or Projector
    http://www.disabled-world.com/assistivedevices/computer/ipad-tv.phphttp://www.disabled-world.com/assistivedevices/computer/ipad-tv.php
    iPad Accessories: Connections for a TV or Projector
    http://www.dummies.com/how-to/content/ipad-accessories-connections-for-a-tv-or-p rojector.htmlhttp://www.dummies.com/how-to/content/ipad-accessories-connections-for-a-tv-or-p rojector.html
    You may be interested in AirPlay on the Apple TV:
    http://www.apple.com/airplay/http://www.apple.com/airplay/
    http://www.apple.com/airplay/http://www.apple.com/airplay/
    Alternately, there are Apple Digital AV Adapters for hardwired connections:
    http://support.apple.com/kb/ht4108http://support.apple.com/kb/ht4108
    http://support.apple.com/kb/ht4108http://support.apple.com/kb/ht4108
    Portable routers http://compnetworking.about.com/od/routers/tp/travel_routers.htm
     Cheers, Tom

  • How can one produce dynamic XSLT (.xsl) file with JSF

    I've googled, I've searched and I've found nata on how to do this. I've tried trial and error but I still cannot get my .xhtml file to include my <xsl:stylesheet ..> declarations and syntax in my final output to the browser. Anybody have any (non-hack) ideas on how to do this? Actually, if hacks is all there is, then I suppose they are welcome too, but a legit way is preferable. Tutorials and documentation fail to tell me how to do this. As illustrated in the following, the xsl specific content removed from the final output to the browser. I don't want it removed. Any ideas?
    <?xml version="1.0" encoding="UTF-8" ?>
    <!DOCTYPE xsl:stylesheet>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
        <xsl:strip-space elements="*"/>
        <xsl:output method="html" indent="no"/>
    <xsl:template match="xxx">
    <html xmlns="http://www.w3.org/1999/xhtml"
          xmlns:ui="http://java.sun.com/jsf/facelets"
          xmlns:h="http://java.sun.com/jsf/html"
              xmlns:t="http://myfaces.apache.org/tomahawk">
         <ui:composition template="xxxx">
    </html>
    </xsl:template>
    </xsl:stylesheet>{code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    I realized this after viewing the first several outputs and decided to post this as a problem on this forum right here at this particular location.
    I also discovered that I was able to include outer text by wrapping everything within <ui:decorate template=".."></ui:decorate>{code} tags. I simply wish to know how one manages to include their own namespaced tags in the final output when they are NOT outputing to standard HTML/XHTML, such as XML or XSL.
    Thanks for your input.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • With LR5 how can one synchronize work done between a local hard drive and the cloud?

    I have the LR5 program on my PC; the data is stored on the computer's hard drive; no problems. In the future if I were to switch to the online LR5 and cloud service could I continue using my PC's hard drive where the photos and catalogs are and have a backup on the Adobe cloud? If yes, is there a way to save all changes to both the local hard drive and cloud? If these two sets of work by synchronized? How does this work?

    The Adobe Creative Cloud is not something used with LR how you’re imagining.   CC is a licensing and software-delivery mechanism, not a place to store your current working photos in large numbers or a place to run software from or in. 
    LR CC is not software run in the cloud via a thin client, it’s still just desktop LR licensed via logging into CC with your AdobeID.
    LR and your photos are stored locally just like with the serial-number-licensed LR.  You can sync local photos back and forth to an iPad via the cloud and you can store a few photos or other project-related files in the 2GB cloud storage, but that’s about it for what the cloud adds.

  • How can i share my iphoto 11 library with another user on the same mac?

    hi
    i recently added a new user account for my wife on my macbook pro. now we want to share the existing iphoto 11 library, which is on my account, with the new user account. i'm using os x lion.
    many thanks!
    davide from sitzerland

    For iPhoto 09 (version 8.0.2) and later:
    What you mean by 'share'.
    If you want the other user to be able to see the pics, but not add to, change or alter your library, then enable Sharing in your iPhoto (Preferences -> Sharing), leave iPhoto running and use Fast User Switching to open the other account. In that account, enable 'Look For Shared Libraries'. Your Library will appear in the other source pane.
    Any user can drag a pic from the Shared Library to their own in the iPhoto Window.
    Remember iPhoto must be running in both accounts for this to work.
    If you want the other user to have the same access to the library as you: to be able to add, edit, organise, keyword etc.
    Quit iPhoto in both accounts. Move the Library to the Users / Shared Folder
    (You can also use an external HD set to ignore permissions, a Disk Image or even partition your Hard Disk.)
    In each account in turn: Double click on the Library to open it. (You may be asked to repair the Library Permissions.) From that point on, this will be the default library location. Both accounts will have full access to the library, in fact, both accounts will 'own' it.
    However, there is a catch with this system and it is a significant one. iPhoto is not a multi-user app., it does not have the code to negotiate two users simultaneously writing to the database, and trying will cause db corruption. So only one user at a time, and back up, back up back up.

  • How can i segregate an array of clusters with channels id in the cluster

    Hi All
    i am using a keithley 2010 DMM for power measurements,
    i am using the 2010 scan read VI which gives the reading output as an array of clusters, these clusters contain the measurement,units,channel.
    i have 6 channels for measuring voltage across and i want to make 5 readings per second on each channel which makes upto 30 readings per second.
    i want to segregate these clusters from the array according to the channel id and take the results,
    please tell me if we have function for this or you have any possible solution for the same.
    i would be very happy to hear from you and get this solved
    please help
    Thanks in advance
    Sandeep K Shyam

    yeah this looks great...thanks for your response,
    i have modified accordingly and attaching the VI, can you please look into this once
    also one more problem i have with this VI is whenever i am trying to run the VI, the  sub VI (Scan config.vi) gets popped up and waits for user response (next) cntrl+right arrow,  how can i get rid of this and run the VI in continues mode?
    i am attaching my VI along with the kei2010 lib,
    please check this
    Thanks again
    sandeep K shyam
    Attachments:
    sandeep-FinalKeithley20101.vi ‏822 KB
    kei2010.llb ‏901 KB

  • How can I have links within emails read with Seamonkey open on the default Firefox browser and not the Seamonkey browser?

    I use the SeaMonkey 2.0 mailer for my email client and Firefox 3.6 for my default browser. A link embedded in an email (read with SeaMonkey) opens the SeaMonkey browser and not Firefox. How can I have it open on Firefox?
    (SeaMonkey is not set up as the default browser and Firefox is.)

    See here
    *https://support.mozilla.org/en-US/kb/how-make-web-links-open-firefox-default

  • How can I synchronize an event in LabVIEW with an output counter?

    I am outputting a counter through a DAQ which controls an external piece of hardware. I have another device which is controlled through a serial port, and I want to synchronize the timiong between these two devices. Is there a way to synchronize a labview event - in this case sending a serial command - to an output timer? Any help would be appreciated and I can provide more information if anything is not clear. Thanks!

    Hi Sobriquet,
    As far as synchronizing a hardware output signal with other software function calls, the best way that I can recommend is using the Timed Loop structure in LabVIEW.  By using the DAQmx Create Timing Source.vi, you can configure the counter output to be used as the signal for iterating the loop.  In the block diagram screenshot below, a continuous pulse train is generated on counter 0 at a specified frequency.  I hope this helps.
    Regards,
    Andrew W
    National Instruments
    Message Edited by TheWoost on 04-16-2007 03:35 PM
    Attachments:
    CounterExample.JPG ‏40 KB

  • How can I set a symbol to hide with a code in the symbol?

    Hmmm... I will try to explain this question:
    I have my main timeline. It is the homepage of my website. The subsites are symbols filled with content. They are 100% of my composition and should overlay over my homepage.
    So when I click on the menu buttons on my homepage I can set the symbols (subpages, they are turned off, hidden) on and they will show and play. For that I am using this code:
    sym.$("mySymbol").show();
    sym.getSymbol("mySymbol").play(0);
    This works perfectly.
    So I actually looking for the code I put on a kind of closebutton. The closebutton jumps to the fade out transition. Then should close the compositsion - set it to hide. I am back on my homepage where I left it.
    I tried to put
    sym.$("mySymbol").hide();
    on a script in the timeline but that doesnt work. So can anybody tell me the right code?
    I searched a lot but couldnt find a solution.
    Thanks a lot for help!!!!

    There is also the possibility to use a variable but this might not be what you want.
    In this example you can play each page and use the close button to close the current page. If you try to play the other pages without closing the current, it will not work - only the close button with work to reset all the page's button to be able to play.
    Just try it:
    click a page button -It will play that page - now try to click the other page buttons - will not work.
    click the close button - it will close the current page.
    Now you can clck any page and it will play and so on.
    Example: https://app.box.com/s/bfg0lvy0spzwinefqzn7

  • How can I tell if my problem is with iPhoto or if the SD card ?

    I'm trying to import photos from an SD card, and when I attach my camera (or insert the SD card - I've tried both ways),  iPhoto shows me thumbnails of the pictures, and tells me they are already imported.  But when I disconnect my camera, the photos aren't in iPhoto.  If I click on "Import Photos" nothing happens, although I get a message telling me to wait until the photos have finished importing, if I try to close iPhoto. 
    Is there a way to tell if my problem is with iPhoto, my iMac, or the SD card?

    As a Test:
    Hold down the option (or alt) key and launch iPhoto. From the resulting menu select 'Create Library'
    Import a few pics into this new, blank library. Is the Problem repeated there?
    Post back with the result.

  • Suddenly some bookmark folders do not open anymore when I go under "bookmarks" if I use them in the sidebar it works. How can I fix this, it is only with 2 folders, all the other work fine.

    I have created several bookmark folders and everything has worked fine until recently. Suddenly 2 folders do not open anymore when you hover the mouse over the folder.
    If I have the bookmarks in the sidebar everything works fine.

    -> click '''Firefox''' button and click '''Exit'''
    Start Firefox in Safe Mode by Holding down the '''Option''' key while starting your Mozilla application.
    As an alternate method, go to Utilities (in the Applications folder) and open Terminal, then run:
    /Applications/Firefox.app/Contents/MacOS/firefox-bin -safe-mode
    -> Firefox Safe Mode window will appear. DON'T SELECT ANY OPTIONS, just click '''Continue in Safe Mode'''
    Firefox will open up with just basic Firefox. Check and tell if its working while you are in Safe Mode.

  • How can I synchronize my iTunes on PC with my iPod on the iPad?

    Hi all,
    I do have problems to synchronize my mp3 files which I do have on my pc with my ipad2. iTunes is already installed on the PC (and the mp3 files are already included there). iPad2 2 is connected with the pc. Nevertheless I am not able to shift the mp3 files to the iPad2. What am I doing wrong?
    Best regards
    Thomsusl

    You need to use an IMAP set-up, and not POP. Go to your email provider and find out if they support IMAP.

  • How can I create a new Care Plan with one or more care tasks

    Hello,
    I'm working on a Dutch website in the HealthVault Environment. I got difficulties in creating and updating a careplan with care tasks. Most likely it's due to lack of knowledge...
    Following code works fine:
    CarePlan plan = new CarePlan();
    plan.Name = "test";
    this.PersonInfo.SelectedRecord.NewItem(plan);
    It creates a plan called [test]. But I don't know how to create a plan with one or more tasks in it: the tasks property is read only.
    https://msdn.microsoft.com/en-us/library/microsoft.health.itemtypes.careplan.tasks.aspx
    Half a year ago I was able to add an example of a careplan, which was a feature of the dev tools, but for some reason that's not possible anymore.
    https://developer.healthvault.com/DataTypes/Overview?TypeId=415c95e0-0533-4d9c-ac73-91dc5031186c
    So my question is, how can I add a new care plan with a task like the example from the HealthVault dev tools:
    <tasks>
    <task>
    <name>
    <text>Run 100 miles</text>
    </name>
    <description>Run 100 miles in 6 months</description>
    <start-date>
    <structured>
    <date>
    <y>2013</y>
    <m>12</m>
    <d>1</d>
    </date>
    </structured>
    </start-date>
    <end-date>
    <structured>
    <date>
    <y>2014</y>
    <m>6</m>
    <d>1</d>
    </date>
    </structured>
    </end-date>
    <target-completion-date>
    <structured>
    <date>
    <y>2014</y>
    <m>12</m>
    <d>31</d>
    </date>
    </structured>
    </target-completion-date>
    <sequence-number>279128532</sequence-number>
    <recurrence>
    <interval>
    <text>Once</text>
    </interval>
    <times-in-interval>10</times-in-interval>
    </recurrence>
    <reference-id>p01vil21ckg7k2346y1g60337mmi20sg564l321l8pmpqev39n302572sewu76lh9019s3993e02924</reference-id>
    </task>
    </tasks>
    Any help is welcome 
    Wilfred

    Hi Wilfred,
    Have you tried this?
    CarePlan plan = new CarePlan();
    plan.Name = "test";
    plan.Tasks.Add(someTask) 
    If you have a task list already, you would need to enumerate through it and add one by one...
    foreach (var task in existingList)
        plan.Tasks.Add(task)

  • How can I download and view a pdf with iphone?

    How can I download and view a pdf with iphone?

    If the PDF is an email attachment, you can view it by tapping on the attachment icon while you are viewing the email message. Another option is to set up a dropbox account and then use a computer to drop the PDF into your account. Install the iOS dropbox app and you can view PDFs there that way.

Maybe you are looking for

  • Mac Pro 2.66 Dual Core Intel Xeon (April 2007) - Hard Drive Upgrade

    My hard drive is making rather worrying clicking noises so I think it's time to (very quickly) pick up a new drive. I'm a little confused about what kind of drive I should order. The drive it came with is a Seagate Barracuda ATA. Would anyone be kind

  • Resetting Check Payment

    Hi Gurus, I run the automatic payment and the documents are generated and because of the check printed incorrectly, they are trying to reverse the document. and while reversing the document it gives an error "Use the transaction for resetting check p

  • PO Collab using PORDCR1 : Unable to trigger outbound Idoc on PO Change

    Hi All, I have done the following config for sending PO's from ECC to PI: a. Message Determination: Application = EF Output Type = BAPI Program = BUS2012_ICH_R3 Form Routine = SEND_PORDCR1 Transmission Medium = 8 (Special Function) Dispatch Time = 4

  • Free music

    I want to get the shuffle.  How do I get my Pandora music into my itunes library to play on a shuffle?

  • Split contents in a row

    SQL> select edcd_emp_code,edcd_title_name,edcd_param_value from employee_deschange_details   2  where edcd_emp_code =0002108   3  and edcd_code='PWI'; EDCD_EMP_CODE                         EDCD_TITLE_NAME