How to use 'Start synchronous call' to run a Subvi timeout event and keep in hand vi still running?

Hi all

I have an application must periodically check the State of the instrument, and I put it in the "Timeout" vi main event. I need also call some subVis to configuration etc. Somehow when I called these Subvi, the Timeout event in my main vi did not work. I then use the ' Start Asynchronous Call "to call the subVis. Turns out it works fine with a few subvis worthless back, but not as expected with subvis 'return the required value.

I have attached a simple test, my main vi call two dlg subvis: AboutDlg.vi and SettingsDlg.vi. In the case of delay, I just use a counter for the simulation. When you run it, you can see the meter taken into account when the AboutDlg.vi has been called, but stopped when SettingsDlg.vi is called.

As I remember, someone suggested to use the queue to pass the return value, but I don't know how to implement here.

Anyone have any suggestions on this subject?

Thank you very much.

Try to play with it - I modified your code to search a Q in there.

You want to change the bunches to data types more useful (perhaps enum and Variant, so you can ungroup variants according to the enum contribution), you can type def clusters to make it easier to maintain and you will need TO handle the situation where the called VI is left open on program close - I couldn't be bothered, as it was not your immediate deliverance)

Hope this give you some ideas - totalyy not tested, but should work.

James

Tags: NI Software

Similar Questions

  • How to use Skype to call from my computer to another computer

    Original title: how to call a computer to

    Hello

    I can't find the instructions on how to use Skype to call from my computer to another computer so that I can get the video. Help.

    TIA,

    RS

    For a first test, the simplest method is to organize before a time and date when you're both already connected to the internet and connected to Skype.

    Then, they appear as 'online' in your Skype contact list. And communicate with them through that. Do not use the phone number.

    You need to get them in your contact list, if they are not already in it.

    Skype: Add contact

    https://support.Skype.com/en/FAQ/FA3281/how-do-i-add-contacts-in-Skype-for-Windows-desktop

  • I had an outlook Express 6, it was the right one for me? I don't know how to use it at all, because Windows Live Mail took over and I can't mail

    I just want to send an email for me to just about anyone I want and get an email back with no consequences.

    If you are using XP, you can go to control panel | Default programs and OE as the default e-mail program.  Also, you can start OE and then go to tools | Options and make the default program here.  If WLM hide shortcuts for OE, then click Start | Run and copy and paste this and include the quotation marks:

    "c:\program files\outlook express\msimn.exe".

    and who should start OE.

    Otherwise, if you want to use WLM then you must ask in the forum www.windowslivehelp.com WLM.

    Steve

  • How to use windows scan with the new canon printer is connected and the copy and printing, but can't seem to be able to use the technique of scan windows

    How to use windows scan with my new canon MX 922 printer.  It is conncected and copying and printing but can't seem to use the windows scan option, the cannon that which for me is slow thanks

    All in one, type printers (print, copy, scan) usually have a very specific set of instructions during the installation.  If not followed exactly the probability is that the scanner will not work.

    Canon: http://www.usa.canon.com/cusa/consumer

    Download and read the Setup instructions for your model, have you followed the instructions exactly, more precisely when to connect the printer / scanner during installation of the software process?

    J W Stuart: http://www.pagestart.com

  • How to use my 2012 LabVIEW for run the LeCroy Waverunner 610Zi?

    Hi all

    I'm a fresh starter on this topic. I have the 2012 version of LabVIEW and a scope of 610Zi LeCroy WaveRunner. How can I use LabVIEW for control the scope?

    Hello sqrtT,

    I think you and I just had a phone conversation about this, and you're all set!

    I would like to know if I'm wrong and I'll give you instructions for you.

    See you soon,.

    Leonard Brown

    Technical sales engineer

    Teledyne LeCroy

  • How to use parameter values in a run profile

    I run a Disqualification work in CLI using a shell script with additional parameters, such as phase.*.processor. D * .parameter_name1 = abc

    This has been very useful in using the same value on all processors.

    However, I have a different use case where I need to use the same value within a run profile mainly to reduce to a minimum the records being read by the reader.

    How can I make use of the dynamic value in the run profile? something like:

    parameter_value1 = abc

    phase.*. Snapshot.Table1.sql_predicate = {parameter_value1}

    Yes you cannot really define a parameter and have it used in several specific substitutions. But you can probably use wildcards in the substitution syntax so that you must specify a simple substitution in the first place.

  • How can I start Photoshop CS6 free run as administrator

    I was encouraged to post this here (update on the Photoshop forum post)

    "I've seen several similar topics having problems with Bridge () for CS6 beta), nothing new with performance problems with Photoshop CS6

    I installed most of the programs downloaded from the cloud. More running. So far, of my user account, I found again, Bridge and Indesign meet a 'problem' at the opening and close with no other message or details. Dreamwever, Flash, Illustrator and first run as far as I tested it. Everything seems to start very well from an admin account.

    My user account Photoshoip CS6 shows a message about a locked file and cannot work. I can start CS6 PS using run as Admin and seems to power. I tried to change some permissions on discs and on my user account has yet CS6 PS do not start. (I need to check again) I read similar posts on earlier versions. I tried to purge the preferences, both manually and by using the crtl + shift, alt departure. I just still can't get CS6 PS to run from my user account.

    Prograams CS5 of Design Premium start/run fine as far as I KNOW

    I do not install beta CS6

    FWIW

    MB Gigabyte, w / i72600k

    Windows7 64 bit

    SSD for C:

    standard drive for user accounts (moved / User for this disc)

    standard drives for scratch and the starage file (each its own drive)

    I tried to uninstall/reinstall without change the game.

    I'm out of ideas.

    Kevin

    I'm sorry that I don't update this before today.

    I solved the problems mentioned above.

    I gave in.

    I bought an ssd larger, moved my / User to the C: drive and created a new user account (such as the former was munged with attepts to fix the problem as soon as possible). Great pain, took a few hours a year later I found things I would put in place which had to be changed.

    result... everything is working now.

  • How to use text Variables to make running footers

    I'm confused about how the text Variables behave in the creation of the execution of the footers on a pair of master page.

    My document has 3-6 steps on each page. Each step is designated by a unique character called StepName style.

    I want a running footer that has the first instance of StepName on the left page and the last instance of StepName on the right page. As in a dictionary.

    I can get the correct text to appear, but she then adds an unwanted definition (a letter from the lower level) who gives me this:

    (A) open file

    When what I want is simply this:

    Open the file

    The character Style StepName is not based on any other model.

    I've seen this fact but can't understand why I'm picking up a regime of lettering on the footer.

    -Christian

    Looks like you have a numbered list in the paragraph of your footer style.  It is part of the footer paragraph style or local form is implemented. Whatever it is, you can disable it by clicking the numbered list in the paragraph Panel or the main control panel section. Or you can change the style and slot of the lists to chips and numbered, set on any list.

  • How to use ant to call ojdeploy and weblogic.deployer?

    I can use ojdepoly to create the EAR and use weblogic.deploy to deploy in weblogic in command line.
    However, the use of them for ant invoke?

    You can call weblogic.deployer to Ant. Read this http://download.oracle.com/docs/cd/E13196_01/platform/docs81/deploy/deploy.html#1080159
    Ojdeploy also lets Ant. See the online help in jdev, search for "ojdeploy."

    Timo

  • How to use the kit sensor Bioinstrumentation Vernier with NI ELVIS II and LABview on a CPU?

    So I have the NI ELVIS II + and a box full of Bioinstrumentation sensor, including Kit sensors: Analog Proto board connector (s), pressure sensor, hand dynamometer, hand grip monitor heart rate, EKG sensors, Surface temperature probe, among others.

    I can't seem to get all the sensor data to my PC that I use, I'm not too familiar with electrical circuits but I followed the manual directions for the specific sensor but it seems as if it doesn't have a difference. I'm with copper son crochet and so that they know the places appropriate (according to the manual) but nothing.

    Am I missing something? I have also the is open regardless of the specific LABview laboratory (Surface Temp lab for example), but when I press run it is as the sensors are not recognized or even be recognized. The sensors are plugged into the connectors on the analog Proto Board also. What I am doing wrong, and how can I get these sensors to work?

    Any help will be greatly appreciated.

    From what I see, it looks like a typing mistake in the manual.

    Try to connect GND AI0 - and NOT ALWAYS.

    It should look like this.

    Connect the following pins for wire connector:

    1. AI0 + SIG1 analog connector Proto Board

    2. + 5V power supply DC to 5V analog Proto card connector

    3. Power supply to the GROUND to GND of the analog Proto board connector

    4. AI0 - GND of the analog connector Proto Board

  • How to use the find method to search for character format substitutions and FMP?

    I strongly suspect that I should be able to use the find method to search for paragraph substitutions and format as these options are available in the Find dialog box. However, because of the excruciating Extendscript documentation from Adobe, I not was able to find the key pieces of information that I need. I found these constants:

    • Constants.FV_FindPgfFormatOverride
    • Constants.FV_FindCharacterFormatOverride

    But he has literally no information about them. It is not yet a definition, so I'm actually just a guess. However, I think that I need to somehow use these constant within the parameters of the Find method. Any ideas on how to do it?

    You're right, there are still some bugs to work out of the documentation, although it has already improved since I started w / Extendscript last summer.

    Find two constants must be defined as the ival for a PropVal FindObject, for example:

    var myDoc is app. ActiveDoc;

    var docStart = myDoc.MainFlowInDoc.FirstTextFrameInFlow.FirstPgf;

    tloc var = new TextLoc(docStart,0);

    var findParams = AllocatePropVals (1);

    findParams [0].propIdent.num = Constants.FS_FindObject;

    findParams [0].propVal.valType = Constants.FT_Integer;

    findParams [0].propVal.ival = Constants.FV_FindCharacterFormatOverride;

    myDoc.Find (tloc, findParams);

    Depending on what you're trying to accomplish, you can also take a look at the property FormatOverride of the Doc, bmp and item objects.

  • How can I start FF command line (nix) without window, menu, tabs and other - as absolutely full screen?

    I need FF on Linux base for kiosk with tuchscreen. So he must start automatically command line (console) in full screen mode without a window, menu, tabs, address line and side ruler. I guess I can set up in a conf file and use some options command line, but where can I find the full list of options and the description of the conf file?

    You can watch this extension:

  • How can I display the last field added to the Manager (bottom) and keep the scrolling feature?

    Issues around scrolling on managers of blackberry is a real headache.

    I would like to be able to add fields to the bottom of a Manager and have this field displayed on the merits without taking the focus to another control.

    I'm looking for something similar to how works the yahoo chat window, for example.

    I was not able to get the last label field added to the box to display.

    Here is the code relavent I have:

    
     //adds a labelfield and a nullfield to the display    public void update()  {     UiApplication.getUiApplication().invokeLater( new Runnable()        {            public void run()            {             try               {                 scrollingWindow.add(new LabelField("Hello1" + count) );                   //add nullfield to facilitate scrolling                   NullField nullField = new NullField( NullField.FOCUSABLE );                   scrollingWindow.add(nullField);                   count++;              }             catch( Exception ex )             {                 Dialog.alert( ex.getMessage() );              }            }        }); }
    

    Any ideas?

    Couple of quick things:

    (1) you can make your LabelField focusable and save adding the NullFields

    New LabelField ("Hello1" + count, Field.FOCUSABLE)

    (2) have you tried to discover what field has focus, then set the focus on your new field, and then reset back to that he originated from?

  • How to use the structures of the event for long-running tasks

    I created a state machine that scans a cluster of Boolean controls in a State of 'home '. Most of the States run a Subvi or two in ~ 100 ms or less.

    However, a State run for 10 seconds.

    The code works but the user interface is limited because the controls are outside the cluster because they provide inputs to the structure of State machine case but do not cause changes in the State. In other words, I all orders cluster stacked vertically on one side of the main panel and do not have the flexibility to move the controls to the more intuitive positions on the Panel.

    My question: How can I convert this code in a structure of the event and keep this long term 'event' and prevent that the operator by clicking another button event during the execution of this event?

    Thank you

    You say you have controls outside of your main code... You should really put these inside and manipulate them in a State of your state machine is initialized. This allows you to make changes to the code easier and limits of line entering your outside loop.

    You can do different things to lock the user.

    You can disable specific controls so that they can't be clicked or edited.

    You can use the palette of the mouse to define the busy cursor and disabled again once finished, I do this a lot during treatment when my code something loads the user just clicked.

    One of my favorites is to set a Boolean value in your data that passes through you event titled structure "disable mouse." When the value is True, a mouse down event will effectively reject the event, clicking on disable. I also added an event mouse move where if the bool disable the mouse is set to True, it moves an indicator of string with the mouse by telling the user why it is disabled.

    If you want more specific suggestions, I suggest to post an excerpt of your code, or attach your screws, so that we can better help you.

  • How to use Illustrator SDK of FrameMaker plugin?

    Hello

    I am absolutely new to Illustrator SDK (downloaded 2 days back), even though I have some experience in FrameMaker 12 SDK. My problem is as follows:

    I have a FrameMaker document, where have been incorporated to the Illustrator (.eps) files. I need to develop an application that will find some texts in the document and replace them with others. I know the source text and their replacements. The text to replace can be in the FrameMaker document, as well as in any embedded Illustrator document.

    So far, I have developed a plug-in, FrameMaker, which may be invoked by a menu of the FrameMaker option. If the user opens FrameMaker, loads the document, then calls this plug-in, it will properly replace strings in the FrameMaker document. Now I'm stuck with replacing the strings in the embedded Illustrator documents. I can find the name of the Illustrator files that are integrated and should be treated. But I am confused how to use Illustrator to my FrameMaker plug-in SDK for find and replace these strings? Any idea?

    I read the software Illustrator SDK documentation in the last two days and it seems that I have to use is Adobe Text Engine classes (I could be wrong but) who can manipulate the text in an Illustrator file. Is this correct or is there a more easy/better way? Even if I try this approach, how should I proceed? Should I try to develop a plug-in in Illustrator using classes ATE? If so, how do I invoke that FrameMaker? I should start by Illustrator program, load the document illustrator in it and then some how (how?), call the plug-in which will replace the text, save the file and close the Illustrator? All this has a sense or I'm hiking? Is there a simpler way? It doesn't have to be a manual intervention after the user call my FrameMaker plug-in and everything must be done automatically from there.

    Another little thing. Try to compile and run the example of Illustrator SnippetRunner ATE, I'm stuck as it used Microsoft Foundation Class (MFC) and I have Visual Studio Express Edition 2012, which does not support MFC. I hope that we can develop plug-in in Illustrator without the help of MFC. Can someone please confirm?

    Any help will be much appreciated.

    Thanks in advance,

    Joydeep Ray

    You cannot use the Illustrator SDK of your plugin for FrameMaker. The SDK only works in a plugin Illustrator loaded by a current version of Illustrator. All of your users will have installed Illustrator? If all embedded files are all eps, then you could probably treat the files yourself.

    You don't need MFC to create a plugin to HAVE. I think that the only "MFC" in the samples is "afxres.h" #include in the resource (.rc) files. If you replace this with #include "windows.h" it will probably work.

Maybe you are looking for