Use counter to control digital IO?

I'm new to Labview and using a PCI 6010.  I'd like to generate two finite digital pulse trains such that one is in the 'on' position while the other is in the 'off position' and vice versa.  The pulse trains will have the same frequency and opposite duty cycles (ie if duty cycle is 0.2 the other is 0.8).
I've gotten a single pulse train using a counter output and the example Dig Pulse Train-Finite vi, but am having trouble getting the second pulse train.
Things I've tried unsuccessfully:
1. Use DAQ Assistant to generate two pulse trains using two counter outputs, while delaying one train so that they're inverted.
2. Use two counter outputs where one displays the inverse of the other
3. Use one counter to generate pulse, invert pulse, and use a digital output to send inverted pulse
4. Simulate square wave, send to one digital output, while sending the inverse square wave to another digital output.
I would assume that some of these methods are simply not possible, but I'm not sure which to pursue further.  I would appreciate any advice on the simplest strategy to achieve my desired output.  Thanks.

Hello jman1,
Since this was a duplicate post, please refer to the original issue/post included below. For the purposes of making the forums/solutions searchable for the community, please reserve creating new form posts for new issues. Thank you
1. Synchronized finite digital pulse trains: http://forums.ni.com/ni/board/message?board.id=170&message.id=480738#M480738
Regards,
Ali M
Applications Engineer
National Instruments 
Message Edited by Ali M on 03-09-2010 07:43 PM
Message Edited by Ali M on 03-09-2010 07:44 PM

Similar Messages

  • Use computer to control digital piano -- Is this possible?

    I connect my Macbook and Yamaha Clavinova digital piano via USB Midisport interface. It works properly for midi input, that is to say I can play the digital piano and record the musical notes in Garage Band. But when I press play button in Garage Band, no music coming out from the digital piano. The music only comes out from the Macbook loudspeakers. But when I use "Test Setup" in "Audio Midi Setp", the digital piano works (that means the testing sound comes out from the digital piano, which seems to suggest that the connection is proper. Can any expert here teach me how to play Garage Band music via the digital piano instead of the via the Macbook loundspeakers? Many thanks for your help!!

    looks like the web site is no more. fortunately versiontracker still has it listed:
    http://www.versiontracker.com/dyn/moreinfo/macosx/23227
    I telephoned my local Apple Care hotline today
    the person you spoke with doesn't know the difference between MIDI and audio, that would never, and could never, work with any software on any computer.

  • Pci 6132 digital signal using counter

    Hello,
    I want to give digital short pulse (around 10 us) in frequency of 10 Hz.
    i tried to creat digital waveform and to use the wait(ms) sub vi in labview but it's very inaccurate..
    sombody told me to use counter but i don't know exactly how.. i saw some expamle of accuaring sigital signal using counter but o coudnt understand it completly.
    any help by ver appricieate.
    thanks,
    Etay

    Hello, etay23!
    Were you able to check out the example? Do you have any questions for us about it?
    Will Hilzinger | Switch Product Support Engineer | National Instruments

  • I need to program a Hittite Fractional​-N Synthesize​r Evaluation Kit with a HMC702LP6C​E an external YIG oscillator​. Not sure how to use Labview to control the PLL.

    I need to program a Hittite Fractional-N Synthesizer Evaluation Kit with a HMC702LP6CE an external YIG oscillator.  Not sure how to use Labview to control the PLL.

    Here is how to use the PLL. But I don't know of how to interact with that device
    http://zone.ni.com/devzone/cda/tut/p/id/3781
    And for thouse who don't know what a PLL is a free bonus link is here:
    http://digital.ni.com/public.nsf/allkb/07BC8D77D4E​9AE258625708B007CE74F?OpenDocument
    and a second one on what that device is: http://www.hittite.com/products/view.html/view/HMC​702LP6CE
    Now we are all caught up to speed.
    Sam S
    Applications Engineer
    National Instruments

  • Using counter to time stamp to text file

    Dear all,
    I am using counter to acquire singnal from quadrature linear encoder. I would like to time stamp the data acquisition to text file but I found that I can't choose to read time. Anyone know how to solve this problem?
    Attachment is my program.
    Thank you very much!
    Best regards,
    George
    Attachments:
    encoder continous 21-4-2013.vi ‏28 KB

    Hi,
    Have you seen these two articles?
    http://digital.ni.com/public.nsf/allkb/68806B93A21​355E98625726F0064822B
    http://digital.ni.com/public.nsf/allkb/5D42CCB17A7​0A06686256DBA007C5EEA
    Basically, it can be done, but be aware it may not be as accurate as you would like.  Follow the code in the first article and note that the easiest way would be to just use the basic File I/O VIs to write to text file, since the Write to Measurement File VI will only work with waveforms and you have counter output.
    Matt Lee
    National Instruments
    Applications Engineer

  • Use timing measured using counter 1 to set the pulse width on counter 2

    I am measuring time between 2 edges on counter 1.  I want to be able to generate a pulse on counter 2 that is dependent on the time measured by counter 1.  The delay on counter 2 is a multiplicative of the time measured on counter 1. Is this even possible?

    Hi Thaison V,
    I am using a PCI 6251 M series card and using DAQMX.  Your assumptions are alomost correct.  I am using a period measurement to measure time in between two leading edges on counter 1 inside a while loop.  I had set up the second counter to generate a single pulse on each trigger (retriggerable digital trigger) inside the same loop and update the low time of the pulse using the channel property.  There seems to be a 2 iteration delay between when counter 2 catches up with time measured on counter 1 time.  I believe this is because the pulse is already generated before the vaule is measured on counter 1.  I suppose if I can use counter write after the counter 1 is read out it might work, but I haven't figured out how to use DAQMX write to write a single pulse ( it works only for pulse train??).
    thanks for your help
    V

  • Run time error when calling Start() method from an Output counter user control in my class.

    I am new to DAQmx and .NET.
    In my application I need to activate a clock out on counter 2 (HW pci 16 E 4).
    I went through all the steps like the sampling examples but instead of Analog input
    I used counter output , and setup the pulse ratios.
    When I click the switch in the user interface ( a user control databinded to the clock output)
    the output works. Since I need to activate it programmatically I tried to call the daQmxUserControl11.Start()
    method but this causes the following error :
    An unhandled exception of type 'NationalInstruments.DAQmx.DaqException' occurred in nationalinstruments.daqmx.dll
    Additional information: Specified operation cannot be performed while the task is running.
    Task Name: DAQmxTask1
    Status Code: -200479
    Any ideas on what am I doing wrong?
    Thanks David

    Thanks a lot,
    I also discovered that dragging the user control onto my user interface doesn't allow alternate activation.
    ( I actually tried stopping and then starting but the result was the same )
    Calling the routines as indicated in the header comments also gave some hiccups ( I had to remark some code to get the system working progrtammatically.
    public void Start()
    #region Update UI
    this.switch1.Caption = "On";
    this.switch1.Value = true;
    #endregion
    daqmxTask.Start();
    public void Stop()
    #region Update UI
    this.switch1.Caption = "Off";
    this.switch1.Value = false;
    #endregion
    daqmxTask.Stop();
    #region Methods

  • Problem  to access my count in adobe Digital Editions

    Dear,
    I`ve problem to access my count in Adobe Digital Edition, I bought an eBook in pdf format and when try read it, ask me to get in for  my ID and password ind Adobe Digital Editions,  report that there is another user use my licence.
    Thus, I know that I`ve got 6 licence  for Adobe Digital Editions.

    Adobe ID, sign-in, and account help

  • MG3100 scanner- can I control digital rights on the output pdf to enable comments?

    MG3100 scanner- can I control digital rights on the output pdf to enable comments?
    Solved!
    Go to Solution.

    Hi fassettj,
    Enabling comments on PDFs created with your PIXMA MG3100 is not supported using the software bundled with your printer.  For these features, it is recommended that more full featured PDF creation software is used, such as Adobe Acrobat.  For more information, please use the following link:
    http://www.adobe.com/products/acrobatstandard.html
    Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.

  • Can the USB NI DAQs be used for process control,eg.closed loop? or is too fast

    can the USB NI DAQs be used for process control,eg.closed loop? or is too fast.

    Hi mho,
                 1.usb is very high speed that is correct.Better you can choose PCI DAQ.But thats upto you.
                 2. see this:-
                 http://sine.ni.com/nips/cds/view/p/lang/en/nid/14136
                3.If Matlab support TCP/IP, that could be an option.
                   see Another idea: http://digital.ni.com/public.nsf/allkb/244A37667BD7CBCE86257520007F937B
                   Another simplest way to do it (assuming you running Windows) is to use a Matlab script.
                  If both programs running on different systems:-
    Most simple and slow - Create two  VI's  with shared variable on both machines, and use a matlab script to
    share data. (this makes matlab some kind of "slave").
    More advanced but still  relatively slow (Create two  VI's  with shared variable, on the Matlab machine build the .NET
    dll, and it can be used on Matlab too ( at least at 2010b version, earlier version support only COM).
    Create TCP/IP connection between two comps.
    There is "out of the box" NI products, that communicate with Simulink models.You please do a simple search on that...OK
    I think this link is also helpful for you:-
     Procedimiento para la interface entre LabView 2009 y Matlab 2009b.pdf 1128 KB
    Anyway All the best.Try....do it.
    Thanks as kudos only

  • I have to use count function  in "if-else" condition in rtf tempelate

    I have a nedd to use count fucntion in my rtf fucntion in IF-ELSE condition like this :
    if
    (count INVOICE_LEVEL from xml where (INVOICE_LEVEL=SM_SUMMARY_LEVEL)) =  (count coloumn_A from xml ) --- if the count matches
    THEN print "NO DATA FOUND"
    else --- if not
    end if ;
    --------XML------
    <COMP123>
       <SM_SUMMARY_LEVEL>2</SM_SUMMARY_LEVEL>
      <SM_CHARGE_HEAD>2</SM_CHARGE_HEAD>
      <INVOICE_LEVEL>2</INVOICE_LEVEL>
      <RCVR_ADDRS3_PART1>SG</RCVR_ADDRS3_PART1>
      <RCVR_ADDRS3_PART2>ASIA ,</RCVR_ADDRS3_PART2>
      <TXN_CSTMR_REF>ABC-DEF</TXN_CSTMR_REF>
      <TAX_ID>PCT-ID</TAX_ID>
      </COMP123>
    <COMP123>
       <SM_SUMMARY_LEVEL>2</SM_SUMMARY_LEVEL>
      <SM_CHARGE_HEAD>2</SM_CHARGE_HEAD>
      <INVOICE_LEVEL>2</INVOICE_LEVEL>
      <RCVR_ADDRS3_PART1>SG</RCVR_ADDRS3_PART1>
      <RCVR_ADDRS3_PART2>ASIA ,</RCVR_ADDRS3_PART2>
      <TXN_CSTMR_REF>ABC-DEF</TXN_CSTMR_REF>
      <TAX_ID>PCT-ID</TAX_ID>
      </COMP123>
    can any one help me to write the correct syntax and logic for this .
    THANKS!

    I am using the below way but it is not working as desired it is always printing the derived value.
    <?xdofx:if (xdofx:round((to_number(to_char(SYSDATE,'JSSSSS'))-to_number(to_char(to_date(DOB_DATE, 'YYYY-MM-DD'),'JSSSSS'))) div 100000)) <= 30 then '(1-30)' else '(1-100)' end if?>
    Let me know if i missed anything..
    Thanks,
    Jana

  • How do I use count for this query?

    How do I display all the addresses in a table that have more than one (or >1) account number? I wasn't sure how or if I should use count along with group by and having to get the expected results.

    select address from tablename
    group by address having count(1) > 1;

  • How can I use LabView to control Altera Scripting

    Hi
    I have kind of run into a stone wall. I am building a production test executive based on LabView. Part of this process includes loading an FPGA image on to a CFI flash that is in the JTAG chain. I am trying to make so that the production operators don't have to open a second application, select the right FPGA and Flash navigate to the file then load it, then go back to LabView and run the rest of the tests.
    Altera has a command line interface that will let me load .cdf file.  The problem is that nowhere in Altera’s documentation does it show me how to first load the “Parallel Flash Loader IP” into the FPGA. The flash loader acts as a temporary bridge between the JTAG input and the CFI Flash.  I have looked on Altera’s Forums and have had an open ticket with Altera’s support engineers for more than a week.
    I can’t be the first person to want to do this; I am hoping someone here has done it before. I would really rather not try to use the activeX controls to manipulate the windows based program.
    Any suggestions would be greatly appreciated (Note I am not trying to put LV code on the FPGA/Flash just use LV to control the process)  
    Thanks in advance
    Below is the error message and the script I am using. It almost works just missing the flash loader IP
    C:\altera\12.1sp1\qprogrammer\bin>quartus_pgm -c USB-BLASTER -m JTAG  S_FPGA.
    cdf
    Info: *******************************************************************
    Info: Running Quartus II 32-bit Programmer
        Info: Version 12.1 Build 243 01/31/2013 Service Pack 1 SJ Full Version
        Info: Copyright (C) 1991-2012 Altera Corporation. All rights reserved.
        Info: Your use of Altera Corporation's design tools, logic functions
        Info: and other software and tools, and its AMPP partner logic
        Info: functions, and any output files from any of the foregoing
        Info: (including device programming or simulation files), and any
        Info: associated documentation or information are expressly subject
        Info: to the terms and conditions of the Altera Program License
        Info: Subscription Agreement, Altera MegaCore Function License
        Info: Agreement, or other applicable license agreement, including,
        Info: without limitation, that your use is for the sole purpose of
        Info: programming logic devices manufactured by Altera and sold by
        Info: Altera or its authorized distributors.  Please refer to the
        Info: applicable agreement for further details.
        Info: Processing started: Thu Oct 03 18:16:53 2013
    Info: Command: quartus_pgm -c USB-BLASTER -m JTAG S_FPGA.cdf
    Info (213045): Using programming cable "USB-Blaster [USB-0]"
    Info (209060): Started Programmer operation at Thu Oct 03 18:17:19 2013
    Error (209062): Flash Loader IP not loaded on device 1
    Error (209053): Unexpected error in JTAG server -- error code 5
    Error (209012): Operation failed
    Info (209061): Ended Programmer operation at Thu Oct 03 18:17:21 2013
    Error: Quartus II 32-bit Programmer was unsuccessful. 3 errors, 0 warnings
        Error: Peak virtual memory: 376 megabytes
        Error: Processing ended: Thu Oct 03 18:17:21 2013
        Error: Elapsed time: 00:00:28
        Error: Total CPU time (on all processors): 00:00:03
    Solved!
    Go to Solution.

    Hi Eric,
    I got it figured out today, basically you have to load the Parallel Flash Loader first into FPGA ram. It is a special .sof file (pfl_epXXXX.sof) based on your FPGA. Code is actually pretty straight forward, using the Sys Exec VI. Use the windows based programmer to generate the .cdf file that identifies your FPGA, attached Flash and .pof file .
    Syntax was odd going into Sys Exec. Note the extra "C" in in front of the "quartus_prm.exe" I have no idea why that was needed, but I was getting an error until I just happened to put it in there (Blind Luck :-))
    I used a 2 element array going into a four loop
    cmd /cquartus_pgm.exe -c USB-BLASTER -m JTAG -o P;pfl_epXXXX.sof
    cmd /cquartus_pgm.exe -c USB-BLASTER -m JTAG S_FPGA.cdf
    Defining the working director C:\altera\12.1sp1\qprogrammer\bin
    And added match string with "Successfully performed operation" on the output in the loop to make sure everything loaded correctly then adding the array to give me a overall P/F
    To anyone doing this same thing Altera's documentation is poor to say the least. It took most of a week to figure this out Not allowed to upload code, so anyone wanting details just post here and I will try to help. This was painful, with lots of lessons learned.
    Thanks for the interest though
    Best regards John

  • How can I Use the iCloud Control Panel to pick a new folder

    I apparently moved or deleted my iCloud folder and keep getting this message Use the iCloud Control Panel to pick a new folder.  How do I do this?

    I have/had the same problem, just started this morning. I tried a system restore to a known good date. I still had the problem so I rolled restored the system to the latest.
    Thinking that it might have something to do with priviliges, I reviewed my user account and noticed it was set to "Administrator". On a whim, I switched my user account from administrator to "standard user" and I'll be... the issue dissapeared. I have no idea why. But I thought I'd pass it along.

  • Can I use ARD to control my mac with Back to my Mac service?

    Can I use ARD to control my mac with Back to my Mac service?
    The with Back to my Mac service on you see your mac in the Shared column, hit Share Screen & your good - on ARD I don't see my remote Mac listed anywhere in that program.
    Thanks

    ARD, to the best of my knowledge, does not work via Back To My Mac. Certainly it's not an direct or obvious feature, though I can't say that there might not be a workaround I've not heard of.

Maybe you are looking for

  • Canon 400D RAW & Image Capture & raw image update - Fail

    I got my macbook pro about a month ago and of course was anxious to try out my camera ( Canon EOS 400D). I'm using RAW images. It worked fine. No problems. But then comes the update a week or two ago. Of course I download it, it's an update... What c

  • I've been a GCU member for awhile. Forgot about the 3 game limit. How can I fix it?

    I've been a GCU member for over 2 years. I forgot about the purchase limit on new games. I grabbed 4 copies of a game yesterday, and they shipped today. At some point today while I was spacing out I remembered about the limit for the program. What ca

  • Why doesn't setup assistant see my backups?

    So after a couple of days trying, I decide to just ask you guys myself, so here's the problem: I bought a new 1TB hard drive to install in my MacBook pro 13" mid 2009, running on Moutain Lion. After succesfully replacing I decide to use a time machin

  • How to make this script work

    Help me to make this script work, please! function(){ app.findGrepPreferences.firstLineIndent  = "8 mm"; app.findGrepPreferences.leftIndent  = "8 mm"; app.changeGrepPreferences.firstLineIndent  = "8 mm"; app.changeGrepPreferences.leftIndent  = "16 mm

  • Acrobat reader not compatible with windows 8

    i can not open a program, because it says acrobat 5 is not compatible with windows 8 what to do?