Use data in productor obtained in the consumer

Hello everybody, I am doing my final degree proyect and I have a doubt doing it. I have to create 2signals in order to comando a valve and acquire an other one that comes from a preassure sensor. I have to substract the signal of the preassure sensor from one of the other I create and operate in a block. I have done this with a Productor/Consumer archytecture and it works in terms that at the final of the block I obtain the values I want to get, but the real case implies that this current value must be added to one of the simulated signals and the pass to the BNC2120. I attach one picture of the structure below.
I have tried to get out the DAQmx from the first while and make a "second consumer", but it does not work properly (in fact it stops because of an error). Then I have tried to use a global variable (the most easy solution) but it works only with the first value the global variable had in the first iteration; I have use wait structures to try if with more time the global variable updates itself but does not fit. Other "solution" I have tried is make this activity in a State Machine but has the same problem of the "second consumer".
I any of you have an idea of how can I continue, please tell me, I will be very greatful.
Below are the structure and a picture of the VI.
Thank you very much.
Sinceresly,
Miguel.
Attachments:
Esquema_tesis_Labview.pdf ‏209 KB
Produc_consumer_global_variable.PNG ‏26 KB

Do not worry about this topic, I have obtained the result by myself, it can be done with global variables. The error was in the initialization of some of the variables involved.
Thank you any way and forgive me for the disturbance.
Sinceresly,
Miguel.

Similar Messages

  • Using Data-Dependent Routing in combination with Membership provider

    Hi there!
    Currently we have two Web applications running on azure using a single SQL database. We are experiencing problems with performance because we are using only one database. We are investigating some solutions like documentDB and elastic scale.
    DocumentDb seems like a really good option for us because it looks like it can be implemented easily and we know just what to do.
    With elastic scale on the other hand we have to figure out what our options are. We are using a membership provider for our users to login in one of the two applications. The other web applications does not use a membershipprovider, it does not use a login
    system at all.
    in the backend of our code we determine a subscription_id for both applications to retrieve tenant data.
    I think we have a few options here
    1. to keep using the membershipprovider we could create a database just for the login mechanism so we can determine the subscription_id, and with that subscription_id we can use Data-Dependent Routing to retrieve the correct data from the correct shard.
    2. We can add extra columns to the Shard Map Manager database (i think i've read that it's not supposed to be used for user data) like username and password so we can login through this database.
    Does anyone has better options than the options mentioned before and can anyone give me advise on how we should deal with these issues?
    Thanks!

    Elmar --
    The best approach would be to maintain the Membership DB in a separate Azure SQL database.  Then you could shard your transaction details across an Elastic Scale set of databases based on the subscription ID.   (The Shard Map Manager
    database is not designed to be extended with additional columns, and Elastic Scale works by caching that Shard Map data in the client application anyway, and those in-memory structures can't be changed).
    You would use an ordinary ADO.Net connection to query membership for a Subscription ID, and then get an appropriate shard-specific connection using the Elastic Scale GetOpenConnectionForKey method, passing the subscription ID retrieved from
    the membership query. 

  • Using Data Provider

    Hi,
    I am using Data Provider.
    Below are the pararmeters I am passing to it,
    oms:dataSource <parameter>mslv/oms/oms1/internal/jdbc/DataSource</parameter> DefaultValue=Xquery
    oms:sql <parameter>select name from employee where job=?</parameter> DefaultValue=Xquery
    in:1
    Now I want to pass a dynamic value for the where clause in the Sql.
    My Order Data is,
    <OrderData>
    <Employee>
    <Name></Name>
    <Job>Engineer</Job>
    </Employee>
    </OrderData>
    Now I want to pass the "Engineer" value to the where clause. How can I define a Xpath or Xquery for the in:1 parameter?
    Please help.

    You can find documentation for the DatabaseAdapter "Data Provider" class (also known as a View Framework Adapter) in the OSM SDK Javadocs. The Javadocs for the class provide information and an example to let you do what you are trying to do. I've copy/pasted them here for your reference:
    This class implements a View Framework external instance adapter that executes a SQL statement and builds an XML document based on the result set.
    There are two mandatory parameters for this class, oms:sql and oms:dataSource.
    oms:dataSource: Refers to the jndi name of a JDBC datasource defined in WebLogic. For example 'mslv/oms/oms1/internal/jdbc/DataSource'
    oms:sql: Contains the sql that will be sent to the database. For example 'select * from scott.emp where empno=?'
    Additional optional input parameters may be supplied that will be bound to parameters defined in the oms:sql value. For example, in the above sql statement a parameter is used to define the value for 'empno' in the where clause. A value for this parameter may be specified by defining a paremter called "in:1". If there were additional input parameters defined in the sql statement, these could be passed as "in:2", "in:3" and so on.
    In all cases these input parameters will be assumed to be string values and bound to the sql statement as string values.
    The following is an example of using the DatabaseAdapter to invoke a query:
    <instance name="well_paid_salesman" xsi:type="externalInstanceType">
    <adapter>com.mslv.oms.view.rule.adapter.DatabaseAdapter</adapter> <parameter
    name="oms:dataSource">'mslv/oms/oms1/internal/jdbc/DataSource'</parameter> <parameter
    name="oms:sql">"select * from scott.emp where job='SALESMAN' and sal > ?"</parameter> <parameter
    name="in:1">1250</parameter> </instance>
    The above declaration returns the following XML instance:
    <results> <rowSet> <row> <empno>7499</empno> <ename>ALLEN</ename> <job>SALESMAN</job> <mgr>7698</mgr>
    <hiredate>1981-02-20 00:00:00.0</hiredate> <sal>1600</sal> <comm>300</comm> <deptno>30</deptno> </row> <row>
    <empno>7844</empno> <ename>TURNER</ename> <job>SALESMAN</job> <mgr>7698</mgr> <hiredate>1981-09-08
    00:00:00.0</hiredate> <sal>1500</sal> <comm>0</comm> <deptno>30</deptno> </row> </rowSet> </results>
    The DatabaseAdapter can also be used to execute SQL stored procedures.
    The DatabaseAdapter provides a stored procedure SQL escape syntax that allows stored procedures to be called in a standard way for all RDBMSs. This escape syntax is defined as part of the Java JDBC API.
    This escape syntax has one form that includes a result parameter and one that does not. If used, the result parameter must be registered as an OUT parameter. The other parameters can be used for input, output or both. Parameters are referred to sequentially, by number, with the first parameter being 1.
    {?= call [,, ...]}
    {call [,, ...]}
    Values for input parameters to the stored procedure are specified using the in:1, in:2 (etc.) parameters in the same way as they are for regular SQL queries.
    Output parameters are specified using out:1, out:2 (etc.). Keep in mind that the parameter number (1, 2, 3, etc.) are numbered sequentially from 1 ordered from left to right in the specified SQL statement including both input and output parameters.
    The value of the parameter is the parameter SQL type (see http://java.sun.com/j2se/1.4.2/docs/api/java/sql/Types.html for a list of types).
    The following example illustrates how to call a database stored procedure that has one output parameter (the result of the stored procedure call), and one input parameter.
    <instance name="lock_count" xsi:type="externalInstanceType">
    <adapter>com.mslv.oms.view.rule.adapter.DatabaseAdapter</adapter> <parameter
    name="oms:dataSource">'mslv/oms/oms1/internal/jdbc/DataSource'</parameter> <parameter
    name="oms:sql">"{? = call om_cartridge_pkg.get_any_cartridge_id('my_cartridge',?)}"</parameter> <parameter
    name="out:1">'INTEGER'</parameter> <parameter name="in:2">'1.1'</parameter> </instance>
    The above declaration returns the following XML instance:
    <results> <outputParameter number="1">1234</outputParameter> </results>
    Hope this helps.
    Brian.

  • When i open an app. like Facebook. does that use data?

    does opening an app use  data. for instanxe Facebook or instagram

    Yes they both will to refresh the news feeds and posts. Nowadays 90% of apps use data. In my experience The only apps that MAY  not use data are games.

  • URL to see what's using data on my phone

    While live-chatting with service agent, she gave me a URL to see what is using data on my phone. The URL didn't work. Can you send me the correct URL?

        Thank you! I appreciate the insight. The data calculator provides a generic form of assistance showing what type of services use the most data, vzw.com/datacalculator . You may also review the link provided here to get an understanding of what apps currently have the ability to use data services on your device. http://vz.to/1wgfGye
    YosefT_VZW
    Follow us on Twitter @VZWSupport

  • No email attachments to Document library when using data driven subscriptions

    We have recently migrated to SharePoint 2013 and setup document libraries to publish reports to.
    When we send an email with an attachment to the document library from a users mailbox, the document library acts as expected and detaches the email and publishes it to a subfolder inside the library. However when we schedule reports using data driven subscriptions
    and add the email address as a CC, the subfolder gets created but there is no attachment.
    What could cause this issue?
    Thanks for your time

    Hi WFN_Will,
    regarding this issue, we don't know for sure, unless we trace the process,
    do the attachment is not there, or when the attachment there the process was failed, or the target not able to receive the attachment?
    from the description, seems the target and the process of receiving the attachment is ok, I guess you can start to check from this part:
    https://sharepointstuff.codeplex.com/workitem/2894
    http://msdn.microsoft.com/en-us/library/ms154050.aspx
    http://technet.microsoft.com/en-us/library/ms159150.aspx
    http://technet.microsoft.com/en-us/library/cc262947.aspx
    http://manomangaldas.blogspot.in/2008/04/send-email-with-attachments-in.html
    to ensure that the attachment is there.
    Regards,
    Aries
    Microsoft Online Community Support
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Does iMessage use data?

    I was just wondering if iMessage uses data when you are on the 3G network?  And if it does, does anyone know how much data?

    iMessage would use data when not connected to a WiFi network, but should use WiFi if it is connected as that is how it would work with the iPod Touch and iPad (non 3g) models.

  • HT2729 If I sync a podcast to my itune does it use data to playback

    If I sync a podcast to my itune does it use data to playback

    If you sync the episodes downloaded to your computer over to the device then there is no need for 3G data usage, however if the podcast app is set up to check for new episodes it may refresh the feed, which could involve a tiny data transfer.
    tt2

  • How to generate xml using "Data Template"

    Hi,
    Can any one please tell me the steps to create xml using "Data Template".
    As per the user guide the execution method for "data Template" is "Java Concurrent Program" and the Executable mentiones is "XDODTEXE".
    But there is no information about the "execution file name" and "execution path name" which is mandatory.
    Thanks and Regards,
    Sandhya

    Hi Sandhya,
    To put a Data Template into use, you don't need to define any new executables. XDODTEXE executable is already registered in the system, as it ships with the application. The Data Template is not an executable as such, but a collection of instructions for what queries to perform and what should the resulting XML look like. XDODTEXE knows how to interpret those instructions, and produce the XML output.
    (And if you add a layout template, handle that too.)
    You do need to do the following:
    1) Create a new Data Definition (XML Publisher Administrator > Data Definitions)
    2) Upload your Data Template (remember the Code for the next step)
    3) Create a Concurrent Program that is linked to the Data Definition (Short Name = Code) (System Administrator > Program > Define)
    4) Add your Concurrent Program to a Request Group (System Administrator > Security > Responsibility > Request)
    I recommend you take a look at the XML Publisher Administration and Developer's Guide, you will find more information there.
    (http://download-west.oracle.com/docs/cd/B40089_02/current/acrobat/120xdoig.pdf)
    Best Regards & Happy New Year 2008,
    Matilda Smeds

  • Error - Exclusive access could not be obtained because the database is in use

    I am actually trying to make a script (in Sql Server 2008) to restore one database from one backup file. I made the following code and I am getting an error -
    Msg 3101, Level 16, State 1, Line 3
    Exclusive access could not be obtained because
    the database is in use.
    Msg 3013, Level 16, State 1, Line 3
    RESTORE DATABASE is terminating abnormally.
    How do I fix this problem ?
    IF DB_ID('AdventureWorksDW') IS NOT NULL
    BEGIN
    RESTORE DATABASE [AdventureWorksDW]
    FILE = N'AdventureWorksDW_Data'
    FROM
    DISK = N'C:\Program Files\Microsoft SQL Server\
    MSSQL10_50.SS2008\MSSQL\Backup\AdventureWorksDW.bak'
    WITH FILE = 1,
    MOVE N'AdventureWorksDW_Data'
    TO N'C:\Program Files\Microsoft SQL Server\
    MSSQL10_50.SS2008\MSSQL\DATA\AdventureWorksDW.mdf',
    MOVE N'AdventureWorksDW_Log'
    TO N'C:\Program Files\Microsoft SQL Server\
    MSSQL10_50.SS2008\MSSQL\DATA\AdventureWorksDW_0.LDF',
    NOUNLOAD, STATS = 10
    END

    Check, if there are existing connections to the database you are restoring by following command
    select spid from sys.sysprocesses where dbid = db_id('AdventureWorksDW')
    if you see any existing connections then kill them by issuing KILL command Syntax for kill is
    KILL <SPID>
    once you see there are no more connections then 
    Use mastergoIF DB_ID('AdventureWorksDW') IS NOT NULL
    BEGIN
    RESTORE DATABASE [AdventureWorksDW]
    FILE = N'AdventureWorksDW_Data'
    FROM
    DISK = N'C:\Program Files\Microsoft SQL Server\
    MSSQL10_50.SS2008\MSSQL\Backup\AdventureWorksDW.bak'
    WITH FILE = 1,
    MOVE N'AdventureWorksDW_Data'
    TO N'C:\Program Files\Microsoft SQL Server\
    MSSQL10_50.SS2008\MSSQL\DATA\AdventureWorksDW.mdf',
    MOVE N'AdventureWorksDW_Log'
    TO N'C:\Program Files\Microsoft SQL Server\
    MSSQL10_50.SS2008\MSSQL\DATA\AdventureWorksDW_0.LDF',
    NOUNLOAD, STATS = 10
    END
    Mark as answer, if it works.

  • [svn] 1751: Bug: BLZ-174 - MessageClient.testMessage() is incorrectly doing a string compare for the subtopic header of an inbound message against the subtopic value (which may contain wildcards) that the Consumer is using.

    Revision: 1751
    Author: [email protected]
    Date: 2008-05-15 14:21:43 -0700 (Thu, 15 May 2008)
    Log Message:
    Bug: BLZ-174 - MessageClient.testMessage() is incorrectly doing a string compare for the subtopic header of an inbound message against the subtopic value (which may contain wildcards) that the Consumer is using.
    QA: No - customer verified the fix.
    Doc: No
    Ticket Links:
    http://bugs.adobe.com/jira/browse/BLZ-174
    Modified Paths:
    blazeds/branches/3.0.x/modules/core/src/java/flex/messaging/MessageClient.java
    blazeds/branches/3.0.x/modules/core/src/java/flex/messaging/services/MessageService.java

    If you create a metadatatype with a single metdata block, and you reference that in your vm/cm cell attribute using a *one* based index, Excel seems to see the link and it honors it when saving the spreadsheet.
    So, I ended up with something like:
    <c ... cm="1"/> (I'm dealing with cell metadata, but the concept is equivalente to value metadata)
    <metadataTypes count="1">
      <metadataType name="MyMetaType" .../>
    </metadataTypes>
    <futureMetadata count="1" name="MyMetaType">
      <bk>
        <extLst><ext
    uri="http://example" xmlns:x="http://example"><x:val>87</x:val></ext></extLst>
      </bk>
    </futureMetadata>
    <cellMetadata count="1">
      <bk><rc
    t="1" v="0"/></bk> <!-- this is what gets referenced as cm=1 on the cell -->
    </cellMetadata>
    Hope this helps. 

  • Writing the file using Write to SGL and reading the data using Read from SGL

    Hello Sir, I have a problem using the Write to SGL VI. When I am trying to write the captured data using DAQ board to a SGL file, I am unable to store the data as desired. There might be some problem with the VI which I am using to write the data to SGL file. I am not able to figure out the minor problem I am facing.  I am attaching a zip file which contains five files.
    1)      Acquire_Current_Binary_Exp.vi -> This is the VI which I used to store my data using Write to SGL file.
    2)      Retrive_BINARY_Data.vi -> This is the VI which I used to Read from SGL file and plot it
    3)      Binary_Capture -> This is the captured data using (1) which can be plotted using (2) and what I observed is the plot is different and also the time scare is not as expected.
    4)      Unexpected_Graph.png is the unexpected graph when I am using Write to SGL and Read from SGL to store and retrieve the data.
    5)      Expected_Graph.png -> This is the expected data format I supposed to get. I have obtained this plot when I have used write to LVM and read from LVM file to store and retrieve the data.
    I tried a lot modifying the sub VI’s but it doesn’t work for me. What I think is I am doing some mistake while I am writing the data to SGL and Reading the data from SGL. Also, I don’t know the reason why my graph is not like (5) rather I am getting something like its in (4). Its totally different. You can also observe the difference between the time scale of (4) and (5).
    Attachments:
    Krishna_Files.zip ‏552 KB

    The binary data file has no time axis information, it is pure y data. Only the LVM file contains information about t(0) and dt. Since you throw away this information before saving to the binary file, it cannot be retrieved.
    Did you try wiring a 2 as suggested?
    (see also http://forums.ni.com/ni/board/message?board.id=BreakPoint&message.id=925 )
    Message Edited by altenbach on 07-29-2005 11:35 PM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    Retrive_BINARY_DataMOD2.vi ‏1982 KB

  • How to export resource manager consumer groups using Data Pump?

    Hi, there,
    Is there any way to export RM Consumer Groups/Mappings/Plans as part of a Data Pump export/import? I was wondering because I don't fancy doing it manually and I don't see the object in the database_export_objects view. I can create them manually, but was wondering whether there's an easier, less involved way of doing it?
    Mark

    Hi,
    I have not tested it but i think a full db export/import (using data pump or traditional exp/imp) may help doing this (which might not be feasible for you to have full exp/imp) because full database mode exports/imports SYS schema objects also, so there is a chance that it will also import the resource group and resource plans.
    Salman

  • Can you use information obtained in the report to use as output?

    I am wondering if in XI R2 or 2008 you can use infomation obtained in the report generation to use in output parameters?   For example, if my results come back with email addresses, can I then use them to email to?

    There are several export options.  But how about this solution:
    Insert a text object on the detail line with the text "E-mail: ".  Then drag the data field of the company/person's name and drop it in the text at the end.
    Then, right-click the text, and select "Format Text...".  Then click the Hyperlink tab and select "An EMail Address".  Below, for the e-mail address, it says "mailto:" but you don't want a static address.  So click on the formula button on the right.  For the formula, enter "mailto:" +
    When you run the report, you'll see "E-Mail: John Doe" but when you click on it, it'll open a mail message window with the address as the recipient.  (The names of the victims in this example have been changed, to protect the innocent   )
    I'm sure there are several other ways to accomplish your goal, but without more info on your situation, I can only guess that this is the best one.

  • Is it wise to keep the Nikon camera files "DSC's"  after downloading them and converting to DNG files via Adobe converter for lightroom use. In other words do the DNG files have all the raw data I would ever need in processing or should I save the camera'

    Is it wise to keep the Nikon camera files "DSC's"  after downloading them and converting to DNG files via Adobe converter for lightroom use. In other words do the DNG files have all the raw data I would ever need in processing or should I save the camera's DSC files?

    DNG files do not contain some metadata supplied by the camera, which can be used by the manufacturer's software. Thus, if you don't keep the original Raw photo, you will lose this information.
    If your 1000% sure you're never going to use the manufacturer's software, then this isn't a problem. But who can be sure what software you will be using 10 years from now?

Maybe you are looking for

  • I have deleted my iphoto and downloaded it again and I still get that it can't open because of a problem..Help!

    I have done what I was told to do delete iPhoto (put it in trash) and then empty trash and the download iPhoto again and it still will not open.  Help!!

  • Colormodel wrong when loading TIF

    I have a TIFF image which I can't correctly convert or display in Java. However, in any other image viewer (default windows, irfanview), it displays without errors. When I load the TIF file, it gives the folowing color model: #pixelBits = 32 numCompo

  • Applying SP stacks

    Hi Guru's, I am installing solman 4.0,ecc 6.0 on ABAP+JAVA stack. As I am planning to apply the SP stacks here I am having some queries. 1)Can I apply the stack through SPAM,if so please let me know how can I do that 2)Should I need to apply the Stac

  • Photoshop CS5 - Compatibility issue with nested groups

    I'm using Photoshop CS5 to create a multi-layered, group-heavy PSD. The final file is intended for public consumption, so, ideally, I'd like it to be accessible to as many users - and therefore compatible with as many versions of Photoshop - as possi

  • Maximum project size?

    I've had a request to produce a video backdrop for a conference and my client has requested a movie size of 5250pixels x 1050pixels, however Motion will only allow me to enter a maximum 4096pixels. Is this the maximum allowed in Motion or a limitatio