How do you mix data types with Producer/C​onsumer?

Hi,
I am trying to build a VI using Producer/Consumer architecture and trying to learn how to do it.  I am measuring two types of data that must be used "simultaneously" to create output commands.  The attached vi is a simplified version that I am using to try to understand how the data flows before I build my much larger more complex VI. 
I will be collecting three values in an array from a DAQ sequence, and then one single value (also from another DAQ function) in another loop, so, the two loops are labelled THREE VALUES and ONE VALUE.   The DAQ's run at different rates, so, that is the reason for the producer/consumer architecture.   I want to take each of the three values, and pair it with the most recent one value, (hence the LOSSY ENQUEUE set to max size 1) and create a serial command to be output.  (Actually, I would create 3 serial commands, one per value from the THREE loop.)
In the attached VI, I create an array of 3 values, but, I see only one of them during execution.  I am trying to see all 4 values, but, I see only one of the THREE, and one of ONE.    I think I should see 1, 23, 44, and 99, but, I see only 44 and 99.  Where  did 1 and 23 go?  I want to be able to use (see) 1 and 23 in my consumer loop.
Thanks
Attachments:
forum oct 6 2013.vi ‏17 KB

apok wrote:
try this...
Spoiler (Highlight to read)
(OP NI did you a slight disservice stating Producer Consumer vice Master Slave pattern- you need a master slave pattern)
Close to right Apok,  A problem.  Two solutions possible:
1)The slowest notifier needs to be waited first and have the ignore previous boolean T (Not sure which is slowest)  This "Slow Loop" then throttles the slave loop and the "Fast Loop's" notifier looses data between slow loop samples.
2) Wait the Fast loop's notifier first. and leave both notifiers ignore previous =F  And, set the slow loop timeout to 0.  This duplicates the slow loop value for each fast loop acquisition.
Jeff

Similar Messages

  • How do you burn videos taken with myIphone and stored on my computer to a DVD disc.  I purchased and tried using RealPlayer Plus 16 but got error message saying "unsopported media type"?  I alos tried using Real Players file converter with no success!

    How do you burn videos taken with my Iphone 4S and stored on my computer to a DVD disc.  I purchased and tried using RealPlayer Plus 16 but got error message saying "unsopported media type"?  I also tried using Real Players file converter with no success!  Thanks in advance for any help you can give!

    Probably the OP is no longer paying attention to this unless the OP is subscribed to this discussion.  While not really an iPhone question I guess using an iPhone to produce the movie which then needs taking to the next step makes this as good a starting place as any unless you happen to know enough about what to do to determine in which forum to post.  A suggestion in that direction would help.
    Anyway, Apple is backing off from supporting optical media.  It also depends upon what you mean by "DVD".  A DVD is just an optical disc which can support different file formats, but many people think it means a movie disc you can put in your TV.  Producing a movie disc requires special iDVD authoring software Apple used to sell but stopped several years ago.  I don't know if the old versions work under newer systems.  There's also the free Burn application which authors DVDs but takes a bit of learning and has nowhere near the features of iDVD.
    If the OP means simply burning the transferred movie files to a DVD for archiving in computer format you don't need special software for that; its built into the operating system File > New Burn folder etc.

  • Jdev11g: How to use a Ord.image data type with ADF Faces 11g

    Where to find an example about Ord.image data type with ADF Faces 11g preview3

    Hi,
    such a sample doesn't yet exist.
    Frank
    Btw.: The Jdeveloper 11 forum is JDeveloper and OC4J 11g Technology Preview

  • Howto call custom Oracel Data Type with TopLink?

    Hello,
    in our DB we have a custom Oracle type and a PL/SQL method which uses it.
    I would like to call the Oracle data type with TopLink. How can I do this?
    I could not find any documentation on this.
    I know JPublisher can do this but I don't want to use it!
    Please see code below
    cheers,
    Pete
    **************Datatype********************************
    CREATE TYPE My_Sub_Object AS OBJECT (Sub_Object_ID Number,
    Sub_Object_Txt VARCHAR2(200));
    CREATE TYPE My_Sub_Objects AS VARRAY (20) OF My_Sub_Object;
    CREATE TYPE My_object AS OBJECT (Object_id Number,
    Object_txt VARCHAR2(200),
    Sub_Objects My_Sub_Objects);
    ************PL/SQL-Method*****************************
    CREATE OR REPLACE PROCEDURE My_object_pro
    (Item_Object out My_Object) is
    Item_Sub_Object My_Sub_Object;
    Item_Sub_Objects My_Sub_Objects;
    Begin
    Item_Sub_Object := My_Sub_Object(10, 'Sub Object 10');
    Item_Sub_Objects := My_Sub_Objects(Item_Sub_Object);
    Item_Sub_Objects.Extend;
    Item_Sub_Object := My_Sub_Object(11, 'Sub Object 11');
    Item_Sub_Objects(2) := Item_Sub_Object;
    Item_Object := My_Object(1, 'Object', Item_Sub_Objects);
    End;
    /

    Object types and Varrays can be used from TopLink stored procedure calls. There was some support for this in 10.1.3, but the support in 11g (preview) is much better. You can also access the JDBC connection from TopLink or your DataSource and use JDBC directly.
    In TopLink 11g you can use an ObjectRelationalDescriptor to map the Object type to a Java class, and use this class as the argument type in your StoredProcedureCall.
    PL/SQL types are more difficult as they are not supported by JDBC, but your example only includes object types. If you had PL/SQL types you would need to wrap the types in object types, or use a PL/SQL block to convert them. TopLink 11g (preview 3) should have support for these as well.

  • Which Data Type with 255 cars +

    Hi,
    I have a flat structure table with 15-20 fields, and I need for one of the field a data type with more than 255 cars
    I cant put a STRING without having the flat structure error ...
    Which one should I use ? How should I proceed ?
    Thanks !
    Kr,
    BA

    Hi Benjamin,
    use SE80, click repository info system, click dictionary - data elemets. Chose length > 1024. F8 to execute.
    Check where-used-list of what you like to use to make sure it is so frequently used that SAP will not change it.
    Or better create your own Z data element with required length
    Regards
    Clemens

  • How do you get a line with MULTIPLE fields to WRAP ?

    How do you get a line with MULTIPLE fields to WRAP ?
    Good afternoon everyone...
    THE PROBLEM: Why doesn’t a line with multiple fields WRAP?
    HYPOTHETICAL EXAMPLE/WHAT I”D LIKE TO SEE
    If I have 2 fields on a line (this is now a hypothetical example and nothing to do with my actual report)….let’s call them field A and field B. And if field A has values of all ‘X’ and field B has values of all ‘Y’…then….the normal case would be (ignore dots – only for spacing):
    A……………………… B
    XXXXXXXXXXXXXXXXXX YYYYYYYYYYYYYYYYY
    But what if A is too long? I would want to see B wrap onto the next line like this:
    A……………………………………………………B
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX YYYYYY
    YYYYYYYYYYYYY
    And similarly….if B is extra long, can the line print as:
    A………………………. B
    XXXXXXXXXXXXXXXXXXX YYYYYYYYYYYYYYYYYYYYYYYYYYY
    YYYYYYYYYYYYYYYYYYYYYYYYYYYYYY
    I don’t want the case where B is long and I get:
    A………………… …B…
    XXXXXXXXXXXXXXXXX YYYYYYYYYYYYYYYYYYYYYY
    ………………………..YYYYYYYYYYYYYYYYYYYYY
    I can see how you can wrap an individual field like that…but how can you WRAP a line of[b] fields within the frame so it wraps to the BEGINNING of the frame on next line?
    My SPECIFIC CASE
    I have a report that I have stripped down to a simple structure for the purposes of this explanation.
    My DATA MODEL has the main QUERY (for plant family and species data). The columns of the query are divided into 2 groups. The 1st GROUP contains the family data. Below that is the rest of the species data in a 2nd GROUP.
    Linking from the 2nd species group (above) is a new QUERY to extract REGION data based on the common key field. Under this 2nd query is another group with all the REGION columns.
    The LAYOUT MODEL has a group frame (the main , base one)
    On top of this is a repeating frame based on the 1st group (family data).
    On top of this is another repeating frame for the 2nd group (species data).
    On top of this is 2 Frames on the same line line. The 1st frame contains columns from the species group .
    The 2nd frame on this line is a repeating frame. The PRINT DIRECTION for this frame is ACROSS/DOWN. It repeats details of the REGION where the species is found. These columns come from this group come from the REGION QUERY and GROUP.
    All fields on the report line have variable horizontal elasticity.
    The problem is that when there is too much data on the line, it does NOT WRAP to the 2nd line.. It TRUNCATES.
    Can the line be made to WRAP????..
    In my current report, 1 of 2 things is happening:
    1) All fields print on the line until it hits the page boundary and then it just stops. Truncated!
    2) All fields print on the current line, then Oracle Reports throws a new page to print the REMAINDER of the long, input line
    But I would like a LONG line to continue printing onto the following line of the same page.
    I have tried all combinations of the elasticity fields and the ‘ADVANCED LAYOUT’ properties.
    I have been focussing my attention with this problem on the frames .
    We are using REPORT BUILDER V 6.0.8.26.0
    Thankyou to anyone who may offer assistance.
    Tony Calabrese.

    Steve,
    you gain 1 thing, but you lose something else!
    This thing is SO frustrating!
    Hey Steve! Good afternoon.
    I've done as you suggested....I have a long text boilerplate item - the only 1 on the line...and it has all the column in it.
    So it looks like:
    &col1 &col2 &col3 &col4 &col5 etc etc etc
    And the line expands nicely to each field's requirements.
    And when it gets to the right page boundary...it WRAPS to the next line! Beautiful!!!
    The only thing is that...when I had individual fields across the line I was able to create format triggers for those fields. And in doing so I was able to reduce the font and change the justification. I had to do that because some of the fields had to appear superscripted.
    So I wanted something like (ignore the dots):
    ...................................ppppp
    AAAA BBBB CCCCC DDDD EEEE FFFFFF
    So the field of 'ppppp' appeared slightly higher on the line than the other fields...
    I can't see how I can do this with a single TEXT field containing all the &COL values.
    Have you ever come across anything like this?
    Thankyou again,
    Tony Calabrese 12/4/2007

  • How to delete multiple data domains with single step ?

    how to delete multiple data domains with single step ?

    You can go to your Endeca-Server domain home e.g.($WEBLOGIC-HOME$/user_projects/domains/endeca_server_domain/EndecaServer/bin)
    run
    [HOST]$ ./endeca-cmd.sh list-dd
    default is enabled.
    GettingStarted is enabled.
    endeca is enabled.
    BikeStoreTest is enabled.
    create a new file from the output just with the domains that you want to delete and then create a loop
    [HOST]$ vi delete-dd.list
    default
    GettingStarted
    endeca
    BikeStoreTest
    [HOST]$ for i in $(cat delete-dd.list); do; ./endeca-cmd.sh delete-dd $i; done
    Remember that this can not be undone, unless you have a backup.

  • How to find the Data Type of a column

    Dear All,
    How to find the Data Type of a Column dynamically in oracle Form.
    Thanks and Regards,
    Fazil
    Edited by: user11334489 on Aug 25, 2012 9:06 PM

    hi,
    you can use get_item_property built-in
    eg:
    declare
       l_item VARCHAR2(10);
    begin
       l_item := Get_Item_Property('item_name',DATATYPE);
    end;

  • How do you structure a .book with an EDD?

    Hi all,
    I am learning how to convert legacy, unstructured FM documents into structured FM documents and need some help. So, I created a conversion table from my unstructured documents, created the EDD, applied the EDD to the unstructured document to create a structured document and now need to tweak the EDD.
    My question is, what is the correct way to layout the EDD rules for a book using multiple document styles? For example: My book contains a title page, TOC, one or more chapters, a glossary of terms, and one or more appendixes (or is that a appendicies?.)
    I am thinking the element rule would look something like this:
    Element (Container): BOOK
    Valid as the highest-level element.
    General rule: TitlePage, TOC, Chapter+, Index, Appendix+
    Followed of course by other elements required for the structure. However, I did see an EDD that I am sure was outlined like this (though I can't recall where:)
    Element: TitlePage
    Valid as the highest-level element.
    General rule: Blah blah blah
    Element: TOC
    Valid as the highest-level element.
    General rule: Blah blah blah
    Element: Chapter
    Valid as the highest-level element.
    General rule: Blah blah blah
    Element: Index
    Valid as the highest-level element.
    General rule: Blah blah blah
    Element: Appendix
    Valid as the highest-level element.
    General rule: Blah blah blah
    If the second structure is correct, how do you define the Book element? On the Adobe forum, I was told one EDD should be created for all book elements, which makes sense to me.
    Okay people, fire away. Remember I am a neophyte in structured FM.
    Thanks,
    Adam

    Thanks Van, that does clear it up for me... a little. My confusion now is, if I set all the book sections as valid at the highest level, then how does the book get structured as the starting point for the sections contained within it? I have tried to find a sample EDD detailing exactly this, but to no avail - my search brought up courses where this is covered, but not the actual EDD structure.
    When I try to structure the book with the EDD, the book comes up red with its children elements looking just fine. Ahh! You have to love that learning curve.
    Regards,
    Date: Thu, 24 Sep 2009 06:43:41 -0600
    From: [email protected]
    To: [email protected]
    Subject: How do you structure a .book with an EDD?
    Adam,
    Following up on some of Russ's sage advice, you asked:
    If the second structure is correct, how
    do you define the Book element? On the Adobe forum, I was told one EDD
    should be created for all book elements, which makes sense to me.
    As Russ said, your BOOK element looks fine. Not sure how far you have gotten, but when you open a document file that is in the book, its root element will be Chapter, TitlePage, Appendix, etc. That is why you have to declare each of these as being valid at the highest level. When you click in the book file window and look at the structure view, you will see that the BOOK element is the root element, and its content will be TitlePage, TOC, Chapter, Chapter,...etc. The book and all of its component files have the same EDD. The definitions for the BOOK element, as well as the TitlePage, TOC, Chapter, etc elements are all contained in the same EDD. I hope this helps to answer your question.
    Van
    >

  • How do you display file type in PS Elements 10?

    How do you display file type in PS Elements 10 in the Organizer for each photo?
    I know you can right click and look at meta data.
    In PSE 7 it was displayed under each photo.

    Two things:
    1.  Set the View option to show file names:
    2.  Ensure your thumbnails are large enough to display the data:
    Ken

  • How to add TIMESTAMP data type in  Enterprise Architect...?

    Hi all
    There is no data type of timestamp in Enterprise Architech. There is only
    DATE type. I have ERD prepared from Enterprise Architech. How to modify
    DATE type to TIMESTAMP type.
    How to add TIMESTAMP data type in Enterprise Architect or in ERD ?
    Thanks in advance,
    Pal

    Have you asked this question of the vendor of Enterprise Architect? They may have a later version that supports the various TIMESTAMP data types. If your ERD tool doesn't support a data type, other than talking to the vendor or working around the problem (i.e. generate DDL to a text file and edit it before applying it to the database), you're probably out of luck.
    Justin

  • How to convert a date field with format (dd,mm,yyyy) to format (mm,dd,yyyy)

    Hello.
    How to convert a date field with format (dd,mm,yyyy) to format (mm,dd,yyyy)
    I have text field which has a databind to a date field. When I click on it, we can select the date, it is added on the format (dd,mm,yyyy). When I want to insert this date field to a database It doesnu2019t allow me to do it because it will only accept date field on the format (mm,dd,yyyy)
    I tried to store this format on a date variable and I get a message saying that is impossible to convert a string into a date.
    Regards,
    Jose

    Hi Jose,
    usually you format strings in c# like
    string.Format("{0:yyyyMMdd}", insertyourstring);
    in your case
    string.Format("{0:MM/dd/yyyy}", insertyourstring);
    [look here|http://idunno.org/archive/2004/14/01/122.aspx]
    there are more details
    if everything fails split the string with Mid()
    or ask me
    lg David

  • How can you change data on a SQL 2012 application database that uses availability groups from BizTalk server?

    If you use the WCF-SQL adapter it is recommend that you set UseAmbientTransaction to true if you are changing data. I think this requires MSDTC to be enabled on the SQL server that you are changing the data on. (http://msdn.microsoft.com/en-us/library/dd787981.aspx)
    I think that Availability groups does not support MSDTC. (http://msdn.microsoft.com/en-us/library/ms366279.aspx).
    How can you change data on a SQL 2012 application database that uses availability groups from BizTalk server?

    Hi,
    Yes, Availability groups doesn't support MSDTC. Please refer to the similar discusison which maybe helpfull:
    http://dba.stackexchange.com/questions/47108/alwayson-ag-dtc-with-failover
    http://stackoverflow.com/questions/17179221/msdtc-in-always-on-availability-groups

  • How to pass complex data type structure to WebService under mx:request?

    From my Flex client, I need to pass data to a web service whose operation expects a complex data type with multiple layers of nesting structure. How can I populate the <mx:request> for the <mx:WebServices>? Any examples?
    A couple of approaches come to my mind:
    (1) construct ActionScript object to mimic the datatype expected by web service, and pass an instance of the AS object to mx:request; or
    (2) construct an entire SOAP request body in XML and pass it into mx:request.
    Does any of these (or both) work? If both work, which is the better way?
    Thanks in advance for your input!
    -William

    Thanks a lot for the rapid response, Marcel.
    For further details on the maping between WS complexType structure and AS object, is there any specific requirement? such as naming, binding, structure of nesting, etc.
    William

  • How do you time/date stamp photos in iphoto 9, Version 8.1.2?

    How do you time/date stamp photos in Iphoto 9, Version 8.1.2?

    If the photos were taken with a digital camera they already dated and time stamped. Select a photo and click in the "i" button in the lower left hand corner of the window:
    There you will see the date and time the photo was taken.

Maybe you are looking for