Tracing of the three variables

Hello!

I use an XY graph to draw a series of time as well as measurement data. However, I want to include a third variable in the plot. This variable is a constant (straight line), but the XY graph does not accept more than two variables? No idea how this can be fixed?

Greetings

Kristoffer

Without more information, here is how I would do it.

Tags: NI Software

Similar Questions

  • Can I combine three variables by using the action of the Expression in advanced Actions?

    I have an assessment (contains 9 questions) in my project that contains 3 lessons. Each question relates to a specific lesson. I want to break the score on lessons on my Quiz slide, instead of display the total score for all of the evaluation of the results, so that the learner knows what activities require additional study. I created a variable to contain the points marked on each question and assigning points to this variable using "QuizInfoLastPointsScored".

    Screen Shot 2015-03-26 at 11.53.18 AM.png

    I know what are the questions focus on what lesson:

    Lesson 1: questions 1-3

    Lesson 2: questions 4 to 6

    Lesson 3: questions 7 to 9


    However, I don't know how to add 3 variables together to get the total for this lesson. The action of "Expression" only allows me to combine the 2 variables:

    Screen Shot 2015-03-26 at 11.58.09 AM.png

    How can I add a third variable in the action "Expression"?

    I thought you don't need three totals: a global and two partial totals. The latter will be calculated not the subtotals. There is no need to first put the score in a variable separate at all. I used only the variables for totals of the three. You will calculate only the total world, and who could be with a single statement, no need for two to all:

    Expression v_total = v_total + cpQuizInfoLastSlidePointScored



  • Formula for dividing the three entries from field (D = A/B/C)

    I have a formula to get a value, and this is to divide the three entries from field. I don't know enough about javascript to correctly enter the code to make this happen. I have 20 rows in a form and I need to calculate column D I saw a thread on how to divide the two fields, but I need to go further with it. Can someone help me? I added that I was working (left) and I tried to develop (right).

    Internet Personal

    establish the variables for the names of fields for the dividend and the divisor.

    var sDividend = ' domain name my dividends. "

    var sDivisor = 'name of the My divisor field. "

    get the value of the divisor field

    var nDivisor = this.getField ("sDivisor") .value;

    get the value of the dividend field

    var nDividend = this.getField('sDividend').vlalue;

    do not modify the code under this line

    Clear the value of the result field

    Event.value = ";

    see if we have a divisor of zero

    If (nDivisor! = 0) {}

    We can then divide

    Event.Value = nDividend / nDivisor;

    } / / end of calculation of the division

    The above assumes that you are dividing the value of the 2 fields.

    Assignment of the variables

    var PW1 = "PlotWt1";

    var WBC1 = "WetbuConversion1";

    var AF1 = "Acre Factor1";

    Get the values

    var nPW1 = this.getField (PW1) .value;

    var nWBC1 = this.getField ("WBC1") .value;

    FNa1 var = this.getField (AF1) .value;

    Clear the value of the result field

    Event.Value ="";

    see if we have a divisor of zero

    If (nWBC1! = 0) {}

    //Actual division operation

    event.value = nPW1 / nWBC1 / FNa1;

    } / / end of the calculation of the division

    Change the line of code:

    If (nWBC1! = 0 & nAFN! = 0) {}

    If you want to use the same calculation for a number of lines, you can create a function that all calculated fields can use, but it depends on the names of the fields that you use. If you are simply changing the number at the end, the function might be:

    function calc1(num) {
    
        // Assigning the variables
        var PW = "PlotWt" + num;
        var WBC = "WetbuConversion" + num;
        var AF = "AcreFactor1" + num;
    
        // Getting the values
        var nPW = this.getField(PW).value;
        var nWBC = this.getField(WBC).value;
        var nAF = this.getField(AF).value;
    
        // clear the result field value
        event.value="";
    
        // see if we have a non-zero divisor
        if (nWBC !=0 && nAF != 0) {
            //Actual division operation
            event.value = nPW / nWBC / nAF;
        }
    
    }
    

    You can then call it in the custom calculation of the field as the script:

    Calc1 (1);  Rank 1

    For line #5, it would be:

    Calc1 (5);  Rank 5

    This could be simplified a bit if you have changed your domain naming scheme to make it easier to extract the line number. In this way, that you wouldn't have to pass as I showed.

    To create a script at the level of the document to place the function, select: Advanced > Document Processing > Document JavaScripts > Add

  • Need help with the text variables

    I have a directory to which is more than 300 pages long.

    Each entry begins with a photo in a built-in framework shaped like a cat fall, followed by a space en dash and then the name, company, address, e-mail, etc.. Essentially, we have a photo hanging to the left and on the right information.

    The name is the last name in capital letters, first name and middle name propercase. I've defined a character style "Dict Head" and used in a paragraph style as style nested through 3 characters.

    Then, I defined a two text for the instance variable first and last instance on the page of the character style "Dict Head". I have a hyphen between the two variables (the goal is at the head of the race be "AAR - ABE," for example). The application, however, includes space en with three letters.

    I did a GREP search for space en with the applied character style and replaced it with himself, and < None > character style applied and which does not seem to get rid of. My current title looks like this " AAR - ABE." With invisible on I see the en space is still there.

    I deleted the text variables, exported a. File INX, opened soft and recreated the text variables and the spaces are still there.

    I'm open to suggestion.

    Ken

    It seems ID brings together up to three regular characters with which nesting style... (Okay - just tried and the original en-space is also considered to be a 'character' for this number of three.) No matter what... read more, please)

    You can not delete a character with your search and replace nested style. Try it - ID can be found but not change it to [anything].

    Possible workaround would be to not use the style nested to mark the names and put the character marker using a GREP search and replacement style.

  • Add formulas to the Substitution Variables

    Hi all

    I use the EPM 11 system. I have a classic planning application. I have my dataform, year during the period and the view of the column.

    I need to show the current year, next year and current month (derived from date system) on the form.

    To achieve this, I created three variable substitution in the EE * & CurYear, next & CurMonth.*

    Say for example if the date system is * 10 October 2009 * so CurYear show FY09 , next show FY10 and CurMonth show Oct.

    For now, I've hardcoded the values... but I'm trying to get through a way to get the above date system

    Can someone please advice how can I proceed to get variables to work...

    Kind regards.

    Mirka

    Hello

    How about something like

    SET year = FY % DATE: ~ 8, 2%
    SET months = % DATE: ~ 3, 2%

    *: Remove zero if it exists... *.
    Set /a month = % 1 month - %100

    Set monthstring=Jan@Feb@Mar@Apr@May@Jun@Jul@Aug@Sep@Oct@Nov@Dec

    for /f "tokens = % month % delims = @" % to ("echo.%monthstring%"), do)
    Set months = %% j
    *)*

    echo% % month
    echo% % year

    Say that the year is 2009, this would create a year = FY09
    And months must be converted into a month name

    Ok?

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • I have House part for my iPhone and apple TV, but the iPhone libraries are not listed under computers on Apple TV.  I don't see libraries for my Mac.  I use the same ID across the three devices apple

    I have House part for my iPhone and apple TV, but the iPhone libraries are not listed under computers on Apple TV.  I don't see libraries for my Mac.  I use the same identifier apple through the three devices. I have an iPhone 6 more working 9.0. The devices are all on the same home network running.

    You can't share a library that is located on an iPhone, iPod or iPad with other devices. You can only share a library that is located on a Mac or a PC with other devices. On other devices, iPhone, iPod and iPad for example, you then activate home sharing to connect to the shared library.

  • Tecra S2: HDD as unknown device on two of the three USB ports

    Hey again,
    I thought then that I was here anyway I could ask this too.
    The tecra S2 has 3 USB ports, they all work very well for my USB mouse and other small things like the wacom tablet...
    But when I plug my external hard drive in two of them, it says that it is an unknown device...

    I think, but am not sure, that this might have something to do with something once, we had to do in school;
    We had once set up a pilot for a small converted Converter a series (or parallel, cant he recall) cable to the usb port
    (I have already uninstalled the drivers but nothing has changed)

    It's just a guess...

    any idea on how to solve this little problem? : p

    Hello

    You said external USB HDD appears as an unknown device on two of the three USB ports.
    What appears if you connect the HARD drive to the USB port on third?
    It appears as an unknown device or what?

    The device usually appears as an unknown device in device because manager not installed device drivers.
    I check the HARD disk for the drivers and try to install it again.

  • Set the FileGlobal Variable for SequenceFileLoad

    Hello community,

    Using 32-bit Teststand 2014

    I do a test on model of batch and I want to change the NumTestSockets in the ModelOptions sequence when loading the file in the sequence. I have created a fileglobals variable, and then set the default value to 1. I tried to change the fileglobals variable in the SequenceFileLoad sequence, but it does not show my fileglobals update variable and just 1 when I run my sequencefile.

    How can I do to change a variable fileglobal when I load my movie file and have it stick, so when I run my the NumTestSockets sequence file is updated?

    The FileGlobal variable values do not persist in the executions. That's why your 'NumberOfControls' variable is reset to its default value of 1 after the recall of SequenceFileLoad is done running. A Variable overall Station would last since its recorded on the disk in the StationGloabls.ini, but it would be available to the entire station rather than just your file of the client's sequence.

    A better solution might be to set the default value in your SequenceFileLoad callback:

    RunState.SequenceFile.Data.FileGlobalDefaults.NumberOfControls = 3

    Hope this helps,

    Trent

  • How to insert as an entry within the formula variable, the total time on the scope window?

    How to insert, as an entry within the formula variable, the window of total time on the scope (i.e. of 20ms/div x 10 div = 200ms)?

    HERE'S A SAMPLE QUESTION:

    FORMULA FOR INTEGRAL ACTION:

    STATISTICS:

    Input variable: DPO4034 (CH1);

    Box: number of samples.

    FORMULA

    Input variable 0: DPO4034 (CH1); alias: x 0

    Input variable 1: 'time window Total out of scope?. " alias: x 1

    Input variable 2: number of samples (CH1); alias: x 2

    Under the operation Configuration: formula

    Y = (x 0 ^ 2) *(x1/x2)

    Output: Data 1 (CH1)

    THEN, WITH THE HELP OF STATISTICS:

    Input signal: data processing 1 (CH1)

    Checkbox: SUM

    Output: CH1 integral Action [has ^ 2s].


  • Using the string Variable name to ChnFind

    Overview - I find crossing points of zero on a set of data so that I can calculate the phase shift of channel to another in my data.

    Small image - I start by finding the zero 1 cross in the data, once I found I want to use the index to find the next and so on

    Problem

    The posted script comes from looking for the 1st pass by zero before moving on to the next channel. The problem is that I can't find out do my group and channel changes with loops.

    Option Explicit  ' force explicit declaration of all variables in a script.
    Dim intCount, intChan ' loop variables
    Dim z

    IntCount = 2 GroupCount-1 ' groups
    Call GROUPDEFAULTSET (intCount) ' change the current group
    IntChan = 1 to ChnNoMax ' Browse channels
    Z = ChnFind ("Ch(""[intCount]/[intchan]"")<0") 'this="" does="" not="" work,="" but="" i'm="" not="" sure="" how="" to="" fix="">
    MsgBox (z)
    next

    I don't know I'm missing something obvious.

    MK

    Hi Michael,

    You need not global variables to simplify this, but I would certainly use object variables to simplify.  When indexing of groups or channels, it is easier to use the variable of index with the Data.Root.ChannelGroups collect or Group.Channels collection directly.  I also prefer to store the group object and the channel object in a variable.  For example, you can then use Channel.DataType to add exactly the same string data to the new group coming from the old group.  You can also easily get the name, unit and all sorts of other properties directly from the object variable.  I prefer to use a separate group object variable to reduce congestion in the colde, although it adds 2 lines to your example of code snippet.

    Set FromGroup = Data.Root.ChannelGroups (intCount)
    Set FromChannel = FromGroup.Channels (intChan)
    Define participatory = Data.Root.ChannelGroups ("Index" & FromGroup.Name)
    The rise in the value = ToGroup.Channels.Add (FromChannel.Name & "Rising", DataTypeChnFloat64)
    Fall in the value = ToGroup.Channels.Add (FromChannel.Name & "Falling", DataTypeChnFloat64)

    Brad Turpin

    Tiara Product Support Engineer

    National Instruments

  • new variable networked shared in my computer, but not in the shared variable engine list

    I have a Variables.lvlib shared on a cRIO target and test algorithms when I don't have access to material cRIO. Thought I could do a new project, add the library to the windows target (workstation). I need to add a few additional variables, I did in the original (i.e., while the library was the target in real time). Then create a new project and added the lvlib to the project (under my computer), and then wrote a VI to write in these SVs. When I let fall a constant Variable Refnum shared on the block diagram and browse for objects variables under 'Variable' Motors > ni.var.psp > localhost > shared Variables, list of variables shows everything except the 6 new variables. When I switch the view 'Current project', I get the same variables for new list WITH THE 6. However if I select the variables in the list and run the VI I get an error-1950679035 impossible to locate the variable in the shared Variable engine. Of course, I forgot something, anyone out there set me straight?

    Thanks for your time - lmd2

    Hello Lawrence,.

    Looks like you'll have to maybe just to deploy the new variables - refer to this document:

    LabVIEW Help: Making static Variables available on a network

    http://zone.NI.com/reference/en-XX/help/371361K-01/lvconcepts/sv_deploying/

    Hope that helps!

  • How to get the value of the global variable to test in the user interface of labview?

    Hello.

    Can someone please share examples and tell me how access the global variable to test using the interface labview user.

    I found some references and obtained from the method.

    I sent the link below

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

  • static reference with the global variable

    Hi, I used a static reference to a Subvi where I change a global variable before (3-4 years ago) and do not remember how I did it.

    It was something like these attachments, but now I'm using LabView 2013 instead of LV 8.6.

    The change in the overall operating system sees only not in the main vi (looks like the invoke node run vi does not work with globals).

    In addition the vi close with the invoke node close vi but not if I put the custom in the Subvi properties to automatically close.

    dkfire wrote:

    Why not call the sub vi as usual, just with the setting to display the front panel, when it is called?

    Use the connector pane to transfer the value of the sub vi Ok button when done.

    That's what I recommend.  If this is not possible for some reason, then you will need to use a flat Structure of the sequence to force the reading of the global variable after the Subvi is complete.

  • View of the complex Variable

    I appreciate that CVI2013 with its new clang compiler now supports data _Complex type - unfortunately the view Variable does only partially: it recognizes the type (Interestingly, it is displayed in the form of complex while bool appears as _Bool) but does not display don't not values...

    Thank you for pointing out this oversight. I filed the bug report 426270 to the complex issue. Including watch expressions and debug tips.

    I also filed bug report 426273 for number _Bool.

  • How to sort the shared Variable libraries

    I have large libraries SV in my project I want to sort by variable name.  I tried to export to Excel, sort and then import them into the library, but the type did not appear.  It looked like loading each variable then the multiple variables Editor opens with the original (unsorted) list I pressed the fact and then is back to were I started.  Any ideas?

    "In LabVIEW, you can sort variables shared libraries by right-clicking on the library" arrange by "name.

Maybe you are looking for