How do I export a counter from a task with multiple counters

Hi All,
I have a quadrature output VI that works 100%, outputting the frequency on the default pins (I'm using a NI-6284, so the default CTR0 and CTR1 pins are PFI12 and PFI13). During my development, I made a silly mistake and routed the encoder pins to PFI 12 and PFI14.
What I need is to move the signal from the PFI13 to PFI 14, which is supposed to be simple.
I've tried a few ways of doing it, including DAQmx dis/connect terminals (very clunky),  and DAQmx Export Signal which gives me trouble because there are two counters in the task and the function can only export 1 counter.
Please take a look at the attached VI and let me know what solution I should implement.
Best,
Adrian

Hi S,
Thanks for the reply. I also came to that page, which is helpful.
What I've ended up doing is using the counter property node to specify the output pin of the counter that I need to move, and left the other counter at the default.
I'm not sure if this is the best or most elegant solution, but I haven't had any problems with it as yet.
I was hoping to hear from the community what the safest and most elegant solution would be, as the "Export Signal" VI looks like quite a nice option, but may well be overkill for my purposes.
Thanks!

Similar Messages

  • How to write to one channel of a task with multiple channels? (plus other things...)

    So I have a USB-6009 DAQ.  It has 12 digital output lines.  I want one channel that is "Dev0\line0:10" which represents an address bus in my application.  And a second channel "Dev0\line11" which represents a program enable line in my application.
    I have tried creating two different tasks and adding one channel to one task and the other channel to the other task.  The only task that worked was the task with "Dev0\line0:10".  It was always the task containing that channel, regardless of the order of creation.  So then I moved on to a different method.  (I read somewhere that I should only create one task of each type.  like only 1 DO task only 1 AO task etc...  However I am also using the two analog ouputs to and have a task for each AO and they work just fine.)
    I tried add both channels to one task.  But when I needed to control only the address bus, I had to have some information for the other channel as well.  This was a little trying, but I could configure it that way.  But it turned out to be easier for me to just make one channel with all the lines and OR in the data for line11 with each write.
    I just wondered if it was possible to write to one particular channel of a task and not the other channel?  That would really be the ideal solution for me.  especially if I could write multiple samples to the one channel while I left the other channel alone.  Which brings up another complaint... Why does WriteMultiSamplePort only work if I use a DigitalMultiChannelWriter, and not if I use a DigitalSingleChannel writer even though my task only has one channel (and by the way I set up the channel as one channel for all lines)?  A perplexing issue to be sure.
    And no I can't just load all my samples into an array and write them all at once because I also have to manipulate the two analog outputs in between the various digital writes.
    I am using NI DAQmx 7.5 and C#.  I am trying to use the DAQ to program a digital switch, which has proven to be a real challenge.  In push-pull mode there is too much ringing for the switches programming port to tolerate.  But the switches interface is LVTTL, so I needed the 3.3V.  When I changed to open-collector I had to use voltage dividers to drop down to 3.3V.  But the rise time using open-collector is too slow for me the program the switch in serial mode, so I had to change to parallel.  The switch has an 11 bit multi-plexed ADDR/DATA bus.  So the DAQ I had chosen to use which had plenty of lines for the serial programming, now is strained to it's absolute limits by the parrallel interface.   ARGH.  The only output I am not currently using is the counter, and I'm going to need it if I ever want to read back from the switch.  But first I have to seperate the ADDR/DATA bus from the CS line on the DIO lines of the DAQ.  And I don't know for sure what I'm going to do about the voltage level translation when I have to go bi-directional.  Maybe I can filter out the ringing in push-pull mode?  Any thoughts on that?

    Hi Saikey,
    In most cases, you are exactly right: you can only use one task for one type of operation (i.e. only one analog input task in the same program). With the USB 6009, you can have multiple digital output tasks running at the same time. I was able to run a digital output program with two different digital output tasks configured for a USB-6009.
    However, you stated that it would be better if you had everything in a single task for your application and write data to only some of the channels. The easiest way to do this is to modify your array of output data so that only the data to that one channel is changing. So, for example, if you keep writing a 0 to the channels that do not need new data nothing will change.
    If you have to change your analog outputs during this program, you could create an event structure that would stop and restart the analog output tasks without changing the digital output data. I hope that you find this information helpful.
    Regards,
    Hal L.

  • How to insert records in database from a dataset with multiple tables

    Hi,
    I'm struggling with the following problem:
    I have saved a dataset to an XML file by executing the following statement:
       ds.WriteXml( "Export\\ModuleChain_Mdata.xml" );The dataset, ds, includes records from several tables.
    Is there an easy way to retrieve those records to the database, I.E inserting them again?
    regards Peter

    you can try Associative Arrays:
    http://www.oracle.com/technology/oramag/oracle/07-jan/o17odp.html
    you need to convert yore DataTables to array first and than pass them in to the associative array procedure.

  • How do I export a video from my iPhone to a friends computer?

    How do I export a video from my iPhone to a friends computer?

    Same as you would from any digital camera:
    iOS: Importing personal photos and videos from iOS devices to your computer

  • How can I export a slideshow from iPhoto to iMovie 09.  I try but it only lets me import 211 out of the 311 photos I have in the slideshow.

    How can I export a slideshow from iPhoto to iMovie 09.  I try, but it only exports 211 out of the 311 photos I have in the slideshow I made on iPhoto.

    how do i change the format to the right one?
    Before you can decide what to do, you have to know what you are starting with. Sony MPEG-1 files would be converted one way while DivX or WMV files would likely be handled in another. Extraneous tracks can be removed directly with QT Pro but if you don't have QT Pro then there may or may not be other work around possibilities depending on the specific audio and video compression formats in use. The best place to start would normally be to double-clic the source file in iPhoto to open it in the QT Player. When it opens in the QT Player, check the "Inspector" window to see what it says on the "Format:" lines. This will tell you the type of audio and video content you are dealing with here. Then come and tell us so we can offer some specific conversion solutions.

  • How can I export a slideshow from iPhoto 9.5.1 ..........

    How can I export a slideshow from iPhoto 9.5.1 as Quick Time Movie? It exports now as m4v.

    That's a Quicktime movie these days. What format did you want?

  • How can we export the data from OAF Page to Excel instead of .csv or .txt

    Hello,
    How can we export the data from OAF Page to Excel instead of .csv or .txt
    When i click on the export button it is exporting to txt file, But i need to export the data into Excel by default
    Please help me
    Thanks in advance
    Thanks,
    Raju
    We have changed the below profile option to get the data in excel by default
    Profile Name Export MIME type
    Profile Code FND_EXPORT_MIME_TYPE+
    Existing Value: text/tab-separated-values+
    Change as: Excel
    Thank you,
    Raju
    Edited by: 1006649 on May 21, 2013 10:55 AM

    We have changed the below profile option to get the data in excel by default
    Profile Name Export MIME type
    Profile Code FND_EXPORT_MIME_TYPE+
    Existing Value: text/tab-separated-values+
    Change as: Excel
    Thank you,
    Raju

  • HT2203 How do I export a file from the new iMovie 10.0.2 to iPod size?

    How do I export a file from the new iMovie 10.0.2 to iPod size? I used to be able to do this and it would save as a m4v file but I can no longer do this and the files are too big.

    iTunes: May be unable to transfer videos to iPhone, iPad, or iPod
    iTunes: Frequently asked questions about viewing and syncing videos
    You may need a third-party computer app like HandBreak. That one is free and has preset outputs for iOS devices

  • How do I export the music from my itouch when I have recently lost my computer and cd's?

    How do I export the music from my itouch when I have recently lost my computer and cd's?

    Syncing to a "New" Computer or replacing a "crashed" Hard Drive: Apple Support Communities

  • How do I export a project from Final Cut Pro onto my desktop?

    How do I export a project from Final Cut Pro to my desktop as a movie?

    Can anyone please help me.. when I click on my timeline in my project library and try to export movie nothing happens! and when I  try to "share" to youtube I get an error message stating that it cannot be exported because it contains "no video"... The 4 minute music video that I've created with shots off my Canon T2i looks and plays great....If I uploaded the videos into Final Cut but did not save them on my desktop or anywhere else on the Mac would this be a reason to get this message? I have never experienced this before...the only option under "share" that works is "email"
    [email protected]

  • How can I export my configuration from MAX to another automation system through NI-DAQmx

    Hi,
    has someone of you an idea how i can export my configuration from MAX to another automation system through NI-DAQmx?
    We created a dll for the communication between the AUSY (not LabVIEW) and NI-DAQmx. The export file .nce is not in ascii format, so we can't use it or is there a way of solving our problem with it?
    Thanks for helping me
    Eddy

    I recently came across this, does it help at all?
    http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3E7E556A4E034080020E74861
    ~~~~~~~~~~~~~~~~~~~~~~~~~~
    "It’s the questions that drive us.”
    ~~~~~~~~~~~~~~~~~~~~~~~~~~

  • How do I export video files from iPhoto to a backup external hard drive for safekeeping?

    How do I export video files from iPhoto to a backup external hard drive for safekeeping?  Each time I try, the video will not play from the external hard drive.

    Use the File ➙ Export ➙ File Export menu option with Kind = Original.  That should get the original video file exported.  Try to export one to the Desktop first and open it with Quicktime Player.  If all goes well export the rest to a folder on the EHD. How is the EHD formatted?  It should be OS X Extended (journaled).

  • I added 2 cd's to itunes 11, I have an ipod classic 30gb, how do I export the albums from itunes to my ipod?

    Hi Ihave an ipod classic 30gb, i imported 2 cd's into itunes on win xp pro sp3, how do I export the albums from itunes to my ipod?

    It depends on how you previously added content to the iPod?  Or are saying the iPod is currently empty, and you want to add these albums to it?
    If you want to sync your entire iTunes music library to the iPod, which may or may not be just these two albums at this point, you can do the following.  Select the iPod in iTunes, so that you see the iPod's "management" screen.  If you are using the latest iTunes 12, you do this by clicking the "device button" on the horizontal bar that goes across the iTunes window (near the top).  The button's icon looks like the connected device.
    On the iPod's screen, there is a sidebar (along left side of window).  In the sidebar, under Settings, click Music.  To the right, the iPod's Music settings screen is shown, where you tell iTunes how to sync songs to the iPod.  Near the top, there is a checkbox for Sync Music.  Check that box to enable automatic syncing.  NOTE:  If that box is not already checked, checking it will replace the iPod's existing content with content from your iTunes library.  Any songs on the iPod now that are not in your current iTunes library will be lost.
    Below that setting, there are two options for how to sync songs.  30GB is a decent amount of storage space, so if your entire iTunes library can fit on your iPod, you can use the option to sync Entire music library.  Then click Apply.  iTunes syncs your entire iTunes music library to your iPod.  Going forward, any changes to your iTunes music library (such as adding more albums or songs) will sync automatically to the iPod, the next time it is connected (or when you click Sync if already connected).
    If your situation is different, please reply back with more details.

  • How do I export my images from iPhoto 9.4, to an external drive?

    How do I export my images from iPhoto 9.4, to an external drive?
    mainly to back them up without using time machine.
    Thanks

    Just the Images?
    File -> Export
    This User Tip
    https://discussions.apple.com/docs/DOC-4921
    has details of the options in the Export dialogue.
    To back up the Library: that is images, organisation, edit history etc etc
    Most Simple Back Up:
    Drag the iPhoto Library from your Pictures Folder to another Disk. This will make a copy on that disk.
    Slightly more complex: Use an app that will do incremental back ups. This is a very good way to work. The first time you run the back up the app will make a complete copy of the Library. Thereafter it will update the back up with the changes you have made. That makes subsequent back ups much faster. Many of these apps also have scheduling capabilities: So set it up and it will do the back up automatically.
    Example of such apps: Chronosync - but there are many others. Search on MacUpdate or the App Store

  • How can I export email addresses from apple mail?

    How can I export email addresses from Apple Mail?
    Just to be CRISTAL CLEAR please don't reply with export instructions from the address book.....not interested in this.
    I have customers that fill-out a request form online, then the data is sent to our database on our server, and another copy is sent to my email account. The server database got corrupted and is now lost. The only data left are in my email app called APPLE MAIL. I have created Filtered Folders so the data is just in one Folder, not mixed with all other emails. Is there a way to export the email names & addresses from APPLE  MAIL to a CVS file or Excel file?
    Again this is not a question related to Apple Address Book. This is ONLY for Apple MAIL exporting!
    Thanks

    There is a collection of AppleScripts called Mail Scripts you can download at this link.
    http://homepage.mac.com/aamann/Mail_Scripts.html
    The script to use from the collection of scripts is Add Addresses (Mail) which adds addresses found in the selected messages (in the header fields "From", "To", "Cc", and "Bcc") to the Address Book. This is much more flexible than the "Add Sender to Address Book" available in Mail and provides a convenient way for creating mailing lists.

Maybe you are looking for

  • Filter a list based on department of current user

    I've created a list with a department field populated from a user named in each item. Is there an OOB way to create a 'My Department' view to show those items where the Department field matches that of the current user? I've tried the Current User fi

  • Pdf documents to be printed appear as a black screen, what setting do i need to alter

    when i attempt ot print a pdf either a doc on the iMac or as a print option from an internet page, the preview displays a totally black page

  • Saving PDF's in CS5 - Mac Intel

    I'm on an Intel Mac, OS 10.6.8, with CS5.  I've been trying to save pdf files, and they seem to save just fine, but cannot be opened in other applications, such as the most current Adobe Reader or Preview. In both cases I get an error document that s

  • Help with deauthorizing computers.

    I have 5 authorized computers on my account however, I only know of 1 that I am presently using.  If I deauthorize ALL my computers and reauthorize the one that I am using do I have to reload everything back onto the account?   Please help....thank y

  • Report Layout Help

    Version 2.0 I have a report that I'm having difficulities in getting a layout for. This report is a sales analysis that can be fiscal or calendar year. The look I'm after is: Account  Nov-05    Dec-05    Jan-06    Feb-06    Mar-06    Apr-06    May-06