Getting just the date out of MySQL with CF8

I have a mysql table that includes a column 'intakeDate' set to the data type of DATE. When entering, it creates a record of YYYY-MM-DD. When I query the database with Coldfusion for the date of 2004-06-10, I get the result of {ts '2004-06-10 00:00:00'}. Fine and dandy for people in my timezone, but I found that if my users are in any timezone west of Eastern, the date slips back to the day before and their 'time stamp' is 23:00:00 (or appropriate offset). How can I get Coldfusion to just return to my Flex application only the value inside the table and not its ts version with midnight attached. Again, the table is set to only DATE and not TIMESTAMP or DATETIME so there are no time values entered. Also, mind you that this is being sent to a Flex application's manage class. Since some of this information deals with shot records and medical records, date is very important.
I tried the MySQL function of DATE but it doesn't change the output.
<cfquery name="list" datasource="#request.dsn#">
    Select DATE(intakeDate) as intakeDate FROM pets
</cfquery>
RESULTS IN:
{ts '2010-12-29 00:00:00'}   {ts '2010-11-18 00:00:00'}    {ts '2009-12-28 00:00:00'}   {ts '2009-10-03 00:00:00'}   {ts '2009-07-13 00:00:00'}   {ts '2009-10-03 00:00:00'}    {ts '2008-06-01 00:00:00'}   {ts '2008-02-09 00:00:00'}   {ts '2003-03-01 00:00:00'}
{ts '2004-06-10 00:00:00'}   {ts '2003-03-01 00:00:00'}    {ts '2004-06-01 00:00:00'}   {ts '2001-06-01 00:00:00'}   {ts '2010-04-01 00:00:00'}   {ts '2011-04-06 00:00:00'}    {ts '2011-04-06 00:00:00'}    {ts '2004-11-01 00:00:00'}    {ts '2010-05-04 00:00:00'}, etc
I've been googling it all day and nothing I see if working.
Thank!

Thanks for pointing that out. I was playing DATE_FORMAT to convert to a string
DATE_FORMAT(p.intakeDate, '%Y-%m-%d') as intakeDate

Similar Messages

  • How do i get just the photos out of an iCloud backup?

    I recently had to restore from an icloud backup, but it stopped importing photos when i did a sync with my mac, I know the photos are in iCloud i just need to get them back withut doing yet another restore!!
    They do not appear in PhotoStream and are not on iCloud.com
    Any Help?

    Welcome to the Apple Community.
    You cannot selectively restore data from a backup, it's all or nothing.

  • [SAP CRM] How to get just the hit count of objects with a database query?

    Hello,
    i need help. For performance reasons I dont want to get the query result with all the objects from the database. I just want to send a request / query to the database in order to know how many entries are there available with my search parameters.
    At the moment I load all the objects via class cl_crm_bol_dquery_service and the method get_query_result in an internal collection. And after that I call the method size in my collection object. But to gain better performance I just want to know the count. With standardized select statements I would take the select count statement, but in this case it is not possible.
    So I tried to call the retrieve_hit_count method, but I will receive the exception cx_sy_no_handler anytime.
    I would be very pleased to receive an answer <removed by moderator>.
    Thank you very much!
    Marcus
    Edited by: Thomas Zloch on Feb 16, 2011 1:45 PM - priority normalised

    It will be 0 before the call method statement and 1 during exception handling.
    The exception starts in CL_CRM_BOL_DQUERY_SERVICE=>RETRIEVE_HIT_COUNT when the system tried to perform the following statement:
      Return hit count if already available
        rv_hit_count = me->handle->get_hit_count( ).
    The handle variable seems to be empty. But why?
    Edited by: Marcus Findeisen on Feb 17, 2011 9:24 AM
    Edited by: Marcus Findeisen on Feb 17, 2011 9:27 AM

  • My mozilla firefox search engine always defaults to amazon...how do I get just basic mozilla firefox search screen with out the default to amazona?

    My mozilla firefox search engine always defaults to amazon...how do I get just basic mozilla firefox search screen with out the default to amazon.com for everything ?

    Change the search plugin in the search bar to something else and you can search with that.

  • How to get/process the Data from XMLSocket?

    Hello All,
    I'm using Adobe Professional CS6, and Actionscript 3.0.
    To start with I have a C# program that basically just feeds data out from a Server in the form of XML data. I then have a Flash program that should receive the data and then I'll do some stuff with it. We had this working in Actionscript 1.0 but we need to upgrade the code to Actionscript 3.0, but instead of just trying to convert stuff over to the new  Actionscript version, I'm going to re-write the program.
    So far I've basically just defined some EventListeners most of which I found examples of online for using XMLSockets. As of now the Flash program will connect an XMLSocket to the Server that is feeding out the data, and the server feeding the data resends new data every 5-10 seconds or so.
    So when a grouping of XML Data comes in on the port I defined, the following Function gets executed for handling the incoming data. For my EventListener's Function for "socket.addEventListener(DataEvent.DATA, dataHandler);"  ("socket" is defined as --> var socket = new XMLSocket(); ). So when the new data comes in it executes the above function.
    The trouble I'm having is declaring a new variable of type "XML" and then using that variable to pull out individual "nodes/children" from the incoming XML Data. I found an example online that was very close to what I want to do except instead of using an XMLSocket to get data constantly streaming in they use the "URLLoader" function to get the XML data. I know I'm receiving the XML data onto the server because if I set the (e: DataEvent) variable defined in the function "head" to a string and then run a trace on that I can see ALL of the XML data in the "Output Window".
    But I can't seem to be able to set (e: DataEvent) to a XML variable so I can access individual elements of the XML data. The example I found (which uses the URLLoader instead) uses this line (myXML = new XML(e.target.data);)  to set the XML Variable, which won't work for mine, and if I try to do the same thing in my code it simply prints this for as many lines as there is XML data --> "[object XMLSocket]"
    MY CODE:
    *I left out the other Functions that are in my code for the EventListeners you'll see defined below, except for the one in question:
                             ---> "function dataHandler(e: DataEvent):void"
    import flash.events.IOErrorEvent;
    import flash.events.ProgressEvent;
    import flash.events.SecurityErrorEvent;
    import flash.events.DataEvent;
    var socket = new XMLSocket();
    socket.addEventListener(Event.CONNECT, connectHandler);
    socket.addEventListener(Event.CLOSE, closeHandler);
    socket.addEventListener(DataEvent.DATA, dataHandler);
    socket.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
    socket.addEventListener(ProgressEvent.PROGRESS, progressHandler);
    socket.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);
    var success = socket.connect('server.domain.name.local',3004);
    The code in this function was used from an example I found online as described above in the post: 
              LINK --> http://www.republicofcode.com/tutorials/flash/as3xml/
    // The Commented out code (*in blue) will show ALL the xml data inside the "Output Window":
    function dataHandler(e: DataEvent):void {
              // var myStr:String = e.data;
              var xml:XML;
              xml = new XML(e.target.data);  //<--- THIS DOESN"T WORK (I DONT THINK 'target' IS CORRECT HERE)??
              if (socket.connected)
                        // trace(myStr)
                        trace(xml);
    The Output from the line "trace(xml)" will show this data below in the "Output Window" (*FYI There should be 6 lines of XML Data on each 'update'):
    [object XMLSocket]
    [object XMLSocket]
    [object XMLSocket]
    [object XMLSocket]
    [object XMLSocket]
    [object XMLSocket]
    Could someone show or point me in the right direction on this. I want to be able to access specific parts of the incoming XML Data.
    Here's some sample XML Data:
    <MESSAGE VAR="screen2Display" TEXT="CSQ_1" />
    <MESSAGE VAR="F1_agentsReady" TEXT="111" />
    <MESSAGE VAR="F1_unavailableAgents" TEXT="222" />
    <MESSAGE VAR="F1_talkingAgents" TEXT="333" />
    <MESSAGE VAR="F1_callsHandled" TEXT="444" />
    <MESSAGE VAR="F1_ABDRate" TEXT="555" />
    Any thoughts or suggestions would be greatly appreciated..!
    FYI:
    I'm VERY new to Actionscript/Flash Developing (*about a week now), so go easy on me haha...
    Thanks in Advance,
    Matt

    Hey Guys, thanks ALOT for the replies!!
    Andrei1 and Sinious,
    The code I show above is actually just what I found in an example online, and its what i was trying to show you what "they" used
    in the URLLoader example. I wasn't trying to use URLLoader, but it was the closest example I found online to  what I was trying to
    do in terms of processing the XML Data, and not how I read it in. So XMLSocket IS definetly what I'm trying to use because the Server
    I'm receiving the XML Data from "pushes" it out every 10 seconds or so. So yea I definatly want to use XMLSocket and not URLLoader...
    Sorry for the confusion...
    The example you show:
         var xml:XML = new XML(e.data)
    Is actually what I had in my original code but I couldn't get it to show anything in the "Output Window" using the trace() method on
    it, so I assumed I wasn't doing it correctly...
    What my original code was in the "dataHandler()" Function was this:
    function dataHandler(e: DataEvent): void
        var xml: XML = XML(e.data);
        if (socket.connected)
            trace(xml);
            msgArea.htmlText += "*socket.connected = TRUE\n"
        } else {
            msgArea.htmlText += "*socket.connected = FALSE\n"
    OUTPUT:
    And what I get when I run a Debug on it is, in the "msgArea", which is just a simple Text Box w/ Dynamic Text on the main frame it prints:
        "socket.connected = TRUE
         socket.connected = TRUE
         socket.connected = TRUE
         socket.connected = TRUE
         socket.connected = TRUE
         socket.connected = TRUE"
    It prints that message 6 times in the msgArea for each XML Message that comes in (*which I think 6 times because there
    are 6 "sections/nodes" in the XML Data). But then NOTHING prints in the "Output Window" for the "trace(xml)" command.
    Not sure why nothing is showing in the "Output Window", maybe the XML is not complete? But I could see data in the "Output
    Window" when I set "e.data" to a string variable, so I know the Data is reaching the program. Since I could see the XML Data in
    a string variable, does that mean I can rule out that the XML Data coming in is considered a "complete" XML Document?
    Because I wasn't sure if to be considered a complete XML Document it would need to have this included in the message..?
                        "<?xml version="1.0"?>"
    For the tests I'm running, one single XML message which is being pushed out from the server looks like this:
    <MESSAGE VAR="screen2Display" TEXT="Call_Queue_1" />
    <MESSAGE VAR="F1_agentsReady" TEXT="111" />
    <MESSAGE VAR="F1_unavailableAgents" TEXT="222" />
    <MESSAGE VAR="F1_talkingAgents" TEXT="333" />
    <MESSAGE VAR="F1_callsHandled" TEXT="444" />
    <MESSAGE VAR="F1_ABDRate" TEXT="555" />
    Would I need to include that "Header" in the XML message above?
                   i.e. "<?xml version="1.0"?>"
    Or do I need to be more specific in the trace command instead of just using "trace(xml)"?
    Also yes, I already have a Flash Policy file setup and working correctly.
    Anyway, thanks again guys for the replies, very much appreciated!!
    Thanks Again,
    Matt

  • How to get all the data stored on a table?

    Hi.
    I'm tryng to get all the data stored on a database table but I'm losing in trouble. I've looked for a soloution to my problem in the forums but each post I follow related to this issue gives me a different way to solve the problem and no one works :(
    I suppose I have to call the getAllRowsInRange() method from my ViewObject class. But how can I get an instance of my ApplicationModule in order to get the corresponding ViewObject?
    I think I messed my head a lot.
    Could someone help me please?
    Thanks in advance.

    Thanks for your answer.
    However, there are some things that I don't understand. I will look the book but why is necessary to create another ApplicationModule? The fact is that my application just have one ApplicationModule.
    Apart from that, I have tried your suggestion and I've obtained the quite little friendly response that follows:
    javax.faces.FacesException: #{backing_pruebaFilas.commandButton1_action}: javax.faces.el.EvaluationException: oracle.jbo.ConfigException: JBO-33001: No se ha encontrado el archivo de configuración /DatosViewObj/common/bc4j.xcfg en classpath
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:98)
         at javax.faces.component.UICommand.broadcast(UICommand.java:332)
         at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:287)
         at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:401)
         at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:95)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:110)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:213)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:228)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:197)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:123)
         at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:103)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:162)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:620)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:369)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:865)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:447)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:215)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: javax.faces.el.EvaluationException: oracle.jbo.ConfigException: JBO-33001: No se ha encontrado el archivo de configuración /DatosViewObj/common/bc4j.xcfg en classpath
         at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:150)
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:92)
         ... 24 more
    Caused by: oracle.jbo.ConfigException: JBO-33001: No se ha encontrado el archivo de configuración /DatosViewObj/common/bc4j.xcfg en classpath
         at oracle.jbo.client.Configuration.loadFromClassPath(Configuration.java:367)
         at oracle.jbo.common.ampool.PoolMgr.createPool(PoolMgr.java:284)
         at oracle.jbo.common.ampool.PoolMgr.findPool(PoolMgr.java:539)
         at oracle.jbo.common.ampool.ContextPoolManager.findPool(ContextPoolManager.java:165)
         at oracle.jbo.client.Configuration.createRootApplicationModule(Configuration.java:1498)
         at oracle.jbo.client.Configuration.createRootApplicationModule(Configuration.java:1476)
         at view.backing.PruebaFilas.commandButton1_action(PruebaFilas.java:100)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:146)
         ... 25 more
    At that point, I think a better explanation of my purpose could be helpful. What I'm trying to do is just create a simple page with a command button, and in its action method get all the data stored in the rows of the table. I've seen a possible solution that I understand:
    DCIteratorBinding iter = getIterator("DatosViewObj1Iterator");
    System.out.println("Iterator Binding: "+iter);
    int startRange = iter.getRangeSize();
    iter.setRangeSize(-1);
    Row[] rows = iter.getAllRowsInRange();
    iter.setRangeSize(startRange);
    but the problem is that I don't know what is the class the method getIterator belongs to.
    Could you help me with this last piece of code? If not, I accept, of course, any suggestion. I am absolutely stuck.
    Thanks and regards.

  • How to get ONLY the data shown in the plot area (Chart)

    My chart history length are 120000, often I don't need to save the whole
    buffer, just the data shown in the plot area?
    Richard Pettersen

    Hi Richard,
    you haven't said which version of LabVIEW you're using, so I've assumed 6.1, although this should be fine for older versions too.
    I put down a chart with a scrollbar, so I could go through the old data, and put an indicator attached to the x-scale->Range->minimum and x-scale->Range->maximum. These followed the displayed elements in the chart as I scrolled through the data. You can therefore link in the chart history (history data property of the chart) with a array subset to retrieve the appropriate portion.
    Be aware though. The minimum and maximum that the chart is showing on the x-scale may not be a part of the history data. E.g. if I set the history length to 1000 points, and produce on the first run, 1000 points, then my minimum and maximum are a
    t say 899 and 999. I then produce a second set of data, 1000 points long, and my min and max move to 1899 and 1999. As my history data is only 1000 long, I can scroll back to 1000 OK, but my min and max used as indexes don't relate anymore. The array of data is from 0 to 999, but my indexes can run from 1000 to 1999. So I have to add in a check that sees how much data is available before attempting to index, and then it's down to the flow of the program to try to work out where the data actually is (I'll leave that one to you - you'll need to keep track of the history data compared to the maximum (shown just after a point is added though this then makes a mess of your data! - possible to keep a track of new minimum when adding new data : the maximum (which will show once new data goes on) minus the history length gives the minimum that can be scrolled to - subtract this from all max's and min's to get real offset into the data - history length can be got from the history data and an a
    rray size sub .vi)
    Obviously there's no problem if you're clearing the graph everytime you either plot new data, or reach maximum capacity on the history data as the indexes return to zero.
    Hope that helps
    S.
    // it takes almost no time to rate an answer

  • CR 8.5, how can I pass just the date, when it wantes date and time?

    I have a stored procedure that is passes a date parameter.
    When CR prompts me for the date, it also wants the time.
    Either I have to pass CR the time of get CR to just look at the date.
    When I run the report with a date and time, CR returns no records.
    When I run the SP in a SQL query with just the date, it returns data.
    I'm CR 8.5 and MS SQL Server 2005
    Any advice would be appreciated.
    Thanks
    Kelvin

    You can pass the parameter values as follows for datetime.
    01/31/2008 00:00:00 which will returns the data in the report.
    If you either not interested to pass the time everytime, you can achieve it through Add Command option in the datasource expert and trigeer the SP. (i'm not sure Add Command is available with CR 8.5)
    Hope this helps!!

  • Blackberry 10 the data isn't compatible with the version of the device software that you are currently running

    Hi,
    my update to 10.3.1.1565 messed the handwriting input up on my phone.  so I tried to downgrade to 10.2.1, upon doing so all my files were wiped,  however I thought I was being smart by doing a complete backup this morning while running 10.3.1.1565 prior to attempting the os downgrade to 10.2.1 using BlackBerry Link, 
    Anyway I had to restore my device back to 10.3.1.1565 and now when I attempt to do a restore using the .bbb ( backup ) which I created earlier on today i.e getting the following error message:
    blackberry 10 the data isn't compatible with the version of the device software that you are currently running
    the software versions on my phone now and the software version when I did my backup are exactly the same 10.3.1.1565.  I'm able to restore my user files and apps ect, as it offers to do a partial restore,., but my contacts, and remember files are now gone.  I NEED THESE.  how do I get these back..
    please help..
    Thanks,
    GeoYeo - Free Local classifieds - Built for Blackberry 10, if you like it please Rate It and Share it!
    Solved!
    Go to Solution.

    Hi,
    I figured it out.  so I figured I would post.  Apparently BlackBerry pulled the 10.3.1.1565 update.  anway not sure what happened butI ended up usng Shenshi and grabbing an update from a different carrier, upon doing so I am now able to do a complete restore using my old BBB file, 
    GeoYeo - Free Local classifieds - Built for Blackberry 10, if you like it please Rate It and Share it!

  • Using menu ring to select data out of database with SQL

    I have a database setup with two tables and six columns of data. One of the columns contains an array of data. I would like to be able to read the data out with two ring controls. One ring to select the table and the other to select certain rows of data based on the value in one row. I want the data charts to update automatically inside a loop when the ring values are changed. I started by modifying the playback(fetching) example. The problem is when I change the menu item, I am not closing the first connection before opening a new one. Should I be using the running stored procedures with parameters method to accomplish this task?? I suppose all of the data could be read and then sorted out of the result.
    Attachments:
    myPlayback_rev2.vi ‏120 KB

    unclebump,
    There are two possible solutions. If you are using LabVIEW 6.0.x, then you will need to put a while loop around all of your program and poll to see if the values of the ring controls have changed (can be done with a shift register). If nothing has changed, then have a case structure that does nothing. If the values have changed, then get the new data.
    If you are using LabVIEW 6.1, then you can check for a value changed event on the ring controls. Everything else from the 6.0.x version from above would be the same. This eliminates the polling which reduces processor use.
    Randy Hoskin
    Applications Engineer
    National Instruments
    http://www.ni.com/ask

  • How do I know when the buffer flushed all the data out?

    I am using a very high sampling rate (500000 Hz) and acquire 1024 data points continuously.   It takes 370000 data points in 10 second.   I use a counter to help with the retrigger PFI line.   I have a huge buffer so that I can make sure that the buffer is not overflowed.  The code is attached below.  My problem is that the data acquisition is done so fast (in 10 seconds)  but the processing of the data is not.  In :nEvent, I basically save and plot the data.  The saving process is not slow.   However, our videocard is so SSSSLOOOW and can not keep up with realtime data display.    After the user is done collecting the data, they do not want to wait for the screen to plot the data from the buffer.   So after the data collection is done, I basically stop the plotting process but we still need to flush the data out from the buffer for saving.  My question is that how can I tell when the buffer is empty.
    Thanks,
    Yajai
    m_task = std::auto_ptr<CNiDAQmxTask>(new CNiDAQmxTask("aiTask"));
    m_counter = std::auto_ptr<CNiDAQmxTask>(new CNiDAQmxTask("coTask"));
    m_task->Stream.Timeout = -1;
    //Create a channel
    m_task->AIChannels.CreateVoltageChannel(physicalChannel, "",
    static_cast<DAQmxAITerminalConfiguration>(DAQmxAITerminalConfigurationRse), minimum, maximum,
    DAQmxAIVoltageUnitsVolts);
    m_task->Timing.ConfigureSampleClock(counterSource, sampleRate,DAQmxSampleClockActiveEdgeRising,DAQmxSampleQuantityModeContinuousSamples, samplesPerChannel);
    m_task->Stream.Buffer.InputBufferSize = samplesPerChannel * 2000;
    m_counter->COChannels.CreatePulseChannelFrequency(counterChannel, "coChannel", DAQmxCOPulseFrequencyUnitsHertz, DAQmxCOPulseIdleStateLow, 0, sampleRate, 0.5);
    m_counter->Timing.ConfigureImplicit(DAQmxSampleQuantityModeFiniteSamples, samplesPerChannel);
    m_task->Control(DAQmxTaskVerify);
    m_counter->Control(DAQmxTaskVerify);
    m_counter->Triggers.StartTrigger.ConfigureDigitalEdgeTrigger(
    referenceTriggerSource, DAQmxDigitalEdgeStartTriggerEdgeRising);
    m_counter->Triggers.StartTrigger.Retriggerable = true;
    m_taskRunning = true;
    m_counter->Start();
    // Set up the graph
    m_Graph.Plots.RemoveAll();
    for (unsigned int i = 0; i < m_task->AIChannels.Count; i++)
    m_Graph.Plots.Add();
    m_Graph.Plots.Item(i+1).LineColor = m_colors[i % 8];
    // Create Multi-channel Reader
    m_reader = std::auto_ptr<CNiDAQmxAnalogMultiChannelReader>(new CNiDAQmxAnalogMultiChannelReader(m_task->Stream));
    m_reader->InstallEventHandler(*this, OnEvent);
    m_reader->ReadMultiSampleAsync(samplesPerChannel, m_data);

    Yajai,
    I'm a little confused about your acquisiton. Do you intend for it to be
    finite, or continuous? I'm also unclear about your rates. You state
    that you are acquiring 1024 samples at 500kHz, yet you get only 370k
    samples in 10 seconds. Are you periodically acquiring 1024 samples at
    500kHz?  Do you do any reads other than the final m_reader->ReadMultiSampleAsync(samplesPerChannel, m_data)? Could you provide the code where you stop the plotting process?
    Thanks,
    Ryan V.
    Ryan Verret
    Product Marketing Engineer
    Signal Generators
    National Instruments

  • Fastest way to extract data out of xml with following constraints.

    10.2 on linux
    xml files are being dropped off into a queue. in the queue the documents must be stored as clobs so that control can be given back to the client as soon as possible.
    once in the queue we would like to extract all the data from the xml and place it in relational staging tables. the data is then moved from these tables into production.
    the only thing that can change is what happens between the queue and the staging tables. currently i am just using extract statements to pull the data out of the clob.
    the files are around 20mb and currently take over 20 minutes to process which is way too long.
    i looked at DBMS_XMLSTORE but we cannot alter the xml format.
    i looked at Oracle text but if i understand it correctly, we would have to rebuild the entire index after every new queue item.
    i have very little experience with xml so i want to make sure i know all my options.
    from what i can tell my only option is to take the clob and let xml db parse it into o-r tables. ...but even that seems like a horrible waste.
    is there anything else i can do? any pointers?
    thanks for any help!
    by the way...this forum has been of great help. my only problem is that i don't seem to ask the right questions at the right time.

    Chris
    Most people seem to find that allow XML DB to persist the XML using the object based storage and nested tables and then using insert as select operations is the most effective way to do what you want. There are a number of threads on how to best do this..
    The question to ask is do you really need the relational staging tables. If you read through the forum you'll see that once the XML has been persisted as objects, and the XML objects have been stored using a nested table storage models you can easily create relational views to represent the staging tables.
    This process will work very well if there are no updates to the staging tables. Effectively you will process the XML once, when you insert into the Schema based tables, and then use the relational views as the source for the migration from staging to production.
    If you haven't already done so, reading the following posts will help you with this
    XMLType column based on XML Schema: several questions
    http://forums.oracle.com/forums/thread.jspa?threadID=347820&tstart=0
    problem with sql/xml
    XML Query Performance on Nested Tables
    Basically you'll need an XML Schema that describes your XML and you'll need to set up nested table storage for each of the collections in your XML Schema in order to the required performance when using the views.
    The easiest way will be to use the default table that is creted when registering the XML Schema and the annotation xdb:storeVarrayAsTable="true" and then ensure that you sequence each collection correctly.

  • How can I get just the text to resize, rather than the entire web page?

    I used to be able to re-size just text on a webpage by typing Ctrl + +. Today, the entire webpage re-sizes, and when I move to another page it reverts. (I see this mostly in Facebook.). Why did this change, and can I go back to having just the text re-size?

    ''How can I get just the text to resize -- zoom text only''
    steps
    #"Alt" if no menu bar, then
    # View > Zoom > Zoom Text Only
    Zoom text of web pages - MozillaZine Knowledge Base
    :http://kb.mozillazine.org/Zoom_text_of_web_pages
    <br><small>Please mark "Solved" one answer that will best help others with a similar problem -- hope this was it.</small>

  • I downloaded pictures onto my iPhone from computer twice by mistake now when i uncheck/sync then check and sync again  i keep getting two lots of pics..how can i get just the one set again? thnx

    I downloaded pictures onto my iPhone from computer twice by mistake now when i uncheck/sync then check and sync again  i keep getting two lots of pics..how can i get just the one set again? thnx

    You're welcome.
    All photos transferred from your computer are stored in the iPhone's Photo Library regardless if you select a single album or folder of photos to be transferred or multiple albums or folders. The photos on the albums or folders of photos include a pointer to the original photos stored in the Photo Library. The photos are not duplicated taking up double the storage space. This way you can view the photos in an album or folder of photos only by selecting the album or folder, or all photos in all albums or folders by selecting Photo Library.
    Makes more sense when transferring multiple albums or folders of photos which cannot be changed when transferring only a single album or folder of photos.
    The same applies with iTunes and music playlists. A song can't be in a playlist unless it is in the main iTunes library. Placing a song in a playlist does not duplicate the song.

  • What is the best way to export the data out of BW into a flat file on the S

    Hi All,
    We are BW 7.01 (EHP 1, Service Pack Level 7).
    As part of our BW project scope for our current release, we will be developing certain reports in BW, and for certain reports, the existing legacy reporting system based out of MS Access and the old version of Business Objects Release 2 would be used, with the needed data supplied from the BW system.
    What is the best way to export the data out of BW into a flat file on the Server on regular intervals using a process chain?
    Thanks in advance,
    - Shashi

    Hello Shashi,
    some comments:
    1) An "open hub license" is required for all processes that extract data from BW to a non-SAP system (including APD). Please check with your SAP Account Executive for details.
    2) The limitation of 16 key fields is only valid when using open hub for extracting to a DB table. There's no such limitation when writing files.
    3) Open hub is the recommended solution since it's the easiest to implement, no programming is required, and you don't have to worry much about scaling with higher data volumes (APD and CRM BAPI are quite different in all of these aspects).
    For completeness, here's the most recent documentation which also lists other options:
    http://help.sap.com/saphelp_nw73/helpdata/en/0a/0212b4335542a5ae2ecf9a51fbfc96/frameset.htm
    Regards,
    Marc
    SAP Customer Solution Adoption (CSA)

Maybe you are looking for