How to generate a format with special values

Hello

I'm new to Labview. Now I have a task that require me to develop a VI. This Vi can save the value at a specific frequency like the following table:

V1out

V2out

Frequency (kHz)

Ratio

458,5

456,2

1.0

0.99

456,2

453.3

10.0

0.99

450,9

444.5

100.0

0.99

447,4

445,7

200.0

1.00

445,3

445,1

300.0

1.00

444,8

458,7

400,0

1.03

440.9

460,7

500.0

1.04

437.0

468,7

600,0

1.07

429,1

488.2

700,0

1.14

417.0

496.4

800,0

1.19

397,6

511.7

900.0

1.29

378.0

535,4

1000.0

1.42

For example, when the frequency is 1 kHz, there are a record of 458.5 V1out and V2out 456,2. This process can be performed in Labview?

Any help will be much appreciated.

See you soon

Hi Yang!

I checked your VI and I made a few changes, this VI shows a table that you post!

Concerning

Tags: NI Software

Similar Questions

  • How to make a loop with variable values depending on where you are in the loop

    Hello

    I need loops / nested loops that choose different figures depending on where you are in the loop.

    The entire function must operate at times 'ml '. 'ml' is a dynamic figure.

    Loop 1 = while the loop is the first 12 iterations, "exconemp" must be equal to 100. 13-24 iterations, 'exconemp' to 102.5 equal, for 25-36 TI 105.06, 37-48, it will be 107.69. This must change each 12th iteration until he reached 'ml '. The calculation takes the value of the previous 'exconemp' and then that multiply by 0.025.

    Loop 2 = while the loop is in 120 first iterations, 'abc' should be equal to 0.015 and additional iterations should use 0.01. It should also work in a way to know if 'ml' is greater or less than 120 and work accordingly.

    My main problem is - this - how can I get loops to go like this:

    While the iteration is < 12, to do this, THEN take the final figure (12th iteration) and begin the 13-24, make this SO etc etc.

    How to produce a THEN statement? I can get the code to pick up the final values, but does not change along the way.

    I think I might better create an array for loop 1, but I'm not entirely convinced of that. Also, I think it would be better/more net if I can get "month total 1 ' and ' month 2 total ' in loops, but do not know how to do this.

    The values I need to produce (only 36 first shown):

    1-12 = 125.55, 251,65, 378.31, 505.52, 633.29, 761.63, 890.53, 1019.99, 1150.03, 1280.63, 1411.81, 1543.57
    13-24 = 1679.05, 1815.12, 1951.79, 2089.06, 2226.93, 2365.41, 2504.50, 2644.20, 2784.52, 2925.45, 3067.00, 3209.18
    25-36 = 3355.19, 3501.85, 3649.15, 3797.11, 3945.71, 4094.96, 4244.87, 4395.44, 4546.68, 4698.57, 4851.14, 5004.38

    var ml = 240 / / dynamic figure, multiple of 12 up to 780
    var exconemp;
    var exconem = 100;
    var inf = 0.025;
    Tree var;
    var tec;
    power of the var;
    var fvis;
    var abc;
    var fvee;
    MVT var;
    function myfunction() {}

    Loop 1

    While (ml < = 12) {}
    exconemp = exconem;
    // }
    so that {(ml > 12)
    exconemp = exconem * inf;
    //}

    end loop 1

    trace ("exconemp =", exconemp); employee contribution

    tree = exconemp /(1-0.2)-exconemp;
    TEC = exconemp + tree;
    trace ('tree', tree);
    trace ("tec", tec);
    power = Math.pow (1 + 0.07, 1/12);

    Loop 2

    While (ml < = 120) {}
    ABC = 0.015;
    //}
    then {}
    ABC = 0.01;
    //}

    end loop 2

    fvis = power *(1-abc/12);
    trace ("fvis =", fvis);
    FVEE = tec * fvis;
    trace ("fvee =", fvee); month 1 total
    MVT = (CET + fvee) * fvis;
    trace ("MVT =", MVT); month 2 total
    //

    for (var i: Number = 0; i < ml; i ++)
    {
    MVT = (CET + MVT) * fvis;
    trace ("tfvloop =", MVT);
    }
    }

    I hope that I've explained this well enough.

    Thanks in advance.

    I think that will do it even if I don't quite get the numbers you posted.

    Stop();

    var ml = 48; figure dynamic, multiple of 12 up to 780
    var exconemp;
    var exconem = 100;
    var inf = 0.025;
    Tree var;
    var tec;
    power of the var;
    var fvis;
    var abc = 0.15;
    var fvee;
    MVT var;

    MyFunction();

    function myfunction()
    {
    exconemp = exconem;

    for (var index: uint = 1; index)<= ml;="">
    {
    trace(index + "--------------------------------");
               
    tree = exconemp /(1-0.2)-exconemp;
    TEC = exconemp + tree;
    power = Math.pow (1 + 0.07, 1/12);
    fvis = power *(1-abc/12);
    FVEE = tec * fvis;
                       
    if(index == 1)
    {
    trace ("month 1 total =", fvee);
    }
    another if (index == 2)
    {
    MVT = (CET + fvee) * fvis;
    trace ("month 2 total =", MVT); month 2 total
    }
    on the other
    {
    MVT = (CET + MVT) * fvis; now that we're here the MVT auto perpetuates on himself
    trace ("months" + index + "total =", MVT); month total n
    }
                       
               
    If (index %12 == 0)
    {
    exconemp = exconemp *(1+inf);
    trace ("changed to exconemp to:" + exconemp);
    }
               
    If (index % 120 == 0)
    {
    ABC =. 01;
    trace ("changed abc to:" + abc);
    }
               
    }
    }

  • For the complex data type, how to generate the Dll with compatible interface to C/C++

    Hello

    I used the Labview FPGA module to develop test equipment. Now, I need to write a driver that is to be a Dll with compatible interface to C/C++ for this equipment. So that my client who is familiar with C/C++ can call the driver without any study on labview. But I had a few problem on how to convert labview for C/C++ data complex data type. To clearly explain to my question, I have attached a simple example. (see attachment) I try to generate a Dll for the attached example VI and get the the function prototype at the head of the files as below:

    ' void OpenFpgaReference (LStrHandle * RIODevice, TD1 * errorIn, LVRefNum * FPGAVIReferenceOut, TD1 * errorOut).

    As you have known, the type of data "LStrHandle * RIODevice" and "LVRefNum * FPGAVIReferenceOut" Labview data format are. C/C++ do not have this kind of data type and can not reconige it. As a result, I can't call the Dll of C/C++ programming language. How to convert these two data type of labview for the C/C++ compatible data format, and then build the Dll? Anyone know about this?

    The answer is really apprecaited! Thank you in advanced.

    Ivan.Chen wrote:

    As I found in the following article:

    http://digital.NI.com/public.nsf/WebSearch/FB001AA027C8998386256AAD006C142D?OpenDocument

    LVRefNum is the name of resource of LabVIEW VISA or refnum, and "it is impossible to convert LabVIEW VISA name of resource or refnum VISession valid ID."
    This means that external code modules can not access & control the session VISA which is open by labview. But for my purposes, I will not attempt to access this VISA extenal code(C/C++) session. I just hope that save this session VISA in the external code once I opened it in Labview dll; and pass it to the labview dll when needed. While I have not need to login again when I need to control the device. Is it possible to do?

    A LVRefNum is really just a single int32 value. Its meaning is useless for other environments than those who created it so that you Michael not any what in C/C++ caller but pass it back to other functions in your DLL, but this often isn't a problem at all.

    You can take the following statement of the LabVIEW extcode.h headers and add them to your delabviewed header files to make it work in such a way.

    #define Private (T) typedef struct T # _t {void * p ;} * T}

    Private (LVRefNum);

    The LStrHandle you must set a standard C string instead in your export DLL and document what is the size of the string buffer should have if it is an output parameter.

    TD1 error clusters should also be divided into their parameters (C compatible) separate for all items or just to the left of suite entirely.

    Rolf Kalbermatter

  • 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 do a search with the value of the results being a hyperlink?

    Hi all

    I I created two tables, the table, one is a short version of the table 2 with the options from the drop-down list so that only the information you want are pulled up. so all my search formulas work to pre fill the columns following except where I'm doing the shoot hyperlinks table two as the results (values). I do what I've done for all the other search values (search for) (search - where) (results values) but I either get a sign of error or I get an empty cell. According to all other forms of research simply do not hyperlinks as results-values work... Please help. Thanks to anyone in advance!

    the LIEN_HYPERTEXTE function in numbers is described as follows:

    The LIEN_HYPERTEXTE function creates a clickable link that opens a Web page or a new e-mail message.

    • Hyperlink (url, link-text)
      • URL: a standard universal resource locator. URL is a string value which must contain a string correctly formatted Universal Resource Locator.
      • text link: an optional string value that specifies the text that appears as a clickable link in the cell. If the link text is omitted, the url is used as link text.

    As you can see, you can reference a page web (the URL may have on your local file system) or e-mail.  Maybe post an example of what you have will help us help you

  • Property of hierarchy DRM: EPMA. SharedDimension - how to get it filled with the values?

    We have a hierarchy of DRM, we want to push to a Dimension of sharing EPMA. In DRM, selecting the hierarchy and by changing the 'Dimension' shared property, the drop-down list box previously had values in there (some have been our shared Dimensions EPMA, but several us not the Shared Dimensions) but no longer has any selectable values. How do we get DRM to sort the list of the Shared Dimensions of our EPMA instance in the drop-down list of properties shared Dimension?

    Hello

    I could be wrong completely here, but that's what I discovered trying to look for EPMA. Property of SharedDimension.

    This property gives me drop-down list without having to do anything and the drop down menu is the list of groups available in hierarchy, but if I'm putting some values manually in the definition of ownership--> the list of values is not showing me all the values (list of groups of hierarchies and not the value created manually) in the drop-down list.

    I think that this property will not take a different list than list of group hierarchy as the Data Type defined for that property in the model of the APP is "Group of the hierarchy". Once again this property is used in the export "EPMA. E.M.P. architect Shared Library"to penetrate the hierarchies EPMA Shared Library.

    Then you can try to see if all values are entered in the definition of the property--> list and try to delete it OR to check if the required groups in the hierarchy are created in consequence.

    Let me know if it helps

    Thank you

    TFDC

  • How to write the condition with the value of the parameter

    Hello
    I'm working on siebel BI publisher report. I am able to display the value of the parameter in the report.

    Now, I wanted to do something logical based on the value of the parameter.

    for example: If the user changes the value of the parameter then I have to call A submodel if user don't past not any value then it should not display A submodel

    can someone tell me how to write that above logic?

    If the parameter exists then MODEL of APPEAL one another do not call MODEL A

    Kind regards
    JAG


    Dial a submodel

  • the external script file... How to generate a code via a value on the table

    Hello

    I have a customer interactive report (0ver 200) with zoom before capacity... when the user clicks an individual customer, a new report (client profile) opens with the details on the customer's product, etc... I try to add the latest news through Google RSS reader in customer profile report... Following the code works very well for company ABC (symbal ABC Stock. (TO)...

    < html >
    < body >

    < script src = "http://www.gmodules.com/ig/ifr?url=http :// www.ajaxgaier.com/iGoogle/rss-reader%2B.xml & amp;" up_title = News & amp;up_feed=http%3A%2F%2Ffinance.yahoo.com%2Frss%2Fheadline%3Fs%3DABC.TO & amp; up_contentnr = 10 & amp; up_fontsize = 12 & amp; up_titlelink = & amp; up_bullet = 1 & amp; up_reload_feed = 1 & amp; up_reload_fqcy = 0 & amp; synd. = open the & amp; w = 394 & amp; h = 255 & amp; title = News & amp; border = % 23ffffff % 7C3px % 2C1px + solid + % 23999999 & amp; output = js "> < / script >.

    < / body >
    < / html >


    Is there a way to make the above dynamic code, which means that when I click on the ABC Company (from my customer interactive report), then the next page should have news and product of the client (as the code shown above) associated with the ABC company...

    But when I click on company BCE (from my customer interactive report) then the next page should have news and products clients related to business ECB...

    Thanks in advance...

    Talbot wrote:
    the foregoing suppose to work...?

    try changing:

    TO:

    Van
    Trent

  • How to generate an xml file?

    I just starting to learn how to generate xml data with the actionscript here is what I have so far:

    var xml =
    < ErikPhotos >
    < / ErikPhotos >;

    so that {(xml.photo.length (< 20))
    var point: XML = < photo / >;
    DevBlog var = xml.photo.length () + 10001;
    Item.@name = photoIndex.toString () .substr (1);
    xml.appendChild (item);
    }

    trace (XML);

    If I followed what I get:

    < ErikPhotos >
    < name photo = "0001" / >
    < name photo = "0002" / >
    < name photo = "0003" / >
    < name photo = "0004" / >
    < name photo = "0005" / >
    < name photo = "0006" / >
    < name photo = "0007" / >
    < name photo = "0008" / >
    < name photo = "0009" / >
    < name photo = "0010" / >
    < name photo = "0011" / >
    < name photo = "0012" / >
    < name photo '0013' = / >
    < name photo = "0014" / >
    < name photo = "0015" / >
    < name photo = "0016" / >
    < name photo = "0017" / >
    < name photo = "0018" / >
    < name photo = "0019" / >
    < name photo = "0020" / >
    < / ErikPhotos >

    that is what I wanted... So far so good.  Now I want to do is make the script write a real xml file which will be in my directory after you run the script.

    If this isn't a web-based application, you can use adobe air.

  • Generating random numbers with format 18XX88YYYYY

    I've been tryig to generate random numbers with
    format 18xx88yyyyy
    here
    18, followed by two random number then 88 followed by five random number. Here 18 and 88 are set to place one, two, five and sixth position.

    but I am unable to get the logic.

    So please help


    Thanx

    Achyot

    Try this:

    SELECT    '18'
           || ROUND (DBMS_RANDOM.VALUE (1, 100))
           || '88'
           || ROUND (DBMS_RANDOM.VALUE (1, 100000))
      FROM DUAL
    

    - - - - - - - - - - - - - - - - - - - - -
    Kamran Agayev a. (10g OCP)
    http://kamranagayev.WordPress.com

  • I have a column with two values, separated by a space, in each line. How to create 2 new columns with the first value in a column, and the second value in another column?

    I have a column with two values, separated by a space, in each line. How do I create 2 new columns with the first value in one column and the second value in another column?

    Add two new columns after than the original with space separated values column.

    Select cell B1 and type (or copy and paste it here) the formula:

    = IF (Len (a1) > 0, LEFT (A1, FIND ("", A1) −1), ' ')

    shortcut for this is:

    B1 = if (Len (a1) > 0, LEFT (A1, FIND ("", A1) −1), ' ')

    C1 = if (Len (a1) > 0, Member SUBSTITUTE (A1, B1 & "", ""), "")

    or

    the formula of the C1 could also be:

    = IF (Len (a1) > 0, RIGHT (A1, LEN (A1) −FIND ("", A1)), "")

    Select cells B1 and C1, copy

    Select cells B1 at the end of the C column, paste

  • How to paste special values from excel

    I use tor Excel Mac.

    I was sent a spreadsheet "number". For what I do in Excel I use Copy > click right to "paste special" > values.

    Job done.

    When I try this with the 'Numbers' Clipboard window special dough gives me options of text, HTML, PDF, Unicode text and photo.

    I would greatly appreciate some advice.

    Thank you.

    Hi srvw,.

    Do the conversion in number.

    "Paste Special > values" in Excel = 'Paste the results of the formulas' in number.

    Here is a document of numbers with a formula in column C

    Select and copy the C column.

    Add another column (D).

    In column D, Menu > edit > paste formula results.

    The values are now real (no formulas).

    Column D to copy and paste into Excel.

    Kind regards

    Ian.

    Edit: I use numbers 3.6.1 on OS X El Capitan. If your profile is up to date (and that you use Numbers ' 09) menu is command 'paste values' not 'paste it formula results.

    Ian.

  • How can I compare unique value with several value...

    Hello

    I want to compare a value with multiple values, how is it possible?

    I tried to design the same logic here as an attachment, but I had the problem that when I entered the value of y that is compared with only a minimum value of x, I don't want I want to compare the value of y with the value of x and then if y is less than x while loop should be stop.

    I want to do because in my program some time I have not result I want, for example, the values of x is 4,5,6,7,8 and value is assumed to be 6 then while loop should be stop but here he considers only less and its 4 here so so that the loop is not stop even there is less then 7 and 8. So I want to compare the value of y with all values of x and if y is less then one of the values while x loop should be stop and led should be on.

    Please guide me how I can do...

    I don't understand?  If there is less than the minimum value of X then it is less than all values of X.  That's what I do anyway:

  • How to remove empty entries in a table and replace them with the values of the instance?

    I have a table with values and spaces elements. I want to organize items such as table contains only values eliminating the empty spaces and re-organize the table with the values of cotimuous.  I use a bollean table to populate the items, so the bolleans to false fill the empty I don't want spaces. How can I program the above operation?

    Thank you

    Thank you for your solution, but I just found an easier way. INDEXING CONDITIONAL!. How I miss that. in any case, thanks...

  • How can I access the recipient "subordinate" in the expressions for the participant to ApprovalTask generator type "by the expression" value?

    Hello

    How can I access the recipient "subordinate" in the expressions for the participant to ApprovalTask generator type "by the expression" value?

    I can access some details of the beneficiaries of the workload, but how to access direct subordinates?

    TIA

    Leo

    Well, as I said, if you need to get a list of all rollover (for whatever logic you have), making calls to IOM to find the list of users whose Manager is the person in your composite.

    Sorry if I am wrong again.

Maybe you are looking for

  • See list of Pocket option missing in my favorites

    I can't list option of pocket in my favorites and it's driving me crazy especially with the removed add-on. So now I have no one click access to the list of items saved in the Pocket. Using Firefox 38.0.5 GB version of Home Office and Firefox 38.0.5

  • Can I disable gestures?

    Last week crush my house and my iMac mid-2011 nuked. I bought a new machine of 21.5 inches. This comes with El Capitan. I also had a magical mouse 2. I find it very difficult to do some basic things like page down in a window with scroll bars. Also s

  • How to create a help button on the Panel before the VI?

    Hello I want to create a button for example a help button on the front of the VI so pressing that any new user can open folder in which I store some guidance assistance. Means do I have a folder on my desktop that I save all data which should prove u

  • With the help of NOR-IMAQ imgSnap (ANSI C) with Windows 7 x 64

    Hello I am trying to make a few acquisition base image using ANSI C to NOR-IMAQ calls (as distributed by the release of November 2009 Vision of OR). I develop on Windows 7 x 64. The Installer seems to work very well, but when I do the following call:

  • You can remove old updates from Windows as of 2006 or more

    Windows xp is slow runnling and I would like to remove some files can I delete old windows updates and hiddn files can I stop or remove?