The DSP to the SPL conversion

Hi all

I created a VI that converts the value of the PSD to SPL. Formula used to convert PSD SPL is

SPL = 10log(PSD/P^2) where P = 2 * 10 ^-5

Problems encountered:

1 outside while loop does not end even if the condition is true? Please see the attachment (it has comments in block to understand my VI, damaged probe)

2 my VI is correct?

Please, share your ideas. Let me know if you need more explanation

Thanks in advance

Are you sure that the inner loop stops? The outer loop cannot stop the internal llop has not completed. The fact that the termination condition is true may simply mean that the State was evaluated before the inner loop is completed.

Since you have not saved the entry of default data tables, we can run your VI. When you use comparisons in while loops to stop loops, using greater than or equal? or less than or equal, according to the logic, is much safer than just equal? For example running the VI you posted (with arrays of entry empty) results-1 to the size of the array - 1 entry to equality? comparisons in two loops. If no loop will never stop. Since you only compare to the size of the tables, use a loop with autoindexing.

Using insert into the table is almost always not the best way to do what you're trying to and using table build generates in a loop multiple reallocations memory as the table grows. Initialize the array to the final size (or something bigger than the size expected greater if the exact size is not known) and use the subset of table replace inside the loop.

(^ (-5) 10 * 2) ^ 2 = 4-10. Instead of a le lieu de recalulate recalulate this hairy at each iteration of the inner loop, place a constant on the blockd diagram. Use a descriptive label or a free label to describe the way in which it is derived is important. If it is necessary to calculate something that will never change while the program is running, move the calculation out of all the loops.

I suspect that the code in the image below is what you try to do it in your VI.

Lynn

Tags: NI Software

Similar Questions

  • How can I transfer all the messages/conversations from my iphone to messages.app on my mac?

    Hi people,

    Maybe someone can help me:

    How can I transfer the entire contents of my messages app on my iphone to the messages on my mac app?

    the problem is, when I create in the messages app a new account with my appl ID (for example on a new mac) I also use with my iphone, so everything worked very well for the starting point of creation.

    BUT... some older posts, I have on my iphone will appear in the new messages.app - account on my mac.

    I have thousands of old messages and conversations, I now can only see on my phone or with some more or less useful third party apps. those who cannot vonert messages to a PDF file or som other format useful semi > but no one can transfer it in the messages app.

    • I learned that apple does not save my imessages for more than 72hours (which makes me happy because of the confidentiality of the data), so I can't take via imessages-servers.
    • I also learned that it is possible to transfer data from the library files to a previous account. but unfortunately, I've just accidentally deleted those files, so this solution won't help:
      • I had serious problems to enable the transfer of SMS on a second mac (I guess I failed it in between), I went in the ususal trial & error-process and disabled the account of messages on the mac.
      • After that, I deleted all caches using onyx. then I restarted the iphone and the macbook and restarted the messages app.
      • the app behave like the 'never used before': I entered my apple, app ID remind my cell phone number and all other settings from the old account, but THE MESSAGES WERE GONE alle.
      • I don't know I deleted the using onyx. but there should be a way to win back them?

    the system configuration:

    • Start "2011-17 - macbook pro with latest el capitan (10.11.6)"
    • iPhone 6 with latest iOS (9.3.5)

    PLEASE Please HELP me - even if I use third-party software...

    Hello

    Can't do.

    iMessages are pushed by the iMessages servers to devices recorded at this time there.

    They are not held on servers and are deleted as soon as receiving devices accept.

    (that is, it is not like electronic mail that can be left on the server (POP) or rest on the (IMAP) server to be retried by other devices that can identify you later).

    How the files/iMessages are stored on the iPhone and the way the Mac stores are not the same.

    It is possible to have the iPhone one store backup via iTunes on Mac.

    From there on, it is possible to use third party applications to read (check out them and make them as text files), but they cannot be forced into Messages.

    By copying and pasting entire conversations from one chat to another it's the Mac send s just like a long piece of text with few (not in use) formatting.

    Can also have problems with actually duplicate the whole file with space on the iPhone in the first place.

    19:44 Friday. September 2, 2016

     iMac 2.5 Ghz i5 2011 (El Capitan)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro (Snow Leopard 10.6.8) 2 GB
     Mac OS X (10.6.8).
     iPhone and iPad (2)

  • IMAQdx with 10, 12, 14-bit and the display Conversion

    Hello

    I ran into a problem when you use a 12-bit with IMAQdx firewire camera.

    When you take a 12-bit image in an IMAQ I16 display Conversion method not working anymore. Vision sometimes gets unstable one can freeze my LabView. (Labview8.6, Dev.8.6.4 of Vision).

    In the attached screenshot, you can see for example that it is bringing dynamic scaling of 90%.

    Maybe is a problem with the camera data format? Or 12 bit images are fixed scaled?

    I have a fix using 16-bit only a little changing.

    Chris

    Hi, zabotage,

    His "documented bug" that has been discussed here somwhere.

    Thus, mapping works with 16-bit images only! Its documented. Even you have 16-bit type, but bit depth that lies inside IMAQdx is not 16-bit.

    Also use the depth of Bit Image IMAQ with 16 bits before function mapping (or with the depth of bit = 0, I do not remember) and everything will be OK.

    Andrey.

  • The Date conversion chain.

    Hello

    I used following code to convert string to date but apply the time zone of the device during the conversion. I don't need this but I
    Here same time of this string.
    as
    String = '07:59:17.427 2009-07-31'
    Date = 2009-07-31 07:59:17.427

    Date formatter = new Date (HttpDateParser.parse ("07:59:17.427" 2009-07-31));
    SimpleDateFormat dateFormat = new SimpleDateFormat ("yyyy-MM-DD hh: mm:." "") "'SSS');
    String strCustomDateTime = dateFormat.format (formatter);

    SimpleDateFormat format according to the local time zone. DateFormat does not work. see the documentation for the API

  • BlackBerry smartphones new Torch 9800 user - need help with the Message 'Conversation' feature

    I just spent to an older Blackberry Curve to the torch. I'm used to standard text "and will answer' or 'create a new SMS' but T-9800 'Conversation' feature SMS is maddening - all SMS communications with a contact are transferred in a single conversation, regardless of the date or content. I am also unable to send separate replies to individual SMS - just one more in the conversation messages.

    When I checked the text Message Options, the option to display only that I could find was for the 'Bubble' or 'Line'. I also was not able to find all the features that allow the user to put an end to a conversation with a contact or start a new one.

    If someone has encountered this? If so, is there an option or feature I'm on just to correct these problems? And of course, how?

    Thanks in advance!

    Consulted several other forums and just had a face to face with Best Buy rep - looks like the term/phrase I was looking for was "SMS threading"... and there is currently no option on the current operating system of torch for clear thread of SMS functionality.

    Well - it is what it is. I'll have to take consolation that, apparently, I'm not the only one who had a problem with the thread SMS functionality, and a possible fix might be made available in the next software update.

  • BlackBerry smartphones received Timestamp error in the SMS Conversations

    Hello. I recently moved to Michigan from California and the parameters of time on my blackberry automatically goes to the Eastern (-5) time. However, whenever I receive an SMS (no), the timestamp for the SMS received into the conversation is 3 hours earlier than the actual time / unit. It is a problem within the conversation; When I return to the main folder of Messages or SMS, the timestamp of the last message received/sent next to the contact's name is correct. Is it possible to fix this outside to do a thorough cleaning? I tried restarting and manually changing the date and time; did not help.

    BlackBerry Bold 9650

    V5.0.0.732

    Verizon Wireless

    Hiya!

    Timestamp is generally assigned when the SMS through your door VLR (visitor location register) on the way to the tower to which you are connected. So, in this case, you can connect to the bad VLR and your provider would have to reset. If you did a battery pull and it did not help. I recommend to call your operator and ask them to re-enter their network. That you attach to the router/VLR closest

    (Edited to explain the abbreviation)

  • While the BLOB conversion of type CLOB error - ORA-06502: PL/SQL: digital error or value

    Passing data from attachment of DB (Blob data Type) after the CLOB data type conversion, giving the error "ORA-06502: PL/SQL: digital error or value" in the PL/SQL package. If the BLOB size 32K > it will give another error works great my procedure.

    For example, I enclose my code here.

    function get_base64 (p_blob_in in blob) return clob is

    CLOB v_clob;

    CLOB v_result;

    whole v_offset;

    v_chunk_size PLS_INTEGER: = 12288;

    v_buffer_varchar varchar2 (32767).

    v_buffer_raw raw (32767).

    Start

    fnd_file.put_line (fnd_file.log, 'here');

    If p_blob_in is null then

    Returns a null value.

    end if;

    DBMS_LOB.CREATETEMPORARY (v_clob, true);

    fnd_file.put_line (fnd_file.log, 'here1');

    v_offset: = 1;

    fnd_file.put_line (fnd_file.log, 'Loop value'-| ceil (DBMS_LOB.) GetLength (p_blob_in) / v_chunk_size));

    because me in 1... ceil (DBMS_LOB. GetLength (p_blob_in) / v_chunk_size) loop

    DBMS_LOB. Read (p_blob_in, v_chunk_size, v_offset, v_buffer_raw);

    v_buffer_raw: = utl_encode.base64_encode (v_buffer_raw);

    v_buffer_varchar: = utl_raw.cast_to_varchar2 (v_buffer_raw);

    DBMS_LOB. WriteAppend (v_clob, length (v_buffer_varchar), v_buffer_varchar);

    v_offset: = v_offset + v_chunk_size;

    end loop;

    fnd_file.put_line (fnd_file.log, 'Out of the loop');

    v_result: = v_clob;

    fnd_file.put_line (fnd_file.log, 'V_result length' - |) DBMS_LOB. GetLength (v_result));

    fnd_file.put_line (fnd_file.log, 'V_result' - | v_result);

    DBMS_LOB.freeTemporary (v_clob);

    Return v_result;

    exception

    while others then

    fnd_file.put_line (fnd_file.log, 'Error based on the encode_base64' - |) SQLERRM);

    Returns a null value.

    end;

    In my main program I call this function as below:

    Main proceedings...

    l_return_clob CLOB.

    Begin

    ....

    l_return_clob: = get_base64 (p_blob_in);

    -In returning it gives error - ORA-06502: PL/SQL: digital error or value

    end;

    Then, please mark the thread ANSWERED.

  • STOP the iMac conversion of RAW video files to import

    I use iMac OS X Version El Capitan 10:11:6 and working in Lightroom CC.  I shoot video Time lapse on NIKON D500, in RAW and when I connect the camera to my iMac to import video files, the video file convert .mov files and that's it.  I want to change using Lightroom and LRTimelapse 4 Pro, and I need the file raw like blow, NOT a conversion. I can't understand how to solve this problem.  I think I should be able to disable the automatic import on my iMac, and then load the files video raw directly in LRTimelapse.  However, I can't have a way to disable the automatic import on my iMac.  Can anyone enlighten me here?  I'm going around in circles and it becomes very frustrating! Thank you!

    Jay anneb97695892 says:

    In fact, I had pretty good stuff in Aperture priority, emphasizing locked. I knew something, but not enough! Day was simple and turned out great. I tried to capture the Sunrise with a subject well lit at the forefront. Nothing is more difficult! I thought I'd try editing to fix. When I said automatically, I just wanted to say that I used the easiest way to create, (there is no Auto Mode on the D500), I was referring to using the time parameter. In any case, I feel educated now, so I can't wait to try it!

    I use LRTimelapse, and basically, you have two choices here:

    • The Time Lapse movie for your D500 parameter will create an all over time in camera. It is the best way to create a period of time, especially if the camera is good to smooth out changes in exposure. But if you use this option, there is very little Lightroom can do, and nothing LRTimelapse can do to change this time, because the film is already over.
    • Setting the interval for your D500 can save raw images full size, instead of compressed video images. You can load those in LRTimelapse for editing and management in Lightroom. LRTimelapse is a great software, and it allows you to apply the full power of changes at the level of the Lightroom raw to a sequence of time. This works best if you are already experienced with Lightroom processing raw and library functions. If you use this method, I strongly encourage you to read the tutorials on the LRTimelapse site because the steps must be followed closely. If you do this, you can be rewarded with some smooth, spectacular results and much more flexibility than if you did it all behind closed doors. (For example, the ability to add the reduction of noise of Lightroom and local adjustments, or pan a 2K or 4K of cultures throughout the entire framework believed). I am an experienced user of Lightroom and it still took me a while to learn the ins and outs of LRTimelapse, but if you need power and options LRTimelapse is well worth learning.

    If you are just getting started with the time, the best thing to do is to use the setting of film time in camera for awhile. See how you like it and make a list of things you wish you can change. Then start practice with the interval of definition, loading of raw in Lightroom and LRTimelapse images and make changes to your sequence before generating the final film. Just be aware that generate the previews of LRTimelapse and the final movie can take a lot of power, disk space and processing time.

  • Cannot run the service method "run the Html Conversion" - dynamic converter problem

    Hello

    We are facing the sub question for dynamic conversion. We have Oracle COE 11.1.1.8 Linux

    Installing the last group of patches Patch 19991981 : OUTDOOR 8.4.0.140 OPATCH for PS5, PS6 or PS7

    Always face the question.

    Unable to run the 'runHtmlConversion' of service method. Null pointer is dereferenced. [Details]

    An error has occurred. The stack trace below shows more information.

    ! csUserEventMessage, 410484, dev - wcc.qbe.com.au! csFileServiceReferredToBy, http:// <> <> / cs/idcplg? IdcService = DOC_INFO & dID = 1219 & dDocName = 15393345! csFileServiceUserAgent, Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729 .NET CLR 3.0.30729; Media Center PC 6.0; NET4.0C;. NET4.0E), GET! csUnableToExecMethod, runHtmlConversion! syNullPointerException

    intradoc.common.ServiceException:! csUnableToExecMethod, runHtmlConversion

    * ScriptStack GET_DYNAMIC_CONVERSION_SUB

    3:doSubService, dID = 1219, dDocName = 15393345GET_DYNAMIC_CONVERSION_SUB, dID = 1219, dDocName = 153933453:runHtmlConversion, dID = 1219, dDocName = 15393345

    at intradoc.server.ServiceRequestImplementor.buildServiceException(ServiceRequestImplementor.java:2176)

    at intradoc.server.Service.buildServiceException(Service.java:2404)

    at intradoc.server.Service.createServiceExceptionEx(Service.java:2398)

    at intradoc.server.Service.createServiceException(Service.java:2393)

    at intradoc.server.ServiceHandler.executeAction(ServiceHandler.java:102)

    at intradoc.server.Service.doCodeEx(Service.java:622)

    at intradoc.server.Service.doCode(Service.java:594)

    at intradoc.server.ServiceRequestImplementor.doAction(ServiceRequestImplementor.java:1693)

    at intradoc.server.Service.doAction(Service.java:566)

    at intradoc.server.ServiceRequestImplementor.doActions(ServiceRequestImplementor.java:1483)

    at intradoc.server.Service.doActions(Service.java:561)

    at intradoc.server.ServiceRequestImplementor.executeSubServiceCode(ServiceRequestImplementor.java:1346)

    at intradoc.server.Service.executeSubServiceCode(Service.java:4184)

    at intradoc.server.ServiceRequestImplementor.executeServiceEx(ServiceRequestImplementor.java:1222)

    at intradoc.server.Service.executeServiceEx(Service.java:4179)

    at intradoc.server.Service.executeService(Service.java:4163)

    at intradoc.server.Service.doSubService(Service.java:4073)

    at sun.reflect.GeneratedMethodAccessor370.invoke (unknown Source)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

    at java.lang.reflect.Method.invoke(Method.java:601)

    at intradoc.common.IdcMethodHolder.invokeMethod(IdcMethodHolder.java:86)

    at intradoc.common.ClassHelperUtils.executeMethodEx(ClassHelperUtils.java:310)

    at intradoc.common.ClassHelperUtils.executeMethod(ClassHelperUtils.java:295)

    at intradoc.server.Service.doCodeEx(Service.java:639)

    at intradoc.server.Service.doCode(Service.java:594)

    at intradoc.server.ServiceRequestImplementor.doAction(ServiceRequestImplementor.java:1693)

    at intradoc.server.Service.doAction(Service.java:566)

    at intradoc.server.ServiceRequestImplementor.doActions(ServiceRequestImplementor.java:1483)

    at intradoc.server.Service.doActions(Service.java:561)

    at intradoc.server.ServiceRequestImplementor.executeActions(ServiceRequestImplementor.java:1415)

    at intradoc.server.Service.executeActions(Service.java:547)

    at intradoc.server.ServiceRequestImplementor.doRequest(ServiceRequestImplementor.java:751)

    at intradoc.server.Service.doRequest(Service.java:1976)

    at intradoc.server.ServiceManager.processCommand(ServiceManager.java:486)

    at intradoc.server.IdcServerThread.processRequest(IdcServerThread.java:265)

    at intradoc.idcwls.IdcServletRequestUtils.doRequest(IdcServletRequestUtils.java:1355)

    at intradoc.idcwls.IdcServletRequestUtils.processFilterEvent(IdcServletRequestUtils.java:1732)

    at intradoc.idcwls.IdcIntegrateWrapper.processFilterEvent(IdcIntegrateWrapper.java:223)

    at sun.reflect.GeneratedMethodAccessor292.invoke (unknown Source)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

    at java.lang.reflect.Method.invoke(Method.java:601)

    at idcservlet.common.IdcMethodHolder.invokeMethod(IdcMethodHolder.java:87)

    at idcservlet.common.ClassHelperUtils.executeMethodEx(ClassHelperUtils.java:305)

    at idcservlet.common.ClassHelperUtils.executeMethodWithArgs(ClassHelperUtils.java:278)

    to idcservlet. ServletUtils.executeContentServerIntegrateMethodOnConfig (ServletUtils.java:1680)

    to idcservlet. IdcFilter.doFilter (IdcFilter.java:457)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    to oracle.security.jps.ee.http.JpsAbsFilter$ 1.run(JpsAbsFilter.java:119)

    at java.security.AccessController.doPrivileged (Native Method)

    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:324)

    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:460)

    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)

    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)

    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:163)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    to oracle.security.jps.ee.http.JpsAbsFilter$ 1.run(JpsAbsFilter.java:119)

    at java.security.AccessController.doPrivileged (Native Method)

    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:324)

    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:460)

    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)

    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)

    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.wrapRun (WebAppServletContext.java:3730)

    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.run (WebAppServletContext.java:3696)

    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)

    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)

    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2273)

    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)

    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1490)

    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)

    at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)

    Caused by: java.lang.NullPointerException

    to dynamicconverter. DynConverterHandler.doConversion (DynConverterHandler.java:1730)

    to dynamicconverter. DynConverterHandler.runHtmlConversion (DynConverterHandler.java:1498)

    at sun.reflect.GeneratedMethodAccessor427.invoke (unknown Source)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

    at java.lang.reflect.Method.invoke(Method.java:601)

    at intradoc.common.IdcMethodHolder.invokeMethod(IdcMethodHolder.java:86)

    at intradoc.common.ClassHelperUtils.executeMethodReportStatus(ClassHelperUtils.java:324)

    at intradoc.server.ServiceHandler.executeAction(ServiceHandler.java:79)

    ... more than 69

    Please help us to solve the problem,

    Thanks in advance.

    Tasks/6 01.23 Manager 17:22:46.296 htmlexport_19 caused by: java.io.IOException: cannot run program "/ u01/app/Middleware/Oracle_ECM1/ILO/linux/lib/contentaccess/htmlexport" (in the directory ' / u01/app/Middleware/Oracle_ECM1/ILO/linux/lib/contentaccess '): = 13, Permission denied error

    The tasks/6 01.23 Manager 17:22:46.296 htmlexport_19 to java.lang.ProcessBuilder.start(ProcessBuilder.java:1042)

    The tasks/6 01.23 Manager 17:22:46.296 htmlexport_19 to intradoc.taskmanager.TaskLauncher.startExe(TaskLauncher.java:177)

    The tasks/6 01.23 Manager 17:22:46.296 htmlexport_19... 2 more

    The tasks/6 01.23 Manager 17:22:46.296 htmlexport_19 caused by: java.io.IOException: error = 13, Permission denied

    The tasks/6 01.23 Manager 17:22:46.296 htmlexport_19 at java.lang.UNIXProcess.forkAndExec (Native Method)

    The tasks/6 01.23 Manager 17:22:46.296 htmlexport_19 to java.lang.UNIXProcess. (UNIXProcess.java:135)

    The tasks/6 01.23 Manager 17:22:46.296 htmlexport_19 to java.lang.ProcessImpl.start(ProcessImpl.java:130)

    The tasks/6 01.23 Manager 17:22:46.296 htmlexport_19 to java.lang.ProcessBuilder.start(ProcessBuilder.java:1023)

    The tasks/6 01.23 Manager 17:22:46.296 htmlexport_19... 3 more

    > taskmanager/6 01.23 17:22:46.297 withdrawal htmlexport_19 launcher for task: htmlexport that has been marked as finished

    Permission denied is the main reason for the error. As you saw command line as well as executable files are evidence of permission denied for user wccadm. If please check or give higher set of permissions for the executables under u01/app/Middleware/Oracle_ECM1/ILO/linux/lib/contentaccess and test it.

  • the date conversion problem

    Hi friends,

    I have a problem with the conversion of the date in my PB.

    SELECT eff_dt, TO_CHAR (TO_DATE (eff_dt, 'Dd-mon-yy'), 'dd-mm-yyyy') DATE from une_table;

    It gives me o/p as -.

    DATE OF EFF_DT

    01.01.1950 00:00:00 01/01/2050

    as you can see here the year is wrong, while I convert the date that I use the substr() also to cut the year of first line, but it gives me the 50 i.e. onle last (YY)

    So, if someone can help me with this prob.

    If eff_dt is a column DATE, then stop calling to_date on it.

    If this is not the case, consider making it into a DATE column. If you are unable to do this, use the format mask appropriate when you call to_date

  • The date in the CQL conversion

    I want to run the following TPC - H query in Oracle CEP.

    SELECT RETURNFLAG, LINESTATUS, SUM (QUANTITY) AS sum_qty, SUM (EXTENDEDPRICE) AS sum_base_price,

    Sum (EXTENDEDPRICE *(1-discount)) AS sum_disc_price, SUM (EXTENDEDPRICE *(1-DISCOUNT) *(1+TAX)) AS sum_charge,

    AVG (Quantity) AS avg_qty, AVG (EXTENDEDPRICE) AS avg_price, AVG (DISCOUNT) AS avg_disc, COUNT (*) AS count_order

    OF AdapterOutputChannel

    WHERE

    SHIPDATE < = date ' 1998-12-01' - interval ': 1' day (3)

    GROUP BY

    RETURNFLAG, LINESTATUS

    ORDER BY

    RETURNFLAG, LINESTATUS

    I had a problem:

    How can I rewrite the line "BOLD" to face to make it executable for CEP engine? In the current form, it gives me an error.

    BTW, I tried SHIPDATE < = ' 1998-12-01', which can be executed, but according to the result, it seems that the condition does not work properly. I use csvgen that I've linked to some types of limited data. Thus, SHIPDATE is string, however the cql doc says the conversion of a string to date is made implicitly.

    Thank you.

    In any case, I found a tricky answer somehow. With the help of the to_timestamp function we can convert string to a timestamp and then apply the required conditions.

    So, the line

    SHIPDATE<= date ="" '1998-12-01'="" -="" interval="" ':1'="" day="">

    should look like:

    TO_TIMESTAMP(SHIPDATE ||) "00:00:00") "."<=  to_timestamp("12/01/1998="">

    Obviously, the SHIPDATE (in my case) is not the expected format, so a trivial string concatenation is necessary. In addition, construction of interval in CQL seems limited to INTERVAL DAY TO SECOND, so I will apply the calculation required to do this manually.

  • a stupid question about the string conversion error

    I learn generic

    well generic allows setting the data type that you add to the fields of the object, right?

    I made a simple example

    class generic < String >

    {

    The name of the string;

    void set (String name)

    {myIdName = name ;}

    String get() {return myIdName ;}

    }

    class using {}

    Public Shared Sub main (String [] args)

    {

    generic < String > gn = new

    (generics) < String >;

    GN. Set (90);

    System.out.println ("name entered is:" + gn.get ());

    }

    }

    now the line

    GN. Set (90);

    I know that I send a string to the value method, but I wanted to see the error that comes when I send the argument of type other than a string and sent 90 to set method (without quotes)

    the error that slammed me is

    method defined in the class generic < String > cannot be applied to the given types

    required: java.lang.String

    found: int

    reason: int real argument cannot be converted to a java.lang.String by method invocation conversion

    corresponding to a variable of type String: String extends the object declared in the class generic

    OK here is my stupid question

    I know that int cannot be converted to a string and put 90 quotes will correct the error

    What intrigued me is the last line

    "Chain extends object declared in the class generic.


    I know that everything is under the object class

    that means that means line... ??

    thnq

    What intrigued me is the last line

    "Chain extends object declared in the class generic.


    I know that everything is under the object class

    that means that means line... ??

    Which refers to the class definition you provided:

    generic class

    You "stated" in your 'generic' class a 'collar' stretching ' the object '. It reads as if it said "String declared in the class generic.

    See "Generic Types" in the Java Tutotial

    http://docs.Oracle.com/javase/tutorial/Java/generics/types.html

    Search for the word 'object' and you'll see that word highlighted in the world. Although it appears highlighted read this line:

    As you can see, all instances of the object are replaced by T. A variable of type can be any non-primitive type you specify: any type of class, any interface, any type of table or even another variable of type.

    On this page, you will see this:

    A generic class is defined with the following format:

    class name { /* ... */ }
    

    Where each one is read as: T1 extends object ', "T2 extends object", etc.

    When you said this:

    generic class

    You replaced "T1 extends object" with "String extends object".

  • Anomaly in the CMYK conversion

    I have a file that contains a task - 404c.  When I converted that spot to CMYK (Edit/convert to CMYK), the spot is converted to 0, 8, 22, 56.

    A customer sent me a file.  It contains a task - 404c. When I convert his spot to CMYK in his document (Edit/convert to CMYK), the spot is converted into 51.2/48.73/56.54/17.79.

    The two files being viewed in CS5 (15.1.0), same program, same computer, different tabs.

    When I copy and paste my block of 404c in his file and convert it, it converts to the 51.2/48.73/56.54/17.79.  Conversely, when I copy his block of 404c in my document, it converts to 0, 8, 22, 56.

    My question: where is hiding the conversion variable? What menu/preference etc. is the difference between the two documents?

    Thank you for your patience and your willingness to help me.

    In both files, check the option of spot color in the swatches Panel menu

  • Is there a way to disable the DNG conversion in LR6

    I am disappointed at best with the upgrade of 5 LR LR 6

    I'm especially bothered by the default automatic DNG conversion that occurs during import. Anyone?

    You can change the import DNG option to copy or move in the top bar of the import window

  • Planning of the Currency Conversion account

    Hi all

    We have members of account:

    Actual price: enter the value in local currency and

    Real price - currency: enter currency type - value local ex: EUR (euro zone), CNY (Chinese Yuan)

    Real-USD = the price price should be converted into USD, based on the exchange rate and the type of currency and this account will be used for other calculations of member account.

    How can I do this through planning the process of automatic conversion of currencies.

    Kind regards
    Stally.

    Hello Stally,

    This should be simple enough:

    Assuming that "Total sales" is in the dimension of accounts and this dimension is dense and there is no entry on this member and you assign dynamic Calc.

    Then the hierarchical formula would be:

    IF (@ISMBR ("USD"))

    "Total sales" = "sales"->"USD" * "not purchased songs."

    ENDIF

    If you need to make this in a calc script or so... and you want the Total sales for USD (why not local currency as well...)

    FIX ("USD")

    "Total sales" = "sales"->"USD" * "not purchased songs."

    ENDFIX

    Kind regards

    Philip Hulsebosch.

    www.trexco.nl

    PS to all users, close to the questions that have been answered. So we don't have to open them to see if we can help save = we the time to help others.

Maybe you are looking for