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.

Similar Messages

  • Generate two pulses train with difference phase

    Hi'
    Spec:
    LW 7.1
    Daqmx
    NI PCI 6602
    freq 300kHz
    I want to generate two pulses train with two counters with a difference phase between them (change by user)
    Thanks

    Duplicated thread.
    .mrLeft{float:left} .mrInfo{border-left:solid 1px #989898;font-size:x-small;color:#989898}
    Mathieu R.  
      CTD - Certified TestStand Developer / Développeur TestStand Certifié  
      CLAD - Certified LabVIEW Associate Developer  

  • Generate and Save PDF / Append Filename with Username

    When you select a row to download as PDF in FormsCentral response table, and Save As dialog box appears, it would be nice if it appended the filename so we don't have to do this ourselves everytime.  If you forget to append the filename it will use the generic name and overwrite the previously saved file with generic name.  Seems like something Adobe could have easily programmed in, but failed to do so.

    btw:
    Timestamp would mean nothing to me when I receive 200 job applications and can't identify the applicant by filename.  It would look like gibberish at that point.  Also, you can add the option upfront to concatenate fields so later the filenames are appended with 2 fields (for example) that are selected by the form creator as part of designing the form.  In that case, whether it's a survey with 5 generic questions or a 50 question job application, each set of filenames would be unique in its own scenario.

  • Generate complement​ary digital signals with dead time between each pulse and controlled by duty ratio

    I am to generate  two complementary digital signals using NI 9606 conected by RIO Mezannine Card to NI 9683 (Half Bridge DO).
    I am able to generate the signals but I am not able to put dead time between high and low signal and also, low and high signal.
    Requirement:
    (1) When the first signal goes high and the second signal goes low, there should be a controllable dead time.
    (2) Also when the second signal goes high and the first signal goes low, there should be a controllable dead time.
    I am able to do requirement 1, but I am unable to fulfill requirement 2.
    Please have a look at my VI and let me know how to go about satisfying requirement 2.
    Attachments:
    complementary test 2.vi ‏69 KB

    Hi Frank ,
    I have already taken note of the example Tannerite has provided  and have built my vi ( attached in previous post) surrounding that example.
    Now I require to control the PWM duty cycle as you can see from the vi using a knob and that control refers to both the signal 1 and 2.
    Now the signal 1 end and signal 2 generation requires a controllable dead time. Similarly, signal 2 end and signal 1 geneeration also requires another controllable dead time.
    I am able to do either one dead time at a time using delay but not two dead time simultaneously.
    I feel that I have two put the delays at the appropriate data flow point. I am working on that.
    I would really appreciate if you could give some insight on how to solve this dead time issue and generate two complementary waveform with dead times whose duty cycle can be controlled by a knob controller in fronty panel .
    I have also posted the required timing diagram for reference as suggested by Tannerite.
    Best regards.

  • Generate and record sine wave with GB

    Is there a way to generate and record a sine wave with GB? I need to record a 20khz tone and put it to track. Thanks!

    Thanks. The purpose of this was to 'fool' the horrible compressor/encoder over at Youtube. Inserting a 20khz tone in the mix tricks the compressor and effectively bypasses Youtube's butchering device. What I did was downloaded Audacity (free) for Mac. Audacity has a 'generate tone' capability which can be recorded. I then 'exported' my 20khz tone as a wav file and 'imported' same into my GB mix. Et voila! I can now mix my sine wave tone to the specified 'workaround' levels which I had seen posted on the net. ~King

  • New ATA channel with an exclamation point appear in the device manager at each start (when no new device has been installed)

    Good morning,
    My desktop, (Win7 64, AMD cpu/ Gigabyte mother board) , started to generate strange problems such as my laser usb printer not reachable even after disinstal/reinstall.
    I took a look in the device manager, and found 2 ATA channel with an exclamation point, "drivers not found'. I also found a USB universal controller with the same exclamation point and the same error.
    I changed nothing in terms of Bios since the machine was built (AHCI, Raid not active). The main drive is a SSD on primary SATA port, classic drive on the second port.
    I deleted the 3 items, the printer started to work again.  They reappeared after the next reboot.
    Weird thing: it looks like the problems appeared after connecting/disconnecting a Nikon camera to one of the usb port (identified as a mass storage device).
    I ran multiple scans (root) in case a virus would have generated the problem, negative.
    Last point (can't tell if it's related or not), my browsers started crashing randomly.
    Thank you

    Hi,
    I'd ask your question in the Windows forums here:
    http://answers.microsoft.com/en-us/windows
    Or perhaps over in the Win7 IT Pro forum here, since you seem fairly comfortable:
    http://social.technet.microsoft.com/Forums/en-us/home?category=w7itpro&filter=alltypes&sort=lastpostdesc
    This forum is meant for reporting issues with the forums themselves, not product support.
    Good luck.
    Don't retire TechNet! -
    (Don't give up yet - 12,950+ strong and growing)

  • Report generator and timestamp

    I am trying to use the report generator for LabVIEW 6, but I'm not very succesful. The first problem is that I should precisely timestamp the data that I logged. Doing this in LabVIEW is no problem, but when I generate an excel report, all I get is the hour formatted as a decimal. And in excel I do not find how to display milliseconds. I found the precise timestamp on the NI site, and it generates timestamps up to milliseconds. But this is not so bad.
    An other problem is that I do not manage to get a chart going in excel using the report generator, tables go allright, but where do my charts go to?
    Can somebody help me? Tanks!

    I do not have a direct answer to this one but I CAN tell you that if you are finding limitations in using Excel, which seems to be the case, perhaps you should consider DIAdem from National Instruments. It is a techincal Data Management tool that far exceeds excel in Data processing and allows for "Time" channels with the correct formatting. When used in conjuction with LabVIEW it makes a great data analysis package.
    www.ni.com/DIAdem

  • Is DAQmx Read limited to 9 digital channels?

    I'm trying to read multiple digital channels with DAQmx Read (Digital 1D Wfm NChan NSamp). The output the DAQmx Read vi is a 1D array of digital waveforms. If I put that output through Array to Cluster the resulting cluster seems to be limited to 9 elements, data[0] through data[8]. Is the DAQmx Read output limited to 9 digital waveforms? I'm using Labview 2009.
    Solved!
    Go to Solution.

    Converting an array to a cluster to use unbundle to break out the elements of the array is a hack.
    You should be using Index Array to get the elements.  You can resize that function so that you can have additional outputs.  You won't even have to wire up any constants for the indices usually.  The top element will be element 0, the next element 1, element 2, and so on down to the bottom of the function.

  • I am using the PCI-6110E/​6111E with the NI-DAQ software version6.7​.Is there a way to record at the same time analog and digital channels?I​f,ye

    s can I have timestamps for each sample?I mean,is there a notion of time information on this board?Finally,is there a way to know ,in the double buffer's case,the number of samples in the halfbuffer which is not full if the acquisition stops by a trigger?.I am using the PCI-6110E/6111E with the NI-DAQ software version6.7.Is there a way to record at the same time analog and digital channels?If,yes can I have timestamps for each sample?I mean,is there a notion of time information on this board?Finally,is there a way to know ,in the double buffer's case,the number of samples in the halfbuffer which is not full if the acquisition
    stops by a trigger?.
    Thank you for your interest in advance

    s can I have timestamps for each sample?I mean,is there a notion of time information on this board?Finally,is there a way to know ,in the double buffer's case,the number of samples in the halfbuffer which is not full if the acquisition stops by a trigger?.PALE wrote:
    >
    > I am using the PCI-6110E/6111E with the NI-DAQ software version6.7.Is
    > there a way to record at the same time analog and digital
    > channels?If,yes can I have timestamps for each sample?I mean,is there
    > a notion of time information on this board?Finally,is there a way to
    > know ,in the double buffer's case,the number of samples in the
    > halfbuffer which is not full if the acquisition stops by a trigger?.
    Start by looking around the examples that ship with LabVIEW (if you are
    using LabVIEW).
    Also look around zone.ni.com for general data acquisition information &
    examples. A good site.
    Mark

  • How to generate and output 3 TTL square waveforms with different pulse widths using counters of NI 6034E

    Hello
    I just have a few questions.
     I am using the NI 6034E DAQ board in order to
    generate simultaneouly 3 different TTL digital signals, with different
    pulse width, and output these TTL signals to an external circuit that I
    am using for this application.
    The following pattern of the TTL pulses will look like this:
    01010101 01010101
    00110011 00110011
    00001111 00001111
    From
    what I understand,  I have to use the 2 counters, Ctr0 and Ctr1, to
    generate the TTL pulses that I desire, because the DIO lines are
    software timed only and I will not be able to produce a deterministic
    output period using these DIO lines.  Am I correct?    Also, do I have
    to use a separate counter to generate a separate TTL digital pulse.  I
    need 3 different TTL pulses and there are only 2 counters for this DAQ
    device.  The three generated TTL signals will be feed to an external
    circuit.  Concerning the hardware connections for my application, I
    assume that the generated TTL signals will be output from
    GPCTR0_OUT(pin 2)  for counter 0 and GPCTR1_OUT(pin 40) for counter 1
    of the NI 6034E. Is this correct?  Is there any way that these TTL
    signals can be output from three DIO lines(DIO0...2). 
    Here is some code that I plan to use in order to do this:
     #include <NIDAQmx.h>
    static TaskHandle gTaskHandle = 0;
    DAQmxCreateTask ("", &gTaskHandle);
    DAQmxCreateCOPulseChanTime (gTaskHandle, "Dev1/ctr0", "", DAQmx_Val_Seconds, DAQmx_Val_Low, 1.0, 2.0, 2.0);
    DAQmxCreateCOPulseChanTime (gTaskHandle, "Dev1/ctr1", "", DAQmx_Val_Seconds, DAQmx_Val_Low, 3.0, 4.0, 4.0);
    DAQmxCreateCOPulseChanTime (gTaskHandle, "?????", "", DAQmx_Val_Seconds, DAQmx_Val_Low, 7.0, 8.0, 8.0);
    DAQmxCfgImplicitTiming (gTaskHandle, DAQmx_Val_FiniteSamps, 5);
    DAQmxStartTask (gTaskHandle);
    DAQmxWaitUntilTaskDone(gTaskHandle)
    DAQmxErrChk DAQmxStopTask(gTaskHandle)
    DAQmxErrChk DAQmxClearTask(gTaskHandle)
    I believe this code should generate the 3 TTL square waveforms that I want for my application.
    Please provide me with some feedback.  It would greatly be appreciated.
    Thank You

     Hi,
    The NI 6034E is a multifuntion DAQ device, this means you have:
      (2) counters
      (8) DIO lines (software timed)
      (16) AI, single ended
      (0) Analog Output
     You have a couple choices here:
       1. Software timed digital output of all three signals, max 1khz loop rate, non-deterministic.
       2. Hardware timed digital output of 2 signals, max 20Mhz.
       3. Hardware timed digital output of 2 signals and software timed digital output of 1 signal.
       4. Find another NI MIO board such as the NI 6251. This board will do 10Mhz pattern generation for (8) DIO lines.
    For the hardware connection, you are correct, the output for the counters will be taken from pin 2 & pin 40.  Here's the pinout for the NI 6034E for reference:
    The output of the Counters can be routed to some of the PFI's or to the RTSI connector. You can see this in MAX
    Message Edited by Matthew W on 11-19-2007 01:24 PM
    Attachments:
    2007-11-19_131609.jpg ‏61 KB
    2007-11-19_132435.jpg ‏86 KB

  • Show channels with own time channel and different length in one 3D graph

    Hi,
    How can i show channels with own time channel and different length in one 3D graph?
    My consideration looks like this, but i didn't found a solution with acceptable performance. ( i have many channels to merge and many data in them)
    i have 4 Channels 2 with values and 2 with time.
    Example:
    Pair 1:
    1 - 3
    2 - 4
    3 - 5
    4 - 8
    5 - 9
    Pair 2:
    1.5 - 6
    2.3 - 7
    4.5 - 8
    I want than this result:
    1 - 3
    1.5 - null
    2 - 4
    2.3 - null
    3 - 5
    4 - 8
    4.5 - null
    5 - 9
    And
    1 - null
    1.5 - 6
    2 - null
    2.3 - 7
    3 - null
    4 - null
    4.5 - 8
    5 - null
    thanks a lot
    by
    Stefan

    Hi StefanF,
    You need to first create the timebase that you want (in this case with a 0.5 increment) using the "Generate Numeric Channel" ANALYSIS function, then use the resulting time channel in the "Linear Mapping" ANALYSIS function for each of the original channel pairs.
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

  • 40RV525R Will not recieve digital Over The Air Broadcast channels with digital antenna

    Have had this TV for a few years, recently got an RCA digital antenna with a digital amplifier. Plugged it in, ran the auto channel program in the ANT/CABLE input setup screen and it shows no channels or signal too weak. I'm less than 2 miles from a local station's tower. Why can I not get local broadcast channels?

    Hello,
    I doubt your problem is with the television. I recently began using an indoor antenna an found this Web site to be very helpful.
    You may want to run a signal scan and post the results on their forum. I learned a lot by reading forum posts and the FAQ's.
    http://www.tvfool.com/index.php?option=com_wrapper&Itemid=29
    I hope this helps and good luck.
    M

  • Who worked with ICS' Model 4896 GPIB? I can not count the data from the module. Can prompt as it to make. It is desirable with examples (data read-out from the module and data transmission between channels. It is in advance grateful.

    I can not count the data from the module. Can prompt as it to make. It is desirable with examples (data read-out from the module and data transmission between channels. It is in advance grateful.

    Hello. Most of the engineers in developer exchange are more familiar
    with NI products. Contacting ICS for technical support is a better
    course of action.

  • HT201667 I rented a movie through itunes on my ipad and wanted to watch it with friends on a digital projector, but it wouldn't allow me to do it.  Is there any way around this?

    I  rented a movie through itunes on my ipad and wanted to watch it with friends on a digital projector, but it wouldn't allow me to do it.  Is there any way around this?

    The issue was that a dialogue box came up which said that I couldn't play this movie on another device.  I tried playing the same movie on an Tv with an HDMI connection attached to an adapter to the IPad and that worked.  I wonder if the problem is that the digital projector has a VGA connection.

  • Bad Picture Quality On SD Channels With HDMI And Panasonic VIERA 720p LCD HDTV

    I just bought a new Panasonic VIERA 32" 16:9 8ms 720p LCD HDTV TC-L32X1 for my in-laws when they finally had Verizon FIOS brought into their neighborhood last month.
    Install was by the Verizon tech using the HDMI cable I also had shipped to them.
    The HD channels quality is excellent, but the SD quality is smeared -- almost looks like an impressionist painting.
    It is not the TV -- the TV menus are crystal clear, as are the HD channels.
    And, it is not just the broadcast HD -- the DVR box menus are also smeared when viewing as SD channel, as is the guide and the pop up channel info.
    We've tried all the settings on the TV -- Zoom, 4:3, etc.
    The other TV (an older CRT) actually has better SD quality than the Panasonic.
    My research indicates we're not the only ones on FIOS with this problem. Someone suggested using the component hookup rather than HDMI?
    Other say that IMG 1.7 is supposed to solve the problem, that the SD quality was fine before IMG 1.6.
    Any suggestions, solutions, or updates?
    The picture is virtually unwatchable.
    Thank you!

    Here's a particularly relevant post if you don't want to wade through all the above links:
    (http://forums.verizon.com/t5/FiOS-TV-Technical-Assistance/bad-pq-on-std-def-channels/m-p/10917#M5540) -- second to last.
    "Re: bad pq on std.def. channels
    01-06-2009 03:55 PM
    Joe01880 - Being a new customer as of last October, I have never seen anything other than IMG 1.6.  My understanding from other posts is that before IMG 1.6, the SD PQ on an HD box was just fine.  I'm not sure what the complaints/gripes/begs were for IMG 1.6 but it seems to me that, if Verizon knows what changes were made, it should be straightforward to determine which changes caused a deterioration of the PQ.  I think it's been at least 6 months since the first complaints of poor PQ, so I don't really see how anyone can claim that Verizon is in danger of "rushing" an update to address this problem.  I also don't think that a forum topic, no matter how much it complains or gripes, will cause Verizon to rush.  I am much more worried that during a large portion of my 2 year contract that the issue won't be addressed at all, so I'm happy to add my voice to those complaining."

Maybe you are looking for