Why is my zero order hold not giving the expected result?

I am trying to replicate the functionality of the Discrete Order Hold Function so that I can use it without having to have a ''Control and Simulation Loop''. The attachment desiredresult.vi shows an example of the Discrete Order Hold Function inside the ''Control and Simulation Loop''. The other attachment (zeroorderholdquestion.vi) shows my attempt at achieving the same result. I multiplied the while loop index by the sampling period to get the array index for the resampled y-output. I based this on my understanding of the formula for Discrete Order Hold given under http://zone.ni.com/reference/en-XX/help/371894G-01/lvsim/sim_dzoh/#details.
However, I am having difficulty getting the frequency of the waveforms before and after resampling to match up. (See attachment for clarity on what I mean by this). Any suggestions on what I am doing wrong?
Solved!
Go to Solution.
Attachments:
zeroorderholdquestion.vi ‏207 KB
desiredresult.vi ‏244 KB

here i wrote something maybe similar to simulate a multi channel, mux, sample and hold with cross talk
http://forums.ni.com/t5/LabVIEW/How-can-I-create-and-sample-and-hold-circuit-in-Labview/m-p/2407256#...
If samplerate and hold time have a clean ratio  you just need the decimate vi
another simple version:
Greetings from Germany
Henrik
LV since v3.1
“ground” is a convenient fantasy
'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'

Similar Messages

  • Name attribute not giving the desired result in form tag

    Hi,
    I am using struts and the name attribute in form tag is not giving me the desired reuslt. The code is
    <html:form name="loginActionForm" type="source.form.LoginActionForm" action="/login.do" method="post">
    </html:form>
    when I am trying to use the name in javascript then I am getting an error
    "document.loginActionForm " is null or not an object.Where am I going wrong?

    I did so but the name I have used in the form tag is the same as what i have used in javascript.I dont think that it is a javascript error and it must be some mistake I made in the form tag.Also one more thing is it necessary to use the type attribute if you use the name attribute.

  • Query not giving the correct result

    select Project_id, contractno
    from elf_transactions
    where(rtrim(contractno),rtrim(project_id)) not in
    (select rtrim(contractno),rtrim(projectid)
    from contract_proj
    where report_month='1-May-2007' )
    when I m firing this query, it is not giving correct result to me, it also select the recorts which are matches in both the table
    i want to fine out those contract, with projectid which are not in contract_proj table
    Please help me in this regard

    CREATE TABLE ELF_TRANSACTIONS
    VENDOR_ORDER_REF VARCHAR2(60 BYTE),
    BT_SUB_CON_REF VARCHAR2(10 BYTE),
    PR_NO VARCHAR2(15 BYTE),
    PO_NO VARCHAR2(15 BYTE),
    PR_PO_DESCR VARCHAR2(200 BYTE),
    ONE_IT_PROG VARCHAR2(50 BYTE),
    BT_DEL_MANAGER_NAME VARCHAR2(40 BYTE),
    DELIVERY_TYPE VARCHAR2(5 BYTE),
    ACTUAL_DEP_DATE DATE,
    ASSOC_ASG_BR_QUE VARCHAR2(50 BYTE),
    PRE_AVG_P1_P2_INC_CNT NUMBER(3),
    POST_P1_P2_INC NUMBER(3),
    PERC_GROWTH_POST_REL NUMBER(3),
    VENDOR_DEL_MANAGER VARCHAR2(50 BYTE),
    REPORT_MONTH DATE,
    COMMENTS VARCHAR2(200 BYTE),
    PROJECT_ID VARCHAR2(20 BYTE),
    CONTRACTNO VARCHAR2(15 BYTE),
    CONTRACT_TYPE NVARCHAR2(15),
    IDUNO VARCHAR2(10 BYTE),
    STATUS VARCHAR2(10 BYTE),
    DESCRIPTIONCODEDELIVERABLE VARCHAR2(255 BYTE),
    UNIQUEID VARCHAR2(255 BYTE),
    LOCK_RECORD CHAR(1 BYTE),
    VERIFIED CHAR(1 BYTE),
    VERIFIED_BY VARCHAR2(40 BYTE),
    BT_VERIFIED CHAR(1 BYTE),
    BT_VERIFIED_BY VARCHAR2(40 BYTE)
    CREATE TABLE CONTRACT_PROJ
    CONTRACTNO VARCHAR2(10 BYTE),
    PROJECTID VARCHAR2(20 BYTE),
    IDUNO VARCHAR2(10 BYTE),
    CH_EMPID VARCHAR2(8 BYTE),
    CHNAME VARCHAR2(40 BYTE),
    GH_EMPID VARCHAR2(8 BYTE),
    GHNAME VARCHAR2(40 BYTE),
    PM_EMPID VARCHAR2(8 BYTE),
    PMNAME VARCHAR2(40 BYTE),
    SPM_EMPID VARCHAR2(8 BYTE),
    SPMNAME VARCHAR2(40 BYTE),
    PRJ_MONTH DATE,
    BT_CONTRACT CHAR(1 BYTE)
    REPORT_MONTH     COMMENTS     PROJECT_ID     CONTRACTNO     CONTRACT_TYPE     IDUNO     STATUS     DESCRIPTIONCODEDELIVERABLE     UNIQUEID
    06/01/2007 00:00:00          1287     TML007452               OPEN     Delivery of CRs DM CD and NSI     N/A
    06/01/2007 00:00:00          1280     TML007452               OPEN     Delivery of CRs H&W OOR and WLTO     N/A
    06/01/2007 00:00:00          1231     TML007452               OPEN     Delivery of CRs H&W OOR WLTO     
    06/01/2007 00:00:00          1097     TML007679               OPEN     High Level Roadmap for Global Services and Wholesale with Feasibility study into BTR access to Switc     N/A
    06/01/2007 00:00:00          405     TML007942               OPEN     RTRCC DEVELOPMENT -Q107     
    06/01/2007 00:00:00          405     TML007919               OPEN     WLR3 DEVELOPMENT-Q107     
    06/01/2007 00:00:00          1170     TML008439               OPEN     R-510     
    CONTRACTNO     PROJECTID     IDUNO     CH_EMPID     CHNAME     GH_EMPID     GHNAME     PM_EMPID     PMNAME     SPM_EMPID     SPMNAME     PRJ_MONTH     BT_CONTRACT
    MBT003060     176     BT06     8694     Soman Sameer Surendra     1054     Bhadti Shripad Shivram     1054     Bhadti Shripad Shivram     1420     Rao Darbhamulla Kameswara     05/01/2007 00:00:00     N
    MBT003842     1156     BT12     19992     Kalle Ajit Ashutosh     1539     Padgaonkar Shailesh Vishwanath     13948     Khunte Milind Vasant     16426     Kulkarni Vinay     05/01/2007 00:00:00     Y
    MBT004677     458     BT09     20275     Mundassery George     5044     Kamalapurkar Leena Shrinivas     12849     Dave Ajay Yogeshchandra     2017     KIRKIRE SONAL MADHUKAR     05/01/2007 00:00:00     N
    MBT004695     362     BT13     20276     Ghosh Sankar     2624     Avachat Jagdish Vasantrao     13592     Pal Sudipta     2624     Avachat Jagdish Vasantrao     05/01/2007 00:00:00     N
    MBT004826     VITRIA     BT09     20275     Mundassery George     26099     Saha Debendra Kumar     28134     Hinge Anand Sharad     12777     Karandikar Sumedh Vidyadhar     05/01/2007 00:00:00     Y
    MBT004924     1027     BT03     1451     Tillu Ashirwad     15693     Devaraj Daniel G     6867     Jadhav Satyajit Ramesh     15693     Devaraj Daniel G     05/01/2007 00:00:00     N
    MBT004927     1025     BT05     4436     Kelkar Subhash Manohar     20379     Gore Sujeet Narayan     13704     Vignesh Chandrasekaran     4347     BIJNORI REHANA GULAMWARIS     05/01/2007 00:00:00     N
    MBT004927     1092     BT05     4436     Kelkar Subhash Manohar     15094     Jain Jitendra     13350     Bokil Shripad Raghunath     9511     Markande Balchandra Narayan     05/01/2007 00:00:00     N
    MBT004927     1213     BT09     20275     Mundassery George     19996     Vege Sridhar     16401     Sibgathulla Mohammed     19996     Vege Sridhar     05/01/2007 00:00:00     N

  • The Same Excel Functions Not Giving the Same Result in Numbers

    I'm been using Excel for years and now that I've made the switch to Mac, I thought I should probably utilise the iWork suite of software and get rid of Microsoft once and for all.
    Whilst I love the user-friendliness, there are so many small things that Apple to appear to have overlooked which keeps me hanging on to Microsoft Office just a little, but I digress.
    OK, So I have one sheet in Numbers with the following data.
    I am trying I need to search Column A for the TLDs in Column C, if they exist output the correct renewal price from Column D in Column B
    e.g. A2 contains .net so  B2 should have 12.50 in it.
    A
    B
    C
    D
    1
    Domain Name
    Renewal Price 1
    TLDs
    Renewal Price 2    
    2
    test.net
    .com
    5.00
    3
    test.co.uk
    .co.uk
    10.00
    4
    test.com
    .net
    12.50
    So... can someone please explain to me why the same functions which exist in Numbers and Excel (VLOOKUP / LOOKUP / SEARCH) do not work in Numbers as they do in Excel? If there is a valid reason, fine, I'll accept that, but how do I acheive the above?
    The formula which WORKS in B2 in Excel but NOT in Numbers is:
    =VLOOKUP(LOOKUP(32768,SEARCH(C$2:C$4,A2),C$2:C$4),$C$2:$E$4,2,FALSE)
    Thanks in advance.

    So... can someone please explain to me why the same functions which exist in Numbers and Excel (VLOOKUP / LOOKUP / SEARCH) do not work in Numbers as they do in Excel? If there is a valid reason, fine, I'll accept that, but how do I acheive the above?
    That's a form of "array function" (searching a "table array").  Numbers can't do array functions the way Excel can.
    Here's one way to achieve the same goal in Numbers:
    The formula in B2, copied down:
         =VLOOKUP(RIGHT(A2,LEN(A2)−SEARCH(".",A2)+1),Prices::$A:$B,2,FALSE)
    SG

  • Case condition is not giving the correct result in Union query

    Hello PL/SQL Gurus,
    I am using Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production version
    I have a table in following format -
    drop table TT2;
    create table TT2(FeeDate,Clerk,ClrComm,ExComm,TagComm) as select
    20120102,'Mathews',25,56,245 from dual union all select
    20120102,'Lika',0,56,245 from dual union all select
    20120102,'Ram',0,0,245 from dual union all select
    20120102,'Angilo',NULL,NULL,245 from dual union all select
    20120102,'Nikki',225,NULL,245 from dual union all select
    20120103,'Ram',NULL,556,2345 from dual union all select
    20120103,'Lika',NULL,NULL,245 from dual union all select
    20120103,'Mathews',25,56,245 from dual;DML Used -
    SELECT FEEDATE,CLERK,SUM(ClrComm) ClrComm,null ExComm,null TagComm,sum(case when ClrComm>0 then ClrComm end) Comm
    from tt2
    group by FEEDATE,CLERK
    UNION
    SELECT FEEDATE,CLERK,null ClrComm,sum(ExComm) ExComm,null TagComm,sum(case when ExComm>0 then ExComm end) Comm
    from tt2
    group by FEEDATE,CLERK
    UNION
    SELECT FEEDATE,CLERK,null ClrComm,null ExComm,sum(TagComm) TagComm,sum(case when ClrComm=0 or ClrComm is NULL and ExComm=0 or ExComm is NULL then TagComm end) Comm
    from tt2
    group by FEEDATE,CLERKResult Output -
      FEEDATE CLERK      CLRCOMM     EXCOMM    TAGCOMM       COMM
    20120102 Angilo                               245        245
    20120102 Angilo
    20120102 Lika             0
    20120102 Lika                       56                    56
    20120102 Lika                                 245        245
    20120102 Mathews         25                               25
    20120102 Mathews                    56                    56
    20120102 Mathews                              245
    20120102 Ram            225                              225
    20120102 Ram                         0
    20120102 Ram                                  490        490
      FEEDATE CLERK      CLRCOMM     EXCOMM    TAGCOMM       COMM
    20120103 Lika                                 245        245
    20120103 Lika
    20120103 Mathews         25                               25
    20120103 Mathews                    56                    56
    20120103 Mathews                              245
    20120103 Ram                       556                   556
    20120103 Ram                                 2345
    20120103 Ram
    Output expected -
    FEEDATE          CLERK     CLRCOMM     EXCOMM     TAGCOMM     Comm
    20120102     Mathews     25     56     245     81
    20120102     Lika     0     56     245     56
    20120102     Ram     0     0     245     245
    20120102     Angilo               245     245
    20120102     Nikki     225          245     225
    20120103     Ram          556     2345     556
    20120103     Lika               245     245
    20120103     Mathews     25     56     245     81I sincerely thanks to all of you for your effort in advance.

    This way:
    select feedate, clerk, clrcomm, excomm, tagcomm,
           sum(decode(nvl(clrcomm, 0) + nvl(excomm, 0), 0, tagcomm, nvl(clrcomm, 0) + nvl(excomm, 0))) over (partition by feedate, clerk) comm
      from tt2
    order by feedate, clerk;
    FEEDATE                CLERK   CLRCOMM                EXCOMM                 TAGCOMM                COMM                    
    20120102               Angilo                                                245                    245                   
    20120102               Lika    0                      56                     245                    56                    
    20120102               Mathews 25                     56                     245                    81                    
    20120102               Nikki   225                                           245                    225                   
    20120102               Ram     0                      0                      245                    245                   
    20120103               Lika                                                  245                    245                   
    20120103               Mathews 25                     56                     245                    81                    
    20120103               Ram                            556                    2345                   556                   
    8 rows selected

  • HttpURLConnection is not giving the expected output.

    I am using HttpURLConnection to post a URL to a server which will return back an xml. I am using the following code and it's only returning a HTML page as output.
    Code :
    URL url = new URL(strURL);
    HttpURLConnection connection = (HttpURLConnection)url.openConnection();
    connection.setRequestProperty("Content-Type", "text/xml");
    connection.setDoOutput(true);
    connection.setRequestMethod("POST");
    OutputStreamWriter out = new OutputStreamWriter(connection.getOutputStream());
    out.write(sbContent.toString());
    out.flush();
    out.close();
    in = new BufferedReader(new InputStreamReader(connection.getInputStream()));
    String inputLine = "";
    StringBuffer outputString=new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
         outputString.append(inputLine);
    in.close();               
    The outputString here returns a HTML, but it is suppose to return back an XML.
    Can anyone help me out in this.?
    Thanks,

    Hi,
    Yeah, I saw the logger and it's returning a HTML page which is the authorization page to enter the Server which I am posting the URL. It's not the HTML version of the XML file which I am expecting.
    Is the way which I am passing the session parameter correct? Please find below the code snippet for the method which I have.
    Thanks,
    Mala.S
    public Document parseFileLeaveDetails(String sDate, String eDate, String strUpi, String sessionParam) {
         String larsURLFromProp = ProjPortalIRIS4URLs.getIRIS4URLsFromProperty("LeaveDetails");
         BufferedReader in;
         Document doc = null;
    try {
         StringBuffer sbContent = new StringBuffer();
         sbContent.append("&start_dt=");
         sbContent.append(sDate);
         sbContent.append("&end_dt=");
         sbContent.append(eDate);
         sbContent.append(strUpi);
         sbContent.append("&SMSESSION=");
         sbContent.append(sessionParam);
         logger.debug("sbContent::"+sbContent);
         URL url = new URL(larsURLFromProp);
         logger.debug("The url is:::"+url);
         HttpURLConnection connection = (HttpURLConnection)url.openConnection();
         connection.setRequestProperty("Content-Type", "text/xml");
         connection.setDoOutput(true);
         connection.setRequestMethod("POST");
         OutputStreamWriter out = new OutputStreamWriter(connection.getOutputStream());
         out.write(sbContent.toString());
         out.flush();
         out.close();
         in = new BufferedReader(new InputStreamReader(connection.getInputStream()));
         String inputLine = "";
         StringBuffer outputString=new StringBuffer();
         while ((inputLine = in.readLine()) != null) {
         logger.debug("inputLine::::"+inputLine);
              outputString.append(inputLine);
         in.close();               
         doc = parseFileLeave(outputString.toString());
         } catch(MalformedURLException me) {
         logger.debug("MarformedException ::"+me.getMessage());
         } catch(IOException ioe) {
         logger.debug("IOException ::"+ioe.getMessage());
         return doc;
    }

  • Why can't I find the zero order hold vi?

    I want to use the zero order hold vi (see link below)
    http://zone.ni.com/reference/en-XX/help/371599H-01/lvfpga/zeroorder_hold/
    I have installed the FPGA module, but am unable to find this vi when I search for it. I went to Labview help and searched for the function and clicked ''Find on the palette'', but I got a message saying that it could not be found. Any ideas?
    Solved!
    Go to Solution.

    In your project, right-click the My Computer and select New->Targets and Devices.  Follow the wizard to setup the FPGA card.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • In downloading my Events from iPhoto on my Mac to my iPad Air, the Events arrive in the proper order but not showing the Key Photo.  At the same time, the Events arrive in iPhoto on the iPad in totally random order but showing the Key Photo.Why?

    In downloading my Events from iPhoto on my Mac to my Ipad Air, the Events arrive in Photos in the correct order but not showing the Key photo. At the same time, the Events arrive in iPhoto in a totally random order but with the Key phto showing. Why? of course and is there a way to shift the order in Iphoto and get a Key photo in Photos?

    HHi, thank you for the reply. I have checked my iPad and iPhone and neither has iCloud Photo Library (Beta) enabled. Turned off in both. Photostream is turned on.
    i tried to sort it out  by dragging all the photos to Events on the Mac and then deleting them from iCloud - (left hand side of iPhoto under the section 'Shared'). the photos now show up in Events. I did force quit but the issue remains. The message reads ' photos are bing imported to the library. Please wait for import to complete.'
    i can't empty iPhoto trash either. The message read "Delete error. Please wait for import to complete.'
    WHen I was moving the photos to the Events I always had a message about duplicates - to the effect that the photos already existed, did I want to import them? I clicked on Yes, import all duplicates. But when it showed the images - duplicates side by side - one showed the photo and the other was blank.
    I really don't know what to do! And I don't know how to handle my iOS devices. Is it to do with the large number of photos? Any help, advice appreciated.

  • NOT IN operator giving the wrong results

    DB version:10gR2
    Why is NOT IN giving the wrong results. Isn't NOT EXISTS operator a flawless alternative to NOT IN?
    create table my_table1 (col1 number);
    insert into my_table1 values (1);
    insert into my_table1 values (2);
    commit;
    create table my_table2 ( col1 number);
    insert into my_table2 values (1);
    commit;
    select * from my_Table1;
           COL1
              1
              2
    select * from my_table2;
           COL2
              1
      --correct result
      SELECT * FROM my_table1 t1 WHERE NOT EXISTS
    (SELECT * FROM my_table2 t2 WHERE t1.col1 = t2.col1)
           COL1
              2
    ---correct result using IN
    SELECT * FROM my_table1 t1 where col1 not in (select col1 FROM my_table2 t2);
           COL1
              2
    Inserting a NULL to my_Table2
    Now the query using NOT IN is returning wrong results.
    insert into my_table2 values (null);
    commit;
    SELECT * FROM my_table1 t1 where col1 not in (select col1 FROM my_table2 t2);
    no rows selected
    Query using NOT EXISTS is still giving the right results.
    SELECT * FROM my_table1 t1 WHERE NOT EXISTS
       (SELECT * FROM my_table2 t2 WHERE t1.col1 = t2.col1);
           COL1
              2

    ScottsTiger wrote:
    can i use NOT EXISTS(with a proper Co-related subquery) as a safe alternative to NOT IN?Depends on your data and what you need to achieve.
    Personally I avoid using NOT EXISTS or NOT IN if I can really help it.
    My preferred method is to outer join the tables together and then remove any resultant rows where a value exists and I didn't want one. ;)

  • Get_ddl Not giving the entire DDL

    Hi,
    SQL> select dbms_metadata.get_ddl('TABLE','CS_CSG_SYSTEMS') from dual;
    DBMS_METADATA.GET_DDL('TABLE','CS_CSG_SYSTEMS')
      CREATE TABLE "CUSTSRV"."CS_CSG_SYSTEMS"
       (    "RECORD_NO" NUMBER(15,0),
            "SY
    SQL> desc cs_csg_systems;
    Name                                      Null?    Type
    RECORD_NO                                 NOT NULL NUMBER(15)
    SYSTEM_NO                                          NUMBER(15)
    APP_TYPE                                           VARCHAR2(20)
    SUB_APP_TYPE                                       VARCHAR2(20)
    INCLUDE_FLAG                                       NUMBER(1)
    PRIN_NO                                            NUMBER(4)Why is the get_ddl function not giving the entire ddl ?
    Thanks
    Rajiv

    I think this is it ?
    SQL> set long 2000
    SQL> select dbms_metadata.get_ddl('TABLE','CS_CSG_SYSTEMS') from dual;
    DBMS_METADATA.GET_DDL('TABLE','CS_CSG_SYSTEMS')
      CREATE TABLE "CUSTSRV"."CS_CSG_SYSTEMS"
       (    "RECORD_NO" NUMBER(15,0),
            "SYSTEM_NO" NUMBER(15,0),
            "APP_TYPE" VARCHAR2(20),
            "SUB_APP_TYPE" VARCHAR2(20),
            "INCLUDE_FLAG" NUMBER(1,0),
            "PRIN_NO" NUMBER(4,0),
             CONSTRAINT "CS_CSG_SYSTEMS_PK" PRIMARY KEY ("RECORD_NO")
      USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255
      STORAGE(INITIAL 524288 NEXT 524288 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
      TABLESPACE "CUST_SML_X"  ENABLE
       ) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
      STORAGE(INITIAL 1048576 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
      TABLESPACE "CUST_SML_D"

  • I m unable to access apple os after windows 7 instalation and its not giving the boot option

    i m unable to access apple os after windows 7 instalation and its not giving the boot option. plz any one help me out ..  how to fix it or how to delete windows 7 on my macbook

    Reboot, as soon as you hear the chime press and hold the option key, when the Boot Manager appears select OSX.

  • Why does iPhoto (9.0/11) not retain the Event name when exporting more than one event? (using File - Export - Album name with number).

    Why does iPhoto (9.0/11) not retain the Event name when exporting more than one event? (using File -> Export -> Album name with number).
    Exporting a single Event retains the Event name which is what I'd expect. But highlighting more than one event and exporting it renames the images to Events 001.JPG, Event 002.JPG etc.
    I was recently on holidays and had all my events nicely split on Dad's computer but when I went to export it I couldn't retain any of this information. Now I have to replicate this all again on my computer.
    It wasn't possible to export the entire library as the external drive was fat32 format an I didn't want all of it. It would be nice to export a bunch of events to someone and have it retain the name.
    Does anyone have a work around or will this be fixed at some point by Apple?

    Why does iPhoto (9.0/11) not retain the Event name when exporting more than one event? (using File -> Export -> Album name with number).
    Exporting a single Event retains the Event name which is what I'd expect. But highlighting more than one event and exporting it renames the images to Events 001.JPG, Event 002.JPG etc.
    I was recently on holidays and had all my events nicely split on Dad's computer but when I went to export it I couldn't retain any of this information. Now I have to replicate this all again on my computer.
    It wasn't possible to export the entire library as the external drive was fat32 format an I didn't want all of it. It would be nice to export a bunch of events to someone and have it retain the name.
    Does anyone have a work around or will this be fixed at some point by Apple?

  • App.activeDocument.name  not giving the new name entered in save as option from the script

    When I open a document and use save as option and enter a new name. The app.activeDocument.name object is still giving me the old file name, it not giving the new file name that was entered in the save as option. However this issue is comming when I open a document and use the save as option for the first time. From then on for any number of times I use the save as option it gives me the new name.

    Hi,
    In my case I am calling the script from my AI plugin(this is developed in c++) .  My plugin will be called when ever there is a event,  suppose I do ctrl+shift+s ( i,e File > Save as from Illustrator) , then my plugin will call the script.
    Script that I am using:
       var doc = app.activeDocument;
       alert (doc.name);
       var dest;
       var options= new IllustratorSaveOptions();
       dest = new File(app.activeDocument.path + '/' + doc.name);      
       doc.saveAs(dest, options);

  • Why will my Adobe Reader 9 not open the downloaded CA6 Beta file?

    Why will my Adobe Reader 9 not open the downloaded CS6 Beta file?

    Hi,
    If your asking about the photoshopcs6_p1_installnotes.pdf, then it should open with Adobe Reader 9. It does for me with Adobe Reader 9 (9.5.0) on OSX 10.5.8.
    The PDF is saved to version 1.4.
    regards,
    steve

  • When i run keynote in the play mode, some times the computer get stuck, why?, when i run key note in the play mode, some times the computer get stuck, why?

    when i run keynote in the play mode, some times the computer get stuck, why?, when i run key note in the play mode, some times the computer get stuck, why?

    hello,
    I had the same issue. This is what I was told to do.
    iWork has to be removed completely to be effective when re-installing, you must use an application removal tool to do this or it wont remove every Keynote file.
    Appcleaner   will do this and its free.
    The following procedure has helped solve many issues with Keynote:
    1  Close Keynote then use Appcleaner
    2  Empty the Trash
    3  Shut down the Mac, then restart and press the shift key immediately after the startup sound, then release shift when the Apple logo appears
              allow the Mac to boot up to the desktop, it will take longer then usual as the hard drive is being repaired
    4  restart the Mac
    5  Reinstall iWork
    6  Repair permissions:
              Applications > Utilities > Disk Utility > First  Aid:   click on your system disc in the drive column
              and select Repair  Disk Permissions
    7  open Keynote and test

Maybe you are looking for

  • Error: while creating a view - Help needed

    When i am trying to create the view i am getting the error msg as: ==>ORA-02070: database does not support operator NLS_CHARSET_DECL_LEN in this context<== Please advise in this regard to overcome this issue. the view is nothing but ================

  • Can interactive SVG's be called from within a symbol in the yepnope function?

    I'm hoping someone may have run across this before, I'm trying to access an interactive svg (called "map") from inside a symbol (called "world") in the compositionReady event from the stage.  The image loads just fine as long as I have it directly on

  • How can I edit the password entries?

    How can I edit the values in password manager? Right now for at least one site has the username instead of the password.

  • Buying an external monitor...

    I'm shopping for an HDTV to hookup to my macbook. One of my friends said to use the miniDVI-DVI adapter and connect the DVI to an HDTV with a DVI input. Is this sufficient to use the HDTV as a monitor-aka- am i going to be able to read type? I know w

  • Having Trouble Closing a JFrame With a Button Click in Swing

    I am brand new to Java so this is probably something really stupid. On my main form I have a table displaying records from a database. When you double click a record, it pops up a second form showing the details of that record. You can then edit the