Syncronise two data sets were one set is not constantly logging

Hello,
I’m trying to collect data from two counters
and three analogue signals. The problems I have are that the shaft encoders connected
to the counters sometimes do not rotate. So no signal is sent and subsequently
stops the analogue data from being collected until the counters get a signal
again. I was told to use two independent while loops one or the counters and
the second one for the analogue signals. To further improve the system and make
use of the dual core technology I separated the loops completely this means I
save the data into to files also. But when I want to synchronise the data I
have no synchronising point in the two sets to align the data to.
I attached the vi file that might make it easier.
Thanks for your help in advance.
Regards,
Fred
Attachments:
parallel_task_11.vi ‏393 KB

If what you want is synchronize analog input and counter measurement, I suggest you go for buffered AI and buffered count edge measurement. For synchronization, use the AI sample clock as the clock for counter edge measurement. Configure all the tasks (two counter and one AI) and start the counter tasks first and then the AI task. In this way measurement will be synchronized with respect to a common clock.
Configure counter 1 (CI. Cnt Edges)--> Cnfigure Counter 2 (CI. Cnt Edges)---> Configure AI (continuous)---> Set counter 1's clock as AI Sample clock ---> Set counter 2's clock as AI Sample clock --->Start Counter 1task --->Start counter 2 task --->Start AI task----> read counter 1, counter 2 and AI in parallel loops...
Have a nice day!!!
LabVIEW | LabWindows/CVI | TestStand
Certified LabVIEW Architect

Similar Messages

  • Urgent Q-adding elements from two data sets

    How to add two fields from two data sets. in RTF template
    the fields have same names too.

    BIPuser wrote:
    If you are grouping within one data set, then the current-group will only work for an element within that group. For the second one, try to use the absolute path or use as many of '../' to get up as many levels from where you are.
    Thanks!I have defined two different groups.
    I need to add the elements from those two diffrent groups.

  • Comparing two data sets in BPEL

    Hey guys,
    There exists a web service that provides (and is the source of) data and a table that is independent of the service that holds the same data. I'm writing a BPEL 11g process to sync the data that is returned from the service with the data in the table. I invoke the service and database adapter to receive a collection of the data and I need to compare the two data sets to see what's in the service's data set that isn't in the table's data set, so that I can insert them into the table. I also need to compare the values of the data sets for possible updates to already existent records. I'm not sure how to do this though. I was thinking of using an embedded java activity to compare the two sets. What's the best way to do this? Code examples would be much appreciated.
    Thanks,
    Bill

    Hi Bill,
    How many records are we talking about here? BPEL may not be the best option for synchronisation of large data sets... Probably ODI would be more suitable...
    S.Ananth's solution is probably the simple and neat way to solve your case... would this operation BLINDLY update all records? Short answer: no
    Long answer... Merge first reads the corresponding records in the database, calculates any changes, and then performs a minimal update. INSERT, UPDATE, and MERGE make the most sense when you are thinking about a single row and a single table. However, your XML can contain complex types and map to multiple rows on multiple tables. Imagine a DEPT with many EMPS, each with an ADDRESS. In this case, you must calculate which of possibly many rows have changed and which to insert, update, or delete. If a specific row did not change or only one field changed, then the DML calls is minimal.
    About merge on DBAdapter...
    http://docs.oracle.com/cd/E28280_01/integration.1111/e10231/adptr_db.htm#BDCDBAJI
    Cheers,
    Vlad

  • Parts of the Data went missing when linking two data sets

    Hello Everyone!
    I have two data sets for my report:
    1. an essbase cube which is transformed to a relational star shema transformed by BI Administraion, Im calling the cube with sql (not mdx)
    2. a single relational table
    In the report Im iterating on the 'product' dimension of the cube and I need to join the cube with the single relational table, because that table holds all the detailed information on each product (mostly text therefore it is not in the cube).
    What I did was, joined the two data sets with a Master/Detail link. So far so good. But the thing is, more than half of my data goes missing in the xml-Output when I join those too. If I delete the join, all the data is back again in the xml-ouptut but I cant refer to the details of the relational table.
    I tried different things to fix that problem. So I sorted the 1. dataset and joined it again with the 2. dataset. As a result there was still a lot of data missing, but not the same as before.
    I find this behaviour really strange and don't have a clue what to do differently.
    I would really appreciate some help, because I already spent hours trying to fix that problem.
    Thank you!
    Edited by: 981323 on 27.02.2013 06:49

    Thanks for that. Typically I found this 5 minutes after I posted the request on the forum.
    Problem is every time I try and do this the system does not recognise my <?for-each> containing the parameter and says the parameter is not defined. WHen I validate the template it seems to ignore the F completely and complains about to many ends.
    I just can't see why it does not work. I am using four records, 2 of each set I am using which link over item number. I can show them seperately but as soon as I add the variable loop ( <?for-each:/INV_GL/GL[GLLITM= $ITM]?> where ITM is my variable and GLITM is that field in the data) it stops working.

  • Accessing two data sources in one method

    I wanted to access two connection pools in one EJB project. I manage to create two connection pools in weblogic server and I successfully wrote the lookup code. I wanted to call these two data sources in one method. But it only gives result from one data source connection. other is null. Im getting following message also
    Connection has already been created in this tx context for pool named jdbc_informix_pool. Illegal attempt to create connection from another pool: JDBC_informix_webdata
    "jdbc_informix_pool" and "JDBC_informix_webdata" is the names of my connection pools. the two data sources works perfectly when they are accessed separately. but whenever im tryng to call two data sources in one method it retrive data from only one data source and gives me above message.
    anyone know how to fix it.?
    thnx
    sameera

    hi...
    thnx man.. it worked. But there is another problem. I cant close my data source connection. whenever im tryng to close it, it says
    Result set already closed
    i manage to run my program without closing the data source connection. but after a while it says
    No resources currently available in pool JDBC_informix_webdata to allocate to applications, please increase the size of the pool and retry
    i can increase the size of the pool and run my program. but i guess if I close the data source connection this will be resolved. But how can I close my data source connection. I tried finally clause. but it gives me the result set already closed message
    how can i do it.?
    thnx
    sameera
    Edited by: Sameera on Jun 18, 2009 8:35 PM
    Edited by: Sameera on Jun 18, 2009 8:40 PM

  • Obiee 11.1.1.6.6 - analysis displays two dates instead of one prompted

    Hi all,
    my analysis somehow displays two dates instead of one prompted.
    How can it be?
    Tell me please what additional information should I include for you to help me.
    obiee 11.1.1.6.6
    Upd: prompt screenshots
    http://marchello.ccx-grads.org/img/BI_prompt_001.png
    http://marchello.ccx-grads.org/img/BI_prompt_002.png

    This is from "Administration" -> "Manage Sessions" section of obiee
    1) everything seems fine, WHERE clause shows correct date
    SET VARIABLE QUERY_SRC_CD='Report',SAW_SRC_PATH='/shared/VB/8.RB-213.BI.1';SELECT
       0 s_0,
       "VB"."VBIREP8"."AASYSDATE" s_1,
       "VB"."VBIREP8"."ADAY" s_2,
       "VB"."VBIREP8"."AMONTH" s_3,
       "VB"."VBIREP8"."ARCDATE" s_4,
       "VB"."VBIREP8"."AYEAR" s_5,
       "VB"."VBIREP8"."CONTRAGENTID" s_6,
       "VB"."VBIREP8"."CONTRAGENTNAME" s_7,
       "VB"."VBIREP8"."CREDITS" s_8,
       "VB"."VBIREP8"."DEPOSITARY" s_9,
       "VB"."VBIREP8"."DEPOSITS" s_10,
       "VB"."VBIREP8"."IDENTIFYCODE" s_11,
       "VB"."VBIREP8"."OVERDAY30" s_12,
       "VB"."VBIREP8"."RESTRUCTURED" s_13,
       "VB"."VBIREP8"."SEGMENT" s_14,
       "VB"."VBIREP8"."STATUS" s_15,
       "VB"."VBIREP8"."TOBO" s_16
    FROM "VB"
    WHERE
    (CAST("VBIREP8"."ARCDATE" AS DATE) = date '2013-08-15')
    ORDER BY 1, 3 ASC NULLS LAST, 4 ASC NULLS LAST, 6 ASC NULLS LAST, 5 ASC NULLS LAST, 7 ASC NULLS LAST, 8 ASC NULLS LAST, 12 ASC NULLS LAST, 15 ASC NULLS LAST, 16 ASC NULLS LAST, 9 ASC NULLS LAST, 14 ASC NULLS LAST, 13 ASC NULLS LAST, 11 ASC NULLS LAST, 10 ASC NULLS LAST, 17 ASC NULLS LAST, 2 ASC NULLS LAST
    FETCH FIRST 100000001 ROWS ONLY
    2) and now attention, I press "next rows" arrow, my WHERE clause is simply ABSENT! 
    SET VARIABLE QUERY_SRC_CD='Report',SAW_SRC_PATH='/shared/VB/8.RB-213.BI.1';SELECT
       0 s_0,
       "VB"."VBIREP8"."AASYSDATE" s_1,
       "VB"."VBIREP8"."ADAY" s_2,
       "VB"."VBIREP8"."AMONTH" s_3,
       "VB"."VBIREP8"."ARCDATE" s_4,
       "VB"."VBIREP8"."AYEAR" s_5,
       "VB"."VBIREP8"."CONTRAGENTID" s_6,
       "VB"."VBIREP8"."CONTRAGENTNAME" s_7,
       "VB"."VBIREP8"."CREDITS" s_8,
       "VB"."VBIREP8"."DEPOSITARY" s_9,
       "VB"."VBIREP8"."DEPOSITS" s_10,
       "VB"."VBIREP8"."IDENTIFYCODE" s_11,
       "VB"."VBIREP8"."OVERDAY30" s_12,
       "VB"."VBIREP8"."RESTRUCTURED" s_13,
       "VB"."VBIREP8"."SEGMENT" s_14,
       "VB"."VBIREP8"."STATUS" s_15,
       "VB"."VBIREP8"."TOBO" s_16
    FROM "VB"
    ORDER BY 1, 3 ASC NULLS LAST, 4 ASC NULLS LAST, 6 ASC NULLS LAST, 5 ASC NULLS LAST, 7 ASC NULLS LAST, 8 ASC NULLS LAST, 12 ASC NULLS LAST, 15 ASC NULLS LAST, 16 ASC NULLS LAST, 9 ASC NULLS LAST, 14 ASC NULLS LAST, 13 ASC NULLS LAST, 11 ASC NULLS LAST, 10 ASC NULLS LAST, 17 ASC NULLS LAST, 2 ASC NULLS LAST
    FETCH FIRST 100000001 ROWS ONLY
    Sure, I receive another date (01.02.2013). Just one thing is strange here - why do I receive only one extra date (I should receive ALL dates in Oracle table when I perform query without any WHERE clause).

  • Can I have two Data Files in One control file of sql*loader tool

    hi,
    Can someone help me out. is it possible to have two Data Files in one control file of Sql*loader.
    And isit possible to run 10,000 records before lunch and 10,000 records before tea and 10,000 records before evening session by giving breaks after every 10,000 records.
    Thanks
    Ram

    Yes. You can specify two datafiles in one control file and can load using sql loader.
    I give you the sample control file.
    Load DATA
    INFILE 'TEST1.CSV'
    INFILE 'TEST2.CSV'
    TRUNCATE
    INTO TABLE TEST_P
    FIELDS TERMINATED BY "," OPTIONALLY ENCLOSED BY '"'
    TRAILING NULLCOLS
    (COL_1,
    COL_2,
    COL_n)
    Hope It will help you.
    -Karthik

  • Two data sources to One Infosource?

    HI GURUS
    Can we connect Two data sources to One Infosource?
    Regards
    Durai

    Hi Expert !
    Thanks
    If we assigned two data sources to an Infosource, all those fields will be availabe in the transfer rule maintanence screen that we can choose and assign to Infosource infoobjects.
    Am I correct?
    Regards
    Durai

  • Combine two date field into one timestamp field

    Hello all,
    I need help combining two date fields into one timestamp field.
    I have separate Date and Milliseconds fields and want to
    combine to one Timestamp field can some suggest sql???

    This is my data
    01 JAN 1989 12:01:00.001 AM
    this is my insert drag_time is a timestamp field in another schema
    INSERT
    INTO DRAG (drag_time)
    SELECT to_char(drag_time, 'DD MON YYYY HH12:MI:SS')||(drag_second)||to_char(drag_time, ' AM')
    FROM sa.drag;
    This is the error
    ERROR at line 3:
    ORA-01855: AM/A.M. or PM/P.M. required

  • Data Load into two data targest from one DataSource

    Hi,
    I want to load data into two data targest from one DataSource. I did full load, then Initialization & delta settings for that DataSource. But I want to load data into one data target using delta InfoPackage & into 2nd data target using Full Load InfoPackage. Can I schedule execution of these 2 infopackges one delta & 2nd Full load InfoPackage for the same DataSource simaltaneously?
    Regards,
    Pradip

    Hi,
    In BI, You can achieve this. As thorugh info package, you laod data till PSA only. Then it is being loaded to other data targets.
    Create two DTPs, one with FULL load and another one with Detla Load. It will work.
    In R/3 Side, As sandeep has mentioned , there might be possibility that if you run full load after delta , your delta may get corrupt. i am not sure about that , but there is a possibility.
    - Jaimin

  • Comparing data in two data sets in Oracle BI 11g

    Hello,
    I'm trying to compare the PO status of two systems and display the ones that donot have the same status. I'm able to join the data-sets with the link but unable to compare them. Can you please tell me?

    Are you referring to BI Publisher 11g links !! Shed some light on your issue.
    -bifacts

  • Spry Data Set will not Refresh with New Data?

    I'm using the Dreamweaver CS4 "Spry Data Set" Wizard and created the following layout on one of my pages:
    In the wizard, under "Specify a Data Source", I chose "HTML", and selected my cfm page that has a simple Table with the datasource below:
    <cfparam name="URL.id_com" default="1">
    <cfquery name="rsTickets" datasource="Ctickets">
    SELECT ticketNum, ticketType, ticketDate, acctNum, firstName, lastName, businessName, city, status, owner, ticketDetails
    FROM tickets
    WHERE acctNum = <cfqueryparam value="#URL.id_com#" cfsqltype="cf_sql_numeric">
    </cfquery>
    When I display the page in IE8, The Spry Master/Detail page will not filter my records based on the URL parameter?
    (Note: All my other "Non-Spry" datasets filter fine by the URL)
    Question: How do I make the Spry data "Refresh" or "Re-run the query" so the data filters properly?
    Thanks,
    jlig

    Ben, Thanks for the reply..
    Here is my Source Data page which I created & selected in the Spry Data Wizard: http://cerberus.clearwave.com/jerry/Spry2.jpg
    (this page takes my query, filtered by the URL Acct field and makes a simple table to feed the Spry Wizard)
    - In the Spry Data Wizard, I selected the file and it properly found the table data: http://cerberus.clearwave.com/jerry/Spry3.jpg
    - Then I clicked Next and changed a few of the field types: http://cerberus.clearwave.com/jerry/Spry4.jpg
    - Next I chose Master-Detail and used the Acct field to be the Master : http://cerberus.clearwave.com/jerry/Spry5.jpg
    - Lastly, I open up the webpage, click on the Tickets Spry Tab: http://cerberus.clearwave.com/jerry/Spry6.jpg
    As you can see in the picture on this page: http://cerberus.clearwave.com/jerry/Spry6.jpg, the URL parameter is = 3902 which is the Acct number
    being passed from the previous page in my application. (Ex..http://192.168.1.77/COE/salespipeline_mi.cfm?id_com=3902)
    The first one is correct, but once I move to a different Acct number the Spry data will not update to reflect the correct Tickets?
    Once I move to say, Acct 4413, the Spry Tickets Tab does not change or update to reflect this Acct's tickets?
    (see link--> http://cerberus.clearwave.com/jerry/Spry7.jpg)
    Here is my code listing for the Tabbed Webpage: http://cerberus.clearwave.com/jerry/Spry8.txt (see images 6 & 7)
    It seems like I'm missing some kind of "Trigger" or "Requery" or "Refresh" that "Re-runs" the Source Data page (http://cerberus.clearwave.com/jerry/Spry2.jpg)..?
    Thanks again,
    jlig

  • Two data Models in one report

    Hi There,
    I have created two data model for my report. The queries have no relation to each other. Is that possible to put both these in one report with same user parameters. or do u have any better suggestion to do this.
    For Example:
    select count(*) from (select name "Worker" from person
    where start_date between (:P_1) and (:P_2)
    select count(*) from (select name "ADMIN PERSON" from admin
    where start_date between (:P_1) and (:P_2)
    Thanks

    Hi Jagjit,
    I created one report with 2 SQL queries:
    select count(*) from employees where department_id < :P_1
    and
    select count(*) from departments where department_id < :P_1
    And it worked fine. So your report should be OK. By the way, a report has just one "Data Model". It is possible to have 2 or more "Queries" in the data model.
    Navneet.

  • Two Data models in one tile class

    Hi
    I have a requirement where two data models have to be linked by a
    common field and printed as one record in a tile. Is it possible to
    associate two models directly to one tile class.
    Or could you please tell me the work arround.
    Regards
    Ajai C

    Hi Jagjit,
    I created one report with 2 SQL queries:
    select count(*) from employees where department_id < :P_1
    and
    select count(*) from departments where department_id < :P_1
    And it worked fine. So your report should be OK. By the way, a report has just one "Data Model". It is possible to have 2 or more "Queries" in the data model.
    Navneet.

  • Two Oracle databases on one AIX Server - Note working, Pls Help

    Dear Friends,
    I have installed Two SAP systems with Two Oracle Databases on one AIX machine, The Installation of both the systems went fine without any errors, and also i have been able to login to both the systems seperately. (that means i cant start both the systems at a time, its one at a time)
    But the problem is of the Oracle Listener, i am not able to start both the systems with single Oracle Listener processes(tnslistener). I tried all the possible scenarios as mentioned in note 98252 but nothing seems to be of any use so far.
    the thing is i can start either one of the SAP Systems, But my objective is to start both the SAP Systems with one listener processes (LISTENER) and one listener port (1527)
    Or
    you can say i am also ready to keep two different listeners for TWO seperate Oracle databases, I tried doing so as per one of the sap notes in which you have to keep different names of listener and different numbers for listener port for second ORACLE database. I tried doing exactly mentioned in the note but yet unsuccessful...
    Now i am completely lost as what is to be done since its critical i want you to immediately look into it and suggest me the appropriate solution so that i can set up both of my DEVELOPMENT and QUALITY system running...
    To troubleshoot this if you require anything from my side then please feel free to ask me since our functional consultants have to soon start working on the SAP systems.
    Regards
    Ayush

    The note you specified talk about 2 database instances not 2 databases... (I was starting to wonder how you deploy 2 databases), you can have multiple database instances on a DB. The note also give you detailed explanation of the configuration of listener.ora
    Now, if this is the case and you have installed 2 instances (not databases) on the same host and configured the listener according to the note, then you should be able to call R3trans -d from both SID's.. if the R3trans fails please post the contents of trans.log here.
    the thing is i can start either one of the SAP Systems, But my objective is to start both the SAP Systems with one listener processes (LISTENER) and one listener port (1527)
    Then, the configuration of your listener.ora file must be incorrect.
    Regards
    Juan

Maybe you are looking for

  • Can i export a list of all the webpages in my site, enabled and disabled?

    Hey Guys, Can i export a list of all the webpages in my site, enabled and disabled? I saw you could view all pages in the advanced view - but i am not sure if you can then export that as an excel file.

  • Can I Print hyper links in my e-mails?

    HP e-Print is great if i receive an e-mail with an attachment that i want to print.. but what if the sender simply puts a hyper link (to the content under discussion) in the body of the e-mail.  It would be great if in setting up my account i could s

  • Aio_write()

    Hi, I'm making aio_write() calls in a loop 1000 times, and I generate a SIGUSR1 when an aio_write() completes. In the signal handler, I do an aio_return(). At the end of the program, I wait with while(1); However, I face the following 2 problems: [1]

  • Spry expanding region - wrong CSS shows?

    I'm using a series of expanding regions. Via their CSS, I'm displaying one background image in the tab when open, a different one when closed. Two of the regions I have set to start in their opened state. Although they are open, they are displaying t

  • TS2446 How do you reset your security question answers

    I have forgotten my answers to my apple id security questions