Call Subvi problems

Hello

I am writing a program in which I need a 'pop up' Subvi.

The Subvi opens when the user presses a button and closes when it is finished. I do this with a structure of the event.

THA main program consists of multiple while loops.

When I run the program for the first time, everything will be fine. If I stop now the main program with the LabView stop and restarting the program key, everything still works fine.

If I stop however the program by ending while loops throughout the program then restart and call the Subvi, the main program will behave as if everything works well, however the SubVI Frontpanel (or the Subvi together, I don't know) does not open.

I have really no idea what I was wrong there. Apparently the way I finished the program makes a difference. As I undestand, however it should not, does it?

What is important, that the 'Pop Up' Sub - VI is called in an additional Subvi which does not pop up?

I tried to reproduce this scenario in a simple example that I have attached. However, even if it is in all ways as the actual program, here, the only error.

Maybe someone of you had the same problem before or have any idea what's going on there?

Thanks for your help!

In the attachments, 'test' is the main program!

You have misunderstood my previous comments. Your code is not going to end because you just read the value of the button stop in the loop with the structure of the event. This loop may not end until everything that he has completed. This means that it is a MUST to find out the stop condition after an event has been processed. Do outside the structure of the event as your code will mean that the while loop is sitting there waiting for the structure of the event finish. This will happen never once you stop ask the help of the button as it is written. If you click on the stop button and follow that with the key call Subvi that your app will actually stop. In addition, the structure of your event will not process the stop button until the Subvi (your pop-up) actually left. The event containing this call will not end until the end of the Sub - VI.

I posted a simple change to your code which includes some of the suggestions that I've done more sooner.

Tags: NI Software

Similar Questions

  • Cannot dynamically include called subVIs in construction

    Hi, I have a VI that calls some Subvi - i.e. by reference dynamcally.

    I am now building an application and loking for this manual for help (I'm using LabView 2012):

    This link http://digital.ni.com/public.nsf/allkb/410F2EC66F60F9B0862569EE006F4FA0 has similar instructions:

    However, my problem is that I can't click on the arrows in the window. This window for me looks like this:

    and no arrows are clickable and no help by adding the dynamic subVIs!  For example, when the application is built, it is malfunctioning.

    Would appreciate any help you can provide on how to address the issue.

    Thanks in advance!

    Hi SensLab,

    When you use a project LV then you would be able to include all the necessary screws when building!

    BTW. Dynamically called screw should be included in the project too...

  • Queue return error out when calling Subvi in vi main

    Hello

    I have problems with the help of queues in a project where it is called a Subvi VI main. After the Subvi call first, when I press any button labview returns following error.

    "LabVIEW: an input parameter is not valid." For example if the input is a path, the path can contain a character not allowed by the operating system such as? or @ ".»

    Please find attached the file explore vi and project. I'd appreciate your comments.  I use the suite of Labview 2010 development.

    Kind regards

    Austin

    Hello Austin,.

    Looks like you post your queue in the sub vi when it ends (destroy force is set to TRUE so it destroys the queue, not only the reference to the queue)

    I tested it by putting a hell structure diagram around the queue of the vi in the sub vi version and it works now without raising an error.

    Setting Force destroy false so that it destroys only a single reference to the queue.

    Chris

  • While the loop and the passage of a string to a Subvi problem

    Hello world

    My problem is this: I have a MainVI and a Subvi, the MainVI is running a while loop in which the Subvi is called and goes to 2 parameters, 1 bool and 1 chain. the problem is, inside the Subvi the chain should be placed in a text box so that the user can see before pressing ok.

    Background of the present: normally "Get_DMC.vi" opens with just the text box and a button cancel, means to scan 10 characters of big entry. It still works fine. If the user selects the DMC model in the MainVI, it should only copy the dummy DMC of the MainVI (the above string) to the show, and Subvi in the text box as well as allow another button 'OK' for the opportunity to control themselves (Advanced) users.

    The Subvi is reloaded on every call because he'd be stuck in the while loop, I had not done that. Not quite sure why, if someone has an answer to that aswell please tell me.

    Many thanks in advance,

    Kind regards

    Pedro

    It might be that the writing of the DMC to "Value DMC" model that happens before the "reset DMC by default".  Try the error off DMC Reint default wiring to the value DMC error to force the order of execution

    Ken

  • Call Subvi

    Hi all... Please help me solve the problem.

    1. I have a doubt about the appeal of the main program as a Subvi (look for, when the user click on the button load the façade of a main pgm). What is the best method?

    a.Call as a method of ref vi. (Dynamic load)

    b.Placing on TOP vi and activate Subvi show option before Panel when call.

    Waiting for response...

    Thanks in advance.

    If you don't know why you want to call the VI dynamically, then b is probably your best choice. It is much simpler. The only reason to dynamically load a VI is if you could ever need in memory. I'm sure that someone rings on other grounds to dynamically load a VI.

  • The K910 - VibeUI 2.0 call log problem

    It's maybe something ridiculously simple, but still... I can't understand:

    For some reason when I place a call OUTGOING, and the other side picks it up, the event is held as 'UNKNOWN' in the call log - I can see the duration of the call, but cannot see the actual number I composed. No matter if the number dialled is part of my address book or is a random number - if it is connected, it is still 'UNKNOWN '.

    Interesting - in composition, it's all good, when the other side picks up and the Timer (timer), I see the appearance of 'UNKNOWN'. Really strange!

    Everything that happened after that I upgraded to VIBE UI 2.0 (1437 at present). I can be in line with the same with older versions - 1433, 1435.

    I hope that someone will be able to help!

    Just to share an update... With the SIM card of another operator, it works fine. So I don't know what's the problem with him. I have just gone to the operator and asked to change my SIM card, but it does not help.

    And when I put the same card in the SIM 2 slot, it works very well. Very strange indeed

  • Reading from the sensor to LabView via rs232 or Subvi problem

    I'm quite new to LabView and not too experienced with instrument control so I was wondering if someone could help me to solve my problem?

    Currently, I'm using LabView 2011 and I'm trying to read pressure DualGauge of Pfeiffer (TPG 262) pressure sensor and display the readings of two pressure on LabView.  However, when I run my program, the pressure readings are not displayed - what is displayed are default 0.00 if same mBar pressure reading a reading of the display of the DualGauge probe.  To connect the sensor, I use a RS232 cable and have managed to find the device on my device manager, so I don't think that the connection is the problem (I've also seen the port appears in the Device Manager, when I connected the sensor via RS232 and USB in my computer).  I also use Subvi Pfeiffer in my code, and I suspect that the problem may be in there.

    Attached is my code and here are links to the manual of the DualGauge and the driver of the software LabView of Pfeiffer

    Double manual gauge - p. 23 and 68 are probably the only things related to the RS232 connection.

    http://www.idealvac.com/files/brochures/Pfeiffer_TPG262_Operating_Instructions.PDF

    DualGauge LabView driver - software Pfeiffer double gauge LabView driver 2009

    http://www.Pfeiffer-vacuum.com/products/measurement/activeline/measurement-equipment/OnlineCatalog.a...

    Any help is very appreciated!

    -Candice

    You have not tested really do anything. Devices and MAX Manager displays only the com port that you added to the computer. It does nothing to verify that an instrument is truly connected. You might have the wrong settings of com or the wrong type of cable serial (null-modem is required). I suggest that you start with program such as hyperterminal, PuTTY or MAX and try something simple. It seems that you will receive an acknowledgement returned by the instrument when a correct command is received. Make sure that this simple step that happens.

  • Call subVIs. Absolute or relative paths?

    Hello

    How can I know what are called the subVIs? I would like to know what type of path is used; absolute or relative.

    The brilliant solution would be if I could choose a VI and a list of its subVIs with the path close to.

    K.

    All paths are relative (even on different drives: /.. /.. / D / data / *) except for the symbolic paths (user.lib and vi.lib)

    The OpenG Toolkit has a feature called list VI hierarchy that returns an array of all VI within the call tree:

    Tone

  • Someone help me please understand what is this block? -Call Subvi

    Hi all
    During playback of a sample project a block stopped me. I could not understand what it is... once I click it (offline), it opens a Subvi, while runing the labview, it is clear that he will automatically call the Subvi. My Info is the one to call a Subvi VI main, you must use a static reference of Vi. Can someone help me understand what about this block?
    I am attaching the picture of her and a container VI she also well... Simply open the block diagram of the file: "Caller.vi"... The Subvi associated with this block is fixed as well: "Config.."

    I would like to know what is this block name, how it is related to the Subvi and how the Labview call it automatically. .. I really appriciate any suggestions.

    Thanks in advance

    Concerning


  • call Subvi producer/consumer using vi main to gain the image capture

    Hello world

    I don't know if I get the notion of producer/consumer harm. I tried to write a producer/consumer Subvi that simulate continually grab get the image. When I call the Subvi hand while loop with a main vi, it seems to face an infinite loop. I wonder what someone knows how can I activate a Subvi producer/consumer using primary vi? Thanks in advance.

    Kind regards

    Han Yen

    Bettter use this one.  The one above has a 'small' mistake

  • Plot to a certain number of facades of asynchronously called Subvi

    Hi all

    I'm working on a data acquisition and monitoring program and I have a dream to make some very flexible windows for my windows to plot management. Try to make it simple to quickly open different types of plots and view channels in each window. Do not reinvent the wheel, I'm trying to use windows Windows to do this, call asynchronously screws. The VI will be built as an EXE file and used by people unfamiliar with LabVIEW, so try to make it really flexible and intuitive.

    I have configured my VI as in this example and it got real close: http://zone.ni.com/reference/en-XX/help/371361J-01/lvhowto/acbr_call_clones/

    When I run the VI opens regardless of the number of windows tracing (in the case of my Subvi tracing window), I've specified but the plots don't update. Anyone has any advice on how to get this behavior?

    Hello Cesari, I attach a quick proposal that can improve, I hope this help you.

  • Call Subvi exe

    Hello

    I call an exe with exec system block. I build this exe with Labview application builder. I need to open the front of some included subvi and I need to close them when they finish. The installation of the node subvi is configuered in this way: see the front when it is called. Close then initially closed. The first time I don't understand these subvi tab source file for the request of the manufacturer, so the application opens a pop up error. Can I include the source file tab: the program now works, but the screws are all open when the application starts. I don't like it. How could I answer exactly the behavior of VI in the exe file?

    Thank you

    Use nodes of property within the Subvi itself to open and close the front panel.

  • Phone call about problems with the 315-633-3442 for scam program windows?

    Calls - call display unknown name showed & number.  Said I was outside and I could take a message :)

    They wanted to solve a problem with windows, when I called them back.

    I asked for her phone number - 315-633-3442

    Gave them no information - but they didn't know my name.

    Feels like a scam...

    Thank you

    If someone * COLD * you called and told me * you * you have problems - this is a scam.

    If you called someone and they later called you back - less likely to be a scam.

    Despite all the elders attempts-, we were unable to reconnect the webcams placed throughout your home/business/means of transport and matching clothes and all the means we have of your remote control system and follow everything that you do.

  • Voice, outgoing calls PAP2T problem

    Hi all

    I have a pap2t voip adapter and a lot of problems.

    Here's the situation.

    In our office, we have a linux box that acts as a router, iptables configured by shorewall. Connected to the linux box is the lan internet.

    After a difficult time, I finally got to do the adapter to connect and register with our sip (sipgate.de) provider.

    But, it's almost everything.

    What works, is that I can call from extern and get a dial tone on the phone (connected to the adapter). But that's all.

    When I try to make a call, I get the following error in the system log:

    [0:5060]-> 217.10.68.147:5060
    Sep 24 12:30:24 192.168.15.9 [0:5060]-> 217.10.68.147:5060
    Sep 24 12:30:24 192.168.15.9 sip:[email protected] GUEST SIP / 2.0 ^ M Via: SIP/2.0/UDP 77.20.237.113:5060; branch = fc32b89a z9hG4bK ^ M from: Richter ; tag = 677844a993140e19o0 ^ M at: ^ M Call-ID: [email protected] ^ M CSeq: 101 INVITE ^ M Max-Forwards: 70 ^ M Contact: Richter ^ M expires: 240 ^ M User-Agent: Linksys/PAP2T-5.1.1 (LS) ^ M Content-Length: 444 ^ M allow: ACK, BYE, CANCEL, INFO, GUEST, NOTIFY, OPTIONS, SEE ^ supported : x sipura, replace ^ M Content-Type: application/sdp ^ M ^ M v = 0 ^ o =-196655 196655 IN IP4 77.20.237.113 M ^ s M =-^ M c = IN IP4 77.20.237.113 ^ M t = 0 0 ^ M m = audio 16474 RTP/AVP 0 2 4 8 18 96 97 98 100 101 ^ a = rtpmap:0 M PCMU/8000 ^ M a rtpmap:2 G726-32/8000 = ^ M a = rtpmap:4 G723/8000 ^ M a rtpmap:8 PCMA/8000 = ^ M a rtpmap:18 G729a/8000 = ^ M a rtpmap:96 G726-40/8000 = ^ M a = rtpmap:97 G726-24/8000 ^ M a rtpmap:98 G726-16/8000 = ^ M a = rtpmap:100 NSE/8000 ^ M a = fmtp:100 192-193 ^ M a rtpmap:101 telephone-event/8000 = ^ M a = fmtp:101 0-15 ^ M a ptime:20 = ^ M a = sendrecv ^ M

    [0:5060]-> 217.10.68.147:5060
    Sep 24 12:30:44 192.168.15.9 [0:5060]-> 217.10.68.147:5060
    Sep 24 12:30:44 192.168.15.9 NOTIFY sip: 217.10.68.147 SIP / 2.0 ^ M Via: SIP/2.0/UDP 77.20.237.113:5060; branch = a39224c8 z9hG4bK ^ M from: Richter ; tag = 123c259d53ab82c7o0 ^ M at: ^ M Call-ID: [email protected] ^ M CSeq: 132 NOTIFY ^ M Max-Forwards: 70 ^ M event: KeepAlive ^ M User-Agent: Linksys/PAP2T-5.1.1 (LS) ^ M Content-Length: 0 ^ M ^ M

    Sep 24 12:30:52 192.168.15.9 [0:0] call of Rel AUD
    Sep 24 12:30:52 CC 192.168.15.9: failure w / call
    Sep 24 12:30:52 192.168.15.9 Sess terminated

    When I look into the adapter information page, I see the message that the call is not valid.

    What I find suspicious, it's that I don't send or receive packets rtp or bytes depending on the info page while I get and send a lot of sip packets and bytes.

    I tried transfer ports 16000-17000 la carte (I gave him a fixed ip address), but this custom work too.

    I googled a lot and I tried many things, which lead me to this situation, and here I stand without knowing where to go.

    Greetings and thanks in advance

    Sven

    I solved the problem.

    What I had to do was to unload the modules nf_nat_sip, nf_conntrack_sip and add them to the DONT_LOAD line in shorewall.conf.

    She's.

  • Data execution prevention and facebook calling video problem

    I try to use Facebook video call I've used for months.  All of a sudden, when I go to start video calling a message appears that says. Facebook video call has stopped working.  A problem caused the blocking of the program works correctly.  Windows will close the program and notify you if a solution is available.

    I did no change and my add ons are up-to-date.  Please notify.

    Hello
     
    Step 1:
    Launch Skype directly and see if that makes a difference.
     
    Step 2:
    See my previous links allow Skype to the prevention of execution of data.
     
    Step 3:
    Uninstall and reinstall Skype.

Maybe you are looking for

  • Cannot download the image of the camera to the computer

    original title: Sakar 26480 Aqua shooting underwater digital camera 0.3mp I have downloaded the driver on the manufacturer's Web site and I still can't get the pics off the camera I need help, my son took pictures on vacation and I would see them.

  • Emails in my Inbox are endangered.

    Windows Mail emails in my Inbox are endangered. Not even go to another file as deleted, but which disappears.

  • Windows xp and the problem of network 7 printer connectivity

    a computer running Windows XP Connect to Dell 2335dn printer using the http: and is connected properly.  Second computer running Windows 7 by using the same Http info cannot connect to the gateway is 192.168.1.101 printer is 192.168.1.110 than the pa

  • Acrobat Reader DC Office

    Hello!I'm going to open an office and I want to know if I need to buy a license to use Acrobat Reader DC, or it's free and if I can use this only for download from the official site.Thank you!

  • We need to answer Muse! ???

    Does anyone know when the update comes out?