Synchronize data when you call another VI

Saying: I A.i and B.vi called B. I want to display a waveform to A and B collects data in a while loop.

The question is how the waveform is updated in real time, then B is running? I tried global variables, but looks A.i isn't in the thread when you call B, so the data may not switch to A real-time.

Any suggestions?

You want to search for ' Producer/consumer' of info on this design pattern. It consists of a producer who share data using a Motor of Action or a queue to pass data between threads.

Another approach might be to use a control reference for waveform display (table or graph) and use 'the 'Value' property to write to the display in a manner SIMILAR to the writing comes to the Terminal.

Ben

Tags: NI Software

Similar Questions

  • Why the last OS update cost me gigabytes of data when you are connected directly to my computer and ISP via Itunes February 29, 2016

    Why the last OS update cost me gigabytes of data when you are connected directly to my computer and ISP via Itunes.  29 February 2016

    While it is connected to ITunes via my Dell system, I was informed of the latest OS update for my IPhone 6.  I decided that the direct connection to the internet would be the fastest way to download and install the software.  During the process I started to have some warning of our AT & T account that I approach the limit of our data plan, then in quick succession, only warnings, said I've reached the limit and then passed in the data, limit charges.  At the time it was done, I had accumulated more than 2 gigabytes of additional data charges.

    Until that point, I was very pleased with the device and confident in the ability to use Wifi and data.  Due to this incident, I became very suspicious of the camera and the huge potential for data overcharges. It is extremely disconcerting as it happened while it is directly connected to the internet using my computer at home.

    Please note that, in the episode my ISP and the computer is remained connected to the WEB with no sign of connectivity issues.

    Someone at - he had a similar experience and understand what went wrong?

    Thanks for your support,

    Jerry

    JerrolK wrote:

    Why the last OS update cost me gigabytes of data when you are connected directly to my computer and ISP via Itunes.  29 February 2016

    While it is connected to ITunes via my Dell system, I was informed of the latest OS update for my IPhone 6.  I decided that the direct connection to the internet would be the fastest way to download and install the software.

    You have chosen the option of direct download, you have received a message of warning from AT & T about it yet.

    He did what you asked it to do.

  • Network error [10053]: can not send data when you run a calc in Planning

    Hi gurus,

    I get a network error [10053]: can not send data when you run a calc in a planning application.

    Looking in the newspaper of the App in Essbase server, I found the following:

    [Thu Apr 9 15:37:36 2014] Local/MYAPP / / / 140285871445760/Info (1008108)

    Internal logic error Essbase [1]

    [Thu Apr 9 15:37:36 2014] Local /MYAPP///140285871445760/Info(1008106)

    Exception error log [/Essbase/oracle/Middleware/user_projects/epmsystem1/diagnostic/newspapers/essbase/essbase/app/MYAPPlog00004.xcp] is being created...

    [Thu Apr 9 15:37:36 2014] Local /MYAPP///140285871445760/Info(1008153)

    A core file can be generated in [/Essbase/oracle/Middleware/user_projects/epmsystem1/EssbaseServer/essbaseserver1/app/MYAPP/ESSSVR.] Wed_Apr__9_15_37_02_2014]

    [Thu Apr 9 15:37:36 2014] Local /MYAPP///140285871445760/Info(1008107)

    Exception error log completedmyapp/Essbase/oracle/Middleware/user_projects/epmsystem1/diagnostics/log/essbase/essbase/app/MYAPPlog00004.xcp please contact technical support and provide them with this file

    [Thu Apr 9 15:37:36 2014] Local /MYAPP///140285871445760/Info(1002089)

    RECEIVED COMMAND OF THE UNUSUAL STOP - REQUEST FOR TERMINATION

    My environment is Windows 2008 R2 with Oracle Database and having only Essbase server in a SUSE LINUX box.

    Could someone help me on this?

    Thanks in advance

    We've tracked down the instructions in the calc and the error occurs in two blocks of calc. After the split in two blocks of the calc has no error more.

    Thanks to you all

  • Pass a function when you call onClick for a button (UI)

    Hello

    I m now studying and I adventure in the creation of the user interface of the Script. I m enjoy!

    I m having the following problem: I have added a button in a dialog box and want to tell script to execute some commands when users click the button. It is therefore a simple (bad example):

    var DLG = new window ('dialogue', 'My dialogue box', [0,0,0,0])

    DLG. Size = [500 500]

    DLG. Location = [300 300]

    var b = dlg.add ("button", [0,0,0,0], "Run")

    b.Location = [20, 180]

    b = [80, 30]

    DLG. Show()

    b.onClick = test () //the problem is here

    function test() {}

    Alert ("test")

    }

    -------

    All is fair. But the onClick event fails the test of the function I m passing! What Miss me?

    I know if I'm using

    b.onClick = function () {}

    ...

    }

    It works... but I´d as the function to call when you call the onClick instead of directly created. Do not know if I m able to explain it better.

    Thank you for the help

    Best regards

    Gustavo.

    The standard would be...

    var dlg = new Window ("dialog", "My dialog", [0,0,0,0])
    dlg.size = [500,500]
    dlg.location = [300,300]
    var b = dlg.add("button", [0,0,0,0], "Run")
    b.location = [20, 180]
    b.size = [80, 30]
    b.onClick = function(){ //the problem is here
    test();
    }
    dlg.show()
    function test(){
      alert("teste")
    }
    
  • FRM-40735 / ORA-06508 when you call procedure of a fastened package

    Hi all
    I have a problem when you call a procedure in one of my attached libraries. the code is:

    When upper (trim (NOT_MSG_NAME)) = "REN_MSG_REQ_REG_PERMENANT" then SERV. CLFRM_PBL_NRQP_F(:Parameter.NOTIFICATION_ID);

    and it gives me FRM-40735 indicating that an ORA-06508 has occurred during the call to the procedure.
    Important and funny thing is when I add the path to the library, it works very well!
    When I join, remove the path, it won't as I said...

    the location of the library is: D:\DevSuiteHome\cgenf61\ADMIN, the path is added in the FORMS_PATH and all others
    libraries attached to the form in the same way are working well!

    I use the Forms 10.1.2.0.2 generator and the platform is windows and I migrated forms 9.0.4.0.19
    anyone with any ideas what may be the problem?

    Hello

    Please check the path again and also to create working directory by modifying formsweb.cfg.

    hope this helps you.

    Sarah

  • Loss of data when you save it to a file?

    Hello

    I have problems with my data recording. I acquire at 2.5 MHz for 5 seconds and when I view it I don't see 1.2 s data, if you use a single channel, or unless, as 0.4 s data, when getting the 8 channels.

    My vi is attached and also a picture of him. To analyze it, I use "TDMS File Viewer" (PDM - File Viewer.vi):

    Attached, it is also a picture of the file viewer. Check the number of samples (225000) and the time when it was taken (19/11/2008 16:14:30.423) and (2008-11-19 16:14:31.362). With a 2.5 MHz, there should be much more samples than what is there...  The last sample (which was not shown in the photo) is time (19/11/2008 16:14:30.513), only 0.1 s after having begun to acquire data.

    Is the problem with the queue? If this is not the case, why are data not saved?

    Thanks for the help,

    Rafael

    Your consumption (bottom)) thread will be scuttled as soon the producer (top) out of wire. Leave the upper loop kills the queue; Dequeue item returns an error, and writing to a file won't do anything if there is an error on the entry. If all the remaining items in the queue when he was killed are lost. The best way to solve this problem is to add another loop of thread; After your existing while the loop closes, loop with a short (10 msec) delay until the queue is empty (by Get Queue Status). Kill the queue only after all your results have been written to disk.

  • Used QUICK to collect files from the XP machine. Now cannot locate the data when you use Easy Transfer on Win 7 machine to restore settings

    I had XP SP3 on my computer and used the files and Settings Transfer Wizard to collect the data.  Recorded on another partition, formatted and installed Win 7 Pro.  Now, when you use Easy Transfer to restore data it tells me that it cannot find all the data.

    Any ideas?  Thank you!

    For any question on Windows 7:

    http://social.answers.Microsoft.com/forums/en-us/category/Windows7

    Link above is Windows 7 Forum for questions on Windows 7.

    Windows 7 questions should be directed to the it.

    You are in the Vista Forums.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    XP forums:

    http://social.answers.Microsoft.com/forums/en-us/category/WindowsXP

    Link above is for XP Forums.

    There is a list of the different Forums XP to the link above to help you.

    You get the help you need there.

    See you soon

    Mick Murphy - Microsoft partner

  • Stream error when you call a REST Service

    I am doing a customer REMAINS with AS3, I followed this tutorial: http://help.Adobe.com/en_US/AS3/dev/WSb2ba3b1aad8a27b061afd5d7127074bbf44-8000.html

    My code is as follows:

    import flash.events.Event;

    import flash.events.ErrorEvent;

    import flash.events.IOErrorEvent;

    import flash.events.SecurityErrorEvent;

    import flash.net.URLLoader;

    import flash.net.URLRequest;

    import flash.net.URLRequestMethod;

    import flash.net.URLVariables; 


    var url:String = "https://localhost:8443/restcomponent/tesimalex"; 


    var requestor:URLLoader = new URLLoader(); 


    function restServiceCall():void

    {

      trace("Calling REST Service...");

      //Create the HTTP request object

      var request:URLRequest = new URLRequest( url );

      request.method = URLRequestMethod.GET;

      //Initiate the transaction

      requestor = new URLLoader();

      requestor.addEventListener( Event.COMPLETE, httpRequestComplete );

      requestor.addEventListener( IOErrorEvent.IO_ERROR, httpRequestError );

      requestor.addEventListener( SecurityErrorEvent.SECURITY_ERROR, httpRequestError );


      requestor.load( request );

    }


    function httpRequestComplete( event:Event ):void

    {

      trace( event.target.data );

    }


    function httpRequestError( error:ErrorEvent ):void

    {

      trace( "An error occured: " + error.toString() );

    }

    The only difference between my code and that in the tutorial's URL variables, that I commented on, and the url used.

    My REST service is a simple GET, if I type the url in the browser, it shows me that the returned JSON.

    But in my AS3 when I call the method restServiceCall() returns the following error message:

    Error opening URL "https://localhost:8443/restcomponent/tesimalex? An error: [IOErrorEvent type = "ioError" bubbles = false cancelable = false eventPhase = 2 text = "Error #2032: stream error."] URL: https://localhost:8443/restcomponent/tesimalex? »]

    Anyone know whats wrong?

    I really don't know about this link, but in my opinion it's a security issue, because it opens in the browser, also for security reasons! as I see that you have disabled the safe browsing that of why it works in your browser, but not in flash. In any case try to download the file on the server because the good security situation be different then check if it will work there, use a text field to display the data.

  • When you call sub-panels in an exe file, some to run correctly and some don't work at all.

    Hello

    I use LabVIEW 2009 and display various screws in a secondary (one at a time) into an executable.  A few screws properly load and run, while others do not work.  All the screws called VI properties are the same.  When I run into the development system, the code runs successfully.  I don't get any errors during the call to the screw - screw display all their facades like they should, but only a few actually deliver, while others do nothing.  Any ideas would be very appreciated!

    Thank you

    Jason

    Are you running VI separately, or you use the method run a VI?

    If you use the method run a VI, check out error and see if you get an error.

    If you are running separately, make sure that this area of the code actually runs (from your description, it looks that BT is).

    If all screws are supposed to be in the app, I would say that, given the static references for them and having a node property to one of the controls in each VI you want to display in the secondary, which will ensure the that LV will not remove its FP when you build the exe. Looks like this is your case, since you say that you see the FPS.

    If the screws are not in the application (that is, you run live recorded separately), you will need to ensure that they have all the dependencies that they need, because it is possible that they you are missing the vi.lib screws or your own screws not built in the app (since there was no static reference to them). The easiest thing is to build a distribution for each other while giving it a name space. You can do this by using the OpenG constructor, although I've never needed to. The main problem with this is that it will explode the size of the code, because each VI will need a copy of the common stuff.

  • printers and faxes does not display when you browse another PC on my network

    When I navigate to another PC on my domain using------(ComputerName)-I usually see tasks scheduled as well as printers and fax machines.

    This is really useful when installation of printers and updating drivers remotely.

    I'm running XP 32.  I recently deployed a few new PC with XP pro 64-bit.

    When you browse my PC on the 64 bits of the PC I see more printers and fax machines.

    File sharing and printer is on.

    There are 2 PC 64 bit I CAN'T veiw the printers and fax machines on.  I checked eveywhere I can think and compared the two 64-bit pc (I can see the printers on one, and on that I do not see printers) and everything I find is the same.

    I've read that it could be due to the fact that Quebec of printer on the new 64-bit PC was not yet open, and once it is open it should appear when browsing from another PC.  I tried this and the printers and faxes are still not visible.

    Printer queue is launched and running without problem.  I also tried this restart.

    Connectivity is good.

    I have no problem either browse PC (32-bit and 64-bit) to other locations on my network.

    I also tried navigating from 64 bit to 64 bit, and the results are the same that when I travel from any other PC.  Some PC the list of printers and fax machines as well as scheduled tasks, some righteous display scheduled tasks.

    Any help is greatly appreciated!

    Hello

    Your question of Windows is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the IT Pro TechNet public. Please post your question in the TechNet Windows Networking forum.

    http://social.technet.Microsoft.com/forums/en/w7itpronetworking/threads

  • BlackBerry smartphones HELP! contacts not found, after importing SIM but names appear when you call...

    I JUST got my blackberry and am so confused.  There is so much to learn... but first, I need to know how and where my contacts because they don't show in my address book.  When I type in the actual call numbers and the press, the name of the contact but when I try and text someone, there is no name in my address book to send text to!

    Please HELP as soon as possible.  I consider myself very good w / technology, but I'm having difficulties with this.

    Thank you!

    So when you go into the address book, display the menu, select SIM Phone Book. All the names are actually after it is loaded. If so try to display the menu and select copy all to the address book. If you have already done this the and address book is displayed check empty and make sure that no filter is enabled. In the address book displays the menu and select filters and make sure nothing is checked

  • Apex question 5.0 when you call the modal page

    Hello world

    I started work with apex 5.0 and I had a problem when I call a modal page; I have an interactive relationship with this query:

    WITH expert LIKE)

    Select user_id usr, LISTAGG(expert_designation,':') WITHIN GROUP (ORDER BY user_id) wording

    of t_utilisateur, t_expertise, table (xmlsequence (xmltype ('< a > < b >' | replace (user_expert_id, ':', '< /b > < b >') |.extract('/*/*') "< /b > < / a >"))) x

    where extractvalue (value (x), ' / b') = expert_id

    Group of user_id

    )

    Select USER_ID,

    USER_PASSWORD,

    USER_TUSER_ID,

    USER_NOM,

    USER_PRENOM,

    USER_DATE_NAISS,

    USER_DATE_RECRUT,

    USER_DATE_DEPART,

    USER_FONCT_ID,

    Libelle,

    USER_MGR_ID,

    USER_DEPT_ID,

    sys. DBMS_LOB. GetLength (USER_CV_FILE) CV,

    sys. DBMS_LOB. GetLength (USER_CV_CNFCPP_FILE) as CV_CNFCPP,

    ' < a class = "T-t-button - hot" href = "javascript:ajoutCertification('||)". USER_ID |') ; ' > Add < /a > '

    T_UTILISATEUR, expert of t

    where T_UTILISATEUR.user_id = t.usr;


    ajoutCertification() is a javascript function that calls the modal page and pass as a parameter the user id, the body of this function is:


    function ajoutCertification (user_id) {}

    document. Location.href ='f? p = & APP_ID.:19: & SESSION. : & DEBUG. : 19:P19_USCER_USER_ID: "+ user_id +":'

    }

    When I click on the button in the interactive report to call the modal page, I got this error message:

    102 page 19 application dialog box cannot be made successfully. Make sure that the page model used on page 19 is of type template

    'Page of dialogue', with appropriate initialization dialog JavaScript, the dialog box is closed and the dialog cancels code defined.

    any ideas on this problem and I thank you for your answers

    Hello

    See the Notes button which I created declaratively and it works very well.

    I would like to know if you have any questions now

    -Sunil Bhatia

  • How to hide a TextField when you click another button

    Hello!

    I was able to generate a TextField appear when you click a button, but when I click on another button, to display further information, I have still the first TextField shows.  I had a quick glance, but not managed to find something to help me get the first to disappear.  Can anyone provide ideas for this?

    The code I am using to display the TextField object is:

    Button10.addEventListener (MouseEvent.CLICK, fl_ClickToPosition);

    var fl_TF:TextField;
    var fl_TextToDisplay:String = "send the right projector/screen disply";

    function fl_ClickToPosition(event:MouseEvent):void
    {
    fl_TF = new TextField();
    fl_TF. AutoSize = TextFieldAutoSize.LEFT;
    fl_TF. Background = true;
    fl_TF. Border = true;
    fl_TF.x = 300;
    fl_TF.y = 100;
    fl_TF. Text = fl_TextToDisplay;
    addChild (fl_TF);
    }

    Thanks in advance

    use:

    Button10.addEventListener (MouseEvent.CLICK, fl_ClickToPosition);

    var fl_TF:TextField;
    var fl_TextToDisplay:String = "send the right projector/screen disply";

    function fl_ClickToPosition(event:MouseEvent):void
    {

    if(fl_TF&&fl_TF.parent) {/}

    fl_TF.parent.removeChild (fl_TF);

    fl_TF = null

    }

    fl_TF = new TextField();
    fl_TF. AutoSize = TextFieldAutoSize.LEFT;
    fl_TF. Background = true;
    fl_TF. Border = true;
    fl_TF.x = 300;
    fl_TF.y = 100;
    fl_TF. Text = fl_TextToDisplay;
    addChild (fl_TF);
    }

    Thanks in advance

  • Problem with the date when you load the XML file into Oracle Database 10g

    Hi all

    I have the interface as shown in the screenshot below. In this document, among other things, I am mapping to an element XML file representing a date to an Oracle table column defined as DATE. The source and target columns are highlighted in the screenshot.

    ! http://img223.imageshack.us/img223/1565/odiscr275.jpg!

    When I run the interface, I get the following error message:

    java.lang.IllegalArgumentException to java.sql.Date.valueOf(Date.java:103)

    I guess that this is the conversion of the date!

    I already tried to replace SRC_TRADES. DEAL_DATE with TO_DATE (SRC_TRADES. DEAL_DATE, ' DD/MM/YYYY') on the implementation tab. This feature was not recognized when I executed the interface, so it did not work! The value of date in the XML file is in the format DD/MM/YYYY .

    I guess that Date SQL Oracle functions do not work in the implementation tab. Could someone let me know:

    1. what the Date Conversion function I could use instead?
    2. where can I find a reference to the methods/functions that I use in the implementation tab (if such a reference exists)?

    See you soon.

    James

    Hello.

    Try changing the area of execution at the staging area. Once you change it, write in the map box just SRC_TRADERS. DEAL_DATE. When you use TO_DATE, the source field typu should be varchar2, no date (as it is in store for your data source)

  • "Row not found" when you call setCurrentRowWithKey on a view 'offline '.

    Hello.
    I use JDeveloper 10.1.3.4. I can see 'offline' with lines populated by program, not based on a query. It has an attribute of type number marked as Key attribute and this.setManageRowsByKey (true) in the Create method of the ViewObjectImpl class. When I try to call setCurrentRowWithKey I get the ' oracle.jbo.RowNotFoundException: Houston-25020: line of sight from the main oracle.jbo.Key [23540] not found in PozitiiIntrariVwIterator) "exception.
    When there is no key atrribute this point of view and not setManageRowsByKey (true), I don't get this error, however, when you run the following code, I get an error:
    Set of keys to the value = this.getTblPozitiiIntrari () .getSelectionState () .getKeySet ();
    Iterator keyIter = keySet.iterator ();
    While (keyIter.hasNext ()) {}
    _Key key = (Key) keyIter.next (); -> java.lang.ClassCastException: java.lang.Integer

    What I am doing wrong? What can I do to get the app works on both cases?

    change key (Key) = keyIter.next (); = (Integer) keyIter.next () key whole;

    tableComponent.setRowKey (_key);

    Object ViewObjectClassName = tableComponent.getRowData ((ViewObjectClassName));

Maybe you are looking for