Tiara retrieve coordinate of cursor using script

As a newcomer to this site, I say hello to everyone.

My question is simple:

How can I get the (X, Y) values shown on the curve of my report 2D graphics using the coordinates of the curve 'Add' (right-click on the curve) as input to a script, the values I use for further calculation in this script (essentially the difference between Xs)?

I join a picture of that.

In addition, I want to work with the report and not the view.

I hope you can help me

For us all.

Louval

Hi Louval,

the function that you use brand all the coordinates in your coordinate system, but not a special point on your chart.

In DIAdem script is no object that refers to this feature.

You can do for example:

See pics or other special point on you chart.

This could look like this:

Call ChnPeakFind("Example/Zeit","[1]/Drehzahl","[1]/PeakX","[1]/PeakY",4,"Max.Peaks","Amplitude") '... XW, Y, E, E, PeakNo, PeakType, PeakSort
So, what do you score? No matter how much of the system or the peculiarities of the curves as in the attached picture?

Kind regards

Philipp K

AE | NIG.

Tags: NI Software

Similar Questions

  • Solo Composition layer using scripts

    Hi all

    I'm looking for a way to scroll the layers by using scripts.

    The ultimate goal is to create a customizable slideshow very quickly.
    In this project, I have several boxes, in which I show a Composition. Each publication contains only a stack of layers (easily editable with drag and drop) with a different photo on each layer.
    Using a Slider control, I want to scroll through the photos of a composition. For example: when I select a value of 4 with the cursor, the fourth layer is made visible. In this way, I could keyframe the cursor to select a photo.

    Any thoughts on how to accomplice this? I can't find a good site on the scripts of events of the time. Most of them contain only motion scripting.

    Thanks in advance!

    I think you'd want an expression here, not a script. I would use an expression to opacity (on each of the photo layers) with an expression as follows:

    s = / / link this variable to your cursor.

    (Math.round (s) is index)? 100: 0;

    Dan

  • Disable a node using scripts

    Leave well as I a VI.  Using scripts I can find all the objects of a particular type on the block diagram.  Is there an easy way to tell is now drawing a design schema for the disabled around all nodes, I found?

    Like lets say I want to find all nodes property on a block and disable them.  The only solution I found was to find all nodes in property, by using the crossbar for GObjects, then I can make a new Structure to be disabled with the new object VI, put in the same place and the limits that the property node, with the same owner.  But then, I still need to move the property node in the case of persons disabled structure.  But then, I have all kinds of broken wires that were once on the property node that I now moved ousur.  I need to understand how it was designed before the move, it wire to the tunnel Structure with disabilities then wire the tunnel on the pod on the property node.  I need to do for each wired terminal and each property node.  And then I need wiring through the case turned on the structure.

    What I was hoping to find a way to pull the disabled schema structure using scripts, but perform the same operation as if I drew the structure is, and this are also all nodes I captured with my draw, in the case of people with disabilities.  Is there a way to do this with scripts?  Can anyone think of a simpler way to disable nodes using the design schema disabled?  Thank you.

    Try to use the method of Sélection Enclose . There is here an example of shipping for it:

    examples\Application Control\VI Scripting\Moving Objects\Enclose selection and Move.vi

    .. .aaaand I just now discover after the opening of this example that someone recommended this method recently for a new method of selection to reach 2 . I'll take the updated example.

    Anyway, the strange thing about this method is that it must give the method a reference to an actual structure to define what kind of structure you want to encapsulate the code with. This requires usually drop a dummy structure, by calling Enclose Selection 2, then removing the dummy structure after that wraps the code.

  • Use scripts to create digital orders without button increase/decrease

    I'll have fun using scripts to do things that were once "impossible", like the creation of a cluster programmatically in a list of variable names and their types associated with (use in a later program).

    When I create a digital control on a front, she has the visible increment/decrement key, by default.  I wanted to create controls without this feature, but I could not understand how (or even if it is possible, but I don't see why not).

    Any ideas?

    BS

    Just above the digital named menu item is the one you are looking for: digital

    Use the digital constant digital control for Style and class.

  • Use scripts to change the name of the tab

    Hi all

    I'm trying to use scripts to add tabs to a tab control in an existing VI.  I am able to add new tabs easily enough, but I can't understand how to change the name of each tab when they are added.  Each name is extracted a TDMS file using a loop for.

    I looked through the existing discussion forums, and there are a few old messages that indicate I should look for the 'independent Label property', and that I should put it to allow me to change the caption of the tab.  There is always an explanation of this property in the help files, but I am unable to find my path to it in the current schema.

    Assuming that this property still exists in my version (2012), could someone tell me the correct sequence of references and property nodes to access this property?  Right now I use the class "TabControl".  If this property is obsolete, can someone let me know if there is a new method to achieve this?  Thank you.

    GSinMN

    After you have added the page, download the Pages property of the index of the newly added page, tab control, use the PageLabel of this page for the label.  It would be cool if the Add Page method returns the reference to the new page.

  • Add the occurrence to a structure of the event by using scripts

    Hello

    IAM trying to (using scripts) updating a structure of the event (the case of the event add) on a vi is not on memory.

    I get error 1054 the specified object was not found.

    Here's a picture of him.

    any help in this will greatly be apreaciated.

    The error comes from the open air, because looking for structure in the wrong place. While it is perfectly logical that the owner would be the loop in practice yet script is not that friendly - you need to get the reference of the schema of the loop and use it as an owner.

  • whenever I'm on facebook, play games, I get a message that if I continue to use scripts, can lock up my computer

    whenever I'm on facebook, play games, I get a message that if I continue to use scripts, can lock up my computer.

    I don't understand what that means.

    What can I do to fix this?

    I have windows xp

    I guess that your topic is not correct, since it is the problem with the site NOT updated.

    The problem of script depend on the site Web that when you play a game, there are several scripts written in the game that cause your browser becomes slow. Try to delete your browser history and also update your Windows.

    It is advisable to report this problem to the game devloper, since this question primarily related to the design of the game, they could solve it.

  • Inadvertently, I moved my cursor using the touchpad and it decreased my policy and I can't go back to a larger size. my daughter thinks it has something to do with scrolling

    Inadvertently, I moved my cursor using the touchpad and it decreased my policy and I can't get it for a larger size. my daughter thinks it has something to do with scrolling

    You did not mention this program what happens to, but even in the case of the office, there are standard methods to adjust the zoom level with the keyboard.

    Press Ctrl and more (e, g +) together to increase the zoom level and Ctrl and less (for example) - all to reduce. The keys more or less can be those at the top of the classic (for example to the left of the back) keys or the numeric keypad if you have one.
    Alternatively, you can hold down the CtrI down while turning the scroll of the mouse wheel to adjust the zoom level of the window that the cursor of the mouse is on.
    Many programs have a slider or box to adjust the zoom level. It is usually at the bottom right of the application window. Similar zoom adjustments may be able to make the menu display, Zoom the program.
  • Dump to IMPORT ORACLE 9i to ORACLE 11 G database by using script

    Hi all

    I'm trying to import a dump of an Oracle 9i database from exp in the Oracle 11 g database using script.


    (1) the export using 9i client script:

    -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    #! / bin/sh

    testsync_home= / home/oraexp / / DMPtestsync

    log_home =/ home/oraexp/testsync/log

    file userid=test/test@testsource exp = $testsync_home/usr 'date' + %m %d %Y ".dmp tables =userdata2015 ACCORDING = y compress = buffer n = 655350 log = $log_home/exp_test_usr.log

    -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


    2) the import using 9i client script. Import the dump into Oracle database 11g. The imp can't exit normally, although the data has already been imported into the testdb.

    If the next part of the script can't be executed.

    -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    #! / bin/sh

    "sync_date ='date + %m %d %Y"

    testsync_home = / home/oraexp/testsync/dmp

    log_home = / home/oraexp/testsync/log

    sqlplus test/test@testdb < < EOF

    truncate table userdata2015;

    commit;

    quit smoking

    EXPRESSIONS OF FOLKLORE

    file userid=test/test@testdb IMP = $testsync_home/usr 'date' + %m %d %Y ".dmp fromuser = touser = test test tables = userdata2015

    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    Can you please give me some advice on this situation?


    Thank you very much in advance.

    DO NOT USE THE DATAPUMP.

    You do not use expdp and impdp.

    You will use the 9i client exp and imp 11g client.

  • I want to create new sequence from a clip using script.

    I want to create new sequence from a clip using script.

    You can pop the dialog box new sequence (which requires interaction from the user to confirm the name of sequence), or create a new sequence from a .sqpreset file (and specify the name); There is no API around the feature 'make a sequence corresponding to this project item', available in the project Panel.

  • Can I retrieve my serial number using my license number?

    Can I retrieve my serial number using my license number?

    Hi baileyb1,

    You can read this article to find your serial key:

    Find the serial number of your Adobe product quickly

    Kind regards

    Claes

  • How to "save under" a document by using scripts

    I want to use scripts to automate the creation of badges of identity. I have a model PSD of the badge that includes a slot for the photo and a text field for the name. The approach that I took in my script is simple:
    1. Invites the user to select the source for the pictures folder.

    2. for each folder in the folder, follow these steps:
    -resize the photo

    -Copy the background of the photo layer

    -close the document and the focus back on the PSD template

    -Place the copied picture as a new layer

    -It translates into a certain position if it fits in the slot of the picture of the model

    -change the text in the text layer for the name of the photo, we have placed (which is the real name of the person)

    3. save the photo in jpg with some given save options in a certain folder of output.

    Step 1 and 2 only when needed. However, when I save the badge, I get a really strange error saying:2QrAQ3T.png

    Here is all of the code (JS):

    var sourceFolder = Folder.selectDialog ("Selecteaza folderul cu pozele: ");  //prompt the user to select the source folder
    var files = new Array();
    files = sourceFolder.getFiles ();  //put the files from the folder inside an array
        var startRulerUnits = app.preferences.rulerUnits;  //save the initial units used
        var startTypeUnits = app.preferences.typeUnits;
      
        app.preferences.rulerUnits = Units.PIXELS;  //change the units to pixels so the translate command will work as expected
        app.preferences.typeUnits = TypeUnits.PIXELS;
    var mainDoc = app.documents.getByName ("Ecuson.psd"); //this is the name badge template
    var so = new JPEGSaveOptions(); //the save options i'll use with the save command
    so.embedColorProfile = true;
    so.formatOptions = FormatOptions.STANDARDBASELINE;
    so.matte = MatteType.WHITE;
    so.quality = 10;
    for(var i = 0; i<files.length; ++i){ //loop thru each photo in the folder
        var img = app.open(files[i]); //open the image
        var saveFile = new File("C:/Users/Eugen/Desktop/salvate/" + String.valueOf(i+1)); //this is the file where I'll save the jpg file
        var nume = img.name.replace(".jpg", ''); //this is the name of the image I just opened. I remove the jpg extension so only the name is left
        app.preferences.rulerUnits = startRulerUnits; //I change the units back t their original value as for this phase I need to use CM
        app.preferences.typeUnits = startTypeUnits;
        img.resizeImage (3, 4, 300); //resize the image to 3x4 cm at 300 dpi
        app.preferences.rulerUnits = Units.PIXELS; //change the units to pixels again
        app.preferences.typeUnits = TypeUnits.PIXELS;
        img.backgroundLayer.copy(); //copy the background (and only) layer of the image
        img.close(SaveOptions.DONOTSAVECHANGES); //close the document without saving changes
        app.activeDocument = mainDoc; //focus back on the badge template
        var pLayer = mainDoc.paste(); //paste the layer I just copied into the template
        pLayer.translate (-314, 33); //place the new layer where I need it to be
        mainDoc.layers.getByName("Name").textItem.contents = nume; //change the name on the badge to the name of the original file
        mainDoc.saveAs (saveFile, so, true, Extension.LOWERCASE); //this is ehere I have issues...
        }
        app.preferences.rulerUnits = startRulerUnits; //change back to centimeters
        app.preferences.typeUnits = startTypeUnits;
    

    I guess that it may be a problem with the agument saveFile, I can save the jpg manually from photoshop.

    PS: using CS6

    Thank you!

    I think you're line 17 it is. I'm not sure what you're doing with: String.valueOf (i + 1). You're simply trying to name as these files through a number? If this is the case, simply put: i + 1. You also use the incorrect syntax for your way. You do not have the jpg extension. The line should read:

    var saveFile = new File("/c/Users/Eugen/Desktop/salvate/" + (i+1) + ".jpg");
    
  • Multiple instances do not have parallel job using scripts on Windows Server

    Hi all

    I download after effects template on my site, the user came and download the desired content.

    I'm updating the model using scripts with the content of the user and then video rendering and therefore user get video with his text/images uploaded etc.

    its working perfectly when I update a unique model, but when multiple users come at the same time, then they need multiple instances of sequels

    so I opened multiple instances of after-effects by using "m" with after having shortened the effects

    fdsfsf.PNG

    After looking at the windows Task Manager, there are two instances, but the problem is

    one continuous instance and the other stop, at the end of the trial the second still paused state

    dfdffdf.PNG

    I need 2.3 4 or any case to work in parallel without pause/stop

    I am using windows server 2008 R2 with installed XAMP

    It's a Setup completely unsupported in first place and you will be difficult to find someone who can help you. Probably, you will need to create separate shortcuts / files in batches and run them in separate instance contexts. AE itself always detects running instances and reuse.

    Mylenium

  • Collect the Thread Dump using Script and live in the separate log file

    Legends of dear,

    I ask you to provide me with a few lines of useful guide to collect the Thread Dump using script on linux and redirect the output to a separate log file, but not the STDOUT file. If it is redirect to STDOUT then how to extract only the thread stack to a separate log file.

    I used
    ps - ef | grep java
    kill - 3 < pid > > > ss1_td.log

    but it does not provide the thread stack to the log file.

    Any aid operation would be appreciated a lot.

    Kind regards
    Knockaert

    Karthik,

    Please see this link below

    http://www.industryvertical.co.in/2013/01/script-thread-dump-of-multiple-servers.html

    site of my friend where we placed a hands-on experience.

    Mark this if useful for you

    Kind regards

    Bouchra Arun.

  • How to get some of the styles applied using script?

    Hi all

    I need to know how to get some styles applied using scripts ID. I don't have a lot of experience in InDesign so need help.

    Here is a screenshot with sample text with styles of such applied and highlighted.

    screenshot.png

    I need to know what the texts in my document have these styles applied as all caps, Baker pointed out, Subscript and Superscript, etc..

    Help, please.

    Thank you!

    Get in shape and make the selection, then run the script

    Examine the file for the properties you want.

    Pretty easy

Maybe you are looking for