Enum edits break queue function

I am using an enum datatype with a queue to create a data manager
subvi. The problem starts when I add items to the enum: all the wires
to the queue functions break. I understand that I changed the datatype
and that the queue functions are some kind of polymorpic functions that
adapt to the datatype you wire to it. What I would like to know is how
I can easily make the queue functions adapet to the new datatype. Or
should I fall back to strings instead?

Hi Aart-Jan,
     It looks like CHAOS has a solution!  Oh well, for what it's worth...
      I coded this (attached) under 7.1, used a strict (simple) enum bundled with variant, but was unable to reproduce the problem.  I've experienced odd behaviour related to type-def ambiguity at the output of case structures, and where shifted value is supposed to determine type in other cases.  I'd try, instead of deleting/replacing the queue operators, deleteing/re-wiring, forcing shift-register to use queue-type from case shown.
Cheers,
D.
Message Edited by Dynamik on 09-14-2005 04:24 PM
When they give imbeciles handicap-parking, I won't have so far to walk!
Attachments:
quetyp.llb ‏20 KB

Similar Messages

  • Simplified Queue functions

    The one problem with using the Queue functions is that they are all primitives. With that in mind MK and myself developed a Queue handler API that incorporates the primitive functions - as well as more advanced functions into a polymorphic VI.
    We hope this improves your Queued State Machine experience.
    Visualize the Solution
    CLA
    LabVIEW, LabVIEW FPGA
    Attachments:
    Queue API.llb ‏404 KB

    VADave wrote:
    We also used to use enums but to make a generic Queue handler we had to adapt to strings.  We chose not wire the errors into the primitives so that an error generated in elsewhere by the code will not impact the operation of the Queues.  
    The main code error cluster is routed to the error cluster of the Queue handler so that we can trap on any error and redirect the queue to the error case. The error trapping is done be the Queued Error handler.vi which is placed to the left of the program cases.
    In the Error case we look at the Queue element to tell if it is a programming error - misspelled string, missing case etc. or a genuine error from the program. We felt that there is a negligible chance for a Queue error since only the Queue handler vis interact with the actual Queue.
    Could you share an example of your main code to illustrate the use of your VIs and what you are describing here. I've been working on a very similar set of VIs to publish on DevZone as a reference design/design pattern for this purpose and at the ame time clean up/consolidate the myriad of different implementations currently posted on DevZone.
    I agree with your use of strings for the queue element to make the tools more reusable and digestible by less experienced LV users, though using a unique TypeDef Enum and associated library to manage the queue for each application would be stronger SW design. In some cases I think it is appropriate to choose ease-of-use over robustness.
    Christian Loew, CLA
    Principal Systems Engineer, National Instruments
    Please tip your answer providers with kudos.
    Any attached Code is provided As Is. It has not been tested or validated as a product, for use in a deployed application or system,
    or for use in hazardous environments. You assume all risks for use of the Code and use of the Code is subject
    to the Sample Code License Terms which can be found at: http://ni.com/samplecodelicense

  • I am trying to use IMAQ acquire and other IMAQ functions with Queue functions.

    i am trying to use IMAQ acquire and other IMAQ functions with Queue functions.
    i mean i would like to acquire the image in a queue and deque it afterwards. would be the queue function accept the IMAQ data type?

    Refer posting, http://exchange.ni.com/servlet/Redirect?id=8879554

  • Edit menu Copy function greyed out MSword 2011, v14.1.0 (after I updated to OS X 10.9.5; 4GB 1067 MHz, Processor 2.53 GHz, Intell Core i5)

    Edit menu Copy function greyed out MSword 2011, v14.1.0 (after I updated to OS X 10.9.5; 4GB 1067 MHz, Processor 2.53 GHz, Intell Core i5)
    The copy function under the edit menu is gone (greyed out) and the short-cut, "command + c" doesn't word. I can only copy by using the copy button on the formatting toolbar, which is slow & annoying. All after I ungraded to Maverick. I've tried several different solutions. Any suggestions? I've tried several solutions, but nothing has worked so far...

    Try posting in the Microsoft forum
    http://answers.microsoft.com/en-us/mac?auth=1

  • Edit to Tape Function Changed?

    A few versions ago, FCP's Edit to Tape function popped up a screen that gave you options for applying bars and tone, slate, and black slugs, etc..etc.. After those options were decided you had a button to start the recording to tape process.
    Now in version 5.1.2, this screen is coming up in a tab in the canvas rather than center screen on a separate pop up. The problem with this is, I can't find the "go" button to start the recording process. Am I to now manually start my decks to record and then start playback on the time line to get things going?

    To get B&T and Black and Slate, after you set those up, make sure the center pulldown is on Mastering and not Editing... And make sure you have an IN set. Then you should be able to either assemble, or insert edit to tape, depending on your setup...
    Patrick

  • What is the purpose of queue functions?

    well what is the relation of queue functions of Labview
    and queuing theory, like MM1 system MD1 system etc.
    thanks

    Others may have a better explanation and example, but I have found that queues in LabView are very useful when you need to transfer a lot of information quickly and want to make sure you don't overflow or drop elements. They are better at this than using variables because the writer can keep writing whether or not the reader has read the last element. 
    For instance, recently we were trying to record data on a cRIO device and get the fastest rates possible. We were recieving data from the FPGA FIFO and writing directly to file. When you try to record 32 channels of 32 bits/element at 1 kHz you begin to test the limits of your write to file function. Queues worked better than variables for this because every so many cycles the write function would sort of hiccup and pause, causing the elements in the queue to increase (backup). If we were using regular variables we would have had to wait for the recording to catch up before we could continue reading data. This would mean we would be overflowing the FIFO or missing data points. However, with a queue, elements could back up a little and then the record function would catch up. (As a side note, write to binary file worked faster than TDMS in these benchmark experiments.)
    Can anyone explain it better?
    [will work for kudos]

  • How Queues functionality helps in Service Module

    Hi,
    How Queues functionality helps in Service Module.
    how to get the queue details assign to the service call(Technician)
    Please Suggest
    Regards
    Vikram

    Sridharan,
    How to add technician to a queue.
    Employee should be user of SAP?
    Please Suggest.
    Vikram

  • Pdf.js breaks pdf functionality with no recourse

    I came into work today and lo and behold, after the obligatory but unwanted and unnecessary monthly update from FireFox, PDF files are behaving very differently: not rendering, freezing up, not returning search results, etc. So after spending a half hour (my boss has some choice words for you) trying to figure out what's happened, I find that Firefox has foisted a new "feature" on my workflow: pdf.js, a solution to a problem that never existed. I decide to disable it, as every response from Firefox has suggested, but now PDFs won't open at all. Every PDF I save to the desktop via Firefox and try to open (Adobe won't open inside Firefox anymore - thanks again!) says it's corrupted and unreadable. I switched back to IE and wow, PDFs work as I had configured them, even when I save them to the desktop. So not only did Firefox break the in-browser experience, but you've managed to break things outside the browser as well by corrupting PDFs as they pass through Firefox. *golf clap* This system was working perfectly 16 hours ago when I left work.
    This really is the straw that broke the camel's back. I have a long history with Firefox, a regular supporter, cheerleader, bug reporter, reviewer and donator (I've signed up with a new email to make this comment), and the last year has been nothing but a downward spiral. I swallowed the new stupid update cycle even though it's obvious that issues like this exact one are a seriously detrimental side-effect, but I cannot swallow this. You have the best browser in existence but you are killing it. Absolutely. You have alienated one of your hardcore supporters and the thing is you don't even care, not one whit.
    I know this is supposed to be a support question but honestly I don't care anymore, either. I have to switch back to IE (Chrome is just... not good) and this time I am not looking back. I will be relinquishing Firefox to what used to be IE's status: only used when I can't get functionality from another browser (essentially when I need to use the web developer toolbar). Too bad. I just dread the spate of friends, relatives and colleagues that will be flooding me with problems and requests to remove Firefox (s it can't be fixed).

    I don't think this feature was ready for prime time. I spent about an hour over the last day and a half going back and forth with a staff member by email who reported that several of our PDFs "wouldn't download". I found that the new PDF viewer handles our PDFs generated from document scans abysmally, taking so long to load pages as the user scrolls that they might legitimately give up and assume the pages will not load, and scaling the page images poorly enough to make them very difficult to read for those with the patience to see them at all. Simply downloading the same document to the same machine occurs so quickly that it's hard to register a download delay at all, so I'm not sure what takes so long.
    The staff member was over the moon when we got the new feature deactivated on his machine. I'm sure that we have site users all over right now who are having the same problem, and don't have the technical expertise to know that they can bypass the hinky viewer, or even to know that the viewer is the problem.
    In testing this out with multiple users and operating systems, I find that users who are annoyed by the new viewer don't seem to realize that they aren't dealing with Acrobat Reader, and so will tend to blame Adobe for their headaches. Not fair, but the new viewer does look awfully like a plug-in PDF reader.

  • Document Editing 'Save as' function

    Hi Guys,
    Having applied service pack 01 to version 6.5 I am no longer able to use the'save as' function in document editing anymore? has any of you come across this problem? Or am i missing a trick?
    thanks
    Nabil

    Sorry guys,
    It appears that the GUI has got itself in a wrong state, I lost the whole 'report editor' menu options, I have closed and re-opened SAP, et voila it is working again.
    thanks for all the help
    Nabil

  • Spry Tabbed Panel Content editable region not functioning

    I have a web page I created in dreamweaver CS5 with a tabbed panel.  When my client opens the page to edit in contibute, the content and tabs do not function properly.  Basically, the tabs do not function and the content for all of the tabbed regions is listed down the page on the first tab window. The page works fine when I open in Contibute on my computer, but only if it is through the Contibute Program.  If I try to edit through firefox, I get the same issue as my client. 
    http://menwieldingfire.com.previewdns.com/bbq/bbq-menu.html
    also, I get a space between the header image and the horizontal menu that goes white.  I end up having to re-upload the page from dreamweaver. Why would the follow code get added to the page when a draft is created in Contribute, when this page is based on a template with editable regions?
    < p style="margin-top: 0; margin-bottom: 0;">&nbsp;</p >
    Any ideas?

    Check http://blogs.adobe.com/contribute/2010/06/paragraph_spacing_options_in_a.html  and also http://blogs.adobe.com/contribute/2010/06/spry_widget_rendering.html it should be helpful to resolve the issue.

  • Internet sales - Edit List of function in the application

    Hello everybody,
    In ISA , when you are on the main page, you have on the top right some link like My detail, or Contact.
    I want to edit the link, exactly i want to delete some links and modify the destination of another
    How can i do it please?

    Hello,
    For the future, you can add a parameter "&showmodulename=true" to your link (add it at the loginsite), then you will see all the jsp-files which are used.
    If this is not working, please contact me again, then we've to activate this showmodulename-function at the XCM.
    best regards,
    Toni

  • Petition: "Insert to queue" function for creativ

    I would really appreciate such an option in zens. I was disappointed that my micro didn't have it. It might be confused with "add to selected" but it's quite different, let me explain it by an example.
    For instance with "add do selected" i added 00 songs to my selected music. While listening to those songs let's say in shuffle mode(that's i use most), all of a sudden I wanted to listen R.E.M losing my religion, and just after that let's say linkin park-numb. So what I do is although it's in my selected music I enqueue losing my religion as st and numb as 2nd. These songs play and aferwards it continues with other songs in my list. The use of it is I can do it any time I want, i don't need to create a playlist in a certain order each time my tastes change.
    I remember there was such a function in winamp, maybe it was a plug-in or a patch, I'm not sure.
    I guess an "insert to queue" tab in the menu appearing when you tab the scroll pad in the "selected music", would be very useful and I would be very grateful for it. It wouldn't be a hard thing to include in the firmware i guess.
    SSR said Rio Karma had such an option. It would be nice if my zen had.
    So, to sum up:
    I signed for the petition to include "insert to queue" in the next firmware for all zens

    a play next or insert into que option would be good.
    Also when adding music to a playlist on the player, i've found the only wauy to insert a track somewhere is to open a playlist, then add a new track, then go to selected music, if you select change order it wont let you put the new track in the playlist, loaded in selected musis, only at the top or the bottom of a playlist.
    the only way round this is to have just the playlist and the aditional tracks loaded then to save them as a playlist with the same name, it will say "playlist already exists on player overwrite?" save it, then clear the selected muisc, re-load the playlist with the new tracks at the bottom or the top, and then sort out the order.
    save and overwrite the playlist again, and the new tracks have been inserted.
    theres got to be an easier way than that, come on creative.

  • Search, Edit and Save functionality

    Hello,
    We are looking for following functionality. Not sure if this is possible in ocs but other document management products has this functionality.
    We want to search for files using the search screen in UI. We want ato allow users to open the document from search results, edit and save it then and there.
    Is this possible? If not what is the user process for doing this currently?
    please help.

    please help

  • Printing to PDF in Digital Editions breaks out the file

    I don't like that if you allow printing of a PDF in your DRM permissions that a user of Digital Editions can print to a PDF and essentially "break" the DRM by creating a new DRM-free PDF.
    Is there a way to prevent this?
    Thanks for the help. (I'm not the ACS server tech guy, but just hoping someone can help so our tech guy can stop this from happening - without turning off printing completely.)
    Mike

    Any new activity on this?  I've only been putting up files with No Printing Allowed in the DRM settings.
    Is there a way to allow printing, but not allow some one to print to a new DRM-free PDF?
    ML

  • I need a queue function in  itunes !!!!!!!

    Hello
    Am I the only who thinks it is very annoying that itunes does not have a queue funktion. If you want to pick the next song, you have to create a play list to chose what to hear next. So I would love if itunes has added this function to their next version.
    Fillip Dk

    Several people have made this point, but Apple doesn't read thre forums.
    How about putting your suggestion to Apple with this feedback form:
    http://www.apple.com/feedback/itunesapp.html

Maybe you are looking for