Wrong duty cycle (pci 6014 and bnc2110)

Hello,
I want to generate a square signal with labview 7.0, pci 6014 and bnc 2110. I attached my VI . The duty cycle works properly for instance for 10%, 20%, 30% (I suppose that it works because when I anlyse the signal: some pulse seams to not appear ) . BUT when I change the duty cycle constant to 15%: the output is again 20% and not 15%. It's the same case for 17%, 18%....
I really need to create square signal with a perfect duty cycle.
Do you know where is the problem?
Thank you 
labview 7.0
Attachments:
Untitled41.vi ‏310 KB

I found the problem for missing pulse: it's the while loop. I delete it and add more samples.
The duty cycle works now due to the precision of the "simulate signal"
labview 7.0

Similar Messages

  • Eeprom address and caldacs model/address for pci-6014 and pci-6733

    I have one pci-6014 and one pci-6733.
    I need to transfer the calibration constants from eeprom to caldacs.
    I search the adrress of the constants in the eeprom and the model and address of che caldacs.
    Tanks

    Hello,
    It seems to be a common mode voltage or ground loop problem.
    When you are sourcing an output signal from your DAQ board, the signal is already grounded, it means that it has already a reference. If you measure this output with a measurement device, which has also a ground, the both ground potential are not necessary equal. This difference is the common mode voltage and influences your measurement (offset).
    Please check the following links to have more detail about grounded signal.
    http://zone.ni.com/devzone/conceptd.nsf/webmain/8D​907374C5E867F186256C640059F30C?opendocument
    http://digital.ni.com/worldwide/france.nsf/webtech​supp/0E6A8D5999CEE1AF8025683C0056A4B1?OpenDocument​&node=163080_f
    Best regards,
    Alexandre D
    National Instruments

  • PCI 6014 and BNC 2110 digital output

    Hi,
    I try to use PCI-6014 through BNC-2110 to giving on a digital output 5V.
    Please give advice or examples.
    Thanks

    First, there's the Getting Started with DAQmx. Then on the Measurement I/O>DAQmx palette is the DAQ Assistant. Also, open the example finder and from the main tab, go to Hardware Input & Output>DAQmx>Digital Generation. The simplest examples are Write to Digital Port and Write to Digital Line.

  • Bought wrong e-SATA PCI Card and seek advice on the right one to buy

    I have a MacPro bought in 2006 with Intel Processor but still having the old MAC OS X 10.4.11 Tiger version.
    I bought an e-SATA PCI card : http://eshop.macsales.com/item/Newer%20Technology/MXPCIE6GS2/
    But I realised first that I could not insert it. The distance between the slots in the mother board and the external exit whole to fix the card and not compatible (card too short). Furthermore the card specs says that it requires max OS 5 version or later.
    So what do you recommend that would go physically in the slot and at the same time fitting with my MAC OS 4.11 version ? This card is to be used to connect external drives suing e-SATA connections.

    Nothing wrong with using that card in your Mac Pro. The card will fit in your MP's slots, so if you are unable to seat it then you aren't doing something correctly. The specs say the card is backward compatible with PCI-e 1.0 slots.
    You will have to upgrade your OS to the requisite version. Given the cost of Leopard you may wish to instead upgrade to Snow Leopard.

  • How can I measure a 0% or 100% duty cycle signal ?

    I want to measure the duty cycle of an input signal using a counter of a 6030-E board.
    I work with a PXI Rack under Labwindows/CVI.
    My program already works properly for duty cycle between 1% and 99%, but it is not able to detect 0% duty cycle (ie : signal to ground), nor 100% duty cycle (ie : signal to power supply).
    The problem is I don't understand how the counter works in such a situation (it cannot detect any edge, as long as the signal is continuous 0V or continuous 12V).
    Please have a look on the following code :
    1- First, the counter is configured
    // Reset Compteur
    i_Status = GPCTR_Control(iDevice, iCptID, ND_RESET);
    //Definition du type de mesure du compteur (mesure temps impulsion)
    i_Status = GPCTR_Set_Application (iDevice, iCptID, ND_SIMPLE_PULSE_WIDTH_MSR);
    //Definition de la vitesse d'echantillonage (20 Mhz)
    i_Status = GPCTR_Change_Parameter(iDevice, iCptID, ND_SOURCE, ND_INTERNAL_20_MHZ);
    //Definition du signal a mesurer (defaut)
    i_Status = GPCTR_Change_Parameter (iDevice, iCptID, ND_GATE, ND_DEFAULT_PFI_LINE);
    // initialisation du compteur
    i_Status = GPCTR_Change_Parameter(iDevice, iCptID, ND_INITIAL_COUNT, 0);
    // Preparation du compteur avant de l'armer
    i_Status = GPCTR_Control (iDevice, iCptID, ND_PREPARE);
    2- Then, every 10 ms, the value of the counter is read, so that I can calculate the duty cycle...
    i_Status = GPCTR_Watch(iDevice, iCptID, ND_COUNT, ul_val_cpt);
    3- ...and the counter is armed again for the next reading
    i_Status = GPCTR_Control(iDevice, iCptID, ND_ARM);
    When duty cycle changes from x% to 0% or 100%, the counter always keep the value corresponding to x%.
    Even if I reset the counter between each measurement, it keeps this value ! I don't understand how it is possible.
    How can I know that the counter didn't see any edge, and so that duty cycle is 0% or 100% ?
    Thank you in advance for your help !
    FraB

    Hi,
    Just have a look at this link, it can be interesting for you...
    http://forums.ni.com/ni/board/message?board.id=40&message.id=2161&requireLogin=False
    Regards
    DD

  • I am working with the NI PCI-5411 AWG in arbitrary mode. How change the duty cycle of the square wave output located at the Sync connector by software?

    We use Labview 7.0 and NI fgen 2.1 in order to drive the pci card.Can you send me a VI example?

    Hi LtDel,
    To achieve this you will need to insert an niFgen property node from the niFgen functions palette into your code flow somewhere in amongst the configuration vi steps. Wire up the reference and error inputs and outputs. Left click on the "property" and select >>output attributes>>sync duty cycle high. Right click and set to "write" then wire in a control or constant defining the % duty cycle for the high phase.
    Hope this helps,
    Nick

  • Problem to measure 0% and 100% duty cycle of a PWM.

    Hi,
    I am using counters of USB-6341 to measure duty cycle of PWM just by following the example 'Meas Duty Cycle-Buffered-Finite.vi'. It works almost all the time. However, when the duty cycle of a input pwm is 0 or 100%, the DAQ can't read anything, in another word, it can't measure 0 or 100% duty cycle.
    How to modify that?
    Thank you very much :-)
    Nan

    That's the thing about PWMs, you never really know if the PWM is 0% or 100%.
    Let's say we have a 50% duty cycle, at 1/2Hz.  So low for 1 second, high for one second right?  What if we run at 1/20Hz, so low for 10 seconds high for 10 seconds.  Or is this a 0% duty cycle for 10 seconds, and a 100% for 10 seconds?
    A true PWM read will never be 0% or 100% it will just keep waiting until the trigger is seen, and recalculate the frequency and duty cycle of it.  The solution to your problem is for you to define a duration to watch for a change, and if one isn't seen, then you can define 0% or 100% appropriatly.
    So I would recommend taking your duty cycle like you normally are, and then at the same time watch the digital signal for however long you want, if the digital line does not change state, then output 0% if it is low and 100% if it is high and ignore what ever duty cycle you read.  But if the digital line does change state, then use the read duty cycle as the actual value.
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

  • Generate and synchronize 6 digital channels with differents phases/frequencies/duty cycles/...

    Hello,
    For some kind of tests we need to generate, with a 6534 card, 6 signals.
    The 6534 has 32 digital E/S and can go up to 20MB/s !
    Each channel must be independant so that it can have it's own frequency and duty cycle. But for exemple the second channel can be delayed in reference at first channel. I put an image so that you can understand better what i try to do (3 signals are shown but six are needed).
    I see a lot of things on forum that are close to my probleme, but none seems to be as advanced as mine.
    http://sine.ni.com/devzone/cda/epd/p/id/4683 -> 6534 doesn't have timers
    http://forums.ni.com/ni/board/message?board.id=40&message.id=5167 -> Just a phase probleme
    http://forums.ni.com/ni/board/message?board.id=170&message.id=261289 -> Another board
    http://forums.ni.com/ni/board/message?board.id=40&message.id=5090 -> Another probleme
    I contacted NI support, they send me an exemple on "patterns" but it generates frequencies that are multiple of one with no phase consideration or duty cycle.
    Any idea ?
    Thanks in advance for your advice and help.
    Eric.
    Message Edité par Eric31 le 08-10-2007 06:52 AM
    Message Edité par Eric31 le 08-10-2007 06:55 AM
    Attachments:
    Sans titre.PNG ‏8 KB

    At best, that's gonna be a pain in the neck with that board.  If you need very precise timing for freqs, duty cycles and offsets, it gets worse.  If they need to change on-the-fly, it'll be near-impossible.
    1. You can only operate 1 hw-timed digital output task at a time.  So all 6 signals must be part of that 1 task.
    2. Thus, you need to define an output buffer representing the states of those 6 bits throughout your entire generation.
    3. There's a bunch of greatest common factor and least common multiple stuff needed to figure out the right output rate and buffer size, assuming you'll want to regenerate repetitively.  You first need the gcf of all the transition times to come up with the right output rate since all the transitions need to occur on some integer multiple of the output period.   You'll then need the lcm of the 6 signals' periods, combined with the output rate, to size up a buffer that can be regenerated.
    4. Forming the output data array may be quite complex.   Personally, I always do my stuff with raw arrays and I know that interleaving all those signals can be quite tricky, especially if there may be an occasional simultaneous transition.   However, I suppose there's a chance that some of the digital waveform functions *might* make this step a bit simpler.  I just haven't played around with that format much.
    Editorial opinion: Buy a 6602.  You can trigger 6 counters to start with different initial phasing, and will be able to change freq & duty cycle on-the-fly for each one independently.
    Editorial opinion #2: For higher channel count apps, I'd also recommend checking out the DIO-64 board put out by Viewpoint Systems, an NI Alliance partner.  It gives you much smarter hardware-timed DIO.  With the NI board, there can be huge amounts of redundant info in the DO buffer.  If you find that your GCF is 10 microsec, but the time between consecutive transitions is 10 millisec, you'll have to stuff 1000 identical values into your output buffer.   With Viewpoint's board, your data acq buffer *only* contains data at the transition times.  Timing is controlled by delivering a separate array defining the timestamps that correspond to those transitions.
    -Kevin P.

  • Frequency and duty cycle measuremen​t

    Hi Friends,
    Its been very helping from the day 1 i started psoting my questions to this forum...
    Now again its time to seek ur help...
    My req is something like i  have a sound waveform (say a tone) saved as a .wav file.
    Say suppose 1.wav.................
    I need to evaluate this wave at a particular interval and should be able to calculate duty cycle, dB level, output frequency and peak to peak voltage similar to a CRO.
    I already tried with the below VI but its showing for the entire .wav, so need to do some modifications which attains my req, but i am not sure where to kick off....
    So anybody who have worked or developed similar VI in past ,please share your exp's
    Thanking you in advance.
    Cheers,
    Suneel.V
    Attachments:
    Duty_Cycle.JPG ‏91 KB

    Joe/Jeremey,
    I am facing some new issue with the VI,
    Frequency and Duty cycle are coming but the problem is something like the JPG attached.
    Its not frequent and only coming for a particular part of the waveform
    Is it waveform (.wav) dependent, if so let me know how to debug this.
    Attached the VI (modified), snapshot of error and also wavefile (.wav)
    P.S: error coming only when the yellow lines selected to the first quarter of the wave.
    Cheers,
    Suneel.V
    Attachments:
    delete_b.zip ‏12 KB
    Waveform_Extractor_With_Duty-Cycle_July11.vi ‏151 KB
    error_midlevel1.JPG ‏133 KB

  • I want to store the data form the PWM and the value of the changing duty cycle into a file simultaneously and continually

    i want to store the data form the PWM and the value of the changing duty cycle into a file simultaneously and continually but having problem.Please can anyone help out.
    Attachments:
    data.vi ‏60 KB

    Hello,
    Have you looked at the "Write Binary File.vi" and "Read Binary File.vi" examples?
    They give you a good clue as how to write and read arrays to and from binary files.
    For your data it means that you could put the two data items to write in an array and write the array to file, for the read its important to in what sequence the number were written to file.
    Kind regards,
    André
    Regards,
    André
    Using whatever version of LV the customer requires. (LV5.1-LV2012) (www.carya.nl)

  • How the duty cycle is calculated by Timing and Measurement.vi

    I am using the Timing and Measurement express vi(LabView8.0 is used) to measure the Duty cycle and frequency. I want to know how the same is calculated by the Timing and Measurement express vi. Please reply.

     The Timing and Measurement Express VI uses \vi.lib\measure\mascope.llb\Pulse Measurements N chan.vi to do the Duty Cycle and Frequency measurements. 
    Help says the following about this VI:
    Accepts a periodic waveform or an
    array of periodic waveforms and returns the period,
    pulse duration (pulse width), duty cycle (duty
    factor), and pulse center of a selected pulse and period.
    Refer to the Pulse and Transition Measurements VI in the labview\examples\measure\maxmpl.llb for an example of
    using the Pulse Measurements VI.Maybe NI can explain the algorithm.
    Hope that this helps,
    Bob Young
    Bob Young - Test Engineer - Lapsed Certified LabVIEW Developer
    DISTek Integration, Inc. - NI Alliance Member
    mailto:[email protected]

  • How to generate a pwm whose duty cycle has to be varied depending on the frequency of the input trigger??

    Sir/madam,
    I am quite new to the Labview FPGA module. 
    I am currently working on an application where i have to generate a pwm to control the ON time duration . The pwm ON time depends on the frequency of an input signal.I want to retrieve the ON time value from a lookup table which contain the duty cycle values for the pwm at different frequencies of the input.This input also has to work as a trigger. The input is pulsed and the trigger has to generate the pwm at every rising edge. I am using a PCI 7831R-  RIO series. I am urgently in need of some help and i have hardly a  couple of weeks before i meet the deadline.
    I am trying hard to learn the basics from the shipping examples but not able to quite make my vi work. 
    Kindly lend a helping hand and i would be very grateful to anybody who can help. Thanks a lot in advance.
    Do ask in case of any clarifications required. I  think i have explained my problem quite well. 

    Hello Manu,
    You can refer 
    Developing a PWM Interface using LabVIEW FPGA or PWM Output with LabVIEW FPGA
    How this helps.
    Best Regards, 
    Hardik Asawa
    AE
    National Instruments  
    Message Edited by Hardik Asawa on 05-05-2010 12:46 AM

  • Read duty cycle of a PWM with DAQ

    Hi,
    I am doing a test system and I have several signals that control motors. They use PWM with a max frequency of 5 kHz.
    I would like to know if with a USB DAQ or a PCI DAQ for example PCI-DIO96 could I meassure the duty cycle of these PWM signals. I mean I need to meassure with 10kHz at least.
    Which are the read frequency of these systems?
    Due to the high number of I/O to test I am also thinking of using Compact-RIO with different I/O modules. What do you think?
    Thanks in advance

    If your PWM frequency is 5 kHz and you want to measure duty cycle to 1%, then you need timing resolution of 2 microseconds or faster.
    The USB-6343 has hardware timed DIO at up to 1MHz, so it might be suitable.  There are other devices with hardware timed DIO at rates of 10 MHz or faster as well.
    Before you buy, determine how often you need to measure the duty cycle to make sure the data transfer can keep up.  USB can sometimes be a bottleneck.
    Lynn

  • Duty cycle two AO signals with a square wave

    Hello,
    I am running two devices with sending two AO signals (sine wave) out simultanously in my code. I need to duty cycle my signals. in other words, I want to turn ON and OFF the devices continously.In order to do that, I am using a square wave generator with 50% duty cycle. The devices should be running when the square wave has positive values and should be OFF when it is negative. 
    The code almost does that, but it does not seem to be as fast as it is supposed to, based on the square wave's frequency. I was wondering if anyone can help me with this problem. In addition, I am not sure if this is the best method to do that, please let me know if there is a better way. I also attached the VI .
    Thanks,
    Pooya
    Solved!
    Go to Solution.
    Attachments:
    2AOsignal_dutycycle.vi ‏47 KB

    I am using NI-PCI 6071E with BNC 2120as an interface. I am not sure if the problem is the hardware limits. Attahced please find the subvis which I used in my main VI. 
    one of the which has a for loop (duty_cycle.vi) works just fine and the other one (duty_cycle(new).vi), which is the one I am using in my VI, does not. Any thoughts?
    Attachments:
    duty_cycle (New).vi ‏23 KB
    duty_cycle.vi ‏25 KB

  • Duty cycle measurement using RLP

    Hi All,
    I 'm using a PCI-6229 in RTX environment and, I would like to measure a duty cycle.
    Is there any exemple file?
    Your help is welcome
    FV1234

    Hey,
    I would answer this ... 
    Regards
    Richard Keromen
    National Instruments France
    #adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
    >> Découvrez, en vidéo, les innovations technologiques réalisées en éco-conception

Maybe you are looking for

  • Importing and removing photos in Photoshop elements 9

    Hi Im sorry, but i dont completely understand your answer, although it was a little helpful. The first sentence you advised to make sub folders in windows program. Im pretty sure thats what ive done. But i thought it would automatically update to PSE

  • Pages DTP questions from a newbie

    Hello. I'm new to Pages 'page layout' but have used other low-end DTP products on Windows (Serif's PagePlus was pretty good). I'm under pressure to complete a document but can't seem to figure some things out. I hope someone can help with these quest

  • Production State in SWCV SLD WAS 7.0

    Hello, We've just installed PI 7.0 with the new look and feel of the SLD and the Software catalog: SAP_CR, Version 2.9, 06/21/2006. New are the software units -> minor info is given in the documentation. And when creating SWCV in a drop down box the

  • Parameters on a j2me app

    Hi, I must develop a general app to communicate with a PC, this app must be used by several custom programs on the devices. I want to know how can I call to a java app from another app inside a mobile device and send it parameters. For example: From

  • HT1296 My wifi sync is not performing like the instructions.

    Itunes is running on my PC and the ipad is on and plugged into power. It only sinks sometimes, not every time. My Computer is a windows 7 64 bit. (I down loaded and installed the 64 bit versionof iTunes) By the instructions My IPad should appear in t