With the help of the cDAQ timers to repeat an impulse of finite samples clocked by train clock material

Hi all

A complex project I have to implement an interface acquisition of material for a linear motion sensor using the output of the synchronous serial (SSI) commune in the control of the industrial movement. (I have a bit of experience in digital electronics, but I'm new to hardware synchronized timer e/s digital in LabVIEW).

To do this, I need to create a clock timed by the busted hardware signal pulse train TTL. Each burst consists of 25 down transitions, with a period of complete cycle of 2.67 microseconds (375kHz). The output is then held high until the next outbreak, that produce at 1ms intervals.

Using of cDAQ timers and a NI 9401 (based on the example http://www.ni.com/example/30256/en/), I was able to create the pulse train burst as described (see attached image VI). Then I need to configure another timer to set off this explosion to repeat at 1ms intervals.

Someone at - it guidance on how best to accomplish the hardware timing for the repetition of the pulse train?

Any suggestions of alternative strategies or observations about the way that my noobish code is stupid or ineffective are welcome as well!

Thank you!

Hello RyanBiggs,

You will need to perform the following operations based on the code that you have joined.

  1. Set up a second output continuous counter task which will give an impulse to 1000 Hz.
  2. Set up your first task of meter output to start according to the configuration in the first step using the vi DAQmx trigger.
  3. Configure the first task of the meter output to redeclenchables via the property node so that the output meter pulses when he sees a rising from the second task of meter output.

The implementation is shown below.

Kind regards

Izzy O.

Product Support Engineer

NI.com/support

Tags: NI Software

Similar Questions

  • The SD cards are recommended to be used with the cDAQ 9133?

    Embedded controllers that are the recommended type and size recommended SD cards to be used with the cDAQ Win7 9132 and 9133?

    Hardware specifications for two controllers, you will find that the SD and SDHC cards up to 32 GB are supported.  There is no model or brand recommended, but there are 16 GB (783658 - 01) and 32 GB (783659-01) maps available for purchase through the OR.  You can find those listed in the accessories section available hardware user manual.  See the fees section of the controller product page for more details.

    EDIT: Linked to the UNIFIED and product Messaging page

  • I want to build a pc for better video editing with the soft first Adobe pro and Adobe after effect. Should what kind of material I buy for it. If you suggest me pls.

    I want to build a pc for better video editing with the soft first Adobe pro and Adobe after effect. Should what kind of material I buy for it. If you suggest me pls. my budget is about $2500

    You will have problems in the construction of a 99 X system for this budget. You need 32 GB of ram if you do that will be a large part of the cost with DDR4 right now. If you have a room on the X 99 budget would certainly be the way forward. The 5960 X is the best processor out right now but $1100 will probably push your budget. The 5930 K would still work and a much better price for your budget. I suggest: 970GTX with this budget as well. Forget the Xeon V3. They are out of your budget and not worth the price with this budget in mind. You can get a system much better with the I7 Haswell E chips.

    Eric

    ADK

  • buffer size and sync with the cDAQ 9188 problems and Visual Basic

    Hi all, I have a cDAQ-9188 with 9235 for quarter bridge straing caliber acquisition module.

    I would appreciate help to understand how synchronization and buffer.

    I do not use LabView: I'm developing in Visual Basic, Visual Studio 2010.

    I developed my app of the NI AcqStrainSample example. What I found in the order is:

    -CreateStrainGageChannel

    -ConfigureSampleClock

    -create an AnalogMultiChannelReader

    and

    -Start the task

    There is a timer in the VB application, once the task begun, that triggers the playback feature. This function uses:

    -AnalogMultiChannelReader.ReadWaveform (- 1).

    I have no problem with CreateStrainGageChannel, I put 8 channels and other settings.

    Regarding the ConfigureSampleClock, I have some doubts. I want a continuous acquisition, then I put the internal rate, signal source 1000, continuous sample mode, I set the size buffer using the parameter "sampled by channel.

    What I wonder is:

    (1) can I put any kind of buffer size? That the limited hardware of the module (9235) or DAQ (9188)?

    (2) can I read the buffer, let's say, once per second and read all samples stored in it?

    (3) do I have to implement my own buffer for playback of data acquisition, or it is not necessary?

    (4) because I don't want to lose packets: y at - it a timestamp index or a package, I can use to check for this?

    Thank you very much for the help

    Hi Roberto-

    I will address each of your questions:

    (1) can I put any kind of buffer size? That the limited hardware of the module (9235) or DAQ (9188)?

    The samplesPerChannel parameter has different features according to the synchronization mode, you choose.  If you choose finished samples the parameter samplesPerChannel determines how many sample clocks to generate and also determines the exact size to use.  But if you use streaming samples, the samplesPerChannel and speed settings are used together to determine the size of the buffer, according to this excerpt from the reference help C DAQmx:

    Note that this buffer is a buffer software host-side.  There can be no impact on the material available on the cDAQ-9188 or NI 9235 buffers.  These devices each have relatively small equipment pads and their firmware and the Driver NOR-DAQmx driver software transfer data device to automatically host and the most effective way possible.  The buffer on the host side then holds the data until you call DAQmx Read or otherwise the input stream of service.

    (2) can I read the buffer, let's say, once per second and read all samples stored in it?

    Yes.  You would achieve this by choosing a DAQmx Read size equal to the inverse of the sampling frequency (during 1 second data) or a multiple of that of the other playback times.

    (3) do I have to implement my own buffer for playback of data acquisition, or it is not necessary?

    No, you should not need to implement your own stamp.  The DAQmx buffer on the host side will contain the data until you call the DAQmx Read function.  If you want to read from this buffer less frequently you should consider increasing its size to avoid the overflow of this buffer.  Which brings me to your next question...

    (4) because I don't want to lose packets: y at - it a timestamp index or a package, I can use to check for this?

    DAQmx will meet you if all packets are lost.  The default behavior is to stop the flow of data and present an error if the buffer of the side host DAQmx overflows (if, for example, your application does not pick up samples of this buffer at a rate equal or faster than they are acquired, on average).

    If, for any reason, you want to let DAQmx to ignore the conditions of saturation (perhaps, for example, if you want to sample continuously at a high rate but want only interested in retrieving the most recent subset of samples), you can use the DAQmxSetReadOverWrite property and set it to DAQmx_Val_OverwriteUnreadSamps.

    I hope this helps.

  • How many quadrature encoders may be read together with the cDAQ-9188 chassis?

    We will record position periodically 8 engines (at the same time as we are to the corresponding samples entered analog).  It seems that the 4 built-in counters limited chassis to 4 encoders.  Is this correct?  I am familiar with modules of counter PLC which manage high-speed counting, and then the CPU posts periodically to update the total values.  This is how the NI 9401 card would work?

    Hi jtrout,

    You are right the 4 built-in counters than the cDAQ-9188 chassis 4 encoders.  The following article deals with the use of the NI 9401 card for encoder measures: http://www.ni.com/tutorial/7109/en/.

  • Problems with the cDAQ-9174 and NI 9201 Module

    Hello world.

    I'm testing a material that I just got and I have some problems and questions, if anyone can help that would be great.

    First of all, I couldn't work in the data sheet what were the NC and COM ports:

    http://www.NI.com/datasheet/PDF/en/DS-184

    I try to connect to a signal generator and simply display the signal in MAX on the test Panel, but the signal is not look right for the moment. The following illustration shows what I see of what is supposed to be a 100 Hz sine wave of the SIG gen 10V

    Hi Dawud,

    NC being 'not connected' - what information do you need?

  • Online use of relaxation on the cDAQ-9181 with a cRIO-9401 module

    I'm trying to accomplish something very simple with the cDAQ-9181 and cRIO-9401 material: when a trigger occurs, wait 20 ms and then set some digital output lines. Reading the documentation for the cDAQ-9181 and cRIO-9401, I see that there is a trigger of PFI0; I do not see a physical entry for it, so I guess that it is implemented internally in a way. I tried to use a digital camera of entry as a trigger, but I get the error-200524 with my code. I looked if the examples, but I don't see how to do it with my gear. Help, please. Thank you. See attached png for the block diagram.


  • SQL - select the data with the nearest past date

    Hello
    I have a requirement to retrieve data based on a closer effective_date in the past.
    Here are examples of data

    Data in the table

    DESCRIPTION OF ARTICLE EFFECTIVE_DATE
    ---------------------------------------------------------------------------
    018885237 24 OCTOBER 09 DVD + R 47 10 PK
    DISC OF DVD + R 10 018885237 16 APRIL 10

    040706113 FLASH PLAYER 24 OCTOBER 09
    040706113 4 March 10 Micro USB 4 GB
    040706113 13 January 10 Flash drive 4 GB

    032140640 26 FEBRUARY 10 8 GB USB
    032140640 24 OCTOBER 09 8 GB FLASH

    The power required

    DESCRIPTION OF ARTICLE EFFECTIVE_DATE
    ---------------------------------------------------------------------------
    DISC OF DVD + R 10 018885237 16 APRIL 10
    040706113 4 March 10 Micro USB 4 GB
    032140640 26 FEBRUARY 10 8 GB USB

    Can someone help me with the SQL please?

    Concerning
    Harsha
    SQL> --- generating sample  data:
    SQL> with t as (
      2  select 018885237 item, to_date('24-OCT-09', 'dd-mon-yy') effective_date, 'DVD+R 47 10 PK' description from dual unio
      3  select 018885237, to_date('16-APR-10', 'dd-mon-yy'), 'DVD+R 10 DISC' from dual union
      4  select 040706113, to_date('24-OCT-09', 'dd-mon-yy'), 'FLASH DRIVE' from dual union
      5  select 040706113, to_date('04-MAR-10', 'dd-mon-yy'), '4GB USB Micro' from dual union
      6  select 040706113, to_date('13-JAN-10', 'dd-mon-yy'), 'Flash Driv 4GB' from dual union
      7  select 032140640, to_date('26-FEB-10', 'dd-mon-yy'), '8GB USB' from dual union
      8  select 032140640, to_date('24-OCT-09', 'dd-mon-yy'), '8GB FLASH' from dual
      9  )
     10  --
     11  -- actual query
     12  --
     13  select  item
     14  ,      effective_date
     15  ,      description
     16  from ( select item
     17         ,      effective_date
     18         ,      description
     19         ,      row_number() over (partition by item order by effective_date desc)  rn
     20         from   t
     21       )
     22  where rn=1;
    
          ITEM EFFECTIVE DESCRIPTION
    ---------- --------- --------------
      18885237 16-APR-10 DVD+R 10 DISC
      32140640 26-FEB-10 8GB USB
      40706113 04-MAR-10 4GB USB Micro
    
  • Event gateway to communicate with the ports series

    I'm not so familiar with event gateways so sorry if I ask a question wrong. Can we use event gateways to communicate with the serial ports? Thank you.

    Can we use event gateways to communicate with the serial ports?
    N ° at least, not directly. Serial ports are physical, material, while ports dealing with event gateways are virtual, software.

    The event gateway is simply the code that listens to events in a Coldfusion application. He then responds accordingly. For example, the event Socket gateway is the code that listens on a TCP - IP port, then sends or receives messages via TCP - IP protocol.

  • the program associated with the creation of a virtual instrument of Lab View. Please help me

    I have a question with the program associated with the creation of a virtual instrument of Lab View. 1. creation of virtual instrument based on the NI 9401 module mounted on the chassis NI DAQ of Compaq (nor-cDAQ-9172). Creating a virtual tool should apply the following counting pulses in series of the pulse, visualization of data by means of a digital indicator, by comparing the number of impusite with a predetermined value, this value can be assigned by the user. Indicator light when you get to reach the number of pulses, the ability to reset the counter of a button on the front panel. Digital output switch when reaching the number. I hope someone can help me.

    What is your question? You have described what the program is supposed to do, but it is unclear what you're asking about. Do you need help to get started? If so, what you have gone through the tutorials of LabVIEW? You and look at the material in tutorials the NI Developer Zone Learning Center , which provides links to other materials and other. You can also take a course online for free. Have you looked through numerous examples provided with LabVIEW for data acquisition?

  • My AirPort Extreme end not implemented with the help of AirPort Utility

    Bought a used AirPort Extreme (Genesis 4) of a person who showed me that he worked at home. When I try to set up as a Wireless extender to my last existing AirPort Extreme, he will not carry out synchronization upward with AirPort Utility. It appears as a new extreme, but get a message 'unexpected error' before or after the name. Have you tried to reset the two while it is powered and turning the as explained in the help.

    When I try to set up as a Wireless extender...

    Gen 4 airport will connect to your existing AirPort Extreme wireless... or... it will connect using wired Ethernet wired, Permanent?

    .. .it will not accomplish the synchronization upward with AirPort Utility.

    Which version of AirPort Utility?  If it's on your Mac... and you don't know what version you have...

    Open AirPort Utility

    Click the AirPort Utility menu in the upper left corner of the screen

    Click on about AirPort Utility

    Report on the version number you see here

    You have an iPhone or a handy iPad that could be used to implement the 4th Gen airport if the problems continue with the help of your Mac?

  • With the help of iPhone 6 s. try to copy the text message with a tap double and get a bubble with icons. How can I copy the message to paste in another?

    Try to copy a text to paste in another. When I double tap, as I always have, all I get is a bubble with icons on it. With the help of OS 10.0.2.

    maryml wrote:

    Try to copy a text to paste in another. When I double tap, as I always have, all I get is a bubble with icons on it. With the help of OS 10.0.2.

    Press and hold on the text and wait for the copy/more pop up.

  • help with the new option of memories

    Sorry for my English

    Please help me with the new option of memories

    no memories option appears me

    I have an iphone with IOS 10.02 5

    Hello

    Try this support article > enjoy your memories in pictures - Apple Support

  • With the help of Club running on the Nike watch +.

    Hello

    This is something I have tried to work for a while and have not yet been able to find an answer. At the moment I use Nike + management club on my iPhone to follow the tracks that I find that gps is better than just using the application of the workout on my watch. However, something that really bothers me is that I start the race on my phone, but I can't then view my stats while running without having to press on and tap the watch and wait for the application to load, very irritating to race. I want to be able to lift my wrist and live stats are there to watch me, not listening and not get my phone out of my pocket. Surely this is something that can make the original watch?

    As a separate issue with the new app, Nike +, it does not recognize the songs I downloaded on my phone of Apple music in my playlists, then I have to play the separatelay of music through the application of music as opposed to go with Nike +? The ides on how to fix or is this a known problem with the latest Nike + app?

    Hello

    You may find it useful to consult the support resources of Nike and/or contact Nike for assistance with the help of their application:

    More information:

    https://iTunes.Apple.com/us/app/Nike+-run-Club/id387771637?Mt=8

  • I have an imac 27 "... on power there is no signal to startap, usb ports are not working and its deadlock with the logo of the Apple with the circle of rotation... Help, please

    I have an imac 27 "... on power there is no signal to startap, usb ports are not working and its deadlock with the logo of the Apple with the circle of rotation... Help, please

    Wake the computer to your Apple store or Apple authorized service for the service provider. He probably suffered a hardware failure.

Maybe you are looking for

  • AppleScript-> Get contact photo-> NSImage

    I hope that red_menace or ASObjC another expert will see this. In collaboration with AppleScript, I have: tell application "Contacts"    set theImage to image of somePerson end tell

  • iMac 27 end of 2012 windows 7 installation problems.

    Dear Apple community. First of all I know that the topic was discussed a few more times, but after I tried to follow the instructions and directions and patterns almost everywhere on the net I am a blind spot. I have an iMac 27 "end 2012. I managed t

  • Sam 2410: How to change the settings of M/S to CSEL on SD-R6472

    Hi guys, think that I did a bit of a hash of the evolution of my CD recorder to a DVD burner. My notbook is a 2410-601 and wanted to upgrade to a DVD burner. I know now that the old CD writer has the value M/S, but the new DVD burner is CSEL. Needles

  • stop the automatic addition of e-mail contacts

    Unwanted e-mail addresses are automatically added to my address book. Seems to happen when someone understands my address in a long list of other recipients of family and friends. They ALL go up as contacts in MY address book. How can I stop this?

  • Help! I currently have no audio data

    Hey, it's the first time on this forum posting, but I have an old dell laptop inspiron 9300 and I did a clean install of windows xp so I can play minecraft without lag, and as well in windows 7 (which was on the laptop before I wiped it) and windows