Help design a trigger for an analog voltage signal

Hello guys,.

I have a real problem one design trigger for an application, what I do is to power a motor and measure consumption current and voltage during each operation. What I would do is to begin to acquire the signal once the voltage rises to a certain value and finish when it falls to a certain value. The equipment I use is a cDAQ 9178 with a NI9205 and 9221 modules.

Any help / samples / detailed explanation will be really appreciated. I have no idea on how to work with the outbreak of the vi in Labview.

Concerning

SergeArmz

Finally after a lot of research, tests and many developments, this is a VI that I developed and who is able to do what I was looking for. Thanks to the guys who helped me out to understand how solve my problem.

For all those who may have the same problem I had, I enclose the VI.

And of course if you can improve on what I did will be great, I think it's the purpose of this forum

See you soon!

SergeArmz

Tags: NI Software

Similar Questions

  • Trigger for USB-6251analog

    Hello

    Generate a rectangular signal of AO on AO0 (white) while playing a Sin on AO1 (red) signal. I want to record on AIx, while the tension of the rectangular signal is max.

    Currently I physically route AO0 to PFI0 and use it as a trigger for the analog input:

    But the VI fails because AIx does not detect the edge of the PFI0 of the trigger. How to fix the VI to work proberly?

    Thank you

    VI can be found here: http://forums.ni.com/t5/Discussions-au-sujet-de-NI/USB-6251-router-Analog-output-pour-trigger-Analog...

    Hafiz asean.support solution:

    I looked at your code and there was a problem with the installation of the acquisition of the chain to HAVE.

    Acquisition of analog input has been configured incorrectly
    In your code, you set the program to use calendar settings based on a waveform. However, when you build the waveform, I believe you accidentally used the frequency instead of the dt of the waveform to build. Removal of the inverse function ensures that the correct values are passed in. Originally, the AI sampling period was put at about 4000 seconds, which in turn causes the trigger to expire.

    Take note that the production and the acquisition is not exactly at the same time. You can see the following diagram:

    Thank you haha!

  • How can I create a single delayed output (analog voltage) of a Trigger (analog voltage) input reference pulse?

    I am working with a combustion chamber and using a system of data acquisition (with the hardware OR SCB - 68) to read the pressure in the cylinder (such as analog voltage). I'm trying a pulse delayed, 1 millisecond to 5 volts of output once the pressure in the cylinder is high above 5 bar (which corresponds to an analogue voltage of 0.25 V). I would also like to record 30 ms samples before the trigger and 220 ms samples after the outbreak. The following image shows visually what I'm talking about.

    I created a LabVIEW VI (which is attached), but I keep running into 2 issues:

    1. When I run with samples finished after a period of time, I get error-200281which I don't quite understand.

    2. Using the Express VI 'Out of time' to keep time for the pulse I can not get a resolution of 1 millisecond, the pulse is not generated when I put the window between 0.003 and 0.004 seconds for high pulse (i.e. the resolution of 'Elapsed Time' seems to be too coarse).

    I'm a beginner to LabVIEW sorry if my questions are trivial or my VI makes no sense, but I was stuck on this during more than a week. Any help would be greatly appreciated!

    Thank you

    Morgen

    This isn't a good way to trigger a pulse.
    Use a trigger DAQmx to send the pulse when your acquired signal exceeds 250 mV you specified.

    See this for DAQmx trigger:

    http://www.NI.com/white-paper/2835/en/#toc4

  • Trigger SW analog voltage CONT Acq & graphic

    Hello

    In the example Cont Acq & chart analog voltage SW Trigger.vi It seems to me that if specify you a channel that relaxation comes on, then it would be a hardware trigger is not a software trigger. Why do call it a software trigger work?

    I PCI6071E I want to trigger by sending in a channel if a pulse (63). Wouldn't that considered triggering material? If that is an example for this available?

    Also I'm not clear on what they mean by the parameter ' Amplitude/hysteresis window' in the trip parameters. Could someone explain this to me?

    Thank you!


  • Design of database for a helper.

    Hello does anyone know
    Design of database for a helper.
    ERD
    Features and business rules
    ?

    The best way to approach a design of database is to write a specification for the application. The document, which deals with the assistance of technicians will do. In the process of determining what pieces of information, they work with. When you have written complete specification, you can start then group the items of information they work with. For example, a ticket can have a number, status, priority, and a person who is associated with. The person to which is entrusted the ticket will have a name, phone number, email address and a list of technical skills.

    So in this simplified example excessively, we might have a table that contains the information of the ticket, a table that contains information about the technicians and an array of skills. Then ask free questions as "a ticket can be handled by more than one technician?" "A technician can manage more than one ticket? Can a technician cause several skills? "In this way, you can begin to see relationships on a one-to-one, one-to-many and many-to-many that exist.

  • How to build square 3 ph pulses and use them to trigger the two analog inputs.

    Task:

    1) generate continuous 1 Hz ms 45 pulses on three lines of output offset 120 degrees.

    Other neighborhoods, three phases (three outputs) 120 degrees out, but instead of sine wave should be a volt 5ms 45 along with a second ground pulse. I need these impulses to control an external circuit. The tolerance of 1 Hz is loose, but 45 ms must be at 100 us.

    (2) measure (trigger) two independent DC voltage over 45 ms 50 ms after each front (leader) amount of each pulse. 45 to 50 ms must be 100 us.

    Other neighborhoods, begins each measure 45 ms for the DC source #1 and 50 ms for the source DC #2 after opening (rising edge) of each pulse for total of six measurements per second 1 (by 1 Hz cycle).

    (3) an analog output must provide ongoing (to be booked) negative DC voltage to be used as a source of supply for external circuits.

    I timely when I can generate the 45 Hz by using CO (0) 1 ms pulses continuously and the trigger I (0) on falling edge. I (0) is hard wired to triggering I (0).

    How I do HAVE another (1) and two other lines (two phases) and link them to HAVE (0) and HAVE (1)?

    Equipment: LabView 8.6.2, PCI-6221 (37-pin)

    Hi behappy.

    Thanks for posting and welcome to the forums EITHER! I think we can get what you need with the variety of the 6221 37 pins:

    (1) our machines of the M series have 2 counters, so you cannot generate all the impulses of 3 of these alone. A solution would be to use outputs digital correlated.

    Unfortunately, the 37 pins 6221 has only two IO digital correlated, so you should use a strange mixture of digital meters and IO to implement three impulses. It would still be feasible - for example, you might use a counter for a time base for the digital i/o lines and the other counter to the third output pulse. You would have to match the beginning of the two counters to ensure the phase of your signals.

    2) there are essentially two parts to this question, so I'll try to split:

    (i) combine the three impulses together to generate a single sample signal out of. I think this would be doable on a different set of M with a higher number of digital I/o lines correlated using change detection (see the user manual of M series). However, at this stage, we are just out of digital lines correlated to use, and I don't think that's possible on the 37 pins 6221.

    If you use the 6221 37-pin, which you will probably need to do is to provide your own external circuits OR three pulses together.

    (II) get the 5 ms delay to enjoy your second channel. Since you have already discovered that you can sample the falling edge of the digital signal for the delay of 45 ms, you would just add another delay of 5 ms before taste you your second I. You should be able to do this by setting the clock to convert DAQmx frequency (5ms corresponds to 200 Hz). The clock to convert, it's what actually sampling data (keep in mind that the boards of the M series are multiplexed).

    To do this, simply use the property calendar DAQmx node, then select: more > converted > rate.

    (3) this one is easy - we have not yet used all channels of AO.

    So the 37 pins 6221 is a little less ideal because you have not enough correlated digital i/o to make the generation of pulses or change detection - but he has yet to do the job if you can combine the three impulses yourself outdoors and don't mind not using the additional counter to generate the third impulse.

    I hope this helps, if you need any help to find relevant examples, please do not hesitate to post in return. Thank you!

    -John

  • Error-200524 when you try two analog output voltage signals

    I am train to the output of two signals to analog voltage simultaneously using Labview 8.2.1. One is a waveform to produce sound, and the other is a trigger on another computer (using labview 6.1). I've been doing error-200524 write DAQmx. Here is a screenshot of my VI:

    The error message says:

    "Measurements: writing cannot be performed because the number of data channels does not match number of channels in the task."
    When writing, provide data for all channels in the task. You can also change the task so that it contains the same number of channels as the written data. "

    How can I solve this problem? Thank you.

    Show you only a waveform in the block diagram.

    Here is a picture that shows what I told you to in my previous post.

    The waveform connected at element 0 of the 'picture to build' will be emitted on channel 0.  The waveform that is connected to the item 1 of the 'picture to build' will be emitted on channel 1.  The instance of 'DAQmx writing' is 'Analog 1 D Wfm NChan NSamp.

    Hope that is more clear!

    d

  • How to write the trigger for update or delete multiple columns in a table?

    Hello

    I create one in the form of table of sample_emp. In that, every time I want to change of name, team_id, team_leader_id, supervisor_id, manager_id it must store the update-able and old values of those in the job_history table. When I write the trigger for which it shows "ORA-04082 new or the old value not table level triggers. Here is my emp_table. My table also similar job_history like this. Need your help.

    Header 1 Header 2 Header 3 Header 4 Header 5 Heading 6 Heading 7 8 header Header 9
    EMP_IDEMP_NAMEDESIGNATIONTEAM_IDTEAM_LEADER_IDEMPLOYEEMANAGER_IDHIRE_DATERELIEVED_DATE

    --

    Thank you.

    Hi Joel,.

    Venky_prs wrote:

    Hello

    I create one in the form of table of sample_emp. In that, every time I want to change of name, team_id, team_leader_id, supervisor_id, manager_id it must store the update-able and old values of those in the job_history table. When I write the trigger for which it shows "ORA-04082 new or the old value not table level triggers. Here is my emp_table. My table also similar job_history like this. Need your help.

    Header 1 Header 2 Header 3 Header 4 Header 5 Heading 6 Heading 7 8 header Header 9
    EMP_ID EMP_NAME DESIGNATION TEAM_ID TEAM_LEADER_ID EMPLOYEE MANAGER_ID HIRE_DATE RELIEVED_DATE

    --

    Thank you.

    You can try something like this given below to complete the historical table on update and delete.

    create or replace TRIGGER  "CLONE_EMP_UPDATE_DELETE"
    BEFORE DELETE OR UPDATE ON EMP
    FOR EACH ROW
    DECLARE
        PRAGMA autonomous_transaction;
    BEGIN
    INSERT INTO JOB_HISTORY("EMP_ID","EMP_NAME","DESIGNATION","TEAM_ID","TEAM_LEADER_ID","SUPERVISOR_ID","MANAGER_ID"
    ,"HIRE_DATE","RELIEVED_DATE")
      VALUES(:OLD.EMP_ID,:OLD.EMP_NAME,:OLD.DESIGNATION,:OLD.TEAM_ID,:OLD.TEAM_LEADER_ID,:OLD.SUPERVISOR_ID,
    :OLD.MANAGER_ID,:OLD.HIRE_DATE,
    :OLD.RELIEVED_DATE);
    COMMIT;
    END;
    

    Hope this helps you,

    Kind regards

    Jitendra

  • who is the best 4 db Trigger for auto-differentiels?

    Hello

    Who is the best 4 db Trigger for auto-incrementielle of an id ...?
    With the help of a sequence and the sequence of call in an insert...
    Or by using the following code:
    ----------------------------------------
    SELECT NVL(MAX (SCDEDULE_ID+1),0)
    INTO V_SCDEDULE_ID
    FROM INSP_DAILY_SCHEDULE ;
    EXCEPTION
    when NO_data_found then null;
    WHEN OTHERS then null;
    END;
    or both are the same thing... ?

    Pls advice me..... !

    Kind regards

    Abdetu...

    As already mentioned, you should definitely use sequences, because they are the only mechanism that works in multi user environments. Each user will receive a different schedule_id assigned, while the use of the nvl - max method two sessions when it is running at the same time will acquire the same schedule_id. You can of course lock the entire table to work around this problem, but which leads to questions of scalabilty. Sequences are also faster, as can be seen in the following example:

    SQL> create table insp_daily_schedule
      2  ( schedule_id number primary key
      3  , other_columns varchar2(100)
      4  )
      5  /
    
    Tabel is aangemaakt.
    
    SQL> create sequence myseq
      2  /
    
    Reeks is aangemaakt.
    
    SQL> create package schedule_api
      2  as
      3    procedure add_daily_schedule_nvlmax
      4    ( p_other_columns in insp_daily_schedule.other_columns%type
      5    );
      6    procedure add_daily_schedule_sequence
      7    ( p_other_columns in insp_daily_schedule.other_columns%type
      8    );
      9  end schedule_api;
     10  /
    
    Package is aangemaakt.
    
    SQL> create package body schedule_api
      2  as
      3    procedure add_daily_schedule_nvlmax
      4    ( p_other_columns in insp_daily_schedule.other_columns%type
      5    )
      6    is
      7      l_schedule_id insp_daily_schedule.schedule_id%type;
      8    begin
      9      select nvl(max(schedule_id),0)+1
     10        into l_schedule_id
     11        from insp_daily_schedule
     12      ;
     13      insert into insp_daily_schedule
     14      ( schedule_id
     15      , other_columns
     16      )
     17      values
     18      ( l_schedule_id
     19      , p_other_columns
     20      );
     21    end add_daily_schedule_nvlmax
     22    ;
     23    procedure add_daily_schedule_sequence
     24    ( p_other_columns in insp_daily_schedule.other_columns%type
     25    )
     26    is
     27    begin
     28      insert into insp_daily_schedule
     29      ( schedule_id
     30      , other_columns
     31      )
     32      values
     33      ( myseq.nextval
     34      , p_other_columns
     35      );
     36    end add_daily_schedule_sequence
     37    ;
     38  end schedule_api;
     39  /
    
    Package-body is aangemaakt.
    
    SQL> set timing on
    SQL> begin
      2    for i in 1..10000
      3    loop
      4      schedule_api.add_daily_schedule_sequence(lpad('*',100,'*'));
      5    end loop;
      6  end;
      7  /
    
    PL/SQL-procedure is geslaagd.
    
    Verstreken: 00:00:00.93
    SQL> /
    
    PL/SQL-procedure is geslaagd.
    
    Verstreken: 00:00:00.92
    SQL> /
    
    PL/SQL-procedure is geslaagd.
    
    Verstreken: 00:00:00.92
    SQL> begin
      2    for i in 1..10000
      3    loop
      4      schedule_api.add_daily_schedule_nvlmax(lpad('*',100,'*'));
      5    end loop;
      6  end;
      7  /
    
    PL/SQL-procedure is geslaagd.
    
    Verstreken: 00:00:01.32
    SQL> /
    
    PL/SQL-procedure is geslaagd.
    
    Verstreken: 00:00:01.68
    SQL> /
    
    PL/SQL-procedure is geslaagd.
    
    Verstreken: 00:00:01.32
    

    The only counter-argument that can be given for the nvl - max method, is that it is the independent database, while Oracle sequences are used by Oracle only as far as I know. But since independence database should never be a goal because it leads to poor applications and poor database design because it can only operate features that each database has, this argument is hardly any value.

    Kind regards
    Rob.

  • NEITHER 9234 with quasi static analog voltage

    Hello

    I have a NI 9234 (4 channels + / IEPE 24-bit 5V) attached to a chassis cRIO module. This module is ideal for accelerometers and microphones where the tension is in constant evolution (ie; measures of variation rates).

    I also have a module OR 9237 (4 channels 24-bit full-bridge module analog input) attached to the same cRIO. This module is ideal for measure variable voltages of strain gauges (quasi static and dynamic loads).

    The attached graph shows the two channels, collected synchronously, but as you can see the (red trace) cell breaks down (as it should), but then drifts back to zero on its own, when in fact it should remain low just like the extensometer is beam. After all, the two sensors are physically secured.

    Q1: Would that have something to do with AC/DC module 9234 internal coupling?

    Q2: Is it really possible to collect "quasi static" ongoing tensions by using a NI 9234 module?

    No explanation as to why this occurs, or if there is a way to remedy this would be appreciated.

    Kind regards

    Andreas

    Coupling AC/DC must do a lot with your question. In mode AC voltages static will be fitered outside and the 9234 measure indeed only change voltages. In DC mode, the voltage goes directly to the AD converter and you can also detect static tensions.

    A minute of Googling gave me the answer, this load cell electric piezo can measure dynamic changes, as any charge will escape the path the lowest resistance and the signal will go to zero after a certain time. I guess the other device you were using higher internal resistance (which is relatively low on the 9234), so it takes more time to what he flees, but he also took on the picture you attached your second try.

    Here you can find more example under the title

    "WHY ONLY DYNAMIC FORCE CAN BE MEASURED WITH SENSORS OF POWER PIEZOELECTRIC"

    http://www.PCB.com/techsupport/tech_force

    Andreas Jost

    Technical sales engineer

    National Instruments

  • Generate an analog voltage with amplitude variations

    I want to generate a 0 - 5V analog voltage output that has a variable amplitude, as shown in the figure. The maximum voltage is 5V and low voltage a percentage of this, but I must not vary the amplitude during execution of VI.

    With digital outputs, you are limited to two levels. Low and High. (1 and 0). Here are the outputs of the DIO lines as DC voltage levels. The two levels can be anything, but 0v is most commonly used for bass and 5v is used for the great. This is called (as well as some other features) TTL logic.

    There are some cards that allow you to choose the digital voltage levels, but your all-in-one does not provide this functionality.

    You could do something similar with digital, where you have only used the 0v and 5v levels.

    You are absolutely right that software control timing is less precise than the timing control material, however, if you did a spot of digital output in this way and set it up to do the finished samples or continuous, it would use a material timing and would therefore be very accurate (in accordance with the specifications in the technical data of the device).

  • is it ok to connect two outputs analog voltage in series?

    Ok... I have a PS-210 FieldPoint... basically an analog voltage output 0 - 10V, 200mA per channel (with additional external power supply)... my question is... can I plug two channels in series?  Love how I can put two AA batteries in the series... and then to double my blood pressure?  and then check my two separate channels and the sum of the tensions would be assujettirait I have my load in?

    Thank you!

    No, you can't.  The channels all share the common side of their outputs.  If you've tried to hang them in the series, you have wind of short-circuit one output from the ground.

    The reason for which you can do with batteries is that the tensions are floating.  There is no common reference between the negative terminals of both batteries.

  • I have a license for adobe design standard cs6 for windows, but I would like to change that to a mac license. Is this possible?

    I have a license for adobe design standard cs6 for windows, but I would like to change that to a mac license. Is this possible?

    Hello

    The following link should help:

    Exchange a product for a different version of the language or platform

    Thank you

    Varun

  • Designed a site for desktop in muse, want to tweak it for mobile

    I designed a site for office in muse and want to tweak it for mobile phones and tablets. Y at - it an easy way to make the settings or what I need to start from scratch for tablets and phones?

    Hello

    Please follow the below tutorial documents and videos to aid in the creation of mobile sites:

    Adobe help Muse | Creating a Web site for mobile devices

    https://helpx.Adobe.com/Muse/how-to/muse-mobile-site.html

    Kind regards

    Akshay

  • I'm having a problem of design with photoshop for my site.

    I'm having a problem of design with photoshop for my site. www.satoriwaters.com.If someone can help me that would be great.

    As said by Mr. Pfaffenbichler, explain the problem correctly and provide the necessary technical information such as what version of PS, what system and so on.

    Mylenium

Maybe you are looking for

  • Sierra Mac OS and Time Machine?

    Hello Since the update for Sierra, time machine takes really long in the "preparation of backup." I was not able to save my mac since. Can someone tell me why this is happening and if I'll ever back on my mac?

  • Tecra A4 battery issue

    I was wondering, I always use the battery on the laptop with power on, which will make the battery with less ability to work alone?is it short is life?

  • Sometimes my iPad play a song without music launched App.

    This does not happen often, so I don't understand what I do to start this. But some times I use my iPad Air and about something (I think it's in this case) and it has nothing to do with music and music application is not launched, and all of a sudden

  • locked computer, black white screen

    I have locked my computer by mistake and now can't log on. When I turn the computer on the screen is black and I can not know how to unlock

  • HP dm3-1040us administrator or power on password

    Hello I got a laptop HP dm3-1040us, who has already had a supply problem. Now, I managed to have set in motion, but it is asking me for the administrative or power on password (I don't think I have or never implemented before) After I tried 3 times i