Create Timing Source problem in RT deterministic loop

I'm updating an old LV 7.1 vi to run with LV10 and DAQmx.  We have a deterministic timed loop driven by an external 10 kHz clock source.  As I understand, it should be possible to set up this functionality using a timed loop and the DAQmx Create Timing Souce vi.  The attached image shows how I wired it up.
This vi is deployed to a PXI system running LV 2010 with 6608 system timing card (Dev 1).  I'm using counter 1 on the 6608 to create the timing source.  I have an external 10 kHz square wave (5 V p-p)  connected to Src1 (PFI35) on Dev 1.
The problem:  the loop seems to be using a 1 kHz clock, even though I've specified the counter and input for a 10 kHz source.  If I choose a frequency of 20 Hz (500 edge counts for a 10 kHz clock) the actual loop frequency is only 2 Hz.  But, the loop stops if I disconnect the 10kHz signal, so it is somehow using the specified counter !!??  How can this be?  Is there additional counter configuration needed here??  I've verified the external clock signal is exactly 10kHz with an oscilloscope.
Thanks for any thoughts.
Solved!
Go to Solution.
Attachments:
CreateTimingSourceTest.JPG ‏37 KB

OK.  I solved this one.  You need to wire a "1" constant to the period input node of the timed loop.  The default value of "10" will only execute the loop on every 10th clock pulse, hence the factor of 10 decrease in loop frequency.

Similar Messages

  • Timed Loop timing source - Control Loop From Task is too slow

    I'm trying to make a Timed Loop run at a period of 2 ms, with an analog input task running at 50 kHz as timing source. The input analog signal is scaled and fed into a synchronised analog output task on the same multifunction DAQ board. Using the built-in 1 kHz or 1 MHz clock as timing source for the Timed Loop works great, except for a slight time lag between the loop and my AI/AO tasks which over time becomes unacceptable because my task will be running for up to an hour. However, when I use the DAQmx Create Timing Source: Control Loop From Task vi to create a timing source, everything slows down and the fastest loop time I can get is around 20 ms. Any suggestions to get around this would be highly appreciated!
    System: LabVIEW RT 8.0 with DAQmx 8.0 running on an NI PXI-8186; NI PXI-6251 used for analog input.

    You're welcome!
    You can build an array, and if your data is not hugh (100's of MB) this may be the easiest solution. However, we aways suggest implementing the Producer/Consumer Architecture. Keep the PID in the Producer loop, but move the File IO to the Consumer. Also, it  appears that your instrument uses some form of serial communication, so that could cause lags in your system....
    What is your application about in general, what performance are you hoping for, etc?
    Joshua B.
    National Instruments
    NI Services
    NI Support Resources
    NI Training Resources

  • [DAQmx] How to delete a timing source ?

    Everything is in the title.
    I created a timing source in my application, used for defining a hardware frequency control of a timing loop. The problem is that I did not found any VI to delete it, as I would need to modify its parameters.
    Is there a way to clear a timing source ?

    I did the modification that proposed Albert : I modified the VI that creates the timing source for having the task out parameter. To avoid problems for deployment, I saved the file into the project with a new name.
    When clearing the corresponding task, the timing source can be created again, with possibly new parameters. So it works now as expected.
    About Kevin proposal, I also checked that, but it seems that all properties are "read only" . Automatic clear of DAQmx task as proposed by Stuart seems to be done only when the application exits, and I do not want to do that on my RT application (to restart the exe, I think I have no other choice than rebooting, and moreover I have a TCP connection with a remote computer that I cannot close).
    Well, it would be nice that future version of "DAQmx create timing source" using physical counter also inlcudes this task out terminal, or a dedicated VI able to clear the timing source using its name for example.

  • Timed sequence doesn't work right with external timing source

    I'll describe first what I want to accomplish and
    then maybe someone can read further and suggest why the attached VI
    doesn't work. I have a SMU (PXI 4130) that takes differing amounts of
    time to set a current depending on if the setting spans a range
    boundary. I want to be able to make that SMU setting and then wait a
    specific amount of time (sometimes 1 msec). If the SMU takes a little
    longer to return then I want that extra time to come out of the wait
    time. To do this I figured I would need an external time source to
    control a timed sequence to give better than the normal 1 msec
    resolution. So now onto the problems I'm having.
    I've
    got two problems here that I would really appreciate some insight on.
    The attached VI is the subject of both problems (as is the VI is
    worthless, but it illustrates the problem). Note that you need some
    type of DAQ board with a counter on it to run it.
    I can't
    figure out why this timed sequence doesn't work with an external timing
    source. It works mostly as expected (see next problem) with the
    internal source, but fails miserably with the external source. Run the
    VI as is to get a baseline. Then connect the DAQmx Create Timing Source
    VI to the Source Name input of the timed structure. It seems like it
    should run exactly the same both ways.
    Problem 2 (run with the
    internal timing source). The VI should take the same amount of time to
    execute regardless of the input to the Wait VI (within reason of
    course). That's actually the main impetus for this whole exercise. But
    according to the Actual End indicator it runs faster with a longer wait
    time.
    George
    Attachments:
    test timed sequence.vi ‏144 KB

    Hi George, I have been playing with the code that you have posted and I think I am seeing what your concern is with regards to the first problem that you stated.  Without running the code I would expect both internal and external timing to cause the VI to run in the exact same manner, however obviously that is not the case.  I am currently looking into this behavior and I will post you a response as soon as I have an answer for you. 
    As for the second problem, If you look at the manner in which you have coded this VI, a 1ms wait in the first frame will lead to a calculation of 1999ms wait in the second frame, and thus 5 iterations of 1999ms or about 99,995ms total running time.  If you increase the wait in the first frame to say 50ms, then an overall all wait of 1950ms is calculated in the second frame so not the overall iteration time is now 1950 which, over 5 iteration leads to 99,750ms thus as you increase the wait in the first loop the overall loop duration will be less.  This is expected behavior.
    Again I will post back once I have a clarification on the internal vs external timing.
    Chris_K 
    National Instruments
    Applications Engineer

  • Strange DAQmx Timing Source Timed Loop Error

    I have a digital edge counter fed into a timed loop. Everything works fine until I stop the loop, and stop the DAQ task. Once I restart the loop it fails with "resource is reserved". Attached is my code.
    Thanks
    Solved!
    Go to Solution.
    Attachments:
    daqloop.JPG ‏136 KB

    Here is a piece of code to illustrate the issue. If the timing source is created in the loop (it will be created each loop iteration) the error occurs. If it is moved outside the loop, and only created once the issue is resolved. Is there a way to RELEASE the timing source so that it can be created again? If the VI is stopped, this "resource" is released. I want to programatically release it.
    Note the error comes from the timed loop Error terminal that is Probed (50).
    Message Edited by bkb on 10-08-2008 09:52 AM
    Message Edited by bkb on 10-08-2008 09:53 AM
    Attachments:
    ts.jpg ‏57 KB

  • Create a new OSB domain and data source problems

    Hello,
    I noticed a problem while create a new OSB domain with Oracle Service Bus 10gR3 on Solaris 10 (intel-based).
    This domain is composed of two managed servers deployed on a cluster.
    I have configured the JMS reporting data sources to use an Oracle 10g (XE) database (driver Oracle Thin (non XA)) installed on a remote server.
    While trying to start my managed servers, the startup process of these managed servers failed due to a data source problem on "wlsbjmsrpDataSource" or "cgDataSource-nonXA".
    The workaround I found is to delete and recreate (through the WLS console) the data sources "wlsbjmsrpDataSource", "cgDataSource-nonXA" and "cgDataSource".
    In this situation, my managed servers can be started properly.
    Is it a known problem located on the configuration wizard?
    Thanks for your help.

    Hi
    For the answer.
    I fully understand that those datasources are default ones and are mainly related to JMS reporting.
    But my question was probably not well expressed.
    The problem I had is when the domain is created, the managed servers won't start due to problems related to theses datasources.
    The workaround I found is to delete and to create those datasources from the WLS console.
    In this situation, the managed servers are able to be started.
    I want to know if this is a known problem/limitation of OSB 10gR3 with Solaris 10 and Oracle 10g?
    Thanks for your help.

  • Problem creating schema source while using WebService in MessageMapping

    Hi, scenario is RFC2WS.
    Problem that occurs is that when i want to use a method from WebService in MessageMapping XI won't import the structure. I am getting following error. The WSDL is from an external portal on which a WebService is ready to invoke.
    <b>What might be the problem?! </b>
    <i>
    Problem when creating schema source:
    Details
    java.lang.NullPointerException
    STACKTRACE:
    com.sap.aii.utilxi.misc.api.BaseException: java.lang.NullPointerException
        at com.sap.aii.ib.gui.xmleditor.docview.views.XsdSchemaTextable.setSchema(XsdSchemaTextable.java:86)
        at com.sap.aii.ib.gui.xmleditor.docview.views.XsdContainerTextView.setSchema(XsdContainerTextView.java:46)
        at com.sap.aii.ib.gui.xmleditor.docview.views.XsdContainerTextView.<init>(XsdContainerTextView.java:36)
        at com.sap.aii.ib.gui.xmleditor.docview.MultiViewEditor.makeFromTreeDoc(MultiViewEditor.java:216)
        at com.sap.aii.ib.gui.xmleditor.docview.MultiViewEditor.<init>(MultiViewEditor.java:64)
        at com.sap.aii.mappingtool.mf.TransformationPanel.createTargetView(TransformationPanel.java:264)
        at com.sap.aii.mappingtool.mf.TransformationPanel.<init>(TransformationPanel.java:100)
        at com.sap.aii.mappingtool.mf.MappingTool.<init>(MappingTool.java:32)
        at com.sap.aii.mappingtool.api.MappingToolFactory.getInstance(MappingToolFactory.java:96)
        at com.sap.aii.mappingtool.fwutil.util.ToolUtil.restartTool(ToolUtil.java:315)
        at com.sap.aii.ibrep.gui.mapping.xitrafo.XiTransformationView.loadIfrSchema(XiTransformationView.java:274)
        at com.sap.aii.ibrep.gui.mapping.xitrafo.XiMappingView$LinkDataTarget.setData(XiMappingView.java:378)
        at com.sap.aii.ibrep.gui.mapping.xitrafo.XiTransformationView$MessageDataTarget.setData(XiTransformationView.java:973)
        at com.sap.aii.utilxi.swing.toolkit.dnd.DataTarget.setData(DataTarget.java:514)
        at com.sap.aii.utilxi.swing.toolkit.dnd.DataTarget.drop(DataTarget.java:462)
        at java.awt.dnd.DropTarget.drop(Unknown Source)
        at sun.awt.dnd.SunDropTargetContextPeer.processDropMessage(Unknown Source)
        at sun.awt.dnd.SunDropTargetContextPeer.access$800(Unknown Source)
        at sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchDropEvent(Unknown Source)
        at sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchEvent(Unknown Source)
        at sun.awt.dnd.SunDropTargetEvent.dispatch(Unknown Source)
        at java.awt.Component.dispatchEventImpl(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.processDropTargetEvent(Unknown Source)
        at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Window.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)
    STACKTRACE:
    java.lang.NullPointerException
        at com.sap.aii.utilxi.xsd.api.XsdHandler.saveSchemaToDocument(XsdHandler.java:61)
        at com.sap.aii.ib.gui.xmleditor.docview.views.XsdSchemaTextable.setSchema(XsdSchemaTextable.java:82)
        at com.sap.aii.ib.gui.xmleditor.docview.views.XsdContainerTextView.setSchema(XsdContainerTextView.java:46)
        at com.sap.aii.ib.gui.xmleditor.docview.views.XsdContainerTextView.<init>(XsdContainerTextView.java:36)
        at com.sap.aii.ib.gui.xmleditor.docview.MultiViewEditor.makeFromTreeDoc(MultiViewEditor.java:216)
        at com.sap.aii.ib.gui.xmleditor.docview.MultiViewEditor.<init>(MultiViewEditor.java:64)
        at com.sap.aii.mappingtool.mf.TransformationPanel.createTargetView(TransformationPanel.java:264)
        at com.sap.aii.mappingtool.mf.TransformationPanel.<init>(TransformationPanel.java:100)
        at com.sap.aii.mappingtool.mf.MappingTool.<init>(MappingTool.java:32)
        at com.sap.aii.mappingtool.api.MappingToolFactory.getInstance(MappingToolFactory.java:96)
        at com.sap.aii.mappingtool.fwutil.util.ToolUtil.restartTool(ToolUtil.java:315)
        at com.sap.aii.ibrep.gui.mapping.xitrafo.XiTransformationView.loadIfrSchema(XiTransformationView.java:274)
        at com.sap.aii.ibrep.gui.mapping.xitrafo.XiMappingView$LinkDataTarget.setData(XiMappingView.java:378)
        at com.sap.aii.ibrep.gui.mapping.xitrafo.XiTransformationView$MessageDataTarget.setData(XiTransformationView.java:973)
        at com.sap.aii.utilxi.swing.toolkit.dnd.DataTarget.setData(DataTarget.java:514)
        at com.sap.aii.utilxi.swing.toolkit.dnd.DataTarget.drop(DataTarget.java:462)
        at java.awt.dnd.DropTarget.drop(Unknown Source)
        at sun.awt.dnd.SunDropTargetContextPeer.processDropMessage(Unknown Source)
        at sun.awt.dnd.SunDropTargetContextPeer.access$800(Unknown Source)
        at sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchDropEvent(Unknown Source)
        at sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchEvent(Unknown Source)
        at sun.awt.dnd.SunDropTargetEvent.dispatch(Unknown Source)
        at java.awt.Component.dispatchEventImpl(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.processDropTargetEvent(Unknown Source)
        at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Window.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)
    </i>

    Hi ,
    Can you please cross check these steps carefully.
    1. After importing the WSDL using external definition, did you checked msges Tab for for the included msg to see what msges you have added.
    and be careful that the namespaces of the messages are part of the WSDL description and can differ from the namespace of the external definition object.
    2.Did you created message Interface corresponding to the message types from the external definition? it is needed to route the message to webService. Here select message types of the external definition object. Assign input and output messages.
    3. Creating a SOAP Receiver Channel
    To call the Web service, you create a communication channel with type SOAP and
    direction receiver in the Integration Directory. The obligatory parameters in the
    configuration are Target URL and SOAP action. You get the values you have to enter
    here from the WSDL file.
    Creating a SOAP Sender Channel
    When you create a SOAP sender channel you have to define the namespace and the
    name of a message interface. Since no input help is provided, you copy and paste the
    values from your Integration Repository.
    Select the Quality of Service according to your interface type. If you are using a
    synchronous interface, select Best Effort. Otherwise, select Exactly Once or EOIO.
    Hope this will help you to figure out.
    Regards
    Aashish Sinha
    PS : reward points if helpful

  • Problem in creating SRM source system in BW

    hi all,
    as much i knw. i can say that there are 4 steps in creating SRM source system in BW :-
    1) creating logical system for SRM client
    2)creating logical system for BW client
    3)naming background user
    4)creating SRM source system in BW.
    now i am facing some basic problems....
    1) I logon to SRM system using client 001 so do i need to assign SRM logical system i am creating to this client only.
    2) same way i logon to BW using client 800, so do i need to assign BW logical system to client 800.
    3)how can i create background users for link to SRM.
    4)does anything needs to be done in RFC.

    Hi,
    Once you read the following help on creating source system,Most of teh doubts will be cleared :
    http://help.sap.com/saphelp_nw2004s/helpdata/en/ac/4a4e38493e4774e10000009b38f889/frameset.htm
    http://help.sap.com/bestpractices/crossindustry/businessintelligence/v131/BBLibrary/documentation/B84_BB_ConfigGuide_EN_DE.doc
    With rgds,
    Anil Kumar Sharma .P

  • Creating new Source system problem

    Hi there,
    System: BW 3.5 client 010, want  to connect to R/3 4.6c Sandbox client 0101
    we just refreshed our BW 3.5  sandbox with current production data. Now we want to create the source system via RSA1 to point to R/3 Sandbox. When we try to create this we get this new error. I am not sure why it is
    Error:
    Logical system BIX010 exists already
    Message no. R3222
    Diagnosis
    The SAP Business Information Warehouse BIX010 is already connected to the source system. A multiple connection is not possible.
    For some reason, it is reading as BIX010(talking to the system itself) - BW Sandbox systems, it should be doing the source system creation for SBX010 not BIX010 (talking to the system itself)
    I tried to create the system manually and automatically, still no luck.
    I cannot see SBX010 source system in teh RSA1, I am afraid it might be in the database table and not showing up in the transaction RSA1, does anyone know the table that it has this information, so I can se16 and look at the entries?
    Does anyone knows where to look for?
    Thanks in Advance
    Kumar

    Goto SM50 and check for ABAP connections. Look for SBX010. If you don'T find it here you have to create it. Check also BIX010 if it'S connected to the right system.
    Regards,
    Juergen

  • Daqmx timing source issue

    I have attached zip containing 2 folders. Both are doing same functionality but one using software timed 50ms loop. the other one is hardware based timing source.
    I run , quit & re-run the application. Both the applications works well. But the ISSUE folder containg application hardware timing sourced app, after quit, the EXE process keeps running in the background & needs to be stopped using Ctrl+Alt+Del invoking the task manager.
    As many times I click on to run the app, it works ok only, but holding the EXE process in background.
    Hope someone helps to resolve this. Im using LV2009 + PCI 6229.
    Thanks,
    Kousy
    Attachments:
    LV Exec Process Termination Issue.zip ‏1948 KB

    Hi,
    I found the solution to the problem: using the latest NI-DAQmx drivers v.8.0.
    It was directly related to my M-series card (PXI 6221) not correctly working in my PXI chassis due to apparently bad drivers or a bug in version 7.5.
    Christoph

  • Create data source -- table does not exist in data dict.

    Hello Experts,
    I'd like some suggestion on creating customized data source in SAP R/3.
    First, I created a program for extracting data in to a structure layout and then created an InfoSet to link with that program.
    Finally, I chose to create a data source for transaction data using "Extraction from Query".
    Once I save the datasource, there was a message like "Table SY does not exist in data dictionary."
    I checked that program and InfoSet. I did not found any compile error.
    I wonder how I could investigate this kind of error.
    I tried to create another InfoSet calling other program and then create a datasource. There was no error.
    My first assumption was there is something wrong in the program.
    Any suggestion on this would be appreciated.
    Thank you very much.
    -WJ-

    Thanks for your suggestion Pravin.
    However, I found the problem already. This is because the package assigned to a program and to a structure layout were different. After I reassigned the correct package name to the structure layout (same package name as assigned to the program), my datasource could be created.
    This problem has been resolved.
    -WJ-

  • Loadjava fails; create java source succeeds

    When using loadjava to load a Java class into the database I receive the following error:
    C:\OEMNT\bin>loadjava -user us/pw@db -verbose -resolve HelloWorld.class
    initialization complete
    loading : HelloWorld
    Error while loading HelloWorld
    ORA-00942: table or view does not exist
    creating : HelloWorld
    Error while creating class HelloWorld
    ORA-29506: invalid query derived from USING clause
    ORA-00942: table or view does not exist
    resolver :
    resolving: HelloWorld
    Error while resolving class HelloWorld
    ORA-04043: object HelloWorld does not exist
    loadjava: 3 errors
    When using the CREATE JAVA SOURCE command from SQL the Java source + Class is created without problems.
    It seems loadjava wants to insert or check something in a table. But what table?

    Hi,
    Omitting -jarasresource is the first step.
    You probably need to specify -recursivejars in cas there are jars in your jars.
    Also use -genmissing option in case some classes are still missing in the jars files you've loaded.
    Kuassi http://db360.blogspot.com

  • Error when creating a source of supply list via me01 and/otr me05

    Dear expert,
    We use SAP R/3 4.6c release.
    I'm trying to create a source of supply that uses a contract.
    I get an error message 'Object does not exist'.
    When I look at the details of this messsage I see it is
    Message OL 826 
    Diagnosis :
    You tried to create an instance of the object type BUS2053 with the key
    0000000000001026311990. No instance of this kind exists.              
    I have checked SW01 and  regenerated the object type BUS2053. The generated object looks ok, but when I test it it still comes up with the same error message.
    What did I forget?

    HI ,
    This is a program error .
    Implement Note 683767.
    According ti this note it will solve the following problem which is similar to your problem
    "When you try to maintain a source list using Transaction ME01, the system generates a termination message with number OL826 'You tried to create an instance of the object type BUS2053 with the key. No instance of this kind exists'. "
    Hope it helps you .
    Regards,
    Anupam

  • Not enough memory for Data Provider-Error while creating Data Source

    Hi,
    I am loading data into Master Data_Attribute InfoObject I am getting following error message while creating Data Source under "Proposal" Tab
    "Not enough memory for Data Provider"
    My Master Data InfoObject having 65 attributes
    My CSV file having 15,00000 records
    I am using BI 7.0 version
    If anybody faced this problem. Please share with me
    Thanks.

    Hi
    Here the problem with the space so plz contact ur BASIS people to increase the spae for particular object.

  • Creating new source system in bw

    hi all
    i have got one problem with creating source system to bw from r/3,i have created RFC connection to bw and r/3
    and i was trying to create source system manually and automated but it is not activating i'm getting fallowing error
    ...the fallowing errors occurred in the source systemrsar--mess no 374
    ....result of destination check timeout rsarmess no 375
    can any one help me on this please

    Hi!
    Check out the connection with defined RFC.if it is ok,then check out the privliges for the user using which yuor trying to create the source system.
    Best Regards
    Sunil.

Maybe you are looking for