Mathscript Array Generation Issue

I am trying to create a script to generate a 2D array.  When I test the script in the Mathscript editor I get the correct answer, but when I implement it in my VI with the same numbers I get a different answer.
Script:
function final=grid(X,Xi,deltaX,Y,Yi,deltaY)
s=X*Y;
T=zeros(s,2);
i=1;
Yy=Yi;
for k=1:X
for j=1:Y
T(i,1)=Xi;
T(i,2)=Yy;
Yy=Yy+deltaY;
i=1+i;
end
Xi=Xi+deltaX;
Yy=Yi;
end
final=T;
Using the following grid(3,.5,1,3,.5,1) I get the answer I want
ans =
           0.5      0.5    
           0.5      1.5    
           0.5      2.5    
           1.5      0.5    
           1.5      1.5    
           1.5      2.5    
           2.5      0.5    
           2.5      1.5    
           2.5      2.5    
However I get a much larger matrix when I use it in my VI (attached).  Any help appreicated.
Attachments:
Array Creation.vi ‏24 KB

The VI does not produce any errors and I have no broken arrow on my file.  I will re-attach the VI just in case I uploaded an earlier edition.   The issue is mainly that I am trying to produce the following array.
          0.5      0.5    
           0.5      1.5    
           0.5      2.5    
           1.5      0.5    
           1.5      1.5    
           1.5      2.5    
           2.5      0.5    
           2.5      1.5    
           2.5      2.5    
However, when I run the code I get a 2 x 27 (Array Creation Pic)  array not a 2 x 9 (Array Generation Pic).
Attachments:
Array Creation.vi ‏73 KB
Array Creation pic.PNG ‏76 KB
Array Generation.PNG ‏81 KB

Similar Messages

  • Report generation issue

    what are the diff report generation issues?

    Nvm, solved it just had to set up Reporting studio in order to create an accurate report.

  • EOS / EOL / PSIRT report generation Issue

    HI All ,
    I am using lms 3.2 with RME 4.3.0
    Recently i have seen 2 bugs related with EOS/EOL /PSIRT report generation issue
    CSCta76147
    CSCtc36563
    The status of the bug is given as  Fixed(verified )
    Status
    Fixed
    (Verified)
    Severity 3 - moderate
    Last Modified
    In Last Year
    Product
    CiscoWorks Resource Manager Essentials
    1st Found-In
    4.1
    4.3
    Fixed-In
    5.0
    Component(s)
    eoxpsirtreports
    Here the fixed release is given as 5.0 , can anyone please tel me where to get the 5.0 version for download .
    ( Is the 5.0 the LMS version or the RME version  )
    When i am trying to generate EOS/EOL report,  i am getting error saying check the connectivity to cisco .
    Regards
    Angus

    HI Afroj ,
    When i am running the EOS/EOX or PSIRT report the job status is showing running but its not getting stoped .
    I tried using the local option  , downloaded the offline file from the below link and  placed in
    NMSROOT\files\rme\jobs\inventory\reports\EOX_PSIRT\local_xml
    "http://tools.cisco.com/support/downloads/go/ImageList.x?relVer=4.1.1&mdfid=282635175&sftType=CiscoWorks+Resource+Manager+Essentials+Patches&optPlat=Solaris&nodecount=2&edesignator=null&modelName=CiscoWorks+Resource+Manager+Essentials+4.3&treeMdfId=268439477&treeName=Network+Management&modifmdfid=&imname=&hybrid=Y&imst=N&lr=Y
    even then the job is running continuously its not stopping .
    I have a RME version 4.3.0
    Kindly let me know what i am doing is correct .
    Regards
    Angus

  • Mathscript Array

    Hello,
    I wanna use the counter in my While Loop to acces the values of my vector/array inside the Mathscript. However, I get this message error:
    "Error -90026 occurred at Error in function V at line 1:  The indexes for a matrix indexing operation must be real, positive integers."
    Also, the counter is an integer, so I don't have a clueof what is the problem. I will attach my VI so I can make myself more clear. Thanks in advanced.
    Yours sincerly,
    Guilherme Garber
    Attachments:
    Mathscript_vector array.vi ‏23 KB

    Hello,
    The issue lies in the fact that LabVIEW uses 0-based indexing for arrays and MathScript uses 1-based indexing. The integer counter you reference is indeed an integer, but it starts at 0. Since 0 is not a positive integer (and also out of bounds for array indexing in MathScript), you see the error message.
    Grant M.
    Senior Software Engineer | LabVIEW Tablets | National Instruments

  • Quota generation issue

    Hi Friends,
    We are trying to generate a specific quota for selected employees by using Time evaluation. Now the requirement is to generate the quota from the time evaluation period start date till the end date of FY.
    I.e.
    Quota 10 - 01.04.2010 to 31.03.2011 - 2.5
    Quota 10  - 01.05.2010 to 31.03.2011 - 2.5
    We had assigned a time type with the quota & generating with the time evaluation internal calculation result from period balance table.
    But the issue is seperate line items for every month is not getting created. Instead the quota is getting increased or replaced in the same line item.,
    Would appreciate your quick help on this...
    Thanks
    NK
    Edited by: IBM Functional on Apr 28, 2011 9:30 PM

    This functionality is as per SAP standards because, ideally, one would not run time evaluation for May in April. Time evaluation is to be run every day till the end of that day (or till the end of the current month). So when we look at your scenario in that light, we get the following results:
    April run:
    Quota 10 - 01.04.2010 to 31.03.2011 - 2.5
    May run (it adds the quota to the April row item):
    Quota 10 - 01.05.2010 to 31.03.2011 - 5.0
    If the scenario in your organisation is to run time evaluation up to the current date or current month only, don't worry about this aspect. As long as evaluation is not run for future periods, you should not have an issue.
    If, however, you want to run evaluation for the entire year in advance (something which should not be done), you can still try the following work-around:
    1. Modify user exit HRPTIM03 - go into one of the implementations - maybe 005 or 008, can't recall;
    2. Take the assistance of an ABAP consultant to pass the rule that - when the quota is generated, it's validity start date and deduction start date values are to be changed to the date of generation. This is the only way by which a new row item will be generated in IT 2006 (and the ABWKONTI cluster table) instead of appending the quota into the existing row.

  • Report generation issue with a hut

    Hi,
    I hav an issue using report generation my report is using huts and I i'm writting true or false value in excel case, which is linked with the hut but writting the value in the linked case does not change the hut value.
    Thanks
    Olivier

    Hi Olivier,
    I was wondering if you could expand on what the overall goal for your application is.  Also I am not familiar with huts, could you explain what these are?
    Eric A.
    National Instruments
    Distributed I/O Product Support Engineer

  • Issue in BIP Report Generation - Issue gets fixed when the rtf is opened and re-saved

    Hi,
    We are facing a unique case in BIP reports generation at a Customer site. The BIP installed is a part of the OBIEE 11g installation. The customer report generates most of the times, however there are instances where we get a techinical details error ( custom error ) -  The only way to 'fix' this issue currently is to open the rtf file, hit the spacebar and save this file ( ie re-save this file ) and the report starts to generate correctly again for
    Has anyone else faced such a problem ?
    Also, not sure if this helps - the corresponding xdo has nested tags
    Thanks in Advance
    Orjun - Oracle Financial Services

    Your server file handling has nothing, and really nothing to do with Adobe software. If files don't get locked for (over-)writing and/or lose connection to the program opening them, then your server is misconfigured. It's as plain and simple and that. Anything from "known file types"/ file associations not being set correctly, MIME types being botched, crooked user privileges and file permissions, missing Mac server extensions, delayed file writing on the server, generic network timeout issues and what have you. Either way, you have written a longwinded post with no real value since you haven't bothered to provide any proper technical info, most notably about the alleged server. Either way, the only way you can "fix" it is by straightening out your server and network configuration, not some magic switch in Adobe's software.
    Mylenium

  • Dynamic crystal report generation - issues with column headings

    Hi All,<br>
    I'm trying to generate a crystal report dynamically based on a "result set" data(Query: select REPORT_ID, REPORT_NAME, REPORT_DESC, RPT_FILE_NAME, LOCATION from IRS_REPORT_DETAILS). I'm able to generate the report run time, But the report is without columns heads. I would like to include the column headings as well. <br><br>
    I searched the API(RAS) and found that there is a 'add(java.lang.String fieldName, java.lang.String headingText) " method present in "ReportObjectController" using which we can add the headings.<br><br>
    ReportDefController reportDefController = clientDoc.getReportDefController();
    ReportObjectController reportObjectController = reportDefController.getReportObjectController();
    reportObjectController.add( "{Table.Field}", "FieldName" );
    <br><br>
    I'm facing problems in using this code. When trying to use this function for my fields(Ex: reportObjectController.add( "{ IRS_REPORT_DETAILS.REPORT_ID}", "Report ID" );) it is giving me the following error:<br><br>"com.crystaldecisions.sdk.occa.report.lib.ReportSDKGroupException: The field was not found.---- Error code:-2147213310 Error code name:fieldNotFound"<br><br>
    <b>The following is my dynamic crystal report generation code:</b><br><br>
    public ReportClientDocument execute(String repName, String query) {
              ReportClientDocument boReportClientDocument = null;
              try {
                   boReportClientDocument = new ReportClientDocument();
                   boReportClientDocument.newDocument();
                      // Add a table based on the given Resultset to the report.
                   dbConnResultSet mySampleResultSet = new dbConnResultSet();
                   //mySampleResultSet.execute(query);
                   boReportClientDocument.getDatabaseController().addDataSource(
                             mySampleResultSet.execute(query));
                   IReportSource test = boReportClientDocument.getReportSource();
                   // Access all the database fields
                   DatabaseController databaseController = boReportClientDocument
                             .getDatabaseController();
                   IDatabase database = databaseController.getDatabase();
                   Tables tables = database.getTables();
                   ITable table = (Table) tables.getTable(0);
                   int NO_OF_FIELDS = table.getDataFields().size();
                   int LEFT_POSITION = 200;
                   // Add all the database fields to the report document
                   for (int i = 0; i < NO_OF_FIELDS; i++) {
                        IField field = table.getDataFields().getField(i);
                        FieldObject fieldObject = new FieldObject();
                        fieldObject.setFieldValueType(field.getType());
                        fieldObject.setDataSource(field.getFormulaForm());
                        IReportObject rep = (IReportObject) fieldObject;
                        IObjectFormat objformat = rep.getFormat();
                        objformat.setEnableCanGrow(true);
                        objformat.setHorizontalAlignment(Alignment.from_int(1));
                        rep.setFormat(objformat);
                        rep.setLeft(LEFT_POSITION);
                        rep.setWidth(1000);
                        LEFT_POSITION = LEFT_POSITION + 1000 + 50;
                        ISection section = boReportClientDocument
                                  .getReportDefController().getReportDefinition()
                                  .getDetailArea().getSections().getSection(0);
                                   //***************** Data being added to the report here, But headings are not added*****************
                        boReportClientDocument.getReportDefController()
                                  .getReportObjectController().add(rep, section, i);
                   boReportClientDocument.createReport();
                   /*Some report saving code is present down*/
              } catch (ReportSDKException ex) {
                   ex.printStackTrace();
              } catch (Exception ex) {
                   ex.printStackTrace();
              return boReportClientDocument;
    <br><br>
    appreciate your help.

    IField field = table.getDataFields().getField(i);
    Here you are getting the first field in the array.  This may not be the field you want to add since we aren't sure how the arrays are ordered when retrieving fields from the report.  It is better to retrieve the fields with the findObjectByName method, thus ensuring you are retrieving the field you want to add to your heading.

  • Mathscript Array -problem

    Dear Friends,
    I am reading the serial port data data , byte by byte..I used serial port vi and math-script in it ....
    And these  serial data are sent in a format like below........
    format:  HEADER ,  MSB  , DATA ,  CHECKSUM..
    I need to collect these bytes and plot it on the graph.. I have problem with saving these data in an array and processing it....
    below is the code,which i had written to do the process
     persistent  ubIndex = 0
     persistent  bHeader = 0
    ubTemp=input
     if bHeader ==0
                     if ubTemp == 89
                            ubIndex= 0
                            bHeader = 1                              
                       end
    else
                  ubIndex= ubIndex +1
                  ubReceivedata(ubIndex) = ubTemp      
                   if  ubIndex == 3
                           ubIndex = 0
                           bHeader = 0               
                     end
    end      
     ubChecksum = ubRecieveData(1) + ubRecieveData(2) + ubRecieveData(3)
    if   ubChecksum == 0
                   if ubRecieveData(1) == 76
                            duLen1 = ubRecieveData(2)
                                 elseif   ubRecieveData(1) == 69
                                        duLen2 = ubRecieveData(2)
                                 elseif   ubRecieveData(1) == 78
                                           duLen3 = ubRecieveData(2)
                                   elseif ubRecieveData(1) == 71
                                                duLen4 = ubRecieveData(2)
                                                duLength = duLen1 * 16777216 + duLen2 * 65536 + uwLen3 * 256 +  ubLen4 
                                  elseif   ubRecieveData(1) == 80
                                               uwTemp1 = ubRecieveData(2);
                                   elseif  ubRecieveData(1) == 66
                                                ubTemp2 = ubRecieveData(2);                 
                                                uwpackageSpeed = uwTemp1 * 256 + ubTemp2;
                                     elseif  ubRecieveData(1) == 68
                                              uwTemp1 = ubRecieveData(2);
                                     else  ubRecieveData(1) == 65
                                              ubTemp2 = ubRecieveData(2);                 
                                             uwDrumSpeed = uwTemp1 * 256 + ubTemp2;
                       end
    end
    In the above program,i collected 2nd, 3rd,4th byte in the ubRecieveData array  and i left the 1st byte(which is header)...
    and I find the checksum by adding the 2nd,3rd,4th byte to find whether it is zero or not,
    if it is zero ,then the received bytes are correct...and it will proceed to take only the data bytes...and i will plot it on the chart...
    I have a doubt in the ubrecievedata array..whether it is collecting the 3 bytes data or not......whether array  get's initliazed every time in the script..
    since it doesn't get in to the if-loop checksum and loop further.....
    I even removed the if-loop checksum ,to collect and process the data inside the loop below if-loop checksum..but it's not working ...
    will the above script are correct..... .....?suggest some solutions to get working
    i attached my  program vi..for u to get feel of my problem...
    regards
    rajasekar
    Attachments:
    vjnewsamp.vi ‏319 KB

    Hi Grant,
    I did as u told u,still unable to process the data and plot it on the chart.....
    I attached my program  testing20.vi ....for finding the problem..
    could u please see the vi..and suggest some solutions....
    As u said  the array should also be persistent.....and my doubt is the other variable like dulen1,dulen2,dulen3,dulen4,...should also be persistent...in order to calculate the parameter
    duLength,.......similarly the parameter uwpackagespeed and uwdrumspeed should be persistent.(in my point of view....)
    objective of the program is to read the serial port byte and byte ...and plotting it
    And the byte are sent in format like
    format: Header , MSB ,data,checksum..
                 Header, LSB ,data,checksum..
    so i need to recogize this format in my mathscript node ...the main thing is ,...... in 4 bytes the data is only of 1byte....
    In my program , i am plotting length(x-axis) versus packagespeed and drumspeed(y-axis)..
    here the length parameter itself 4 byte of data.....i have to collect it byte by byte of data ,...from the 4 byte format(math script gets called 16 times to collect these 4 data bytes
     from 4 byte format)...        and packagespeed and drumspeed is of 2 byte.......
    if u have any questions please ask me...
    Eagerly awaiting for ur reply....
    Regards
    rajasekar
    Attachments:
    testing21.vi ‏442 KB

  • Exchange 2003 to 2010 Migration OAB Generation Issue

    Hi
    I am in the process of migrating from 2003 to 2010. All mailboxes are moved across and email in and out are moving through the 2010. However I cannot move the oab generation server as when i go to change the generating server my New 2010 server is not listed
    only the two old 2003 servers. This is a child domain in a large organization and is one of a large number of exchange servers forestwide. I have created a new oab and asigned to the mailboxes on the new 2010 server. The old 2003 server is off for over a week
    and there are no issues.
    I now need to remove both 2003 servers, what issues will not being able to move the generation server cause (If any if i am using a new oab). Also I am following the remove last exchange server line as this is the last 2003 server in this child domain are
    there any issues with this in this scenario?

    Hi,
    According to your description, I understand that all mailboxes have been moved to Exchange 2010 and a new OAB is created for all users in your environment.
    Please make sure the new created OAB is generated by Exchange 2010 and Enabled Web-based distribution. If there are any Outlook 2003 users in your environment, the public folder distribution should also be enabled. Then we can set the new one as default.
    If so, all users in Exchange 2010 would use the new created OAB by default.
    If you want to double check the OAB configuration, we can run the following command to check it:
    Get-OfflineAddressBook | FL
    Additionally, if your migration is complete and successful, we can follow the article below to remove the last legacy Exchange server from your Exchange 2010 organization:
    http://technet.microsoft.com/en-us/library/gg576862(v=exchg.141).aspx
    Best Regards,
    Winnie Liang
    TechNet Community Support

  • Merging labview and mathscript array question tia sal2

    Greetings,
    I really like mathscript functionality it’s just taking a
    while to learn how to merge labview and mathscript together.  I can get an XY graph out which plots the
    correct wave function (thanks to the forums help) the problem is going from 1-D
    Array of cluster 2 elements to 1-D of waveform Double so I can get a sound representation
    of the waveform. 
    Anyone have any suggestions.
    Tia sal2
    Attachments:
    mathscript formula to sound with waveform graph.vi ‏248 KB

    Sorry not sure what happened internet gremlins maybe...here's the vi and graphic image
    Second try Hopefully this will work
    Attachments:
    mathscript formula waveform graph.vi ‏1 KB
    image_of_mathscript_to_labview.jpg ‏108 KB

  • CSV file generation issue

    Hello All,
    We are facing below issue during CSV file generation :
    Generated file shows field value as 8.73E+11 in output and when we are clicking inside this column result shown is approximate of the correct value like 873684000000. We wish to view the correct value 872684000013.
    Values passes from report program during this file generation are correct.
    Please advice to resolve this issue.
    Thanks in Advance.

    There is nothing wrong in your program, it is the property of excel that if the value in the cell is larger than
    default size it shows in output of that format.

  • Array Manager Issues

    Hi,
    I'm currently using tarantella 3.4 and am trying to get ldap/ad mirroring with the tarantella ens. To do this I need to change some of the attributes in the Global Desktop Security Login Tab within Array Manager. The problem is that when I apply the change and the go back in none of my changes have been saved. I can change other attributes with Array manager and they are saved.
    Any ideas why this is happening?
    TIA
    Dave

    as root:
    ./tarantrella config list you get all attributs
    ./tarantella config edit --<attribute> <value> you can set the ldap/ad attributes. So you see, wether its an Array Manager problem or a service issue.

  • OPEN SSL certificate generation issue--bpel email activity

    Hi all,
    I need to send a mail from bpel using email activity.
    I made all settings changes.I downloaded OPENSSL software and I need to generate smtp ssl certificates?
    But while generation of ssl certificates I am getting some issue
    OpenSSL> openssl s_client -starttls smtp -crlf -connect smtp.gmail.com:465>
    gmail.cert
    openssl:Error: 'openssl' is an invalid command.
    Standard commands
    asn1parse ca ciphers crl crl2pkcs7
    dgst dh dhparam dsa dsaparam
    ec ecparam enc engine errstr
    gendh gendsa genrsa nseq ocsp
    passwd pkcs12 pkcs7 pkcs8 prime
    rand req rsa rsautl s_client
    s_server s_time sess_id smime speed
    spkac verify version x509
    Message Digest commands (see the `dgst' command for more details)
    md2 md4 md5 rmd160 sha
    sha1
    Cipher commands (see the `enc' command for more details)
    aes-128-cbc aes-128-ecb aes-192-cbc aes-192-ecb aes-256-cbc
    aes-256-ecb base64 bf bf-cbc bf-cfb
    bf-ecb bf-ofb cast cast-cbc cast5-cbc
    cast5-cfb cast5-ecb cast5-ofb des des-cbc
    des-cfb des-ecb des-ede des-ede-cbc des-ede-cfb
    des-ede-ofb des-ede3 des-ede3-cbc des-ede3-cfb des-ede3-ofb
    des-ofb des3 desx idea idea-cbc
    idea-cfb idea-ecb idea-ofb rc2 rc2-40-cbc
    rc2-64-cbc rc2-cbc rc2-cfb rc2-ecb rc2-ofb
    rc4 rc4-40
    Can any one suggest me ,What I entered is correct or not?how to generate smtp certificates?
    Thanks in advance
    Krishna

    Fabian,
    Are you familiar with Firefox OS? The reason I say this is because the email client cannot create a certificate excaption. This is actually by design. This is by design: https://wiki.mozilla.org/Gaia/Email/Features#Security
    This support request at Mozilla was placed specifically for the Firefox OS product, for which only a single email client exists.
    That being said the good folks on the Mozilla Bugzilla, were able to show me how to look up another alias for these servers which does in fact work and does in fact match the SSL certificates. Though Dreamhost support could not provide me with said information, and said information does not in fact exist in the DreamHost wiki.
    I find repeated insistance from Dreamhost represenatives that I should just live with SSL certificate exceptions, when there are actual valid server names in existence to match the certificates in question, rediculous.
    The fact that you are posting this non solution for a product it isn't even applicable for is beyond unhelpful. It actually serves to muddy the waters.

  • RAID array activation issue in CS2 & XP

    Yes, I still have CS2, which I love, as well as Production Studio. I have used CS2 for years with a RAID array, first striped and now a mirror. The mirror array lasted about 10 months until the motherboard went. eVGA replaced the motherboard with the same model, I fiddled around a bit trying to get my same array up and running, I couldn't figure it out and ended up doing a reinstall (after a couple of weeks of running single drives). Anyway, I keep having to activate my Adobe Suites. I have talked to people (thick accents, maybe in India) three times now; takes a lot of time. I know that there is an issue with CS2 and RAID (XP and CS2 have all of their available updates). I tell them I have RAID. I ask for a patch to avoid the activation issue. I have been told that I "should not be using RAID", that I will "have to reactivate every time I boot" and that I won't be able to run this "without upgrading to CS4". I KNOW that this configuration will work, because it has worked in the past. I vaguely remember a patch when I originally installed.
    I just called the Tech Support number, instead of the activation number. I also got someone with a thick accent who told me that he had no support available for CS2. He wouldn't give me a phone number to call, I asked about a patch and he "doesn't support CS2", end of discussion. He suggested the website. Ugh!
    I am not locked out at this time, but have just done another reactivation. I suspect Adobe will put a stop to repeat activations. I worry about being locked out when I am under the gun trying to finish something. My son is working on a school project for the end of year right now. What can I do? Does anyone know where I can find a patch or talk to someone who will help a CS2 user?
    I LIKE my RAID array. I know that my data is perfectly backed up at all times. I would prefer not to have to break the RAID array into single drives. I chose this MB because of the RAID capability.
    Thanks in advance!

    Thanks Bob. I asked to speak to a supervisor with calls two and three to India, or wherever. One lady said they didn't have a supervisor and then said, well, of course we have supervisors, but they will not be able to help. I guess I could have thrown a fit, but neither was willing to connect me to a supervisor even though I asked. I did find it amusing (in a sad way) that the one lady initially denied that she had a supervisor.
    I then called Customer Support (call number four) and they simply wouldn't talk to me. They don't deal with CS2, didn't want to talk to me at all.
    I guess I'll try India again, next time it locks me out.
    I'll go through old files (again) to see if I saved some kind of patch.
    Thanks again.

Maybe you are looking for

  • What happened to my battery?? Charges too fast - lasts 25min

    I just bought the new 15in PB about a month ago. Everything has been working fine until now. The battery only gives me 25 min of power. I calibrated the battery over and over. When I charge the battery, it one, charges way too fast, and two, for exam

  • An Unknown Error Occurred While Opening the Project

    Hi folks, PLEASE help if possible, folks! I am working on a project for a client and have run into this repeatedly. I am on a mid-2013 Mac Air. I'm running the file off of a USB3 Seagate portable drive formatted as Windows NT as I do not have enough

  • "save" option in layout vf05 is dimmed.

    Dear all... in Tcode: VF05  in menu bar under SETTING Layout (save) option is dimmed. what is the solution for this issue? please help many thanks

  • Adding people to a call

    I am trying to add people to a call. Sometimes it won't show the add to group button or when I add them, the call wont go through. What to do?

  • Check list documents

    hello sap sd gurus, could any one forward me some of the sap sd functional checklist and the questions to be asked since i am going onsite for KT. points will be rewarded Thanks Edie [email protected]