Adjust the output value

I am an absolute beginner to Labview, and I have so many problems that I don't know if I'll be able to finish it, even if it seems that it should be so simple.

Here is the complete program, that I need to create, and then I'll ask my question and I hope I can get help on what is possible on this forum.

I need to have an oscilloscope and a generator of signals communicate. I need to start a frequency and the power of the signal generator. The oscilloscope read this power as a tension (I've got this part so far). Then I need to compare this voltage to an assigned value and if they are different, adjust power accordingly on the signal generator until the voltage is equal to (with a tolerance) and the value of the rated voltage. Once this is done, I need to read the power of the signal generator and then move to the next frequency.

The hardest part for me so far and the question for this forum is: how to compare a value of output with a value assigned and so different, adjust the output value until they become equal, remembering that I'm adjusting a power on the signal generator to get equal tension on an oscilloscope?

I hope this question makes sense. So I'm back to this program and I don't have anyone in my group who can help me, so I'm desperate. Thanks in advance.

davedude,

The short answer is to use the range of comparison functions. To make a comparison with a tolerance, you can use the cooker and force function.  Always keep the Help window open context while you program - it explain the inputs and outputs and describe the basic function of the node that the cursor. One of the outputs is a Boolean value called in range? That wire to the terminal of selector of a box structure. In the case of 'out of Range', carry out the adjustment.

The entire program should be in a while loop if all continues to repeat until done or until a button is pressed.

A good approach for this kind of problem is to use a state machine, which can be implemented as a while loop that contains a structure of housing.  There are examples that come with LabVIEW.

Lynn

Tags: NI Software

Similar Questions

  • Read the output values after each step runs in the User Interface of LabVIEW

    Hi all

    Development environment: TestStand 2010 SP1 and LabVIEW 2010 SP1

    Problem: is there a way to run the following steps programmatically and get values out of each of them?

    I have already extended a bit a complete interface IO for TestStand load any sequence, choose among the measures and execute step by step (something as an alternative to the steps run selected). What I'm trying to do is to add some actions between each step and do in the UI (I can't change the sequence!), so I start the NewExecution with some previously configured InteractiveArgsParam and option breakAtFirstStep set to true. Eventually I do just something like step over when debugging the sequence and it works well, but I didn't do well a way yet to read the output values of the place...

    So, if I wait before the end of the run I can read my results by treating the ResultObject, but it works only after the completion of the test sequence. Because I wanted to stop after each step, read the values, do some actions and continue to the next step, I've tried to register a running Trace event reminder View Manager. I see that after each step is executed, this event is fired, but when I try to read that a ResultObject returned in the event data it is not filled with values (ResultList seems to be empty?). Is this a correct behavior or maybe I'm reading the wrong way? (It's the same VI regarding the reading of the ResultObjects after the sequence ends and there it works very well for tables, containers and other types of data).

    As I mentioned I can't change Test sequences, I can not add a UImessages.

    What are my options? If the trace event returns output all the values from each steps or is it just used to check the status? Or maybe there's a completely different approach to this issue?

    Thanks in advance for your suggestions,

    Best regards.

    When you manipulate the UIMessage trace (you need this before the return of the event or you will present the race conditions), download myuimessage. Thread. Then call Thread.GetSequenceContext (0, & Iplease).

    And then on the context of the sequence, either go to PreviousStep.Result if it exists, or watch Locals.ResultList.

    Trace events occur between the steps executed step the more recently is the previous step, but it is also a trace event to the beginning before any measure have run at this time, there will be a previous step.

    Hope this helps,

    -Doug

  • The outputs (values) following queries are equal?

    Are the outputs (values) of the following explains equal of queries by Oracle?
    SQL> select to_char(sysdate+1/24,'yymmddhh24') from dual;
    
    TO_CHAR(
    --------
    09081513
    
    SQL> select to_char(sysdate, 'yymmddhh24miss') from dual;
    
    TO_CHAR(SYSD
    ------------
    090815130000

    I think it's good.

  • [Insert values in table with the output values of the procedure]

    Hello

    I wrote the following procedure

    <>PROCEDURE
    create or replace procedure experience is
    cursor curexp is e.employee_id, trunc (months_between (jh.end_date, jh.start_date)) select exp, e.first_name, e.last_name, d.department_name, l.city, c.country_name, l.street_address
    e employees, job_history jh, departments d, places the country c
    where e.employee_id = jh.employee_id
    and e.department_id = d.department_id
    and d.location_id = l.location_id
    and l.country_id = c.country_id;

    v_result curexp % rowtype;

    Start
    Open curexp;
    loop
    extract the curexp in v_result;
    When the output curexp % notfound;
    dbms_output.put_line (v_result.employee_id |) ' '|| v_result.exp | ' '|| v_result.first_name | v_result.last_name);
    end loop;
    end;
    < / procedure >

    to get the values as below
    < output >
    101 NeenaKochhar 49
    101 NeenaKochhar 40
    102 66 LexDe Haan
    114 DenRaphaely 21
    122 PayamKaufling 11
    176 helenethibaut 9
    176 helenethibaut 11
    200 JenniferWhalen 69
    200 JenniferWhalen 53
    201 MichaelHartstein 46
    < / output >
    After that, I created a table as below
    < table >
    create table exp_recored (employee_id number, number of exp_mon, name varchar2 (20))
    < /table >
    Now I want to insert values in the table above

    I tried like below
    < Insert >
    Start
    insert into exp_recored (employe_id, exp_mon, name) values (experience);
    end;
    < / insetr >
    but I got error like below

    PL/SQL: ORA-00947: not enough values

    Could someone tell me please on the above point

    Thank you
    Thelak

    thelakbe wrote:
    Hello

    I tried too

    During this operation
    Start
    insert into exp_recored (employe_id, exp_mon, name) values (v_result.employee_id, v_result.exp, v_result.first_name | v_result.last_name);
    end;

    I got the below error

    PL/SQL: ORA-00984: column not allowed here

    You can try this?

    CREATE OR REPLACE
    PROCEDURE experience
    IS
      CURSOR curexp
      IS
        SELECT e.employee_id,
          TRUNC(months_between(jh.end_date,jh.start_date)) exp,
          e.first_name,
          e.last_name,
          d.department_name,
          l.city,
          c.country_name,
          l.street_address
        FROM employees e,
          job_history jh,
          departments d,
          locations l,
          countries c
        WHERE e.employee_id=jh.employee_id
        AND e.department_id=d.department_id
        AND d.location_id  =l.location_id
        AND l.country_id   =c.country_id;
      v_result curexp%rowtype;
    BEGIN
      OPEN curexp;
      LOOP
        FETCH CUREXP INTO V_RESULT;
        EXIT WHEN CUREXP% NOTFOUND;
    
        INSERT INTO EXP_RECORED (EMPLOYEE_ID,EXP_MON,NAME)
        VALUES (V_RESULT.EMPLOYEE_ID,V_RESULT.EXP,V_RESULT.FIRST_NAME||V_RESULT.LAST_NAME);
      END LOOP;
    
      COMMIT;
    END;
    
  • Adjust the background color to match the specific shade

    Hello!

    I was instructed to clean a few images from a studio session. Either the background seamless was the wrong color, or was invaded by evil and its color must be adjusted slightly. I have isolated the backdrop as its own layer and simply adjust its color to match a specific shade (RGB, CMYK # s provided). There is a certain gradient due to the installation of lighting, so it will not be uniform everywhere, but it's OK.

    I do not see how to adjust hue, saturation, brightness in the options I tried (adaptation layer, replace color etc), which lead me to the eye there. I need to enter the RGB or CMYK #s and apply to adjust the color of the background (layer) together. Cannot know what I'm missing here.

    Appreciate any help! Thank you!

    When you sample the color you want to match, write these numbers.

    Now, on the background you want to adjust in order to match the colors that you noted, raising some adjustment tool to use, I use the hue and Saturation, for example.

    The color eyedropper sampler allows you to place a sampler on the background area that you need to change the color that you want to match.

    Now, you'll notice there are distributed the values in the range of information if you look at the values of the sampler. In this case #1 (see screenshot)
    The value on the left is the original sample value, the number on the right represents the new value when you move the sliders in the parameters of adjustment layers. Keep these move around until you get the number to reach the numbers you noted at the beginning. Be warned, the numbers on the sliders are not relevant to a certain extent. You make adjustments while watching the Info palette.

    See above, I've adjusted the main value and saturation, and you can see the RGB values on the #1 sampler is different. When those numbers coincide with everything what I'm trying to correspond with as a value of the sample, you should be good. Although my value is defined in RGB, I would recommend colors you sample and football game, as HSB values. It is easier, then by a channel with RGB match.

    Good luck!

  • Opacity of the giving the same value as the fill color (reversal opacity/fill)

    I'm looking to add a script that takes the value of fill of nuances in my art folder and apply these values to the opacity of each sample.  I would also like to be able to adjust the fill value to be 100% when you are finished.  I have a javascript script that I thought would work, but it has no effect on any of the objects in the file.

    Example:

    Original art: object 1: fill 50%, opacity 100% / / object 2: fill 60%, opacity 100%

    Desired result: object 1: fill 100%, opacity 50% / / object 2: fill 100%, opacity 60%

    Any help would be appreciated.

    Sorry the question was silly and useless, so I deleted it...

    This is the absolutely most fundamental and most simple way to do this. It's not the ideal way because it relies on the hard numerical values. but with this, you should be able to design other variables or arrays to make it work with values that do not have to be hard-coded.

    var docRef = app.activeDocument;
    var paths = docRef.pathItems;
    
    for (i=0; i< paths.length; i++){
        if (paths[i].fillColor.tint == 50 && paths[i].opacity == 100){
            paths[i].fillColor.tint = 100;
            paths[i].opacity = 50;
    
            }
        else if (paths[i].fillColor.tint == 100 && paths[i].opacity == 50){
            paths[i].fillColor.tint = 50;
            paths[i].opacity = 100;
    
            }
        }
    
  • Any way to customize the output of tag_eventfromdate to view a different date format?

    The {tag_eventfromdate} and {tag_eventtodate} out of the dates in the format DD-MMM-AA is not-very-nice. Is it possible to adjust the output format to something more human of the environment as 'November 22, 2014?

    In the live platform - only with javascript at the moment.

  • adjustment of curve input gives the output

    Hi everyone, I'm having a problem with the adjustment function

    I take the output, what I give as input, where am I wrong?

    example, I give 4 values, if I get 6 values that it works, but I need to do with 4 values.

    any ideas?

    Thank you


  • reset all outputs the initial values

    Hello

    in our case, a project VeriStand is running on a machine RT with cRIO-I/O.

    Is there a possibility to reset all outputs to the initial value, while the project is running? (I don't want to restart the system in real time or deploy the project to new because who consumes too much time).

    Hello

    You can create an alarm that calls a reset procedure. The alarm can be mapped on a Boolean button in the workspace. Or you can call a Sequenze RT to reset your values.

    Best regards

    Philippe

  • List of input values (multi-column) must return the output text once the value is selected

    Hello

    I am trying to achieve conditional:

    I create a searchVO(select '' empNumber from dual) - to accept the input value (name empNumber).

    I create empLovVO (select enum,ename, addr, city of emp). lov attached to empNumber (searchVO).

    In the list of values when I select a value (emp 1, a, xyz, abc), it must return the default aby associated with emp values 1 to my output texts

    the name of the EMP one.

    addr xyz

    City abc

    It should also automatically change the values if I select another empNumber.

    Please let me know how to achieve this.


    Thank you

    Firstly, for the searchVO, add a three other attributes, name, address, and City, the type of string:

    and make sure they are still editable:

    Then, you're mapped LOV enum attribute EmpNumber, right?

    Do similar for the newly created attributes, in the list of values dialog box validation:

    Ename--> name,

    --> addr addr,

    City--> City

    Then, just to show these attributes in the form of output text, and you'll get what you want...

  • Is the version of the output parameter 32 bits 12.1.0.2 Oracle ODBC driver truncating values a known issue?

    We test 12.1.0.2 Oracle and ODBC see problems with the stored procedure being cut output parameter values and Associates when we use the 12.1.0.2 driver (we use the 32-bit version). We see a function sequence error every time that happens, too.

    For example, a stored procedure takes a NVARCHAR2 name and it out as a separate NVARCHAR2 output parameter. Using the 12.1.0.2 of the ODBC driver, if we "Basketball", the output can be "Basketball" (with a function sequence error).

    What is happening to many of our stored procedures. We do not get the errors of sequence of function or output truncated if parameters we use the 12.1.0.1 version of the ODBC driver to connect to our 12.1.0.2 database, or if we use the version 11.2.0.4 or 11.2.0.2 ODBC driver.

    Is this a known problem in the 12.1.0.2 ODBC driver?

    Thank you

    Daniel Meyer

    to submit a bug report to MOS

  • display of the output cursor empty with null values

    I have the below procedure of the State where he is shown the output to the client.

    The requirement now is if the select statement does not return a value any with the input given then output parameter should see NULL values instead of no line at all.


    One method is to get the number of the select query that is written in "open p_out for." And then write the condition as if count is 0 then null other show data.

    Could you please suggest me any other alternative to this.

    Create or replace procedure test (p_empno in number , p_out out sys_refcursor) is
    
    begin
     open p_out for 
     select e.ename, d.deptname, s.sal , p.addr , v.age
      from emp e ,dept d, sal s, padress p , age v
     where e.deptno = d.deptno and d.deptno = s.deptno
     s.sal_id = p.sal_id and p.id = v.id
    and e.empno = p_empno ;
    
     
    exception when others then
     open p_out for 
     select null , null,null,null,null from dual;
    
     
    end test.
    

    Thank you

    Maybe NOT TESTED!

    Select x.ename, x.deptname, x.sal, x.addr, x.age

    of the double

    left outer join

    (select e.ename, d.deptname, s.sal, p.addr, v.age

    from emp e,.

    d Dept,

    SAL s,

    padress p,

    v of the age

    where e.deptno = d.deptno

    and d.deptno = s.deptno

    and s.sal_id = p.sal_id

    and p.id = v.id

    and e.empno = p_empno

    ) x

    1 = 1

    Concerning

    Etbin

    Select x.*

    of the double

    left outer join

    (select *)

    WCP

    where ename = 'ETBIN.

    ) x

    1 = 1

    EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
    - - - - - - - -
  • How to find duplicates of a field value? For example - in a field, I have values like {123,345,346,123}, now I want to remove the duplicate value in the field so that my output looks like {123,345,346}

    How to find duplicates of a field value? For example - in a field, I have values like {123,345,346,123}, now I want to remove the duplicate value in the field so that my output looks like {123,345,346}

    If it's an array you want to deduplicate then here is a script [for use in the Script Processor] I prepared earlier:

    var result = new Array();

    var added = new Object();

    If (input1 [0]! = null)

    {

    for (var i = 0; i)< input1[0].length;="">

    {

    var point = input1 [0] [i];

    If (! added [item])

    {

    added [item] = 1;

    result [result. Length] = item;

    }

    }

    }

    Output 1 = result;

    Kind regards

    Nick

  • can I store the output of boolean values in a table?

    the codification output here is '1' and '0'...
    I want to store only '1' and '0' in a table...

    but I can't do it please help me...

    How to store?...

    DECLARE
    EID VARCHAR2 (20);
    BOOLEAN BL: = TRUE;
    BEGIN
    SELECT EMP_NO
    IN EID
    OF LEAVE_FORM
    WHERE EMP_NO = 1;
    BL: = TRUE;
    DBMS_OUTPUT. Put_line (sys. DIUTIL.bool_to_int (BL));
    insert into t1 (BL) values; - error
    EXCEPTION
    When no_data_found then
    BL: = FALSE;
    DBMS_OUTPUT. Put_line (sys. DIUTIL.bool_to_int (BL));
    END;

    Published by: 794244 on February 9, 2011 03:11

    No, you can't. BOOLEAN is no SQL, PL/SQL data type. You did not post structure of table t1. Assumimg t1 column has the number value, use:

    DECLARE
        BL BOOLEAN := TRUE;
        N  NUMBER;
    BEGIN
        N:= sys.DIUTIL.bool_to_int(BL);
        DBMS_OUTPUT.PUT_LINE(N);
        insert into t1 values(N);
        BL := FALSE;
        N:= sys.DIUTIL.bool_to_int(BL);
        DBMS_OUTPUT.PUT_LINE(N);
        insert into t1 values(N);
    END;
    /
    select * from t1
    /
    
            BL
    ----------
             1
             0
    
    SQL>  
    

    SY.

  • option to enter the RGB value and output on the image?

    Long story short... we have thousands of images we need to gather information than RGB transfer us to an excel doc.  It is used to create a script that would automatically color - choose a certain position of pixel (500, 500) and output values 3 somewhere on top of the image (like a huge text layer)?  I'm looking for just a quick way to find the RGB values of these images without having to manually color each of them choose.

    I would be grateful for any info on the subject.

    Thank you!

    I posted a script here...

    http://www.PS-scripts.com/BB/viewtopic.php?f=9&t=4117&SID=766cc720b24315eb55365013c418bbde

Maybe you are looking for

  • Satellite M40X-184 road's DVD/CD-RW cannot read CD

    I have a three month old by Satellite M40X-184 with Mat * one UJDA760 DVD/CD-RW drive. These days the optical drive cannot read any kind of CD. But it can read the DVD. Is someone can you please tell me what is wrong with him? Is the drive broken? Ne

  • There are two updates of BIOS for Satellite A210 2, 00 - WIN & 2, 30 - WIN

    In 2010 there are two updates of BIOS for Satellite A210 2, 00 - WIN & 2, 30 - WINIn archive: http://eu.computers.toshiba-europe.com/innovation/download_bios.jsp They compatible for Satellite A210-1AO, part number: PSAELE-03Q009G3 (BIOS/date TOSHIBA

  • Why my mousepad of envy going crazy after that, I was online for a while?

    Why my laptop running Windows 8.1 envy TouchSmart seems to have a mouse who becomes crazy after a few minutes online?  Block Web sites and they can only be closed with the Task Manager; get ahead start requires 10 trials, because it keeps flipping fr

  • Unrecognized message security certificate blocking Livemail

    I received an email from a recognized source (yachting magazine) I receive on a regular basis.  I get a message indicating that the security certificate is not recognized, but whatever the option I then choose the system crashes completely and the er

  • driver Intel hd grafics

    Mr President, my machine -dell inspiron 15r n5010 windows 7 home top - os 32-bit sp1, build - 7601, directx version - 11 processior - intel Core i3 cpu m [email protected] ghz(cpu:0) motherboard - string version of bios hm57 chipset intel pch - a10 is my vide