Interface for queuing disparate commands

Hello,
I am writing LV code for a Keithley 2400 instrument.  The user interface includes 4 options that can then be queued up - including apply a current, apply a voltage, monitor open-circuit potential, and loop to another spot in the queue.  The way I am handling the user input currently is with a table.  Users can enter parameters for each of the 4 options, the use buttons to add steps to the table (ie: my command queue).  The program then reads each line out of the table and decides what to do.  Since the commands are different (including different termination options, such as wait time, max voltage, min. current, etc), the way I handle it is for the table to group them by control variable, etc, such that one column might have very different values.  For instance, the control variable might be 4 V or 350 mA.  This basically makes the table unreadable, and the code for interpreting the table isn't exactly the cleanest...
The outer control loop continuously executes, and on each pass it checks to see if any buttons have been pressed and updates the table (or not) accordingly.  I have attached the part I use as a sub-vi, written in LV 2010.  
There is surely a better way to do this, but I haven't found it.  Any suggestions would be most welcome.
Scott
Attachments:
2400C build command queue.vi ‏30 KB

What you need is a Producer Consumer architecture. Do a search in LV help for more details, also there is a producer consumer with event template you can use. I don't remember the exact path but it is something like new, vi from template, ..design framework...(I don't have LV on this machine).
The Producer loop contain an event structure, use it to detect the GUI events. Usually you queue an enum with the value of the operation to perform. You can bundle this enum value with a variant (that will be your queue data type: a cluster contaning an enum and a variant) to also pass different data types to the consumer loop.
In the consumer loop you  unbundle the enum to a case structure to manage cases for the different enum values (don't forget to make your enum a type def) and you unbundle the variant data to pass as a parameter.
Ben64

Similar Messages

  • How to get the command line interface for WRT160NL router

    hi,
    How can I get the command line interface for WRT160NL router. please suggest.

    If you’re trying to access the web-based interface of your router, just use its default IP address (192.168.1.1). The Username is left blank and the Password is "admin". Here’s a quick link on how to do that.

  • [Request] Betty: Friendly English-like interface for your command line

    Anyone with the capacities and interest to maintain Betty?
    Betty is a friendly English-like interface for your command line.
    She translates English-like phrases into commands in case you every run into situations like this.
    This means you don't have to leave your command line to look up an obscure but useful command. Just ask Betty!
    Discussion on reddit: http://www.reddit.com/r/linux/comments/ … x_command/
    Source on Github: https://github.com/pickhardt/betty

    I liked a lot of the ideas you posted.  Though I have to disagree with the idea of having tablets being into the size range of over 12".  You start getting larger than that and you may as well start using a laptop. On the flip side of that, I have to agree that there are too many of the 7" available,  which are almost too small.  The 8-10" tablets give you the portability and smaller size people want for stuffing into their bags,  purses, etc. The larger tablets are getting into that bulky area and that defeats the purpose of the tablet to begin with. Unfortunately I find myself using e-books more than I intended,  but I don't need a full, or larger than a full, sized sheet of paper.   They get harder to handle,  even with Lenovo 's great form design.  
    The only reason to have more than one tablet is if the developers can't come to terms and allow their products to be used across the board (talking of Amazon and Google here). I personally don't want to be carrying around more than one tablet and a phone. I want to simplify and streamline not add more bulk. 
    I loved that you pointed out that our voices will never replace our fingers. I don't like speaking to inanimate objects; too many experiences with automated phone services that did not end up well. 
    I congratulate Lenovo for their innovative design with the Yoga tablets. 

  • Reports 6i development for Queue Manager

    I'm trying to write reports to run from the Queue Manager and am having a truly horrible time. I am able to write complete reports and run them from my desk top, but when I try to run them on the Manager, they have problems at least 8 times out of ten - and then everytime it is back to the drawing board to redesign the report. The error messaging is also not up to scratch - please tell me what 'REP 1212 - Object 'Margin' is not fully enclosed by it's enclosing object 'dept_name' ' means. I understand the message, but it is just plain rubbish - I have built reports the same way many times without problems. The real answer I am looking for is 'Is there a standards document on designing for Queue Manager' ?
    Please help
    I'm going nuts
    Marc

    Marc,
    There shouldn't be a difference running the report from the queue manager vs. from the command line as long as all of your parameters are the same. The rep-1212 error you are getting sounds like a report that was designed for bitmap being run with mode=character. You would see this difference between the command line and queue manager if from the command line you are running the report with mode=bitmap (or default if your report already has mode as default or bitmap) and run with mode=character in the queue manager. It seems to me that there is probably a difference in how the reports are being run rather than how you've designed them. I'd discuss the issue with Support so they can go into more detail with you.
    Hope that helps,
    Toby

  • CCMS monitoring for Queues(SMQ1/SMQ2)

    Hi,
    How do we monitor Queues(SMQ1/SMQ2) in CCMS. My requirement is to monitor Queues(SMQ1/SMQ2) in CCMS based on the Queue name. I want to create different nodes in CCMS and I want queue name falling under certain criteria should come and sit in the respective node of CCMS.
    Means queue with name High_priority should come n sit under node say Test1, queue name with medium_priority should come n sit under node say Test2 and queue name with medium_priority should come n sit under node say Test3.
    Is it possible to do so.

    Hello,
    also for queue monitoring the easier and more flexible way to monitor is via Business Process Monitoring. The configuration is easier than CCMS where you have to use transaction RZ21 and need to transport objects. And the qRFC monitoring is more flexible than in the CCMS. Basically all customers knowing both standard CCMS qRFC monitoring and qRFC monitoring in BPMon chose the later or exchange their existing CCMS monitoring by BPMon.
    See also the SDN blog /people/johannes.fleig/blog/2008/06/11/new-business-process-monitoring-functionalities-in-sap-solution-manager-150-qrfc-monitoring
    and check out the Interface Monitoring Setup Guide under http://service.sap.com/bpm > Media Library > Technical Information.
    Best Regards
    Volker
    Edited by: Volker von Gloeden on Jul 2, 2010 4:48 PM

  • How can i request the actual time code of digital video recorder, i am using RS232 interface for asking actual time code of digital video recording

    how can i request the actual time code of digital video recorder, i am using RS232 interface for asking actual time code of digital video recording

    If you have an RS-232 interface to the digital video recorder, it may be that you can send a command to the video recorder in order to get the time code sent back to your application - you would then read this as a string and then incorporate this data into your program.
    The best source of help will be any documentation you have relating to the serial (RS-232) interface with the digital video recorder. This documentation should have commands that you can send to the recorder and expected response strings that you should get back from the device. This task should be straightforward but can often be frustrating without documentation about the video recorder. This will not be something that you can "guess" - past experience in writing serial communication ap
    plications has shown that a good manual is your best friend.
    Failing this if you have any source code for example programs that have already been written to communicate with the recorder, you might be able to extract the relevant ASCII strings and use them within your application. This is true whether you are using LabVIEW or a text-based language.
    Jeremy

  • Too many Subscribers/Receivers for Queue

    The link of Feedback in Java EE 5 tutorial doesn't work, because of this I ask my question here.
    I have tried the " Simple Example of Synchronous Message Receives" in Chapter 32 of Java EE 5 tutorial.
    In case of destination type queue I got error message.
    The log of test:
    M:\java\javaeetutorial5\examples\jms\simple\producer\dist>appclient -client producer.jar queue 3
    Destination type is queue
    Sending message: This is message 1
    Sending message: This is message 2
    Sending message: This is message 3
    M:\java\javaeetutorial5\examples\jms\simple\producer\dist>cd ../../synchconsumer/dist
    M:\java\javaeetutorial5\examples\jms\simple\synchconsumer\dist>appclient -client synchconsumer.jar queue
    Destination type is queue
    Exception occurred: com.sun.messaging.jms.ResourceAllocationException: [C4073]:
    A JMS destination limit was reached. Too many Subscribers/Receivers for Queue :
    PhysicalQueue user=guest, broker=pc2900:7676(1442)
    My question: How can I configure the Queue for more subcribers/receivers?

    Hi,
    Depending on the version of JMS, this may be a limitation of iMQ PE Edition (This is early in the morning for me, I can't remember which one). So you can look at the documentation, this may be a limitation of PE versus SE or EE. If you can modify it it would be using either the command line imqcmd or the gui based, imqadmin. With it, you can get into the connection factory, and change the maximum number of active consumers onto the queue.
    I beleive that using glassfish (as 9) would alleviate this limitation, if it is there, since this is using openmq (imq v4.0).
    HTH
    TE

  • HP Data Protector interface for RMAN

    Hello,
    I would appreciate if someone can share the experience of using HP Data Protector (... earlier it was called OmniBack) with RMAN for backup and recovery
    I want to know the benefits of using the data protector interface. The cost implications are really high and I am of the opinion to use RMAN to backup on a disk and using normal filesystem backup of HP Data protector to take the backups on tape
    This kind of arrangement would essentially require the dba to go to RMAN to find out which all files are required to be restored, then use data protector to find out the tape that needs recall. Restore required files using DP and use RMAN for recovery
    Would the interface really make some difference? And would it be a good decision to spend so much on the Dataprotector interface for RMAN?
    Regards
    Sudhanshu Bhandari
    Oracle 9i OCP DBA
    PerotSystems TSI (UK) Ltd.

    Hi,
    I got here a setup that's like: HP DataProtector, PROD-DB, STANDBY-DB
    Roughly, the PROD-DB is 350Gb.
    I backup this via a standard HPDP filesystem backup (+-1hour to run) applied to the standby (Data Guard) database (shutdown at backup time).
    I'm glad I got HPDP when I have to restore PROD-DB on TEST-DB.. 2 clicks and it's done.
    Note that I don't use RMAN for that, it is somewhat not needed in this setup. What if some day i decide to use RMAN? I think that I'll use something kind of like what you propose. It allows you to:
    . manage what/when to backup. For example, cron a TS1 backup at day 1, cron a TS2 backup at day 2, ... every day: filesystem backup/purge via HPDP.
    . easily restore your DB provided your DBA knows some stuff about HPUX admin... (what if this is a HDD failure? how to fix EVAs? is this in a HP Cluster? ...?)
    Anyway, to get back to your main question:
    Would the interface really make some difference? Yes, of course. Nowadays lots of people don't like command line *sigh* and would be more attracted if it looks simpler (though it offers less possibilities). With an interface you'll certainly feel safe than via shell scripting.
    And would it be a good decision to spend so much on the Dataprotector interface for RMAN?As for me, no. In the setup I explained at the beginning, I got many advantages over a RMAN backup, backed up via HPDP. First, it's simpler to manager: I just have to check my morning mail to see if the backup went OK. Then, I'm sure if I loose the main DB, I can switch to standby quickly (can't afford much downtime). This means that if all of this fails (uh oooh) I'll have to restore the tapes, and this will be the last thing I'd want to do because it'll take ages (+-3h for the whole thing).
    In each of these steps I use a single tool.. reducing chair-computer interface error chances. Look how many different layers you'll get in your setup (4+).
    This was my 2cents,
    HTH
    Yoann.
    Of course, via RMAN, you don't backup empty space (compress), the recovery granularity is way better (blockrecover), etc. But the main question is: do you really need RMAN? If the answer is yes, then go on with the DP RMAN interface to easy your admin's life. If no, then just drop the idea.

  • Any one programed a serial interface for the Yaesu gs-232 antenna rotator

    Has any one tried to make a simple interface for this device? I have done some basic communicating with it, but it seems to be rather glitchy.

    Thanks that helped out a lot; I combined that program with the serial example. It works well, but it seems to want to update very frequently, as I am hearing relays tripping, but if I set the number I want and hit stop it goes there and will stop at that command. Is there a way to just have it send the data and then just have it leave the serial device alone unless you change the angle. As in only send the data once, but not have to re hit run.
    Attachments:
    GS-232 Controler.vi ‏37 KB

  • QoS - Interface Hold Queue

    Hi,
    In IOS 12000 router, interface can configure to increase the hold-queue.
    Once upgrade to IOX , the command is no longer available.
    I am facing the interface input drops, in IOS I can increased the input hold-queue to solve the problem.
    But in IOX, no such command available. How can increased the interface hold-queue ?
    In IOS:
    interface GigabitEthernet2/0/7
         hold-queue 1500 in
         hold-queue 1500 out

    Hi Chon,
    I am afraid, but this feature is not yet supported in IOX. I hope it is feasible to somehow shape the traffic before that box.
    FYI, we have launched the dedicated IOX forum -
    https://supportforums.cisco.com/community/netpro/service-providers/ios-xr?view=discussions
    so be our guest!
    Cheers,
    Ivan.

  • Ethernet interface input queue 81/80 (size/max)

    Hello,
    Does anyone had the problem that the Gigabit interface of a C1140-K9W7 (or C1135)
    sometimes "hangs" due to queue problems (from what I understood it was queue problems)?
    I've got this AP, C1140-K9W7 with IOS 12.4(21a)JA1 and noticed it was not processing
    any input packets at the Gigabit interface, the drop count was 0 but strangely the input queue
    information was that it had size 81 and max 80... looks to me that the queue processing
    code hanged somewhere...
    The interface output is OK however (the AP is sending arp requests..) .
    I've done some search but was not able to find any information about it, also followed the
    steps in [1] to try troubleshoot what was causing that, no success. The IP traffic listing
    shows that the interface is receiving packets but they aren't being processed and "aren't"
    droped also (at least the drop count is 0).
    If I reboot the AP it does work OK yes... I can still access the console (via serial) and it
    still is at that state in case there's any suggestion of procedure.
    Thanks for your time.
    Jean Mousinho
    [1] http://www.cisco.com/en/US/products/hw/routers/ps133/products_tech_note09186a0080094791.shtml

    It looks like this could be related:
    CSCtf27580 Ethernet interface input queue wedge from broadcast/uniGRE traffic
    Is there any GRE traffic going through this AP?
    The workarounds are:
    Reboot APs to bring APs back up for time being.
    OR
    go back to 6.0.188.0 code on WLC.
    OR
    Route GRE traffic away from AP's.
    It appears that it definitely exists in your code:
    12.4(21a)JHA          12.4(21a)JA01          006.000(196.000)

  • Java interface for perl

    hi guys
    Does java have interface for Perl?
    Is there any way of calling perl programs from java without using exec. command
    best regards

    Okay, and the resources provided there were inadequate because...?
    When you ask a very broad question that can be at least partially answered by a simple google search, you're not likely to get a lot of replies, and those that you do get will probably be fairly sarcastic. People don't want to waste time duplicating what's already easily available or telling you what you already know.
    Explain what your ultimate goal is (Why do you want to invoke perl from Java, and why can't it be with Runtime.exec?) which options you've looked at, and in what ways they didn't meet your needs.

  • WAAS interface - Input queue: output drops

    I'm seeing total output drops increment every now and then. We are using 3750E stack switch and are configured for WCCP L2 forward and return. Anyone know why I'm seeing out drops on the WAAS connected interface? The WAAS interfaces are setup as standby. The model is 7371...
    interface GigabitEthernet1/0/4
    description ****WAAS1 GIG 1/0****
    switchport access vlan 738
    mls qos trust dscp
    spanning-tree portfast
    end
    GigabitEthernet1/0/4 is up, line protocol is up (connected)
    Hardware is Gigabit Ethernet, address is 0022.be97.9804 (bia 0022.be97.9804)
    Description: ****WAAS1 GIG 1/0****
    MTU 1500 bytes, BW 1000000 Kbit, DLY 10 usec,
    reliability 255/255, txload 1/255, rxload 1/255
    Encapsulation ARPA, loopback not set
    Keepalive set (10 sec)
    Full-duplex, 1000Mb/s, media type is 10/100/1000BaseTX
    input flow-control is off, output flow-control is unsupported
    ARP type: ARPA, ARP Timeout 04:00:00
    Last input 00:00:03, output 00:00:00, output hang never
    Last clearing of "show interface" counters never
    Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 281
    Queueing strategy: fifo
    Output queue: 0/40 (size/max)
    5 minute input rate 5967000 bits/sec, 1691 packets/sec
    5 minute output rate 5785000 bits/sec, 1606 packets/sec
    9301822868 packets input, 3537902554734 bytes, 0 no buffer
    Received 179580 broadcasts (172889 multicasts)
    0 runts, 0 giants, 0 throttles
    0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
    0 watchdog, 172889 multicast, 0 pause input
    0 input packets with dribble condition detected
    7661948806 packets output, 2639805900461 bytes, 0 underruns
    0 output errors, 0 collisions, 5 interface resets
    0 babbles, 0 late collision, 0 deferred
    0 lost carrier, 0 no carrier, 0 PAUSE output
    0 output buffer failures, 0 output buffers swapped out

    It looks like this could be related:
    CSCtf27580 Ethernet interface input queue wedge from broadcast/uniGRE traffic
    Is there any GRE traffic going through this AP?
    The workarounds are:
    Reboot APs to bring APs back up for time being.
    OR
    go back to 6.0.188.0 code on WLC.
    OR
    Route GRE traffic away from AP's.
    It appears that it definitely exists in your code:
    12.4(21a)JHA          12.4(21a)JA01          006.000(196.000)

  • Apt-get like interface for pacman

    Hello,
    This is my first public contribution for Arch Linux community,
    I built this script because i use arch on both of my desktops and debian on my servers and i get really confused sometimes with the options because of the mechanical typing, i got myself typing pacman install apache2 and apt-get -Syy or even trying to run pacman on debian and apt-get on arch.
    I dont know how this will be acepted, its something that advanced users normally dislike, but, for newcomers i think that is a good option.
    I wrote this very simple interface for pacman that converts into a apt-like utility, its use common pacman commands (yes, it uses pacman at background) and dont mess with pacman workout.
    Ive upload the project on my github: https://github.com/drhoome/pac-get
    Its very simple and straigthfoward (yes, just give execution permission and use, for now, theres no install/build method or configuration files, its build on top of python and should work with Python 2.7 and 3.x without any extra library).
    Any feedback is welcome, even if for saying that the script is really useless for you
    There's no manual or wiki right now, but, the software is really like apt-get, aptitude or apt-cache, and there's a built-in doc by typing pac-get --help.
    Last edited by hoome (2015-04-28 22:42:07)

    Looks nice, but wouldn't you rather use pacman commands?
    One thing to point out: The update command gives pacman -Syy. Please be aware that just updating the package cache is considered bad practice if an upgrade does not follow right after, so maybe you should remove the update command. The pacman rosetta might also be of interest to you. Look it up on the wiki.
    Last edited by runical (2015-04-29 06:52:35)

  • ACE deployment with two interface for client side

    /* Style Definitions */
    table.MsoNormalTable
    {mso-style-name:"Table Normal";
    mso-tstyle-rowband-size:0;
    mso-tstyle-colband-size:0;
    mso-style-noshow:yes;
    mso-style-priority:99;
    mso-style-parent:"";
    mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
    mso-para-margin:0cm;
    mso-para-margin-bottom:.0001pt;
    mso-pagination:widow-orphan;
    font-size:11.0pt;
    font-family:"Calibri","sans-serif";
    mso-ascii-font-family:Calibri;
    mso-ascii-theme-font:minor-latin;
    mso-hansi-font-family:Calibri;
    mso-hansi-theme-font:minor-latin;
    mso-fareast-language:EN-US;}
    In a ACE router mode deployment, I have a single context configured with two interface for server side and two interface for client side. In this situation how can we meet the demands of customers arriving from both networks? How can the ACE handle the client request if we configure one default-gateway to each network?
    Regards,
    Egomes

    Enable "mac-sticky" comand under each client inteface.
    It will ensure that ACE sends the response to the MAC address from which the request to the VIP was recieved.
    For more details
    http://cisco.biz/en/US/docs/interfaces_modules/services_modules/ace/v3.00_A1/command/reference/if.html#wp1033275
    HTH
    Syed Iftekhar AHmed

Maybe you are looking for

  • Why can I not view photos from my Time Capsule on Apple TV?

    All of my media files are on my Time Capsule and I have no difficulty watching movies or listening to music through Apple TV.  I am however, not able to view any photos from my Time Capsule in Apple TV.  If I select a Time Capsule folder either part

  • How to adjust the display size?

    The player scales itself into the browser window, which is a problem for videos (containing text). How can I managed to get the content displayed in original size? I tried to adjust the index.html by setting fixed values in the showflash call. e.g. s

  • Auditing SYS.AUD$ in Oracle 10g

    We created a new 10g database and imported our 9i database schema into it. One of our application teams, used to run reports on the SYS.AUD$ table in Oracle 9i. Currently in the new 10g database, they said they get an error saying table does not exis

  • Compile objects after upgrade

    I have a question regarding compiling object after database upgrade I am upgrading E-BS database from 9i to 10g and i came across two different method to compile objects after the upgrade. the first solution is using the dbua built in option to compi

  • We want  to check "Customer" in Classification/hours  tabstrip by default.

    Hi CRM gurus, we want to check the checkbox of "Customer" in classifications/hours tabstrip in BP transaction by default. For that, we are using BADI "BUPA_GENERAL_UPDATE". In this, we have GUID as input. Is there any funtion module to create classif