Writing a program using an output from a NAND gate to trigger an event.

I'm using a PCI 6024E with a CB 68 board and Visual Basic 6.
I would like to trigger an event when the output signal from a NAND gate is high. Do I have to use a DO loop to keep checking for this trigger?

Hello;
If you want to use the DAQ board you have there, you will need to keep polling the digital line to recognize the state change.
If you need something more accurate, you can use one of the digital boards, such as the PCI-DIO-32HS, and do change detection on the digital lines.
Hope this helps.
Filipe A.
Applications Engineer
National Instruments

Similar Messages

  • What is the best way to run two programs simulataneously using the output from one to run the other?

    I just kind of wanted to get an opinion from some people on here. I have two main VIs. The first is a DAQ system that reads 99 different sensors and feeds that data into an array. The second is a real-time processing system that is designed to take the array and do numerous calculations. Both VIs output data to the front panel that I want to see, so I don't want to just use one as a SubVI.
    Is there a simple way to run both VIs, using the output from the DAQ system to feed the processor so that you can easily see the front panels of both VIs? I had considered just copying the real-time processor code into the DAQ VI, but I'm worried the resultant VI will be very large and unsightly.
    On a side note, am I over thinking this? Excuse me if this is a rather dumb question, it's been a long week...aaaand it's Wednesday.
    Solved!
    Go to Solution.

    There are a number of ways that you can go about this, but having both front panels open isn't a problem (assuming there is screen space!). Both could be sub-vi's of another "calling" vi, with their front panels set to open when called. The data from the DAQ side can be sent to the other through a number of ways, "producer-consumer" (many threads about this topic, examples in the LabVIEW examples, etc.) is one of the more robust techniques. If created correctly it allows one to run at a different rate than the other, although if the producer is "producing" much faster than the consumer can "consume" it will end up with problems.
    I guess I type too slowly
    Putnam
    Certified LabVIEW Developer
    Senior Test Engineer
    Currently using LV 6.1-LabVIEW 2012, RT8.5
    LabVIEW Champion

  • Need help writing host program using LabView.

    Need help writing host program using LabView.
    Hello,
    I'm designing a HID device, and I want to write a host program using National Instrument's LabView. NI doesn't have any software support for USB, so I'm trying to write a few C dll files and link them to Call Library Functions. NI has some documentation on how to do this, but it's not exactly easy reading.
    I've written a few C console programs (running Win 2K) using the PC host software example for a HID device from John Hyde's book "USB by design", and they run ok. From Hyde's example program, I've written a few functions that use a few API functions each. This makes the main program more streamlined. The functions are; GetHIDPath, OpenHID, GetHIDInfo, Writ
    eHID, ReadHIC, and CloseHID. As I mentioned, my main program runs well with these functions.
    My strategy is to make dll files from these functions and load them into LabView Call Library Functions. However, I'm having a number of subtle problems in trying to do this. The big problem I'm having now are build errors when I try to build to a dll.
    I'm writing this post for a few reasons. First, I'm wondering if there are any LabView programmers who have already written USB HID host programs, and if they could give me some advice. Or, I would be grateful if a LabView or Visual C programmer could help me work out the programming problems that I'm having with my current program. If I get this LabView program working I would be happy to share it. I'm also wondering if there might already be any USB IHD LabView that I could download.
    Any help would be appreciated.
    Regards, George
    George Dorian
    Sutter Instruments
    51 Digital DR.
    Novato, CA 94949
    USA
    [email protected]
    m
    (415) 883-0128
    FAX (415) 883-0572

    George may not answer you.  He hasn't been online here for almost eight years.
    Jim
    You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice

  • Does Front Panel Audio Work When Using RCA Outputs from the X-Fi Titanium HD PCIe Sound Card?

    I see that the rear panel headphone output is disabled when the soundcard RCA jacks are used.
    But is it possible to have the front panel audio output work at the same time that the RCA jacks are in use or is it also disabled?
    I am willing to tolerate inferior quality audio feeding my monitor and use the RCA jacks for my headphone amp.

    I was able to construct a work around for this problem. A Y splitter from the RCA outputs is an option but can degrade the sound because of the uneven load presented to the soundcard.
    Ten eleven inch Apevia CVTAUDIOE25 HD Audio extension cables were connected together in series to a SilverStone FP32 3.5 audio front panel bay. The extension cables were connected to the front panel audio connectors on the Titanium HD sound card and then the cables were run out of the computer case and up to the area near my keyboard. I connected the front panel audio bay to the extension cable and the bay sits next to the keyboard. When no 3.5 mm stereo cable is connected to the front bay near the keyboard the sound is normal out of the rear outputs. But when a 3.5 mm audio cable is plugged into the front panel bay audio there is sound out of the SilverStone front panel bay. The sound is still muted out of the rear RCA jacks when the plug is put in the front bay but it is only used when the main audio outputs are not required.
    The function for me is that the front bay serves the same purpose that the previous front panel 3.5 mm audio extension cable did.
    There are photos of this under a different user name on Audio Asylum PC Audio.

  • Need Help in Writing a program using a two-dimensional Array

    I need to write a program that takes 16 integers as inputs and determine whether the square is a magic square(sum of each row, column, and diagonal is the same constant) and display the result in a message Box. Please Help!!!!!

    stick the 16 ints in an int[4][4] and then just write the methods. i guess thats the hard part though. the most cumbersome and longest possible way to do it is just write everything out. ie if(int[1][1] + int[2][1] + int[3][1] etc...). a better way would be to use a bunch or for loops, but you'll have to figure that out yourself.

  • Using selected output from a RFC as input for another RFC

    Hi,
    I'm new at this so I may be doing things completely wrong.
    I have two models based on adaptive RFC.
    The first populates a list of Org Units. (Orgeh_Out)
    The user then selectes multiple Org Units from this list.
    I want to use the selected Org Units as Input for the second RFC which will display the personnel numbers in the selected Org Units. (Orgeh_Tab_In)
    Model 1 works fine but I am having difficulty in populating the Org Unit input table for the second model.
    public void RFCPernrFill( )
        //@@begin RFCPernrFill()
         Z_Wd_Pernr_Input pernrInput = new Z_Wd_Pernr_Input();
         wdContext.nodePernrList().bind(pernrInput);
        int orgCount = wdContext.nodeOrgeh_Out().size();
          for (int i=0; i<orgCount; i++) {
                if (wdContext.nodeOrgeh_Out().isMultiSelected(i)) {
                IOrgeh_OutElement thisOrgUnit = wdContext.nodeOrgeh_Out().getOrgeh_OutElementAt(i);     
              Zwd_Orgeh tmpOrgTab = new Zwd_Orgeh();
              String st = String.valueOf(thisOrgUnit);
              tmpOrgTab.setOrgeh(st);            //<-- Causes error but will only accept a String
              pernrInput.addOrgeh_Tab_In(tmpOrgTab); 
    I don't understand why tmpOrgTab.setOrgeh will only accept a String and not the 'thisOrgUnit' variable.
    i.e. why couldn't I say tmpOrgTab.setOrgeh(thisOrgUnit) ?
    The command tmpOrgTab.setOrgeh(st); causes an error however if I hard code a Org Unit tmpOrgTab.setOrgeh("5000011"); it works. The error I get is :
    Type conversion error, field ORGEH, complex type class com.sap.com.testing.pernrlist.model1.Zwd_Orgeh

    Hi
       Can you give me the structure of the proxy classes generated. I will give you the working code :).
    The lines of code
    Zwd_Orgeh tmpOrgTab = new Zwd_Orgeh();
    String st = String.valueOf(thisOrgUnit);
    tmpOrgTab.setOrgeh(st); //<-- Causes error but will only accept a String
    pernrInput.addOrgeh_Tab_In(tmpOrgTab);
    There is a structure in your RFC called ZWD_ORGEH.
    Instantiate this like you have done.
    Zwd_Orgeh tmpOrgTab = new Zwd_Orgeh();
    Now the following line of code
    tmpOrgTab.setOrgeh(st)
    Here you say it is only accepting a string. But what i feel is that you would have another internal structure and u need to instantiate that.
    Anyway if you just send me the proxy classes generated i will be able to help you in your code.
    Also give me the structure of the RFC.
    Meanwhile check this link
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/webdynpro/effective web dynpro - adaptive rfc models
    The above link will also give you some input to your prob.
    regards
    Ravi

  • Using JNI i am writing sample program i am getting the erro in jni.h

    Hi,
    i am writing sample programs using JNI interface while compliling the c program i am getting the error in jni.h file.
    wherever the JNICALL has in jni.h i am getting the error that particular line.
    can anyone help me on this regard?
    Thanks
    Balaji

    baalu999 wrote:
    Hi Thanks a lot for your update
    i found the correct Jni.h now i was able to compile my c program but i was unable to create .dll file in mainframe environment. can you please help me in this regard.No, because that makes no sense.
    A dll runs on windows. Nothing else.
    If you can't figure out how to create a dll then that is a windows question. And a windows forum works for that.

  • Using output from pwd in current directory

    Hi,
    I'm new to EEM in IOS-XR or EEM in general. 
    I'm looking to use the output from the CLI in the current vty session and use it as a argument to a TCL-script.
    Example: 
    RP/0/RSP0/CPU0:Router(config)#router isis  1
    RP/0/RSP0/CPU0:Router(config-isis)#pwd
    Mon Mar 17 10:38:01.827 CET
    router isis 1
    I was thinking a alias that triggers a tcl-script and then executes a command in the same working directory as the user who executed the alias is in or some other way and can save the information from the current session. 
    Is this is possible?

    Unfortunately, this is not possible.  The config submode is not passed as a variable to the CLI event detector.

  • How to use Bpel output as input in stored procedure

    I am a SOA beginner. The scenario is to use the output from a BPEL process in a stored procedure as input and validate it against the data in the database. The data received from BPEL is compared with fields from different tables.
    It is basically a business process data validation.
    Will the output of BPEL be a Xml file and how it can b used in query of a procedure?
    Edited by: 869091 on Jun 29, 2011 12:14 AM

    The output from the BPEL process will be in XML format.
    Your requirement is not clear, please state it properly what are you trying to do.
    -Yatan

  • Need help for writing extract program

    hi
    i need help for writing extract program to retriew data from legacy system.
    i already developed bdc programs for me31k and me21.
    my requirement is to write extract program s for those t.codes.
    to retriew data from legacy system and stored in flat file.

    i need help with a java program. it is a program that allows the user to enter a student's GPA, number of extracurricular activities, and number of service activities. The user can not enter a gpa above 4.0 or below 0. The user can not enter a negative number for the number of both activities. If the student meets the following criteria: 1) GPA of 3.8 or above and at least one extracurricular activity and one service activity, 2) GPA below 3.8 but at least 3.4 and a total of at least three extracurricular and service activities, 3) GPA below 3.4 but at least 3.0 and at least two extracurricular activities and three service activities, the message "Scholarship candidate" should display. If the student does not meet the criteria above, then the message"not a candidate" should display. Can you help me, please?
    You haven't posted ANY 'java program' for us to help with.
    The forum is NOT a coding service. It is to help you with YOUR code.
    Post the code you have written and SHOW us (don't just tell us) how you compile it and execute it and the results you get. Then we can help you with any problems you are are having.
    If you need help understanding just what the program should be doing you need to ask your instructor to clarify the assignment.

  • Why is VGA output from mu iPad2 intermittent?

    I was doing a presentation that used VGA output from my iPad2 to a projector.  Intermittently, my iPad would drop the output. A fellow instructor had no problems when he patched in his iPad. Both of our iPhones also worked continuously (when patched in via the same (Apple-branded ) VGA Adapter cable. Has anybody heard of anything similar? P.S. I hate 'intermittent' problems as much as anybody reading this.

    Did you check if you have the latest VGA driver on Win7?

  • Reprints output from concurrent requests

    Hi, I copied the above Concurrent Program to a custom one and added 'XML Report Publisher' in the list of incompatible programs, because my custom program (Custom Reprints output from concurrent requests) should run only after XML Report Publisher completes. But the custom program ends in 'Inactive' Phase and 'NO Manager' Status. We tried bouncing the CM, but no luck. Any help is highly appreciated.
    P.S: When I add XML Report Publisher to the list of incompatible programs for the seeded program - Reprints output from concurrent requests, everything works fine.
    Thanks, Naveen Gagadam.

    Hi Hussein, we are on: Oracle Applications : 11.5.10.2, Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi on LINUX.
    I am submitting my Custom Reprints output from concurrent requests, XML Report Publisher from FND_REQUEST.SUBMIT_REQUEST. I cannot print the XML report without adding it to the list of incompatible programs because even though I submit the Custom Reprints output from concurrent requests after XML Report Publisher, it starts off before the XML Report Publisher completes and eventually it ends up in a warning. Please see below 1/2 of the log file (Will post the Other half immediately) from $FND_TOP/log. The name of the file is five_0908.mgr, 'five' being the name of the instance
    Thanks, Naveen Gagadam.

  • Using fnd_request to send email of output from concurrent program

    Hello,
    In R12 how can I use one of the FND api's to send output from an FND_REQUEST to an email? Would I use FND_DELIVERY?
    I cann't seem to find documentation on this.
    I did find this:
    l_ret := fnd_request.add_delivery_option
    (type => FND_DELIVERY.TYPE_EMAIL
    ,p_argument1 => 'Quick Invoice to Workbench Transfer Details' -- Subject
    ,p_argument2 => '[email protected]' -- From
    ,p_argument3 => l_email_add -- To
    ,p_argument4 => '[email protected]'); -- CC
    But not sure how to use the above or if this would work.

    In R12 how can I use one of the FND api's to send output from an FND_REQUEST to an email? Would I use FND_DELIVERY?
    I cann't seem to find documentation on this.
    I did find this:
    l_ret := fnd_request.add_delivery_option
    (type => FND_DELIVERY.TYPE_EMAIL
    ,p_argument1 => 'Quick Invoice to Workbench Transfer Details' -- Subject
    ,p_argument2 => '[email protected]' -- From
    ,p_argument3 => l_email_add -- To
    ,p_argument4 => '[email protected]'); -- CC
    But not sure how to use the above or if this would work.Please see these links.
    https://forums.oracle.com/forums/search.jspa?threadID=&q=FND_REQUEST+AND+Email&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    https://forums.oracle.com/forums/search.jspa?threadID=&q=Concurrent+AND+Email&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • How to capture graphical outputs from other programs

    Does anyone know how we capture the graphical outputs from the other programs and show them
    on the swing?
    I'd like to use a java program to run gnuplot, capture the outputs, and show them using swing.

    Depends on what you mean by "graphic outputs".
    Taking a quick glance at the gnuplot homepage, it looks as if you can output to PNG files, so just run the app, and load the png file.

  • Running curl command from a java program using Runtime.getRuntime.exec

    for some reason my curl command does not run when I run it from within my java program and errors out with "https protocol not supported". This same curl command however runs fine from any directory on my red hat linux system.
    To debug the problem, I printed my curl command from the java program before calling Runtime.getRuntime.exec command and then used this o/p to run from the command line and it runs fine.
    I am not using libcurl or anything else, I am running a simple curl command as a command line utility from inside a Java program.
    Any ideas on why this might be happening?

    thanks a lot for your response. The reason why I am using curl is because I need to use certificates and keys to gain access to the internal server. So I use curl "<url> --cert <path to the certificate>" --key "<path to the key>". If you don't mid could you please tell me which version of curl you are using.
    I am using 7.15 in my system.
    Below is the code which errors out.
    public int execCurlCmd(String command)
              String s = null;
              try {
                  // run the Unix "ps -ef" command
                     Process p = Runtime.getRuntime().exec(command);
                     BufferedReader stdInput = new BufferedReader(new
                          InputStreamReader(p.getInputStream()));
                     BufferedReader stdError = new BufferedReader(new
                          InputStreamReader(p.getErrorStream()));
                     // read the output from the command
                     System.out.println("Here is the standard output of the command:\n");
                     while ((s = stdInput.readLine()) != null) {
                         System.out.println(s);
                     // read any errors from the attempted command
                     System.out.println("Here is the standard error of the command (if any):\n");
                     while ((s = stdError.readLine()) != null) {
                         System.out.println(s);
                     return(0);
                 catch (IOException e) {
                     System.out.println("exception happened - here's what I know: ");
                     e.printStackTrace();
                     return(-1);
         }

Maybe you are looking for