Updating graphs between two VIs

I have a VI (event-structure based) that generates and displays waveform chart. Due to lack of space on the main VI, I want the graph to be displayed onto another VI. Could anyone please help me with an example, how to implement this? 
My attempt doesnot update the graph using sub-VI.
Thanks
Rajeev
RY
Solved!
Go to Solution.

A simple example is attached along this email. The subVI is invoked from the MainVI which attempts to zoom the graph, but it does not continuously update the graph data as in MainVI. Thanks 
RY
Attachments:
MainVIGraph.vi ‏51 KB
SubVIGraph.vi ‏12 KB

Similar Messages

  • Best way of sending signals between two VIs

    Hello all,
    I have two VIs. One that generate some complicated signals (sine wave, impulse, etc.). The other one takes manually inputted voltage and pressure send them out to some hardware with a pump, and reads back the output of the pump.
    What is the best way of sending the waveforms from the signal VI to the manual control VI? I still need to be able to control the signals manually in that manual control VI.
    Thanks.
    Solved!
    Go to Solution.

    nitad54448 wrote:
    hi
    For exactly this kind of process, I am using queues, FG and (relax ppl, I know..) global variables. If you are writting a global in one Vi and reading it in another (to prevent accidental (fake)updating); globals are easy to implement. Many people hate them (I do, sometimes) but for these kind of cases I think they are well adapted.
    For FG you need a user control and a vi for each variable you want to share... Both FG and globals are "bottle in the ocean" like of information : you send some info and sometimes this info will arrive somewhere...
    If you need to be sure that the info is passed then Queues are to be used...
    N
    While you may not run into race conditions using global variables in a write once/read many approach they do not protect you from some part of your application deciding to write to them. FG at least provide some level of protecting access while globals do not. In addition, global variables can create multiple copies of your data. If your data is large, this can be problematic. I much prefered using a defined messaging scheme. The intent is very clear and you can provide safe guards. Even FGs are better. I personally would never recommend the use of global variables even though some cases MAY work out. A defined API is always a prefered approach and helps to keep the code modular and decoupled. This leads to greater reuse. Global variables tie things together and make reuse more difficult.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot

  • Data comparison and update/insert between two schemas in same database

    Hi all,
    I have requirement like this. In one database, i am having two users, user1 and user2. Both users is having same tables and structure wise also same. In user1, data will be populated by job.
    Now, what i want to do is, i have to find out difference between user1 and user2 data and the Difference data will be updated/inserted into the user2.
    Any ideas please...
    Thanks in advance,
    Pal

    Will trigger help you ... ie. for every update/insert on user1 will do on user2-- it is heavy to do for all table...
    --svmg                                                                                                                                                                                                                                                                   

  • Is it possible to read a third ODS in update rules between two ODS?

    Hi,
           I have ODS1 and ODS2. I need to have data coming from ODS1 to ODS2. But there is a field "F" in ODS2 that doesnot exist in ODS1. I need to get this from a third ODS3. Is it possible to write a routine in the update rules for ODS2 to read the "F" from third ODS3 and return it in "ODS2"? If so how?
    I appreciate if anybody can refer me to any documentation. Also my id is [email protected]
    Thank you.

    hi Visu,
    yes, it's possible.
    say the ods name is zods1, zods2, zods3, you can write a start routine update rules like following :
    PROGRAM UPDATE_ROUTINE.
    $$ begin of global - insert your declaration only below this line  -
    TABLES: /bic/azods300
    /bic/a[odsname]00 or /bi0/a[odsname] is the ods active table name /bi0 for business content, /bic for customize
    DATA:  l_tabix like sy-tabix,
    it_ods like /bic/azods300 occurs 0 with header line.
    $$ begin of routine - insert your code only below this line        -
    fill the internal tables "MONITOR" and/or "MONITOR_RECNO",
    to make monitor entries
    data : it_data_package like DATA_PACKAGE occurs 0 with header line.
    select * from /bic/azods300
    into table it_ods.
    loop at data_package.
    l_tabix = sy-tabix.
    move-corresponding DATA_PACKAGE to it_data_package.
    read it_ods with key [field name] = it_data_package-[fieldname]
    if more key add it_data_package-[fieldname] - without AND
    if sy-subrc = 0.
       it_data_package-F = it_ods-F.
       modify data_package from it_data_package index l_tabix.
    endif.
    endloop.
    hope this helps.

  • Transfering updated files between two folders

    Hi all,
    I am new to java programming and have not dealt much with it till date.I just need a source code which would help me check a folder each time it is updated with a new file and then transfer the file to a new folder on the same computer.All this should run automatically.If not through java can sum1 suggest an alternate solution.

    i have an idea .It would be nice of you if you could help me with it.
    File class has a method listFiles which return array of files under that folder.
    File f = new File(folderName);
    File files[] = f.listFiles();
    if(files.isFile())
    // do your stuff
    Can I execute the above code with a delay loop which would keep checking teh folder with a delay of 15 min(say) during which if the folder is receiving new entries it would transfer the files(using further code) to a new folder.

  • Change description of update rule between ODS'es

    Hi!
    In a BW 3.5 system I have the following problem: I cannot change the description of an update rule between two ODS'es.
    When creating such a rule the system automatically generates the technical name and takes the description of the source ODS for the naming of the update rule. Afterwards I have changed the description of the ODS. I have deleted the old update rule and recreated it. When selecting the source ODS from the F4 picklist the new description can be seen. When the source ODS is selected and the update rule is generated, the old description has appeared again however.
    Does anybody knows how this is possible and what can be done about it?
    Best regards,
    Hans

    have you tried regenerating an export DataSource out of the ODS?

  • Creating update rules between 2 Infosources

    Can anyone mention the steps for creating update rules between two 3.0 Infosources.
    Thanks,
    Shweta

    Hi,
    Have a look at these documents:
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50a29380-7adc-2e10-cfa2-fa55bcb17710?QuickLink=index&overridelayout=true
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/37dda990-0201-0010-198f-9fdfefc02412?QuickLink=index&overridelayout=true
    Regards,
    Sunny

  • Is there difference between NI VISA and HP VISA?

    Now I am using Labview 5.1 to compile a program for an oscilloscope (HP 54110D), and the cable connecting the instrument with PC is GPIB/USB interface. I tried to run the driver downloaded from NI, but it didn�t work. The driver used GPIB as Instrument I/O in the driver. I decide to use Labview VISA to complete it. I know the oscilloscope supports HP VISA, not GPIB. The Agilent Company suggests using VISA. I am sure that the instrument support HP VISA. I don�t know whether HP instrument support NI VISA? Is there difference between two VISAs
    Thanks!
    Linghui

    Linghui:
    As Gerd responded, you have a choice of APIs to communicate over GPIB when using LabVIEW - the built-in GPIB (NI-488.2) functions or the VISA functions. VISA is the recommended API for all instrument drivers. But if you have an existing instrument driver for your instrument, just use it, regardless of which API it uses internally.
    Which VISA you want really depends on which GPIB controller you have. If the USB-GPIB controller is from NI, then you should have NI-488 and NI-VISA installed. If it is from Agilent, then you should install Agilent I/O Libraries (both SICL and VISA).
    LabVIEW will communicate with either version of VISA because they both implement a standard API. That's the whole point. And it doesn't matter from a software per
    spective whether the controller and instrument are from the same company.
    Also, the fact that the GPIB controller is connected via USB rather than PCI, for example, is actually moot. LabVIEW doesn't know and doesn't care because the program isn't making USB calls, it's making GPIB or VISA calls. It's the lower-level GPIB driver that handles the necessary translations.
    I hope this explains things sufficiently.
    Dan Mondrik
    National Instruments

  • Hello there - how can I share my iTunes library between two users on the same computer? I put the library in a shared folder between both and have selected this library on both as well, but when I update iTunes with music etc it only appears on one?

    Hello there - how can I share my iTunes library between two users on the same computer? I put the library in a shared folder between both and have selected this library on both as well, but when I update iTunes with music etc it only appears on one?

    Thank you Joe - I tried this but it's only showing a teensy amount of music - the stuff on the second users account as opposed to the giagntic library on the 'main' account. I actually went to a Genius Bar and they said that apple doesn't really want you to share music between accounts - parents don't want to hear their kids music etc. Which seemed strange, but it might be the case sadly   Thanks anyway!

  • How can I get extract the data between two cursors on an XY graph

    How can I get extract the data between two cursors on an XY graph

    Well, you say xy graph, so this might be a more complicated problem.
    For a waveform graph it's trivial. Simply get the two cursor indices (property: cursor index) and apply them to array subset of the data. Is that all you need?
    Here's how the above code would look like. using cursor.index instead of cursor.x elimnates the need to include scaling information.
    For an xy graph, there could be multiple segments (e.g. imagine a spiral that passes the desired x range multiple times from both sides). This would neeed significantly more code for a general solution.
    Message Edited by altenbach on 11-24-2009 07:53 AM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    cursorsubset.png ‏17 KB

  • Reg: How to automate updation of tables between two oracle DB Instances

    Hi All,
    I have a requirement to auto update the tables between two oracle database instances. What are the possible solutions to handle this kind of situations.
    Please help me out in identifying the correct solution.
    Thanks in advance :)

    The possible solutions are outlined in the distributed database documentation
    They are
    a) trigger (6.0 and higher)
    b) advanced replication. Creates triggers on every table. Requires every table to have a primary key (8.0 and higher)
    c) Streams (Uses logminer, has no impact on table. Requires every table to have a primary key, or supplemental logging will be used. (9.0 and higher)
    d) Change Data Capture: superset of Streams (9i and higher).
    If you don't require realtime updates you don't need c or d. b is difficult to manage. Using a) the source db can potentially have to wait for the target db to complete it's transaction.
    Sybrand Bakker
    Senior Oracle DBA

  • Stepper motor 8SMC1-USBhF and power meter PM100D: how to merge the two VIs into one and make a XY graph of the current position and the power

    Hi there,
    I have a stepper motor (8SMC1-USBhF) and a power meter (PM100D). I want to measure the power while the stepper motor is moving, and obtain an XY graph with the current position on x axis and the power on y axis. So I just merged the two VIs together by copying and pasting, and created local variables for current position and readout value, and changed them to read, and then linked them to the XY graph, but apparently it doesnt work.
    So could you please instruct me how to merge them and obtain an XY graph appropriately?
    Attached are the two VIs.
    Thank you!
    Attachments:
    PM100D Simple Example.vi ‏42 KB
    StepperMotor.vi ‏97 KB

    Hello,
    The XY graph requires that each datapoint on the X axis corresponds to a datapoint on the Y axis.  To create XY data you will need to creat two arrays of X data and Y data with the same amount of elements then cluster the two arrays together to wire into the XY graph.  As an example take a look at the VI snippet below.  Is there a specific error being thrown?
    Regards,
    Isaac S.
    Applications Engineer
    National Instruments

  • No sync between two computers since last update

    running Mail 2.0.5 (746.2) / 10.4.3 (8F46)
    Did in the past: synchronize/copy (actually used rsync) all my Library/Mail files between two machines (including preferences asf) and have the same settings and mails on both machines.
    Since the latest update this no longer works. Instead, each time mail starts on the machine onto which I copied, it complains that something is corrupt and that it has to update all the indices. (I have >100,000 emails; therefore, this is slightly annoying.)
    any advice on how to synchronize between two machines (without going through .mac which is not an option for me due to the slowness)?

    The fact of the matter is that PSE is aimed at the casual/hobbyist user, and will always have some limitations because of that.  There are workarounds to "push the envelope", but they will always require constant vigilance and effort.
    You can get some tips (and warnings) about storing the catalog on a network drive here:
    http://www.johnrellis.com/psedbtool/photoshop-elements-faq.htm#_Storing_the_catalog
    To answer your immediate concern, you basically want to have one and only one copy of the catalog somewhere that's accessed by both computers.  That catalog should be listing photos that are stored in one and only one "master" image location.  Then you can use SyncToy to keep the images in sync to that master image location, and use Organizer to update its thumbnails whenever the original images are changed.  N.B.:  the Organizer's catalog does not support multiple concurrent access.
    Ken
    P.S.,  I've never used the sync to photoshop.com, so someone else will have to comment about that.
    Message was edited by: photodrawken to add postscript.

  • Reporting structure between two positions as vise versa

    Hi,
    Two positions for eg. AGM (A002 relationship) reporting to Deputy MG and Deputy MG (A002 relationship) reporting to AGM..as per my knowledge reporting structure between two posiitions is maintained with two different relationships i.e A002 and B002 relationship ie.if one relationship is maintained another is automatically maintained...is it possible to maintain two positions reporting to each other (A002)...Please help ASAP.....!!
    Thanks

    Hi Sonu,
    You are asking abt a inverse relationship and yes A/B002 will do that
    say AGM is the higger position and DGM is the lower so when DGM reporting to AGM it will be A/002 and when AGM reports to DGM then it will be B/002
    So always the higher position is taken as A and lower is B.
    Hope this clarifies ur issue.
    Thanks
    Swati

  • Implementation of linear fit between two cursors

    Hi,
    I am trying to implement a linear fit between two cursors, as I am using total of 4 cursors. I would like to implement linear fit between cursor 2&3. Please help me how to implement it and to find a slope. I am also attaching my code.
    With Regards
    Phani kiran
    Solved!
    Go to Solution.
    Attachments:
    Linear Fit Implementaion.PNG ‏44 KB

    phanikiran wrote:
    Hi koen,
    Now I would like to merge both graphs i.e., Bestfit and XY Graph (in the block diagram). Can you suggest me, I have tried with build array and concenate Inputs function, but no use. Dont mine as I  am new to Labview. Thanks in advance.
    First, get rid of the Express XYGraph subVIs and use the "real" XY graph VIs. The Express ones get you going faster for simple things, but your options are limited.
    Take your X and Y arrays for both your original points and the best fit points (just two points, right?) and combine them into clusters of arrays (instead of feeding them into the XY graph). Then combine these into an array and feed it into your graph. It's all outlined in the XY Graph section of the LabVIEW help file.
    The LV Help File is your friend, learn to use it. It gets lonely if you don't look in on it once in a while.
    Cameron
    To err is human, but to really foul it up requires a computer.
    The optimist believes we are in the best of all possible worlds - the pessimist fears this is true.
    Profanity is the one language all programmers know best.
    An expert is someone who has made all the possible mistakes.
    To learn something about LabVIEW at no extra cost, work the online LabVIEW tutorial(s):
    LabVIEW Unit 1 - Getting Started
    Learn to Use LabVIEW with MyDAQ

Maybe you are looking for