Issue in connecting sub VI programs through the main program

Sir/Madam,
                   I have made a few sub VI  programs of 'Keithley 2400', but I am having problem in connecting them together through the main program. Actually the created sub VI programs are not showing  any activation button when I connect 'action.vi' file in 'read.vi' file (attachted). 
Please give suggestions.
Regards
Yachika Manglik
Solved!
Go to Solution.
Attachments:
action.vi ‏24 KB
read.vi ‏14 KB
write.vi ‏24 KB

Hello
Thanks for your suggestion.
I have successfully implemented connections in my code according to your given suggestion .
Now I am facing problem to link a file named 'control1.ctl'(attached) that I have made for selecting option 'select type of action' and need to add' control1.ctl' in  'read.vi' file. It is showing  following error( below).
Error: " required input ' GPIB action' is not wired.
                 OR
           "Enumeric conflict"
So can you please suggest how this error can be removed?
Attachments:
Control 1.ctl ‏5 KB
read.vi ‏13 KB

Similar Messages

  • How to get variant of SUBMIT program to the main program.

    Hi!
    In my ZFRFI00R_PRINT_DOCUMENTS program i am using
    SUBMIT zfrfi01r_alv_fi_document
    using SELECTION-SET sp_vari
    with p_comp  = gw_bkpf_key-bukrs
    with p_year    = gw_bkpf_key-gjahr
    with p_doc    =  gw_bkpf_key-belnr
    and return.
    So in the main program i created one layout field to get the what are all the layouts in the SUBMIT program.
    I am using FMs 'REUSE_ALV_VARIANT_DEFAULT_GET' , 'REUSE_ALV_VARIANT_F4'  to get default layout from the SUBMIT program.
    It is not showing the layouts which are in the SUBMIT program when i press F4 in the layouy input field in the selection screen of the main program.
    Can anyone help in this regard?
    Thank you in advance for ur help.
    Regards,
    Raj

    Hi,
    IN the disvariant parameter are you populating the correct program name..meaning the submitted program name..
    Thanks,
    Naren

  • Problems with executing customized Run-Time menu from a sub-vi imported from the main vi.

    I am having trouble executing Run-Time menu from the sub-vi.
    Currently my main vi program, which is the first thing that I open up to acquire data from different sources (i.e. dll’s, scanners etc.) opens up a number of sub-vi’s.
    I have created several sub-vi’s, which are opened from the main vi’s customized Run-Time menu that I have created (i.e. dsp file). I am using the open panel.vi to open other sub-vi’s. I don’t have any problems opening any number of sub-vi’s through the main vi’s menu.
    I would also like to have the option to open other sub-vi’s from any sub-vi’s menu. I succeeded in exporting the Run-Time m
    enu from the main vi to the sub-vi using the property node properties however nothing happens (I hear a beeping sound) when I click on the sub-vi’s menu. I don’t know what I am doing wrong. I would really appreciate it if someone can attach a sample code using Run-Time menus on sub-vi’s imported from the main vi.
    Thanks
    Nish

    I don't actually have any VIs like this. It might be easier to take the menu and just add it to the VI during development. Then it will always be there. It might be easier than doing this with Property Nodes.
    J.R. Allen

  • How can I allow a sub-vi to run independent of the main program once it has been called while still sending data to the sub-vi

    I have a main program where I call a sub-vi. In this sub-vi, there is a while loop that is used to wait for commands in the sub-vi. While the while loop is running, I cannot continue with normal operation of the main program. I would like get the sub-vi to run independently once it has been called, but not hold up the main program. As well, I need to still be able to send data to the sub-vi

    One way is to use VI Server, which has been mentioned by others. This will allow you to start another VI (by name) and run it entirely independently of the calling VI. This is a good way to start various independent VIs from a main menu, for example. None of the VIs thus called need have any connection to the others.
    Another way it to have the SubVI in a separate while loop on the calling VI's BD. Then, use a local var to start this sub VI from the main loop. The calling VI sets a local START bit and continues running. The sub VI's while loop watches for this START bit to go true, and then runs the Sub VI. The advantage here is that one can more easily pass arguments to the SubVI when it is started, using local vars, which are preferable to globals. Once the Su
    bVI is running, however, you must use a global Stop Bit, set in the calling VI, to stop it when the calling VI exits, or the calling VI will hang up, waiting for the Sub VI to close and exit its while loop.
    If you need an example of this, email me. ([email protected]). I can also recommend Gary W. Johnson's excellent book which discusses this. ("LabVIEW Graphical Programming", 2nd Ed).
    Note: Where possible, I try to call a subvi from within the main VI, wait till it is done, then continue. It avoids the use of locals & globals, and results in cleaner code, with fewer "race" conditions. However, the main VI stops until the subVI is done, hence one should make the subVI modal.

  • HT201209 When my purchase points in one of the programs through the iPhone show me this message:- Your purchase could not be completed.. contact iTunes store support to complete this transaction

    When my purchase points in one of the programs through the iPhone show me this message:- Your purchase could not be completed.. contact iTunes store support to complete this transaction??

    Welcome to the Apple Community.
    Did you follow the instructions in the message and contact Apple, which you can do through iTunes Store Support. If Apple have asked you to contact them, then the issue can only be resolved by them.

  • Why in September when I purchased a through the Edge program with the $5.00 insurance/protection plan (that the sales associate handling the purchase on the phone recommended), is no longer valid?!  2 months after getting the Edge device, I go to make a c

    Where is the insurance and original Edge Agreement from September?  No one in Verizon knows. I purchased (rented) a Galaxy S4 through the Edge program, with the $5.00 insurance/protection plan (that the sales associate handling the purchase on the phone recommended),which is no longer valid!  2 months after getting the Edge device, I go to make a claim and Asurion will not honor it because I am not covered; however, all the order confirmation receipts emailed and physically sent with the device show the addition of insurance when I signed up for the Edge program.  According to Verizon (via live chat with 'Nicole'), this $5 protection plan no longer exists and the order numbers I have on my paperwork (multiple documents) are invalid in the Verizon system.  For over a week, I have spent more than 10 hours on the phone, live chat and in the store trying to get some sort of resolution and the customer service reps just put me on hold or promise to "call me back within 30 minutes after they speak to a supervisor" and (surprise!) they never return my call.  Or they send me to the store to show proof of my documents, but then those associates cannot help either.  Also, the 'Edge Agreement' in my profile has the wrong device (and serial #), wrong payment amounts and no mention of the 'consumer protection plan'  on it, which is listed on the order confirmation sent via email and with the actual Edge device on September 23.  Obviously, there was some sort of glitch or mistake on Verizon's part, but NO ONE WILL EVEN TRY TO ACCEPT THAT FACT!  WHY WON'T ANYONE GET BACK TO ME WITH SOME SORT OF EXPLANATION FOR ANY OF THIS?!  Is it typical for Verizon to do away with a service (i.e., $5.00/month protection) and not inform the customer of this?  And is it company policy to be as unhelpful as possible to a paying customer who needs assistance when there is cleary something wrong on your end?  And finally, am I really suppose to believe that Verizon customer service has no email addresses or fax machines so a customer can send you proof of what is on the receipt you sent and that I have to take more of my time to go to the actual store?!  Finally, does anyone at Verizon even read these messages or even give a F@#k about the customer as long as they keep making money?! 

    RLites22,
    I can understand your concern about the insurance you have on the line. I want to make sure that I put a fresh pair of eyes on your account to find out exactly what is going on. I did send you a Direct Message. Can you please respond back to me in the direct message so we can go over the account specifics. I really hope to hear back from you soon.
    KevinR_VZW
    Follow us on Twitter @VZWSupport

  • I'm trying to update my iPhone and it's connected to my computer through the usb port, but my iPhone is still saying to plug it into iTunes. How do I fix it?

    I'm trying to update my iPhone and it's connected to my computer through the USB port, but my iPhone is still saying to plug it into iTunes. How do I fix it?

    This is what my screen looks like.

  • I am in a scholarship program through the Ministry of Education of Spain.

    I am in a scholarship program through the Ministry of Education in Spain and I'm trying to get creative cloud on the education plan.  I do not attend a university but I am in Spain on Student Visa for this program.  How do I put that information into the section that asks which school I belong to?

    Hi AdonisWier,
    Welcome to Adobe Forum,
    Please refer to http://www.adobe.com/education/teacher-eligibility-guide.edu.html,
    I would request you to contact Adobe at http://adobe.ly/yxj0t6 as I see that you are from a different country too.
    Regards,
    Rajshree

  • How to call sub VI and close the main VI in while loop and sequence condition

    Hiya,
    I have a problem with the while loop and the sequential condition in placed together i.e while loop as Global and sequential condition as local (i.e inside the Global loop). For example,when calling the sub vi from the main vi (main vi as main menu and sub vi as sub menu.)My problem is I can't run my sub menu when the particular icon is pressed through the main menu and only the front panel appears. My concerned was if possible the sub menu is activated in few second then jump back to the main menu again (analyze through the diagram).So, I don't know what should I need to do. If possible, please advice me how to encountered that particular problem.
    Thanks!

    Go to your block diagram of your main menu, then click on the "Hightlight Execution" it is something like a bulb. then you execute your vi. then LV will show you all your data flow.
    When you feel sad, laugh

  • DUMP in program webdynpro  ASSERTION_FAILED  The main program was "SAPMHTTP

    We have a program in webdypro and yesterday we had this dump,but nobody can me tell wath it is mean?.
    Can someone help me? Thanks Flavia
    Texto breve
        The ASSERT condition was violated.
    Anál.errores
        The following checkpoint group was used: "No checkpoint group specified"
        If in the ASSERT statement the addition FIELDS was used, you can find
        the content of the first 8 specified fields in the following overview:
        " (not used) "
        " (not used) "
        " (not used) "
        " (not used) "
        " (not used) "
        " (not used) "
        " (not used) "
        " (not used) "
    Notas para corregir errores
        Probably the only way to eliminate the error is to correct the program.
        If the error occures in a non-modified SAP program, you may be able to
        find an interim solution in an SAP Note.
        If you have access to SAP Notes, carry out a search with the following
        keywords:
        "ASSERTION_FAILED" " "
        "CL_WDR_VIEW_ELEMENT_ADAPTER===CP" or "CL_WDR_VIEW_ELEMENT_ADAPTER===CM01L"
        "DISPATCH_EVENT"
        If you cannot solve the problem yourself and want to send an error
        notification to SAP, include the following information:
        1. The description of the current problem (short dump)
           To save the description, choose "System->List->Save->Local File
        (Unconverted)".
        2. Corresponding system log
           Display the system log by calling transaction SM21.
           Restrict the time interval to 10 minutes before and five minutes
        after the short dump. Then choose "System->List->Save->Local File
        (Unconverted)".
        3. If the problem occurs in a problem of your own or a modified SAP
        program: The source code of the program
         In the editor, choose "Utilities->More
      Utilities->Upload/Download->Download".
      4. Details about the conditions under which the error occurred or which
      actions and input led to the error.
    Usuario y transacción
        Client.............. 300
        User................ "CTACTEPROV"
        Language Key........ "S"
        Transaction......... " "
        Program............. "CL_WDR_VIEW_ELEMENT_ADAPTER===CP"
        Screen.............. "SAPMHTTP 0010"
        Screen Line......... 2
        Information on Caller ofr "HTTP" Connection:
        Plug-in Type.......... "HTTP"
        Caller IP............. "10.10.10.90"
        Caller Port........... 8001
        Universal Resource Id. "/"
    Info posición de cancelación
        Termination occurred in the ABAP program "CL_WDR_VIEW_ELEMENT_ADAPTER===CP" -
         in "DISPATCH_EVENT".
        The main program was "SAPMHTTP ".
        In the source code you have the termination point in line 5
        of the (Include) program "CL_WDR_VIEW_ELEMENT_ADAPTER===CM01L".

    Hello,
    We implement some notes and so far not returned the problem. I do not know if it solved the problem but maybe help you.
    Nota 1522829
    Nota 1070532
    Flavia

  • How to pause the main program and resume it the first sequence again?

    I am building the main program. How do I pause it in case of activated emergency button or errors? Once the button is deactivated and errors are corrected, I need to resume it again at the first sequence, like reset, not close the program. How to do it?

    Hello astroboy,
    you have to program it...
    A construct like "if not(error) then continue else startover" could help. Also the error cluster and its use in (nearly) all communication VIs can help you. And it could help to connect such error cluster to a case structure...
    Best regards,
    GerdW
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • The main program SAPLZOTMRMK must be generated.

    Hi Experts,
    We have Implemented one BADI 'INVOICE_UPDATE'. When ever I try to keep an break point it throws an msg saying 'The main program SAPLZOTMRMK must be generated'. Could you please let me know how to overcome this issue.
    Regards,
    Ravi Kasnale

    Go to SE38, enter program SAPLZOTMRMK, press Activate button

  • How to get the output of a program into the email program.

    hi
    i had created a java mail program and the keygeneration program.seperately.
    i want to get the keygeneration into my email program.that should be sent along with the text message.so pls help me in this regared.
    i had pasted my coding her
    email pgm.
    import javax.mail.*;
    import javax.mail.internet.*;
    import java.util.*;
    import java.io.*;
    To use this program, change values for the following three constants,
    SMTP_HOST_NAME -- Has your SMTP Host Name
    SMTP_AUTH_USER -- Has your SMTP Authentication UserName
    SMTP_AUTH_PWD -- Has your SMTP Authentication Password
    Next change values for fields
    emailMsgTxt -- Message Text for the Email
    emailSubjectTxt -- Subject for email
    emailFromAddress -- Email Address whose name will appears as "from" address
    Next change value for "emailList".
    This String array has List of all Email Addresses to Email Email needs to be sent to.
    Next to run the program, execute it as follows,
    SendMailUsingAuthentication authProg = new SendMailUsingAuthentication();
    public class SendMailUsingAuthentication
    private static final String SMTP_HOST_NAME = "smtp.mail.yahoo.com";
    private static final String SMTP_AUTH_USER = "xxxx";
    private static final String SMTP_AUTH_PWD = "xxxx";
    //private static final String emailMsgTxt = "Online Order Confirmation Message. Also include the Tracking Number.";
    private static final String emailSubjectTxt = "Order Confirmation Subject";
    private static final String emailFromAddress = "[email protected]";
    private static String emailMsgTxt = "I am unable to attend to your message, as I am busy sunning"
    + "myself on the beach in Maui, where it is warm and peaceful."
    + "Perhaps when I return I'll get around to reading your mail."
    + "Or perhaps not.";
    private static final String[] emailList = { "[email protected]","[email protected]"};
    public static void main(String args[]) throws Exception
    SendMailUsingAuthentication smtpMailSender = new SendMailUsingAuthentication();
    smtpMailSender.postMail( emailList, emailSubjectTxt, emailMsgTxt, emailFromAddress);
    System.out.println("Sucessfully Sent mail to All Users");
    public void postMail( String recipients[ ], String subject,
    String message , String from) throws MessagingException
    boolean debug = true;
    Properties props = new Properties();
    props.put("mail.smtp.host", SMTP_HOST_NAME);
    props.put("mail.smtp.auth", "true");
    props.put("mail.smtp.port", "25");
    props.put("mail.smtp.protocol","smtp");
    props.put("mail.debug", "true");
    Authenticator auth = new SMTPAuthenticator();
    Session session = Session.getDefaultInstance(props, auth);
    session.setDebug(debug);
    // create a message
    Message msg = new MimeMessage(session);
    // set the from and to address
    InternetAddress addressFrom = new InternetAddress(from);
    msg.setFrom(addressFrom);
    InternetAddress[] addressTo = new InternetAddress[recipients.length];
    for (int i = 0; i < recipients.length; i++)
    addressTo[i] = new InternetAddress(recipients);
    msg.setRecipients(Message.RecipientType.TO, addressTo);
    // Setting the Subject and Content Type
    msg.setSubject(subject);
    msg.setContent(message, "text/plain");
    Transport.send(msg);
    private class SMTPAuthenticator extends javax.mail.Authenticator
    public PasswordAuthentication getPasswordAuthentication()
    String username = SMTP_AUTH_USER;
    String password = SMTP_AUTH_PWD;
    return new PasswordAuthentication(username, password);
    keygeneration program:
    import java.io.Serializable;
         import java.security.Security;
    import com.sun.net.ssl.*;
         import javax.crypto.KeyGenerator;
         import javax.crypto.Mac;
         import javax.crypto.SecretKey;
         public class Eval {
         public static void main(String args[]) throws Exception {
         String inputString ="0x0b0b0b0b";
         KeyGenerator keyGen = KeyGenerator.getInstance("HMACMD5");
         SecretKey secretKey = keyGen.generateKey();
         Mac mac = Mac.getInstance(secretKey.getAlgorithm());
         mac.init(secretKey);
         byte[] byteData = inputString.getBytes("UTF8");
         byte[] macBytes = mac.doFinal(byteData);
         String macAsString = new sun.misc.BASE64Encoder().encode(macBytes);
         System.out.println("Authentication code is: " + macAsString);

    I'm not sure what's confusing you. Just generate a String (using a StringBuffer)
    with the data you need and use it as the content of the mail message. If each
    recipient needs different content, they'll each need a different MimeMessage
    object.

  • Hi Folks,  I am using FCPX 10.0.8 on a MPB 10.8.2 with a multi in/out audio device RME Fireface 400.  I recorded a timecode track through in 11 and routed it to out 3.  Initially it worked, although it did also play timecode through the main outputs 1

    Hi Folks,
    I am using FCPX 10.0.8 on a MPB 10.8.2 with a multi in/out audio device RME Fireface 400.
    I recorded a timecode track through in 11 and routed it to out 3.
    Initially it worked, although it did also play timecode through the main outputs 1&2 !!!
    Now it has stopped playing TC through output 3.
    Is FCPX capable of working with professional audio?
    Regards
    Donagh Long.

    You welcome

  • How to pass the caught exception in Thread.run back to the main program?

    I have following three Java files (simplified from a real world application I am developing, see files at the end of this posting):
    1. ThreadTest.java: The main program that invokes the Manager.run()
    2. Manager.java: The manager that creates a thread to execute the Agent.run() for each agent
    3. Agnet.java: The run() method can throw Exception
    My goal is twofold:
    1. To execute the run() method of an Agent in a thread (the reason for this is there are many Agents all managed by a Manager)
    2. To catch the exception thrown by Agent.run() in the main program, ThreadTest.main() -- so the main program can alert the exceptions
    My problem:
    Bottomline: I cannot pass the exception thrown by Agent.run() in the Thread.run() back to the main program.
    Explanation:
    The signature of Thread.run() (or Runnable.run()) is
    public void run();
    Since it does not have a throws clause, so I have to try/catch the Agent.run(), and rethrow a RuntimeException or Error. However, this RuntimeException or Error will not be caught by the main program.
    One work-around:
    Subclass the ThreadGroup, override the ThreaGroup.uncaughtException() methods, and spawn the threads of this group. However, I have to duplicate the logging and exception alerts in the uncaughtException() in addition to those already in the main program. This makes the design a bit ugly.
    Any suggestions? Am I doing this right?
    Thanks,
    Xiao-Li "Lee" Yang
    Three Java Files:
    // Agent.java
    public class Agent {
    public void run() throws Exception {
    throw new Exception("Test Exception"); // Agent can throw execptions
    // Manager.java
    public class Manager {
    public void run() throws Exception {
    try {         // <===  This try/catch is virtually useless: it does not catch the RuntimeException
    int numberOfAgents = 1;
    for (int i = 0; i < numberOfAgents; i++) {
    Thread t = new
    Thread("" + i) {
    public void run() {
    try {
    new Agent().run();
    } catch (Exception e) {
    throw new RuntimeException(e); // <=== has to be RuntimeException or Error
    t.start();
    } catch (Exception e) {
    throw new Exception(e); // <== never got here
    // ThreadTest.java
    public class ThreadTest {
    public static void main(String[] args) {   
    try {
    Manager manager = new Manager();
    manager.run();
    } catch (Throwable t) {
    System.out.println("Caught!"); // <== never got here
    t.printStackTrace();

    The problem is, where could you catch it anyway?
    try {
    thread.start();
    catch(SomeException e) {
    A thread runs in a separate, er, thread, that the catch(SomeException) isn't running within. Get it?
    Actually the Thread class (or maybe ThreadGroup or whatever) is the one responsible for invoking the thread's run() method, within a new thread. It is the one that would have to catch and deal with the exception - but how would it? You can't tell it what to do with it, it (Thread/ThreadGroup) is not your code.

Maybe you are looking for

  • How to use multiple ipods with one computer

    My 2 kids have an ipod touch each. How do I create their own files so that they do not have to have eachothers choices and games on eachothers device? As well, we have 2 iphones that are connected as well.

  • 1 LINK : fatal error LNK1104: File "NiDAQmx90.lib" couldn't be opened

    He

  • How to hyperlink text in a paragraph

    Hi all (apologies for a newbie question but I couldn't find an answer to this looking through the FAQs) I inserted a text box in my composition (called "linksAtBottom") and it looks like this: faq  |  board |  mission | join our mailing list | contac

  • Oracle Integration suite?

    All, Right now I'm working with TIBCO EAI tool for integrating oracle application with my legacy system. I'm very much interested to know, which Fusion Middleware suite matches the TIBCO integration. Any pointers to the document is highly appreciated

  • Code for user-exits

    hey guys i want the code for user-exits for  inclusion of Excise Chapter ID mandatory in PO ..... regards, Naveen