Matlab workspace not getting updated while labview mex file is running

Hi,
Let me start from the overview of the system for better understanding.
The system is to acquire data from a DAQ6070e using labview 7.1 . this data is then to be used in matlab for processing. All this needs to happen in real time hence the data is to be acquired from labview and outputted into matlab in real time.
in order to do this we generated the labview and the matlab codes seperately. After days of hard work we managed to import the labview vi into matlab using a math interface toolkit, but now have run into another interesting problem.
the workspace in matlab is not getting updated during the time the labview vi is running inside matlab. it only updates after the vi has run . for example if i need to monitor the system for 300 seconds then ideally the labview vi should output the samples for each acquisition and output it to matlab, what actually is happening is that the labview keeps running for 300 seconds without outputting any data during those 300 seconds and only outputs the last set of acquisition values at the end of the 300 seconds. Which beats the purpose of the whole program.
Kindly help
Regards
Manuj

Thanks Mate,
What you said about "MEX file will not be able to "store" data between runs" ,i realised in the morning. as a result i dont think your suggestion of for loop will also be effective as labview mex file will not acquire data during matalb code execution and vice versa.
Hence i have decided to do it the other way...we will now try to run the matlab code in labview.
this leads to other problem
As this is a real time operation i need to find out a way of storing the data into computer memory and then reading from it(when i say memory i do not mean writing it to a file and readin from it as that is slow) becasue i think the buffer i am specifying in my AI config is not big enough.
I was thinking maybe i should use a RT FIFO queue but then i have not been able to find out the difference between buffer memory and fifo memory. ie is buffer memory supposed to be the ram memory or is it the hard disk memory?
I am posting the vi here for easy understanding
All help is very much appreciated
Attachments:
RT-loop2ver21.vi ‏231 KB

Similar Messages

  • BED & CESS not get updated while creating excise invoice

    Hi experts,
                   When i create excise invoice with reference to commertial invoice,BED,CESS notget ubdated
    in excise utilization tab "DEEMED is in blue color.How can i this into "NOBAND"
    I have done the CIN Customizing
    Please correct me ASAP........................
    Thanks

    dear experts....................help me to solve it

  • Product ID is not getting updated in SC Goods /Service field

    Hi Gurus,
    While creating shopping carts in EBP, we are able to find the Product ID from the Good/Service find option, but when we select the Product ID in the search, it's not getting updated in the SC Goods/Service field.Also when we try to find the Cost center / WBS using find button it's not going to the search area after software upgrade.
    Could you please suggest us why system is behaving like this.
    Thanks
    Sada

    Hi Gurus,
    Any Idea on this.
    Also few of the Product ID's are getting updated from the search help to Goods /Service field of the SC and some are not getting updated. while debug the SC , we are geeting the error message as BBP_SC006, Its relavant to catlog. But we are not transfering the Product from catlog to SC item.
    The error mesage as: Good/Service & does not exist.
    Thanks & regards
    Sada

  • Acrobat 7.0 properties not getting updated

    Hello Everybody,
    The PDF properties of the file that i am changing in my application is not reflected in the PDF File
    I have used the below code to set the property:
    CAcroPDDoc acroPDDoc;
    acroPDDoc.SetInfo (_T("Creator"),pdfDocProperties.m_Creator);
    acroPDDoc.Save(1,strFileName) ;
    The document properties sets fine for the file in Acrobat 9.0 where this is not properly setting for Acrobat 7.0.
    Below is the code for the acroPDDoc.Save
    long CAcroPDDoc::Save(short nType, LPCTSTR szFullPath)
    long result;
    static BYTE parms[] =
    VTS_I2 VTS_BSTR;
    InvokeHelper(0x17, DISPATCH_METHOD, VT_I4, (void*)&result, parms,
    nType, szFullPath);
    return result;
    Is the syntax wrong or its as per the specification of Acrobat 7.0?
    Regards,
    Nethaji

    ok Aandi
    let me summarize what our problem is
    we are using the below code for setting document properties say "Eg: Title " for PDF file through our application
    CAcroPDDoc acroPDDoc;
    acroPDDoc.CreateDispatch(_T("AcroExch.PDDoc"))
    if ( acroPDDoc.Open( strFileName ) )
    acroPDDoc.SetInfo (_T("Title"),pdfDocProperties.m_Title);
    acroPDDoc.Save(1,strFileName) ;
    acroPDDoc.Close();
    The title field is not getting updated in the PDF FILE; Whenever "acroPDDoc.Save" is executed the Title filed gets updated with "Title" as it is .we have tried several scenarios given by you but still we cannot conclude this one.
    The acroPDDoc.Save code is :
    long CAcroPDDoc::Save(short nType, LPCTSTR szFullPath)
    long result;
    static BYTE parms[] = VTS_I2 VTS_BSTR;
    InvokeHelper(0x17, DISPATCH_METHOD, VT_I4, (void*)&result, parms, nType, szFullPath);
    return result;
    The above acroPDDoc.Save works properly for Acrobat 9.0.it updates the title field
    This problem occurs in Acrobat7.0 and not in 9.0
    This is our problem please help us.

  • Stationglobals in a Labview custom step type inside a new thread do not get updated

    Hi,
    I have a Custom Step type which I use to pass parameters to TestStand from a VI and vice-versa through some step fields. I run the VI inside a sequence in a new thread and expect the VI to update the parameters when I change them through the TestStand StationGlobals.
    For example, I have a waveform injection custom step. I want to continuously inject a signal while I do some measurements on it. So, I put this step type in a sequence and ran it in a new thread. 
    I pass the VI parameter 'Stop_Injection' through a step field as shown in image 1. And I expect the step field to get updated when the new thread is run continuously by passing the corresponding stationglobal in the Pre-expression of the custom step (image 2). But this fails to happen. The VI does not get updated.
    On the other hand, if I do not bother with the step field and directly pass the stationglobal (figure 3), it works perfectly. 
    Any idea why this is happening?
    I hope I was clear in my question.
    LabVIEW 8.6.1
    TestStand 4.1.1
    Message Edited by Changi on 08-06-2009 12:50 AM
    Attachments:
    1.JPG ‏92 KB
    2.JPG ‏42 KB
    3.JPG ‏91 KB

    Hi,
    In image 3 you are linked directly to the StationGlobal of which you are continually updating therefore seeing the changes.
    In the other you are only linked to the Step.Stop_Injection and are only updating this valve from the stationglobals once in the pre-expression. You are not changing the reference.
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • Field not getting updated in BDC while running in background

    Hi Friends,
    I'm executing a BDC transaction to update the Alternate Tax Classification (VBAK_TAXK1) field in Sales Order. I'm passing value 1 to the field and then saving it directly. While running the BDC in background, the field is not getting updated. On the other hand i checked it running in foreground, the field got updated without any error message.
    Can anybody help me advicing why the field is not getting updated in background?
    Thanks,
    Bestin

    Hi ,
    Check the the log if you are using a session method and if call transaction then capture the messages for the same,
    Because in the foreground the BDC will update the records even if there is a warning message nut in background it will not update. So check the data which you are inserting and try avoid the warning messages also so that it can run smoothly in backfround.
    Thanks & Regards
    Jyo

  • While updating iphone software to 5.0.1, I am getting error message that Iphone cound not be updated because the firmware file is not compatible. Can anyone help me to resolve this issue.

    While updating iphone software to 5.0.1, I am getting error that Iphone could not be updated because the firmware file not compatible.
    Can anyone help me to resolve this issue.

    Using iTunes 10.5.2.11 on a PC running 64 bit Windows 7
    First did a full back up of  iphone using iTunes
    Put iphone into Recovery Mode ( http://support.apple.com/kb/ht1808 ). Erases all user data and settings!
    Disconnected USB cable from iphone
    Powered off iphone by holding down Sleep/Off button until slider appeared, slid to off, waited until screen dark
    Pressed and kept holding Home button while plugging cable back into phone
    I still saw the graphic on the iphone that said to plug into iTunes, so I unplugged and re-plugged cable. (I may have released the Home button too soon)
    Recovery Mode alert came up in iTunes.
    Followed all iTunes prompts to restore phone - it downloaded and sucessfully installed iOS 5.0.1
    iphone did not appear in iTunes due to missing pairing file (that made me nervous)
    iphone was now at factory settings. I followed prompts on iphone screen to start reactivation process
    Eventually the iphone asked if I wanted to restore from a back-up (whew!)
    A window opened in iTunes and I was able to select my previous back-up file for the restore
    A full restore from back-up then occured
    I also allowed a carrier settings update to occur when prompted (not sure that happens in all cases)
    When the restore was done I had to re-enter some passwords, but everything was there
    iOS is now 5.0.1 (9A406). The whole process took about an hour.

  • Even with 10.5.2 my ipad is not getting update to ios 5 .its showing error while downloading.

    even with 10.5.2 itunes version ,my ipad is not getting update to ios 5 .its showing error while downloading.

    If you are getting a network timeout error then try temporarily turning off all your firewall and antivirus software until the download has completed.

  • Data is not getting updated in DB table

    hi all
    i am doing IDOC to jdbc scenario
    i am triggering idoc from R/3 and the data is going into DB table
    sender side:       ZVendorIdoc
    receiver side:
    DT_testVendor
      Table
        tblVendor
          action       UPDATE_INSERT
          access      1:unbounded
            cVendorName 1
            cVendorCode 1
         fromdate    1
         todate      1
          Key
            cVendorName  1
    if i trigger idoc for example vendor 2005,2006 and 2010 data is getting updated in the table
    but again if i trigger idoc for same vendor nos data does not get updated in DB table while message is successfull in moni and RWB both
    plz suggest if any change need to be done to update the data
    Regards
    sandeep sharma

    Hi Ravi
    you are right, vendor no is my key field . problem is when i send data again then it should Update the data but it's not updating the data again
    i did on exp with this : i deleted all the record from the table and then  triggered idoc for vendor 2005 , 2006,2010 after this data is updated in the table i deleted the rows for vendor no 2006 and 2010 and kept the row for vendor 2005
    then i again trigered the idoc for vendor no 2005,2006 and 2010 now this should update and it should insert rows for vendor no 2006 and 2010 but i am surprised its not updating the data
    Thanks
    sandeep

  • PO Vendor Email ID is not getting updated in PO Output Tab

    Hello Experts,
    We are facing any issue with the PO vendor email id.
    Scenario: While creating the PO, we are mapping the vendor address (Like, Email, phone no, fax no .)From shopping cart which are custom fields of shopping cart.
    And these address details getting flowing to PO while creating PO.
    And we can see the updated address in partner details for the vendor.
    But the issue is coming as, this email id and fax no has get update in the PO Output tab also. This is not working for only email id, where as fax no id getting updated in the PO Output tab.
    Can you please check this and provide us a solution for this issue. Why only the email is not getting updated.
    I noticed that, there is FM module which gets address details of the vendor BBP_OUTPUT_PO_PARAMS_GET from the memory which is not getting the correct details
    Seeking your help.
    We will appreciate if somebody can provide us solution for this issue.
    Thank you,
    Bharathi.
    Edited by: Latha V on Feb 11, 2009 10:01 AM

    Hi check follwoing
    1. Set Delivery complete indicator at plant leve
    spro - mm --inventory mgmt ---Goods receipt --- Set delivery complete indicator
    2. Control field selection for MIGO to disable users from changing it.
    spro -- Materials Mgmt -->Inventory Mgmt -- Settings for enjoy Transaction -->Field Selection for MIGO
    and chek this link
    ["Delivery Completed" Indicator
    Regards
    Kailas Ugale

  • Item text is not getting updated in Payment document generated through F110

    Hi all,
    After generating the payment document via Transaction Code u2013 F110, system is not updating the Text field in the payment document with the text that we have entered in the Invoice (MIRO or FI Invoice).
    While processing the document via transaction code u2013 F110, in the layout shown for the Invoices to be considered for payment (screen of u201CEdit Proposalu201D), text is not getting updated. When we pressed F1 at the Text field (Which is blank) we came to know that it is a u201CItem Textu201D with u201CTable u2013 REGUEu201D /  u201CField u2013 SGTXTu201D.
    In BSEG (SGTXT field) as well as BSIK (SGTXT field) we are getting the Invoice document with the text maintained in it via MIRO or FI invoice.
    But while processing the invoices through Tcode - F110, in the layout of Edit Proposal (Table - REGUE / Field - SGTXT) we are not getting the u201CText fieldu201D but getting the other data such as Doc. No.( Table - REGUE / Field - BELNR), Fiscal Year (Table - REGUE / Field - GJAHR) etc for processing the proposal which is getting shown in BSEG as well as BSIK.
    In case of manual payment (F-53) we can input the text manually hence that will get updated in payment document but this thing is not possible with F110.
    Can anybody guide me on getting the ItemText (Not Doc. Header text) in FI payment document after F110 execution?
    Regards,
    Shridhar

    Hi Suresh,
    Thanks for the prompt reply. We will be obliged if you guide us in that respect since F110 is a Std. SAP code.
    Have you refer OSS before arriving at the conclusion of developing ABAP program since the Item Text is a std. field of Std. Tcode - F110. Same should had been get updated while making the payment in reference to the Invoice which haves item text in it ?
    Regards
    Shridhar
    FICO

  • Overhead is not getting updated in the production order

    Hi all,
    I am running actual overhead calculation with KGI2.
    But the overheads are not getting updated in the order.
    Order contains relevant overhead key also.
    What could be the possible causes?
    SmanS

    Arun/ Suleman,
    Thank you for your reply.
    I have maintained the % in the costing sheet against the 'Overhead rate' but I didn't get the secondary cost element.
    Request you to elaborate it further & explain me how to maintain the same.
    Also I will be thankful to you, if you could explain me the exact process of loading the overhead on the order i.e. how it loads the overhead form the cost center to order? What happens to the total cost which was lying on the cost center etc, in details.
    Mean while I had maintained the required values in costing sheet in KZS2.
    Maintained the % against material overhead rate as well as manufacturing overhead rate.
    Maintained the credit values for the overhead rate.
    Maintained the calculation base values also.
    Now while overhead calculation with KGI2, I am getting two errors as follows,
    1. S:K5:162 E02 20090831
    2. Error CREDIT_SEGMENTS_ADD COIOB NOT FOUND for object
    I can not figure out the reason.
    SmanS
    Edited by: SAP PP Consultant on Aug 10, 2009 6:47 AM

  • Stock not getting updated after confirmation of order

    dear all
    In our scenario x is final product.x1( semifinished),x2(spare) are dependent materials for final product. x1 has bom r1 and r2 (raw materials).I put all x1,x2,r1,r2 stock available in storage.
    To get final product , only final assy of above materials by labour.PIR (md61) created for x and planning run.After planning run, planned order generated for x and converted in to production order and released.
    My requirement is on confirmation of production order, backflushing of dependent materials as per bom should be done.
    On confirmation of order in co15,saved.But, stock is not getting updated.what might be the reason? please give me some solution

    Hi
    1.Set the Back Flush Indicator in your Material Master for the components. ( You can do this in Work center and Production Order too )
    2. You can also set the flag for the field " All Components" in Order Confirmation Parameters (OPK4).
    3. If you want to post the Fert also at the time of confirmation use the Control Key which has " Auto GR"  enabled.
    While confirming the Order press the Button "Goods Movement" to ensure that the components are present there for the movement.
    Regards
    Krishna
    Regards
    Krishna

  • Mat doc not getting updated in AFRU table

    Hi All,
      While doing the confirmation cancellation for the rework order the referance material document is not getting updated in the AFRU table.
      The referance operation set is used for the rework production order and there are no component assigned ,the components to be issued are  entered at the time of confirmation.
    The material document is getting updated in case of confirmation in AFRU table but the same is not getting updated in WABLNR field in case of cancellation of confirmation.
    When I checked MSEG all the material documents are observed with referance to the order number but the same are not displayed in AUFM and AFRU table.
    This behaviour is not obeserved in case of normal production orders. what can be the reason behind the same?
    Regards
    Ankush

    Dear Ankush
    please see FAQ note 540392 question 11.
    11.        Question:
    Despite successful goods movements, the material document is not
    updated in field AFRU-WABLNR. Where do I find the document number?
    Answer:
    As of Release 3.1H, the system provides the reference from
    confirmation to material document via table AFWI. The system still
    only uses AFRU-WABLNR in the case of header confirmations or
    confirmations for an individual operation. With milestone
    confirmations or with separate goods movements, in other words goods
    movements that are posted in the update program or via requests
    (BAPIs, collective entry, mass processing, BDC/PDC), table AFWI is
    always supplied due to technical reasons.
    BR Sabine

  • TDS amount not getting updated in the table under the field QBSHB

    Dear Friends,
    The TDS amount entered while booking the vendor invoices through MIRO T-cde, is not getting updated in the table BSEG under the field QBSHB. 
    Kindly let me know the reason for the same and guide me to correct it
    TIA.
    Regards,
    Vincent

    HI Vincent,
    Bseg-QBSHB field is relavent for classic WT.
    I hope you are using the EWT.
    Hence if you post a document through MIRO it will not update
    (but if you post document FB60 it will update but wrongly).
    Reason is Miro document is posted through interface.
    Hence SAP is suggested to not refer the Bseg-QBSHB and etc., fields.
    refer only with_item table.
    Please refer the below replay from SAP
       Please refer the below note .363309
    Please review attached note 363309 for detailed explanation
    BSEG-QBSHB is designed to fill for the classic withholding tax. And
    extended withholding tax information is stored exclusive in table
    WITH_ITEM.
    You can check in table BSEG for the fields and will find that system
    do NOT update field BSEG-QBSHB.
    In your line layout,you define a field BSEG-QBSHB. But actully the field
    of vendor/customer line item is filled with zero from FI. Thus,it shows
    zero in line item display.
    And as note 363309 says,
    "Remove the field which contains the withholding tax information
    from your display variant.
    If you want to display the withholding tax information, double-click on
    the document number and subsequently choose 'Withholding tax' button."
    (BSEG-QSSKZ, BSEG-QSSHB, BSEG-QBSHB) field is not relavent for
    Extended withholding tax and not suppose to use in report FBL1N.
    It basically does not make any sense to use the withholding tax fields
    of the document line items (BSEG-QSSKZ, BSEG-QSSHB, BSEG-QBSHB) with the
    activated extended withholding tax.
    regards
    Madhu M
    Edited by: M Madhu on Jan 31, 2011 1:19 PM

Maybe you are looking for