How to generate a single pulse with DAQmx

I need to generate a single pulse using DAQmx.  Many of the example of the AO screw blood generation using waveform (multi) .vi buffer generation.  This VI generates a + / amplitude.  I want that my pulse to go from zero to a positive amplitude.  How to achieve this?

Thanks in advance.

What amplitude and what pulse width?

If you have found an example with regeneration, to get a unique waveform, you can disable the regeneration and just do a single entry.

Tags: NI Software

Similar Questions

  • How to generate a single pulse using PXI-4461 in Labview

    I need to generate a single positive pulse is 100ms using an OD on the PXI-4461 with DAQmx Labview

    I have trouble getting the exact time of the pulse.

    Help, please.

    Thank you.

    He works, see attached pattern obtained.

    Thanks to NI Applications Engineer ally Finney for example.

  • How to generate a single Point (On-Demand) edge counting with relaxing break

    I have problem when creating a Labview program to generate a single Point (On-Demand) edge counting with relaxing break illustrated in FIGURE 1 below. I only know how to build counter edge without relaxing break and my program is illustrated in FIG. 2 and gaskets also. Should what changes I make on my program? The DAQ card that I use is 6259 PCI/USB.

    FIG1. Single edge counting with break Point (on request)

    Fig.2 my program to generate the edge without relaxing break

    It is resolved

  • Generate a single pulse on several channels of an external trigger high-speed DIO

    Hello

    I'm trying to implement a system using a PCIe-6535 b connected to a high speed of SMB-2163 DIO.  The system must be configured to work with a camera send a trigger (at the beginning of each show) to the PFI4 which in turn sends a single pulse on three digital output channels to lasers.  Each output has its own specific deadline and the width.  There is no counter on the SMB-2163, so I think I need to use Pulse Width Modulation (PWM).  I saw this example and adapted to my system:

    https://decibel.NI.com/content/docs/doc-8010

    However, when the source to enter the DAQmx VI of sample clock is set to PFI4 (instead of the on-board clock) to receive input from the camera, changes in behaviour.  The rate of sampling in the sample clock VI is ignored, and each element of the digital waveform is triggered.  I need the sequence to complete each after trigger.

    I am attaching a quick diagram of the sequence.  Any suggestions on how I can get this kind of events triggered? (With the help of LabVIEW 2013)

    Thank you

    Mike

    PLATES

    The external signal must be configured as a trigger for digital startup rather than the sample clock.  I do not think the 6535 redeclenchables supports digital output, so you don't have to restart the task after receipt of each trigger (something like this, however you can improve performance by committing to the task by using the task of control DAQmx before entering the loop).

    Best regards

  • Generate a single pulse in response to an external trigger

    Hello

    I have a PXI-5412 arbitrary signal generator, a simultaneous sampler PXI-6115 and PXI-6652 synchronization module. I would like to the PXI-5412 to produce a square pulse and PXI-6115 to acquire a set of data in response to a digital triggering module. (In the future I might want to generate a slightly more complex Wavelet, but for now a square pulse will do).

    I used This example as my reference. So far, I used successfully OR Sync to initiate through DAQmx data acquisition when arrives the trigger. However, I can't do the same thing with the generation of pulses. I've been able to get NOR-FGEN to produce continuous square waves, no simple impulses.

    The-OR-FGEN Arbitrary Waveform Generator VI Express lets me select finishes generation Mode. How can I configure the same screws no express?

    While we are at it, is there a better way to accomplish my synchronization the procedure I described (DAQmx, NOR-Sync + NI - FGEN)?

    Thank you!

    You can get this set as a single trigger mode. You could also learn how to express VI which make a right click on it > open Frontpanel.

  • Any way to generate a single quote (') with XSLT?

    Hello:

    I guess that's really a question of XSLT. I use the XMLType variable Transform() method to apply a style sheet. The XML code in the variable is just something simple like

    < TBL >
    < name > AS | JONES < / LAST_NAME >
    < name > = | MARIE < / name >
    < AGE > = | 50 < / AGE >
    < / TBL >

    I'm trying to get a style sheet to transform something like the above SQL such as
    Select * from foo where LAST_NAME like 'JONES' 
    and FIRST_NAME ='MARY'
    and AGE = 50
    But to do this, I need to generate single quotes around search terms and I can't get anything else that
    LAST_NAME LIKE &apos;JONES&apos;
    . Is there a way to do this? Because now I'm generating a ~ and replacement ~ for ' all the SQL generated text throughout, but is a pretty sorry solution.

    I thought that something like
    <xsl:text disable-output-escaping="yes">&amp;</xsl:text>
    go to work but then is found out that he has been deprecated. I thought about character-card would work, but it's one thing to XSLT 2.0 and apparently 10g is on XSLT 1.0? In all cases, he didn't know what I was trying to do with a character map.

    So, I forget one obvious way to get my style sheet to insert apostrophes?

    Thank you.

    Comment by Marco needing dbms_xmlgen.convert was OK for 10.2.0.4. Here is an example which produces the same result, but requires dbms_xmlgen.convert when I run it on 10.2.0.4 and works as an example of Mark on 11.1.0.x.

    declare
      l_xml   XMLTYPE := XMLTYPE('
    
      
        
        
        
        
      
      
        
        
        
        
      
      
        
        
        
        
      
      
        
        
        
        
      
      
        
        
        
        
      
    ');
    
       l_xsl XMLTYPE := XMLTYPE('
    
      
      
    
    
      
        select * from
        
        where 1=1
        
          
            
            
            
              AND 
               
              
               
              
                
                  '
                  
                  '
                
                
                  '
                  
                  '
                
                
                  
                
              
            
          
        
      
    ');
    
       l_result   CLOB := '1';
    begin
      -- 10.2.0.4 version
      --l_result := dbms_xmlgen.convert(l_xml.transform(l_xsl).getStringVal(), dbms_xmlgen.ENTITY_DECODE);
      l_result := l_xml.transform(l_xsl).getStringVal();
      -- 11.1.0.6 version
      dbms_output.put_line(l_result);
    end;
    
  • How to generate an xml document with a BLOB on the inside?

    Hello

    Using the Oracle 11 g Release 11.2.0.4.0 database, I actually use dbms_xmldom to generate xml data.

    When generated, it is sent using utl_http.

    All right, except that I have to include a child that contains a BLOB (stored in the database) in the exact way that it is stored in the XML structure.

    (Field value contains an encoded 64 base pdf file). Length of the file can be up to 2 MB

    My nearest solution was to Convert Oracle XML BLOB to type even if I'm really stuck with LPX-00210 error.

    Is there another way than dbms_xmldom do?

    In fact, I'm totally lost.

    Can you give me a hand on this or show me an example of work?

    Kind regards

    Stone

    Here goes...

    SQL> create table images (
      2    id       integer
      3  , name     varchar2(256)
      4  , content  blob
      5  );
    
    Table created
    
    SQL>
    SQL> declare
      2
      3    bf          bfile := bfilename('XML_DIR','base64.bin');
      4    lob_ptr     blob;
      5    dest_offs   integer := 1;
      6    src_offs    integer := 1;
      7
      8  begin
      9
    10    insert into images (id, name, content)
    11    values (1, 'Koala.jpg', empty_blob())
    12    returning content into lob_ptr;
    13
    14    dbms_lob.open(bf, dbms_lob.lob_readonly);
    15    dbms_lob.loadblobfromfile(lob_ptr, bf, dbms_lob.getlength(bf), dest_offs, src_offs);
    16    dbms_lob.close(bf);
    17
    18  end;
    19  /
    
    PL/SQL procedure successfully completed
    
    SQL> commit;
    
    Commit complete
    
    SQL>
    SQL> select id
      2       , name
      3       , utl_raw.cast_to_varchar2(dbms_lob.substr(content, 30)) as first_bytes
      4       , dbms_lob.getlength(content) as lob_size
      5  from images
      6  /
    
       ID NAME         FIRST_BYTES                      LOB_SIZE
    ----- ------------ -------------------------------- ----------
        1 Koala.jpg    /9j/4AAQSkZJRgABAgEAYABgAAD/7g      1068504
    
    SQL>
    SQL> declare
      2
      3    x_doc       xmltype;
      4    domdoc      dbms_xmldom.DOMDocument;
      5    domnode     dbms_xmldom.DOMNode;
      6    domtext     dbms_xmldom.DOMText;
      7    ostream     sys.utl_BinaryOutputStream;
      8    chunksize   pls_integer;
      9    offset      pls_integer := 1;
    10    buf         raw(32767);
    11    image       blob;
    12
    13  begin
    14
    15    select xmlelement("image",
    16             xmlelement("id", t.id)
    17           , xmlelement("name", t.name)
    18           , xmlelement("content")
    19           )
    20         , t.content
    21    into x_doc
    22       , image
    23    from images t
    24    where t.id = 1 ;
    25
    26    domdoc := dbms_xmldom.newDOMDocument(x_doc);
    27
    28    -- get /image/content node so that we can append a text node and stream the BLOB to it :
    29    domnode := dbms_xslprocessor.selectSingleNode(dbms_xmldom.makeNode(domdoc), '/image/content');
    30    domtext := dbms_xmldom.createTextNode(domdoc, null);
    31    domnode := dbms_xmldom.appendChild(domnode, dbms_xmldom.makeNode(domtext));
    32
    33    ostream := DBMS_XMLDOM.setNodeValueAsBinaryStream(domnode);
    34    chunksize := dbms_lob.getchunksize(image);
    35
    36    loop
    37      begin
    38        -- read BLOB in chunk of  :
    39        dbms_lob.read(image, chunksize, offset, buf);
    40      exception
    41        when no_data_found then
    42          exit;
    43      end;
    44      -- write chunk to DOM node :
    45      ostream.write(buf, chunksize);
    46      offset := offset + chunksize;
    47    end loop;
    48
    49    ostream.flush();
    50    ostream.close();
    51
    52    dbms_xmldom.writeToFile(domdoc, 'XML_DIR/image.xml');
    53    dbms_xmldom.freeDocument(domdoc);
    54
    55  end;
    56  /
    
    PL/SQL procedure successfully completed
    

    Image.xml release:

    
      1
      Koala.jpg
      /9j/4AAQSkZJRgABAgEAYABgAAD/7gAOQWRvYmUAZAAAAAAB/+EUI0V4aWYAAE1NACoAAAAIAAcB
    MgACAAAAFAAAAGIBOwACAAAABwAAAHZHRgADAAAAAQAEAABHSQADAAAAAQA/AACcnQABAAAADgAA
    AADqHAAHAAAH9AAAAACHaQAEAAAAAQAAAH0AAADnMjAwOTowMzoxMiAxMzo0ODoyOABDb3JiaXMA
    ...
    aWpkRY6dqaJY42qFjs8ZZ5nlkjZpmJUiJ1+ijn3dVeTtb4B1R5NJVaEkn/V8+u4Xijpp6SFlimp6
    qNHgjlVIgrtLCyxll1NpaT6An6W92mA8HwkyadMeEZJjEDmvE/t/1f5uv//Z
    
    
  • How to make a single line with 6-8 images in css?

    I would like to do a header line with 6-8 icons of different sizes and use them as links.  I can't get them to line up horizontally in a container. How can I do this?

    You can do this by making the area the same size icons. that is, all the images are the same size, it's just the icons in the image control that are different sizes.

    If you don't want to do this then probably a good reason to use a table with cells of 6/8 otherwise, you will need to adjust padding/margin on each icon to align individual, doable but somewhat tedious.

  • How to generate a printed document with section breaks "continuous" compared with section breaks "next page"?

    When generating a Word or PDF document from HTML Help files a section break 'next page' is used after each topic. How can I get a "continuous" instead of section break?

    I was searching a little more. Here's the deal.

    New chapters will always start on a new page and have an odd or next page break depending on the parameter to start new chapters. If checked, it will be a jump of odd Page, else a Next Page break.

    Subjects of a book will follow the topic of every throw on a framework for the new Page. If checked, each topic is separated by a page break, not a section break. Otherwise, they will be on the same page without any break.

    Subjects not in a book will be followed by a section break.

    So the section breaks are only created for chapters and topics not in a chapter.

    Hope that helps. Please report if you find otherwise.

    See www.grainge.org for creating tips and RoboHelp

    @petergrainge

  • How to generate a single random number in a MySQL database

    I create a volunteer and also a separate request form from the seller for an air show. The volunteer and seller info is stored in separate tables in MySQL db, a line by volunteer or the seller. There will be about 100 volunteers and 50 sellers. When the request should immediately be printed by the applicant signed and mailed in. This year we had problems with some people who do not immediately print asked, so I would still give them the possibility to print immediately, but also to send them an email with a link to their specific line in the MySQL database. I have an AutoIncrement primary key for each table field, but I think to send this key to the applicant in an email would be too easy for them to guess a different id and access the information of others.

    I think I should add a column for each table containing a unique random number and then I would send this key in the e-mail to the applicant. So, can anyone suggest a simple way to do this or suggest a better way to give the applicant a way to access their own request and nobody elses not after submitting their form?

    Thank you all.

    Tony Babb

    In your code, you should:

     VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, $s)",
    

    Change the $s to %s and that should solve the problem for you.

    Let me know.  Thank you!

    Chad

  • How to make a single image with multiple clickable points?

    Hello

    I just started using CS4 yesterday, but am quite confused. I managed my first realization with it, but am troubled havign. I don't yet know the capabilities of the software to be honest, but I would like to know if I can have one image, then have sections of it that can be flown with a tag and a link to another part of my site. Is this something that can be done?

    Thank you!

    If you click on your image in Design view and go to the properties panel > window > properties, you will see 3 blue icons down in the lower left corner. You can choose one and get a "hot spot" on the image. When you draw a hotspot Dreamweaver will provide you with an option to associate a link with it.

  • How to return a single LINE with Multiple value separated by a colon in a SQL query

    Hello

    I have a SQL, as shown.
    select deptno
      from dept
    I want to mofidfy this query, so that it should return me departments with colon delimeted list in a ROW.
    10:20:30:40.......
    Thank you
    Deepak
  • Acquisition of Digital Data Output: generate a pulse with a specific width (depending on time)

    How can I generate a digital pulse with a specific width? I was not able to find examples online. Thank you!

    With the USB-6000 - essentially none. He has only digital software programmed according to i/o. on your system, you may be able to generate impulses at speeds up to a few hundred Hertz, but there will be a considerable amount of timing jitter. Tens of milliseconds can be common and even longer variations may occur occasionally.

    Please indicate which are the times for your impulses, so someone may be able to provide recommendations specific to your needs.

    Lynn

  • How to generate a pulse with the signal generator?

    Hello

    I would like to ask if anyone knows how to use the Elvis platform to generate a regulated pulse wave?

    It should look roughly like the picture above. A sine wave with the regulation.

    Anyone who can answer my question please respond to my post.

    Thank you.

    You are using LabVIEW to generate the waveform or using the Soft front panels? In LabVIEW, you can use the express VI generator function and specify the Type as "Sine". Then, simply change the amplitude of the sine wave. During the actual pulse, the amplitude would be what you want (i.e. 1 V) and while the pulse is idle, set the amplitude to 0.

    If you use the soft front panels, you can use the Waveform Editor to create a waveform that includes a sine wave for the length of your pulse and then the values of '0' for the rest of the time. Then use this waveform in the flexible front of the arbitrary signal generator. Simply create a component of sine as the first part of the wave and then add another element to a level DC '0' for the rest.

  • How to generate a variable frequency pulse train constantly

    Hi all

    I am using NOR-USB-6259 (BNC) to send signals of impulse to the position of a servo with labview motor control. The position of the servo-motor control follows these rules:

    1. The pulse train number determines how many degrees the motor;(par exemple la position angulaire dele de moteur)
    2. The pulse frequency determines how fast the engine is running; (for example the engine rotation speed)
    3. Digital determines the direction of rotation of the engine (for example in the clockwise or counterclockwise)

    My question is when I have to continuously generate a body finished, train signal in a period of time. Here's a sample:

    Time (s)

    Number of pulses

    Direction of rotation

    (1 clockwise, counterclockwise 0)

    Frequency

    0-1

    923

    1

    923hz

    1-2

    3540

    0

    3540hz

    2-3

    1751

    1

    1751hz

    3-4

    2663

    0

    2663hz

    4-5

    353

    0

    353hz

    5-6

    1017

    1

    1017hz

    6-7

    3436

    1

    3436hz

    7-8

    10 p

    0

    302hz

    8-9

    1513

    1

    1513hz

    9-10

    570

    1

    570hz

    Here is the explanation of this table, the motor continues to turn clockwise for 0 ~ 1s. When the time reaches 1 s, the engine simply fill out the rotation of 923 pulse signals. And then the engine starts to turn clockwise for 1 sec ~ 2 s. When the time reaches 2 s, the engine simply fill out the rotation of 3540 pulse signals. So we can see that the speed of rotation of the motor to 0 ~ 1 s is different from the speed in 1 ~ 2 s. Namely, the frequency of the signal from pulse to 0 ~ 1 s is different from the frequency in 1 ~ 2 s.

    I already use the DAQmx counter output, it can simply generate pulse signal with some numbers and some frequency only once. The attachment is the vi that allows to generate a digital pulse train finished the meter output channel and frequency, cyclical, delay report Initial and idle state are all configurable.

    How can I continuously generate a series of pulse train with a variable number and frequency for a certain period of time.

    Thank you very much for your help!

    The frequency 'on the fly' control requires intervention of software and can not guarantee a specific number of impulses for each rate (which I assume you want because it's an engine step by step).

    If it was me I would do one of them instead:

    1. use the digital output for everything.  The digital output at a higher clock rate and build the waveform to give you the desired number of steps and management.  This method would give less temporal resolution than others.

    2. use a task of meter output, 1 section at a time.  Reconfigure and restart the task for each section after the management output setting.  This method could introduce a delay between each section.

    3. purchase of new equipment - X series supports put buffered outputs of meter that can do what you ask.

    Best regards

Maybe you are looking for