Subagent process id

Hello,
I have used SEA sdk to develop our subagent, in this i wanted to know the process id once the subagent becomes daemon. My requirement is to handle multiple instances of our subagent meaning we should not allow to run multiple instances of subagent. For this first place we should be knowing the pid of the process started so that next time before it can get daemonized we can check for the provious process id and can give error message and exit.
I tried getting pid when agent_init is invoked but then the agent_init is invoked after some 20sec so, by then we can invoke again the same process several times.
If anyone have suggestion/input pls post me asap. Thanks. my email id:[email protected]
Kalpana

Oracle does not create process on the client machine but only on the server machine.
From Oracle Concepts http://download.oracle.com/docs/cd/B19306_01/server.102/b14220/process.htm#sthref1471
>
Connections and Sessions
Connection and session are closely related to user process but are very different in meaning.
A connection is a communication pathway between a user process and an Oracle instance. A communication pathway is established using available interprocess communication mechanisms (on a computer that runs both the user process and Oracle) or network software (when different computers run the database application and Oracle, and communicate through a network).
A session is a specific connection of a user to an Oracle instance through a user process. For example, when a user starts SQL*Plus, the user must provide a valid user name and password, and then a session is established for that user. A session lasts from the time the user connects until the time the user disconnects or exits the database application.
Multiple sessions can be created and exist concurrently for a single Oracle user using the same user name. For example, a user with the user name/password of SCOTT/TIGER can connect to the same Oracle instance several times.
In configurations without the shared server, Oracle creates a server process on behalf of each user session. However, with the shared server, many user sessions can share a single server process.
>
Edited by: P. Forstmann on May 29, 2009 9:25 AM

Similar Messages

  • WLS as SNMP subagent in Win2K

    Does the SNMP agent in WLS 7.0 have the ability to be configured as a
    subagent (extension agent) for the Win2K SNMP Service? If so, would
    someone supply the steps for configuration?
    Thanks.
    Tom Albrecht

    Hi Ludovic,
    I'm facing the similar problem on my directory server in China: SNMP subagent process could start firstly, but after several seconds (around 20 seconds) the process will be terminated automatically.
    I could open SNMP master agent successfully.
    #cd /var/opt/mps/serverroot/plugins/snmp/magt
    #./magt CONFIG INIT &
    #ps -ef | grep agt
    root 761 1 0 14:23:40 ? 0:00 ./magt CONFIG INIT
    I could run SNMP subagent process but after 20 seconds the SNMP subagent process is terminated.
    #/var/opt/mps/serverroot/bin/slapd/server/sparcv9/ns-ldapagt -d /var/opt/mps/serverroot/slapd-srd2
    Command was performed without any error, and then do ps -ef | grep agt, I could see "slapd-srd2" process is running.
    but after around 20 seconds when I do "ps -ef | grep agt" again, process "slapd-srd2" was gone:
    I tried to add "-D" in the last command and got following debug info in /var/opt/mps/serverroot/slapd-srd2/logs/nsldapagt.log
    In agt_setup_sock_addr():host_name = srd2; Port=1199
    get_ip_by_name() returened s_addr = 1 for srd2
    doing the good return
    smux connect failure: Network is unreachable
    /var/opt/mps/serverroot/bin/slapd/server/sparcv9/ns-ldapagt: mgmt_init_env fialure! Exiting. Make sure the SNMP master agent is running
    I tried to ping srd2, result is "alive", "srd2" is "132.197.198.41". I tried to change "srd2" to OAM IP address "132.197.198.41", the problem is still there.
    Solution I tried
    I tried to modify /etc/system, add "set ip:do_tcp_fusion = 0x0", then restart server, but it doesn't help me, I still have that problem.
    I tried to re-install directory server application, but the problem is still there.
    I saw your reply above, you mean this could be the problem of 32bit or 64bit, could you give me more information, I even don't know how to check if I'm running process on 32bit or 64bit.
    Thank you so much!
    BR/Carrie

  • Running net-snmp as a subagent.

    I am trying to setup net-snmp or ucd-snmp as a subagent through SunMC. I followed the instructions from the Sunmc 3.6.1 installation and configuration guide for modifying the subagent-registry-d.x file and put the following entry:
    netsnmp = {
    type = legacy
    persist = false
    snmpPort = "20161"
    errorAction = restart
    startCommand = "/export/home/xxx/crap.sh -p %port"
    stopCommand = "kill -9 %pid"
    pollInterval = 60
    pollHoldoff = 60
    managedTrees = "ucdavis"
    oidTrees = 1.3.6.1.4.1.2021
    snmpVersion = SNMPv1
    securityLevel = auth
    securityName = LALA
    the startup script crap.sh contains the following line:
    /export/home/xxx/snmpd -c /export/home/xxx/snmpd.conf -p 20161
    When I run a ctail on /var/opt/SUNWsymon/log/agent.log I get the following (removing all lines not assocaited with subagent calls)
    info Feb 06 11:17:39 agent subagent registry successfully loaded
    info Feb 06 11:17:39 agent startLegacySubagents: <>
    info Feb 06 11:17:39 agent startLegacySubagent: netsnmp
    info Feb 06 11:17:39 agent sh: Executing /export/home/psopel/crap.sh -p 20161 process 11859
    warning Feb 06 11:17:44 agent Failed to start legacy subagent netsnmp
    I am able to snmpwalk from another server on port 20161 so I see the net-snmp agent is responding as per the following ouput:
    snmpwalk srvname:20161 -c LALA -v 1 .1.3.6.1.4.1.2021.11
    UCD-SNMP-MIB::ssIndex.0 = INTEGER: 1
    UCD-SNMP-MIB::ssErrorName.0 = STRING: systemStats
    UCD-SNMP-MIB::ssSwapIn.0 = INTEGER: 0
    UCD-SNMP-MIB::ssSwapOut.0 = INTEGER: 0
    UCD-SNMP-MIB::ssIOSent.0 = INTEGER: 0
    UCD-SNMP-MIB::ssIOReceive.0 = INTEGER: 0
    UCD-SNMP-MIB::ssSysInterrupts.0 = INTEGER: 67
    UCD-SNMP-MIB::ssSysContext.0 = INTEGER: 48
    UCD-SNMP-MIB::ssCpuUser.0 = INTEGER: 0
    UCD-SNMP-MIB::ssCpuSystem.0 = INTEGER: 1
    UCD-SNMP-MIB::ssCpuIdle.0 = INTEGER: 98
    But when I try to launch the command through talking to sunmc on port 161 I get:
    snmpwalk srvname -c LALA -v 1 .1.3.6.1.4.1.2021.11
    End of MIB
    A tail of the Agent.log file again shows this line appearing when I launch an snmpwalk:
    info Feb 06 11:40:45 agent getValuePDU: .iso.org.dod.internet.private.enterprises
    info Feb 06 11:40:45 agent getValuePDU: - nodeType is branch
    My understanding is that sunmc should receive the request on port 161 and sending the request to the external net-snmp running on the server. I am expecting to get the same output.
    Is this not how it should be working?
    -Pierre

    Hello Dave,
    I know it is long ago for you, but at the moment I have the same problem that you had in Jan. 2002, and possibly you have solved it meanwhile, or anyone else:
    I am looking for a servlet engine for Windows Mobile 2003.
    We are having a Web application for sales people that sell insurances. The application consists of JSP's and servlets. It runs under RESIN as servlet engine on a regular server and the clients are desktop PC's. My task is to investigate whether the application can be run on an HP iPAQ or similar device, both, server and client, such that the sales person can use it on the go, if he is NOT CONNECTED. The idea is to use the application as is, without modifying the code. B.T.W. a database is not required since all data is held in XML files.
    Any help is appreciated,
    Thanks a lot,
    Regards,
    Klaus.

  • Monitor ETL process using SNMP

    Hi,
    I have an ETL process that runs continuously and add lines to a table under Oracle 11g on Linux. I would like to monitor the proper operation of the ETL using an external SNMP manager (eg Zabbix). To do this the algorithm would be like this:
    - List and count lines that have been to the table durig the last n minutes;
    - Update an SNMP counter
    - Repeat every n minutes.
    I was thinking about creating a small Perl subagent for net-snmp that would execute an SQL query using JDBC, but is there a better way to do this? For instance by using an Ora

    I assume you're talking about scripting this? Probably the easiest thing to do would be to use Curl. I've attached an example. You'll need to change a couple values for it to work.
    The output is different than what you'd get if you did a "df" using the service account. You'll have to decide which output you require.

  • Snmp subagent problem !

    Hi all !
    I have been trying to hard to develop a snmp sub agent (eterprise specific ) ,
    I created all the binaries and respective .acl, .reg , .rsrc files for my subagent , even binary also i generated and registered with master agent !
    everything seems to be working if the oid i poll for is from mib-2 , but if i give my enterprise OID from mib i developed the snmpdx says core dumped ! when i tried to open the core file the following text i cud see !
    error while receiving a pdu from %s: %serror while receiving a pdu from %s: %sbad PDU type (0x%x) received fro
    m %sno variable in PDU received from %s!! This request is already being processed by session %d
    snmp_pdu_dup() failed: %ssnmp_pdu_append_null_variable() failed: %ssession_open() failed for a pdu received fr
    om %s## Open session %d
    malloc() failedunable to handle SNMP request with more than 32 variablessession_build_local_sysUptime() failed
    session_build_request_list() failed
    session_send_loopback_request() failedsession_send_request() failedmalloc() failedsnmp_pdu_dup() failed: %ssnm
    p_variable_dup() failed: %ssnmp_pdu_dup() failed: %ssnmp_typed_variable_new() failed: %smalloc() failedsnmp_pd
    u_dup() failed: %ssnmp_variable_dup() failed: %s## Close session %d
    help out of this plezz

    Hi,
    I have the same problem.
    Any ideas? Thanks a lot!!
    Hi,
    I'm having a problem with my SNMP subagent. If I leave
    it running overnight with no polling or trapping, the
    library will eventually exit with the message:
    select() failed [errno: Invalid argument(22)]
    ... It doesn't signal or anything, just exits.
    My agent_select_info callback is as follows:
    void agent_select_info(fd_set fdset, int numfds)
    FD_SET(g_sockfd, fdset);
    *numfds = FD_SETSIZE;
    ... where FD_SETSIZE == 1024.
    - AndyC

  • Why does the snmpcoll process always start up even if SNMP Statistics Collection is turned off?

    Why does the snmpcoll process always start up even if SNMP
    Statistics Collection is turned off?
    <P>
    The SNMP Statistics Collection field on the Server Status|SNMP
    Subagent Configuration form affects only the SNMP subagent, which is a separate entity from
    the collector process (snmpcoll). Currently, snmpcoll does not look
    at the SNMP configuration data when it starts up. It is started by
    the dispatcher and terminates when the dispatcher terminates. Many
    of the statistics are supposed to reflect cumulative values recorded since MTA
    initialization, such as the total number of messages sent and received.
    As a convenience, the collector process collects information in the
    background even while the SNMP subagent is turned off; this way,
    the values are available when the SNMP subagent is configured and
    turned on.

    Collections fall off on the Date of First Deliquency 7-7.5 years later; that is supposed to be reported as the first time you went late (1-30 days) on the OC (original creditor) in the chain of events leading up to it's being farmed out for collection as I underestand it. DOFD though sometimes doesn't get reported right, and by default it will be the date the collection is added to the bureaus. As an example I have an awkward collection (not sure how I got it looking at the payment history thought I'd cancelled that account but TWC billing apparently didn't think so) which I went late on in 2009, but didn't get farmed out till late 2010.  The DOFD is 6/09 looking at it, and it's expected to come off according to the bureaus 6/16 as a result. Different negatives have their own rules though.

  • Error while invoking a process

    Hi Team,
    I get the following error while invoking a process.
    ALC-DSC-125-000: com.adobe.idp.dsc.registry.EndpointNotEnabledException: SOAP endpoint is not enabled for: ExtractingXML/ReadResource
    at com.adobe.idp.dsc.provider.impl.base.AbstractMessageReceiver.validateEndpoint(AbstractMes sageReceiver.java:258)
    at com.adobe.idp.dsc.provider.impl.soap.axis.sdk.SoapSdkEndpoint.invokeCall(SoapSdkEndpoint. java:136)
    at com.adobe.idp.dsc.provider.impl.soap.axis.sdk.SoapSdkEndpoint.invoke(SoapSdkEndpoint.java :81)
    at sun.reflect.GeneratedMethodAccessor755.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:397)
    at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:186)
    at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)
    at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
    at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
    at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
    at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:454)
    at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
    at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper. java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
    at com.adobe.idp.dsc.provider.impl.soap.axis.InvocationFilter.doFilter(InvocationFilter.java :43)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
    at com.adobe.idp.um.auth.filter.CSRFFilter.doFilter(CSRFFilter.java:41)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletC ontext.java:3496)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(Unknown Source)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2 180)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Can anyone please help me with this error.

    I checked my server (which has all the default Adobe services) and the only service I have that comes close is:
    the Repository service's "Read Resource Content" operation.  In the list that comes up as RepositoryService. 
    The Barcode's Extract to XML service.  In the list that comes up as                BarcodedFormsService
    Neither of these is an exact match to the error. Is your process calling a sub process you built?  Does that service actually exist on the server?  If you do a record/playback (in workbench) on which step does the process fail?
    If you look through the entire list of SOAP services (in Adminui) are any of them disabled?

  • Logical GR in Third Party Process

    Hi Friends
    There is logical GR involved in third party process. What if we do not want to trigger it?

    very useful thraed for your Qn-
    [stock not updating after doing MIGO (gr) for third party sales |stock not updating after doing MIGO (gr) for third party sales;
    BR
    Raj

  • EH&S WWI for GLM print request processing

    Hi all,
    we installed EH&S WWI for GLM print request processing scenario, following the note:"1394553", but when we try to print we receive this error from WWI:
    Start Function 'WWI_PRINTREQUEST_CREATE'
      Initializing parameters
      Receiving data from client
       calling RfcGetData returned 0
        receiving data lasted: 0.0 sec.
        Retrieving print request data from RFC interface
        Using Temp Directory E:\WWI\TEMP\BSV100000000000062
       Delete files in E:\WWI\TEMP\BSV100000000000062
        Creating text file E:\WWI\TEMP\BSV100000000000062\r000000000062.val
        Writing data to text file 39 lines, 1009 characters
        Updating print request status from 0 to 1
        [DB time] Writing print request lasted 9 ms
      Start processing command 'Create print request' in synchronous mode
      Creating print request 000000000062
    WwiSapDms::retrieveDocument: RFC error when calling ABAP function moduleRFC connection is not Unicode
    WwiSapDms::retrieveDocument: RFC error when calling ABAP function module
    key     : RFC_ERROR_SYSTEM_FAILURE
    message : See RFC trace file or SAP system log for more details
    Reading SBV document IB0120510 from Cache failed
        WwiCacheRead resulted with -1
        Updating print request status from 1 to 5
        [DB time] Writing print request lasted 4 ms
      ##### Command 'Create print request' finished with status E #####
        Storing ERR file E:\WWI\TEMP\BSV100000000000062\l000000000062.err into DMS succeeded
        22 lines
      Sending data to client
       calling RfcSendData returned 0
        sending data lasted: 0.0 sec.
    Elapsed time : 0.1 sec.
    We don't understand what kind of RFC or what part of customizing we have to check, could you please help us?
    Thanks,
    Christian

    Dear Pugal
    we are not using GLM + and I am not sure about the technqiue used there to handle load balancing. Regarding general WWI setup I assume you know this Note: EH&amp;amp;S: Availability and performance of WWI and Expert servers
    On the top there is a further SAP Note abvailable which might be of interest. This is referenced here:
    http://de.scribd.com/doc/191576739/011000358700000861002013-e
    May be check OSS note: 1958655; OSS Note 1155294 is more related to normal WWI stuff; but may be check it as well. May be 1934253 might help better
    May be this might help.
    C.B.
    PS: may be check as well: consolut - EHS_MD_140_01 - EH&amp;amp;S-Management-Server einrichten
    The load balancing of synchron WWi servers is donein the "RFC" layer, therefore you have no inffluence here, for asynchron WWI servers you can do a lot to manage the WWI load balancing by using "exits" etc.

  • If-statement in application-process

    Hi,
    First I will tell you which APEX I am using: 3.0.1
    Ok, I have got a form where there are 4 fields:
    P13_ACCTNO (Popup LOV (fetches first rowset)),
    P13_LOCATION_NAME(Text Field (Disabled, saves state)),
    P13_COMP_ACCTNO( Popup LOV (fetches first rowset)),
    P13_LOCATION(Text Field (Disabled, saves state))
    In my table, the company is always filled in, no null values (but it is not the PK, this is the acctno). But location may be null.
    When I select a location (popup will only show fields which are filled in), then the other fields are filled in as well. So the Location (number) and the acctno is the same.
    Now, when I select a comp_acctno, the rest of the fields are filled in automatically. But the Location (number) will remain from the first select, although no location might be there.
    So I have got 2 javascript codes on the page and 2 applicationprocesses and 1 application item.
    I would like to have an if-statement in my application-process (instead of " HTP.prn ('<item id="P13_LOCATION">' || v_null || '</item>');", something like:
    if :p13_location_name is null then
    :p13_location = ' ';
    end if;
    But I don't know how to put this into the following code, because it is a mixture, which I don't understand completely.
    DECLARE
    v_acctno primemines.acctno%type;
    v_company primemines.company%type;
    v_mineloc primemines.mineloc%type;
    v_commodity primemines.commodity1%type;
    v_null varchar2(5);
    CURSOR cur_c
    IS
    SELECT acctno, mineloc, company, commodity1
    FROM primemines
    WHERE acctno = TO_NUMBER (:temporary_application_item);
    BEGIN
    FOR c IN cur_c
    LOOP
    v_acctno := c.acctno;
    v_company := c.company;
    v_mineloc := c.mineloc;
    v_commodity :=c.commodity1;
    END LOOP;
    v_null := '';
    OWA_UTIL.mime_header ('text/xml', FALSE);
    HTP.p ('Cache-Control: no-cache');
    HTP.p ('Pragma: no-cache');
    OWA_UTIL.http_header_close;
    HTP.prn ('<body>');
    HTP.prn ('<desc>this xml genericly sets multiple items</desc>');
    HTP.prn ('<item id="P13_ACCTNO">' || v_company || '</item>');
    HTP.prn ('<item id="P13_LOCATION_NAME">' || v_MINELOC || '</item>');
    HTP.prn ('<item id="P13_COMMODITY">' || v_commodity || '</item>');
    HTP.prn ('<item id="P13_LOCATION">' || v_null || '</item>');
    HTP.prn ('</body>');
    and also I have discovered that the automatically filling of the fields is only working sometimes (i don't know whether it depends on the company I select). Any ideas, why this is happening?
    could somebody help me with the code please?
    Thanks,
    regards,
    Denise

    Hi,
    @Chad: thanks for the code, I think it works (UPDATE: no, it does not work :-( )
    now i am just left with the other problem that it works only sometimes
    @user512746: yes, i guess you have understood correctly. I have changed the items P13_ACCTNO source used to "always replace" and taken out the default value, which I had set to &P13_ACCTNO.
    But it still only works partly, I don't know why?
    any other ideas?
    Thanks so much for your help so far, both of you.
    Regards,
    Denise

  • ANY SY-INDEX REFLECT CHANGES WHEN CONTROL BREAK STATEMENT PROCESS

    Dear Guru's,
                     I have a requirement where i have to move the values to variable when control break (AT END OF) process. So i want to move the values according to the end of Vendor so for that  i want to know is there any sy-index available which reflects changes when Control break (AT end of) process.
    LIKE Sy-subrc = 0 when select statement fetches record or sy-tabix is like counter for loop.
    Hope to get reply soon.
    Regards,
    Himanshu Rangappa

    Hi,
    There is no system Fields for it.
    But your requirement can be done with 'AT NEW' and 'AT END' statement.
    Refer this sample example,
    loop at otab.
        at new module.
          move otab-module to otab2-module.
        ENDAT.
          at END OF effort.
          sum.               "Do your calculations here
          move otab-count to otab2-count.
          append otab2.
        endat.
      endloop.

  • Invoices are not getting displayed in the process receivables for a cust.

    Dear All.
    Collection Management
    I have a situation here in prod environment the worklist is displaying the customer and his outstanding balances/all the data when we select that customer and go for process receivables then i cant find any invoices/documents under the invoices tab.
    But we have the open invoices in AR for that particular customer, I am wondering how the invoices will get deleted
    Can some one help me in this issue..
    Thank you,
    D vasanth

    Hi ,
    Based on the requirement , check whether the customer contact has been done carried out for the invoice  , then possibility it must have gone out of the worklist , chekc whether the Invoice posted in the AR has been transferred to FSCM collection .

  • Lexicographic image processing

    I want to process the array of an image lexicographically (meaning reading as you write, so from left to right). Normal arithmatic functions (division, multiplication etcetera) multiply the entire array, but I want to push the top-left pixel through my algorithm, and then the one to the right of that, and after that one the one to the right of that, up until the last pixel, and then it starts with the pixel one row beneath the first one all the way on the left.
     To illustrate, imagine an image of 12 X 16 pixels:
    I want to calculate what value each pixel is supposed to have. I do this by comparing the actual value with the value I want. I calculate the value it needs to be at a certain pixel by looking at how far it is from the origin. The origin is in the center:
    The distance then from the origin to the actual pixel is this:
    The length of this 'vector' is then calculated by splitting it into a horizontal and vertical part:
    The length is then the the x-coordinate squared and the y-coordinate squared added together and then the root of that number is taken. So that's basically the theorem of Pythagoras. I know that in this case, the length found is not the real length, because you use x=1 and y=1. So first off I subtract 8.5 from the x value and 6.5 from the y-value before going any further.
    But I want to process the pixels in the order of y=1 x = 1, 2, 3, 4, 5, 6, 7, 8 etcetera and then y=2 x=1, 2, 3, 4, 5, 6, 7 etcetera. That is exactly what lexicographical processing is. But how can I get this to work? In my VI you can see how I am currently exporting just the numbers of the total size of the image (or frame of a video), but I want to process them one by one. I looked up some helpful Labview files that do something similar, like the 'Check Pixel Value' VI but there you have to manually scroll through the data. I want it to happen automatically.
    So how can I process pixels of an image lexicographically?
    Solved!
    Go to Solution.
    Attachments:
    USB Webcam n-bit to corrected 1 bit.vi ‏59 KB
    Check Pixel Value-2013.vi ‏31 KB

    Yes, I do have a 2D array. I use the IMAQ Vision VI's to get my webcam to run. The solution is rather simple in that sense, yes.
    But here is the deal though: the comparing with the Lorentzian function returns me a value. That is rounded to either a 0 or a 1, because it will be the pattern used for a Digital Micromirror Device (DMD). This induces an error. In order to make up for that, I need to correct it using neighbouring pictures (if a pixel is surrounded by 8 pixels, then the diagonal pixels are primarily used for this). I tried something similar in which I split it into 'rows' and process that, but that ofcourse removes the option to resolve the induced error.
    The 'easiest' way is to split it into 1024 times 728 pixels and hook all of these up to the formula and connect each of them to their corresponding pixels, but that would take several months, so that's not an option.
    Could you be more concrete in how you would do this? I tried something similar but thought, because of that error resolving, it would remove the option to work in this way, because it doesn't allow 'inter-row interaction'.
    To give you some background:
    I want to use a DMD to create a laser with a top-hat wavefront, meaning it's intensity distribution is equal everywhere on every point of the wavefront. For this we hook a CCD camera up to our computer which measures the intensity distribution. This image is then sent to our Labview program, which processes this image and turns it into a pattern for the DMD. The DMD or Digital Micromirror Device is a device that is made up of thousands of tiny mirrors, all of which can stand in either + 12 degrees or -12 degrees.
    We look at the profile and compare that to a profile as simulted by a Super Lorentzian function
    A Super Lorentzian function looks like this:
    A / (B + ( (X-C)/X0) ^n)) + D
    A/B is the top value
    C is the horizontal transliteration
    X0 is a value referring to the width of the function
    n is a power
    D is vertical transliteration
    For even numbers of n the function produces a top hat function. In our case, we want to simulate an eigth order Super Lorentzian, so n=8
    The image of the CCD Camera is a 12 bit image. Labview saves this as 16 bit, meaning it has 2^16 different grayscale values.
    I don't have the CCD camera yet so for now I use the webcam of my laptop and turn that into a 16-bit image.
    Here a some screenshots of my program so far:
    And a SL function looks like this:
    Our error inducement comes from an algorith developed by Dorrer and Zuegel, two german physicists.
    A screenshot of their paper concerning binary spatial light modulation:
    But the main issue I am concerned with is thus the error inducing. Doesn't normal array processing remove the possibility to do so? And if not, how can I do it?

  • Process Chain - Delete File from Application Server

    Hi Gurus,
    Im working with Process chain, and i have a load from a flat file, so my question is :
    How can i delete that file from the application server after was loaded ?
    THANKS IN ADVANCED !!! I REALLY APRECCIATE YOUR HELP.
    Marcos

    hi,
    I have gone through the forum you have posted for deleting files from application server through process chain.
    I have similar reuirement in my project.
    Can you please provide me the solution?
    Your inputs will be highly appreciated.
    Thanks in advance.
    Regards,
    Lavanya.

  • Problem with item and/or data during page-processing-PS/SQL

    Greetings!
    On my page I have a custom report (from 2 tables) and a small form-field, that adds and edits data in the report. After generating the form with the wizard I added an extra item, to store the id from one of the tables from the report data.
    Now, on submit a calculation should take place, that updates data according user input with a procedure in Page-Prosseses:
    declare a number;
    begin
    case :PLATZ
    when 1 then a:=100;
    when 2 then a:= 50;
    else a:=25;
    end case;
    update TBL_MITGLIEDER set TURNIERPUNKTE = TURNIERPUNKTE + a
    where ID_MITGL = :P14_ID_MITGL;
    end;
    :PLATZ is user selected (1,2,3), :P14_ID_MITGL stores the reference to TBL_MITGLIEDER (and shows the change, when I select another record)
    As I understand, that process should also run, when I submit a chance, but nothing happens then.
    But when I try to save a new record (which worked without any problems before adding that process), I get this error message:
    ORA-06550: line 1, column 64: PL/SQL: ORA-00957: duplicate column name ORA-06550: line 1, column 7: PL/SQL: SQL Statement ignored
         Error      Unable to process row of table TBL_TURNIERSIEGER.
    Then, when I go back into the app-builder and try to run the page again, I get this message:
    ORA-01403: no data found
         Error      Unable to fetch row.
    I am not sure, if you guys have all the information you need, to know whats going on. Maybe this has to do with session-id and the whay, items are updated. I hope you can help me.
    Thanks, best regards,
    tobi

    First can you please post all log file errors
    >> I can't really give you a solution or specific recommendation since I did not saw this error yet myself, but on your own risk you can try:
    1. You may try to just register 'dts.dll' using regsvr32.exe, but this error may indicate a bigger problem with setup.
    If you are running SQL Server 64bit then try running this at the command prompt: %windir%\syswow64\regsvr32 "%ProgramFiles(x86)%\Microsoft SQL Server\90\dts\binn\dts.dll"
    2. You can try reinstall from start (In this case you have to make sure that you un-install all)
    [Personal Site] [Blog] [Facebook]

Maybe you are looking for

  • IMac's screen stays black

    Went to wake up my iMac, heard the computer running but screen stayed black. I've tried restarting and unplugging and re-starting with no change. Any other suggestions?

  • TS1424 I purchased 1 ringtone from an artist and was charged 3xs for the download.  How do I get credit for this mistake?

    I purchased a ringtone from an artist and was charged 3xs for it.  I would appreciate a credit for this mistake.  Usually itunes will alert you if your purchasing the same ringtone.  This of course  is for my iphone 4s. margo2000

  • How to update xml from portal

    Can i update weblogic.xml from portal(programmatically). i am using WL platform 8.1 sp2. Now i am manually adding each principal name. For ex: <principal-name>mark</principal-name> Can i achieve this programmatically from portal. Any solution TIA Mah

  • "etc" and/or "var" directory alias

    Hi- Could someone look at the following thread, please: http://discussions.apple.com/thread.jspa?threadID=986498&tstart=0 In short, in response to another users startup issue, I Googled his error message, and stumbled accross the following article: h

  • Best method to compress a quicktime mocie for the web

    I have a 30 second quicktime movie that is 112.5 MB in size. I want to compress it to be placed on the web. The audio needs to be great as I am a composer and that is of primary concern. I think that I would like to get it down to somewhere around 3