Data CLuster

Hi All,
i am running the transaction CM07 and it is displaying the orders...i m exporting these orders to another ztransaction using export command to show different report but i m getting result evrytime even when i didnt run the CM07 transaction.how can i check that before running z transaction the cm07 has already been executed??
Regards
Lalit

Mike,
You actually declare a structure and not a table. The correct coding would be:
  TYPES: BEGIN OF s_ptext,
            LINE(78),
         END OF s_ptext,
         t_ptext TYPE STANDARD TABLE OF s_ptext.
  DATA: ptext TYPE t_ptext,
        lines TYPE I.
  lines = LINES( ptext ).
I would seriously recommend that you read first at least one good ABAP book (or the online documentation). For a newbie, the responsibility is really yours to get up to speed. This forum can not handle general education and still have value for other people that really or slightly more advanced. I think that questions should already show somebody has invested some time to read up on the basics.
brian

Similar Messages

  • 1-to-1 Relationship Between UI and subVI Data Cluster

    Discussion continued from here.
    In summary:
    JackDunaway wrote:
    Yes,
    I can see clear benefits in implementing this Idea - that is, if your
    underlying datatype elements have a 1:1 relationship with the UI
    elements.
    I will
    illustrate this point by showing some potential flaws in your example:
    "Profile Running" and "Profile Complete" are mutually exclusive, no?
    Wouldn't it be better to have a single enum named "Profile" with three
    elements "Idle, Running, and Complete" for the underlying datatype?
    Having two mutually exclusive pieces of data in an underlying datatype
    is among my favorite of code smell indicators.
    Also, the underlying datatype probably only needs "Forward Miles" and
    "Reverse Miles" since "Total Miles" is derived. Exclude "Total Miles"
    from the underlying cluster and just show the sum for display.
    Another
    argument against using a 1:1 relationship: the customer now wants to
    multiply speed by -1 if Direction==Reverse and not show the Direction
    enum on the UI. The data source (the VI that generates the data) would
    need to be updated using your 1:1 relationship. Using underlying data
    different from the display data, only the data client (the UI front
    panel) needs to change. I would be much more inclined to service the UI
    FP for a cosmetic upgrade rather than tracing the data source back
    through the HMI framework, through TCP, back to the RT, back to FPGA...
    Basically...
    I question a perfectly overlapped Venn Diagram where the set of data
    shown to the user equals the dataset used for underlying data
    processing/messaging/storing. The underlying datatype should be as
    stripped and streamlined as possible, while the display datatype can
    inherit all the flair and post-processing that Upper Management wants to
    see in a UI.
    LabBEAN wrote:
    <JackDunaway wrote
    I will illustrate this point by showing some potential flaws in your example...
    <LabBEAN response
    The data you see maps directly to tags on the PLC.
    <JackDunaway wrote
    Yes, I can see clear benefits in implementing this Idea - that is, if your underlying datatype elements have a 1:1 relationship with the UI elements.
    <LabBEAN response
    JackDunaway wrote:
    This is a good indicator that we're both aware at this point that I'm
    missing something... in all seriousness, could you reply to the 1:1
    argument? I really want to understand this Idea and learn how/if I need
    to apply it to my own style (our last back-and-forth turned out to be an enlightening and introspective exercise for me).
    ***EDIT: By all means, please start a discussion on the LabVIEW board so we're not hindered by the Exchange's interface. ***
    My long delayed response:
    The indicators you see map to tags on the PLC.  That is, we were connecting through OPC to an application on a PLC that was written ~15 years ago.  I have a VI where I read a bunch of SVs (Shared Variables).  Each SV is bound through OPC to a PLC tag.  In the interest of disclosure, two 16-bit tags are required to represent each 32-bit mileage number.  In the same subVI, I read each set of mileage tags, convert, and feed my subVI cluster indicator.  The same is true for wheel size:  three bits get converted to the enum.  Regardless, though, I have one subVI that reads SVs and outputs the same "underlying data" cluster that is seen on the UI.  The UI has a "Faults" cluster full of fault Booleans that follows the same logic.  When the user configures a profile of steps, they do so via an array of "step" clusters (although the cluster look is hidden for aesthetics).  It's the same thing as above except we write tags instead of reading them.
    In my case, each set of 16-bit tags is worthless as two 16-bit numbers.  They are only useful as a 32-bit mileage, so I don't pass around the raw 16-bit data.  The same is true for the wheel size bits. My software can just as easily (in fact, more easily) operate on the enum.  So, the underlying cluster from the subVI is programmatically useful and applicable to the UI.  I would guess that the same is true for a lot of RT applications, where the read VI can have some intelligence to process the data into useful / applicable clusters.
    There are going to be cases where "Upper Management" would like to see "flair and post-processing" as you say.  Your speed illustration is a good example of this.  There are also instances where the cluster works fine on the UI the way it is (like this one and many others that we've seen).
    <JackDunaway wrote
    "Profile Running" and "Profile Complete" are mutually exclusive, no?
    Wouldn't it be better to have a single enum named "Profile" with three
    elements "Idle, Running, and Complete" for the underlying datatype?
    <LabBEAN response
    Did you mean "not" mutually exclusive?  We combined 3 "dependent" (not mutually exclusive) Booleans into an enum for Wheel Size, as I mentioned above.  Not sure now why we went the other way with these two (this was 2 years ago).  In any event, with regard to UI representation, I still pass a cluster out of my read-raw-data-and-process-into-cluster subVI up to the applicable queued state machines and to the UI.
    <JackDunaway wrote
    Having two mutually exclusive pieces of data in an underlying datatype
    is among my favorite of code smell indicators.
    <LabBEAN response
    Working with applications written in ladder logic, it is not uncommon to see separate Booleans that indicate the same condition.  This seems to be especially true when safety is a concern.  That is, ladder Coil A ON and Coil B OFF == switch open.  Coil A OFF and Coil B ON == switch closed.  If you ever read OPC tags from Coil A and Coil B and the two are the same, you know the ladder is in transition (hasn't updated the tags).  Throw that point out and read again.
    I, too, appreciate our back-and-forths.  Good discussion.
    Certified LabVIEW Architect
    Wait for Flag / Set Flag
    Separate Views from Implementation for Strict Type Defs

    Thanks for replying, Jason. Let me see if I can craft a coherent response after getting back up to speed...
    (...later)
    OK, let's go. I'm going to fully agree with you that LabVIEW imposes a strange constraint unique from most other languages where a Typedef defines two things: the underlying data structure, and also the view. A Strict Typedef should be more accurately deemed the Datatype-View-Definition, and a Typedef would be more accurately called the Datatype-Definition-and-View-Suggestion. And to be clear, there are two types of views: the programmer's view (a SubVI look and feel) and the UI view (what the user and Upper Management sees). (Finally, I admit I'm ignorant whether view or View is more a more appropriate term)
    Linking the programmer's view to the datatype is perfectly fine with me, and based on your original Idea I think we both agree that's OK. I think we run into a disagreement where you have loosely tied the concept of "Strict TD" to "UI View".
    Historically, I have used Strict Typedefs for the programmer's view (SubVIs), since I like to maintain a "functional UI" at the SubVI level. I don't use type definitions on User Interfaces - only Controls. That's the reason your Idea does not appeal to me, but perhaps if your Idea were implemented, it would appeal to me since View and Implementation would be divorced as separate entities within the Type Definition. (Does that classify as a Catch-22?) So, you're Idea is fundamentally suggesting that Type Definition .ctl files should be more accurately called "a container that holds both a Type Definition and any number of View Definitions as well".
    Fundamentally, I think I finally understand the gist of your Idea: "let's ditch this weird constraint where View and Datatype are inextricably defined together in one file", and for that, I'll give Kudos to the original Idea. I got really tied up with the example you used to present the Idea, and plus I'm still learning a lot.
    Additional thoughts:
    This Idea reminds me of another: Tag XControl as Class View
    We've still got some arguing to do on a 1:1 relationship between underlying datatype and UI presentation, so put your mean face back on: 
    Since our last conversation, interestingly, I have been on an anti-Typedef kick altogether.  Why don't you drop some feedback on my attempt at a completely typedef-free UI framework?
    a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"] {color: black;} a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"]:after {content: '';} .jrd-sig {height: 80px; overflow: visible;} .jrd-sig-deploy {float:left; opacity:0.2;} .jrd-sig-img {float:right; opacity:0.2;} .jrd-sig-img:hover {opacity:0.8;} .jrd-sig-deploy:hover {opacity:0.8;}

  • How to convert an AVI frame to an image data cluster ?

    Hi everybody,
    I have previous VIs that manipulate pictures (image data cluster) readen from JPEG files. I'd like to use these VIs to analyse individual frames from an AVI file.
    How can I connect the image out of the IMAQ AVI read.vi to the picture input of the Draw Flattened Pixmap.vi?
    Thanks for helping,
    Olivier
    Solved!
    Go to Solution.

    Thanks for the tip but, in my implentation, it generates that the no picture can be manipulated. Could you tell me where is my mistake?
    Thanks,
    Olivier
    Attachments:
    AVI2JPEG.vi ‏15 KB
    clock.avi ‏81 KB

  • Warning:The EXPORT data cluster is too large for the application buffer.

    Hi Friends,
    I am getting following warning messages whenever I click on costing in "Accounting" tab.
    1. Costing data may not be up to date  Display Help
    2.  No costing variant exists in controlling scenario CPR0001
    3.  An error occurred in Accounting (system ID3DEV310)
    4. The EXPORT data cluster is too large for the application buffer.
      I can create project automatically from cprojects. PLan costs, budget and actuals maintain in WBS elements can be visible in cproject Object Links.
    Your reply is highly appreciated.
    Regards,
    Aryan

    Hi;
    Please, check the Note --> 1166365
    We are facing the same problem in R3, but apply this no fix it.
    Best regards.
    Mariano

  • Can anyone give me some documents for data cluster

    Hi,
    can anyone give me some documents for data cluster?
    ths!
    regards!

    Hi ,
    The following is a documentation on the <b>Data Cluster</b>:
    <b>Data clusters</b> are specific to ABAP. Although it is possible to read a cluster database using SQL statements, only ABAP can interpret the structure of the data cluster.
    You can store <b>data clusters</b> in special databases in the ABAP Dictionary. These are called ABAP cluster databases, and have a prescribed structure:
    <u><b>Cluster Databases</b></u> ( I have explained the cluster databse below )
    This method allows you to store complex data objects with deep structures in a single step, without having to adjust them to conform to the flat structure of a relational database. Your data objects are then available systemwide to every user. To read these objects from the database successfully, you must know their data types.
    You can use cluster databases to store the results of analyses of data from the relational database. For example, if you want to create a list of your customers with the highest revenue, or an address list from the personnel data of all of your branches, you can write ABAP programs to generate the list and store it as a data cluster. To update the <b>data cluster</b>, you can schedule the program to run periodically as a background job. You can then write other programs that read from the data cluster and work with the results. This method can considerable reduce the response time of your system, since it means that you do not have to access the distributed data in the relational database tables each time you want to look at your list.
    <b>Cluster Database :</b>
                    Cluster databases are special relational databases in the ABAP Dictionary that you can use to store data clusters. Their line structure is divided into a standard section, containing several fields, and one large field for the <b>data cluster.</b>
    <b>Creating a Directory of a Data Cluster</b>
    To create a directory of a data cluster from an ABAP cluster database, use the following statement:
    Syntax
    <b>IMPORT DIRECTORY INTO <dirtab>
                     FROM DATABASE <dbtab>(<ar>)
                     [CLIENT <cli>] ID <key>.</b>
    This creates a directory of the data objects belonging to a data cluster in the database <dbtab> in the internal table <dirtab>. You must declare <dbtab> using a TABLES statement.
    To save a <b>data cluster</b> in a database, use the <b>EXPORT TO DATABASE</b> statement .
    For <ar>, enter the two-character area ID for the cluster in the database. The name <key> identifies the data in the database. Its maximum length depends on the length of the name field in <dbtab>. The CLIENT <cli> option allows you to disable the automatic client handling of a client-specific cluster database, and specify the client yourself. The addition must always come directly after the name of the database.
    The IMPORT statement also reads the contents of the user fields from the database table.
    If the system is able to create a directory, SY-SUBRC is set to 0, otherwise to 4.
    The <b>internal table</b> <dirtab> must have the ABAP Dictionary structure CDIR.
    <b>******** Sample Program illustrating the data cluster .</b>
    PROGRAM Zdata_cluster.
    TABLES INDX.
    ******to save data objects in cluster databases
    DATA: BEGIN OF ITAB OCCURS 100,
            COL1 TYPE I,
            COL2 TYPE I,
          END OF ITAB.
    DO 3000 TIMES.
      ITAB-COL1 = SY-INDEX.
      ITAB-COL2 = SY-INDEX ** 2.
      APPEND ITAB.
    ENDDO.
    INDX-AEDAT = SY-DATUM.
    INDX-USERA = SY-UNAME.
    INDX-PGMID = SY-REPID.
    EXPORT ITAB TO DATABASE INDX(HK) ID 'Table'.
    WRITE: '    SRTF2',
         AT 20 'AEDAT',
         AT 35 'USERA',
         AT 50 'PGMID'.
    ULINE.
    SELECT * FROM INDX WHERE RELID = 'HK'
                       AND   SRTFD = 'Table'.
      WRITE: / INDX-SRTF2 UNDER 'SRTF2',
               INDX-AEDAT UNDER 'AEDAT',
               INDX-USERA UNDER 'USERA',
               INDX-PGMID UNDER 'PGMID'.
    ENDSELECT.
    ****To create a directory of a data cluster from an ABAP ****cluster database
    DATA DIRTAB LIKE CDIR OCCURS 10 WITH HEADER LINE.
    IMPORT DIRECTORY INTO DIRTAB FROM DATABASE
                                      INDX(HK) ID 'Table'.
    IF SY-SUBRC = 0.
      WRITE: / 'AEDAT:', INDX-AEDAT,
             / 'USERA:', INDX-USERA,
             / 'PGMID:', INDX-PGMID.
      WRITE  / 'Directory:'.
      LOOP AT DIRTAB.
        WRITE: / DIRTAB-NAME,  DIRTAB-OTYPE, DIRTAB-FTYPE,
                 DIRTAB-TFILL, DIRTAB-FLENG.
      ENDLOOP.
    ELSE.
      WRITE 'Not found'.
    ENDIF.
    *******run this program and see the result.
    Hope this documentation will give you an idea of data cluster.
    if useful, do reward with the points.
    Regards,
    Kunal.

  • Export data cluster compression algorithm

    Hi all.
    I am trying to find out the the compression algorithm used when creating attachments using Generic Object Services.  I have debugged and found the the file is stored in a data cluster using the ABAP EXPORT command: EXPORT parameter_list TO medium [COMPRESSION {ON|OFF}].
    Any help would be much appreciated.

    Hi;
    Please, check the Note --> 1166365
    We are facing the same problem in R3, but apply this no fix it.
    Best regards.
    Mariano

  • What is data cluster?

    hi all
    Can any one explain me with an example what is meant by data cluster ?
    regds
    hari

    Data clusters are stored in a storage medium with the help of the statement EXPORT ( see: Statements for Data Clusters) . This is achieved using the different variations of the addition medium. These are as follows:
    · DATA BUFFER xstr for storage in a byte string xstr
    · INTERNAL TABLE itab for storage in an internal table itab (Standard table)
    · MEMORY ID id for storage under the name id in the ABAP Memory
    · DATABASE dbtab ... ID id for storage under the name id in a database table in the ABAP Dictionary
    · SHARED MEMORY dbtab ... ID id and SHARED BUFFER dbtab ... ID id for storage under the name id in the cross-transaction application buffer of the applications server's shared memory.
    In the following you will learn more about the temporary storage of data clusters in ABAP memory and shared memory, as well as permanent storage in databanks. You can find detailed information about the different storage media in the keyword documentation.
    ABAP Memory
    ABAP memory is a memory area within the internal session (roll area) of an ABAP program and any other program called from it using CALL TRANSACTION or SUBMIT.
    ABAP memory is independent of the ABAP program or program module from which it was generated. In other words, an object saved in ABAP memory can be read from any other ABAP program in the same call chain. ABAP memory is not the same as the cross-transaction global SAP memory. For further information, refer to Passing Data Between Programs.
    This allows you to pass data from one module to another over several levels of the program hierarchy. For example, you can pass data
    · from executable programs that have been called using SUBMIT
    · From a transaction to an executable program.
    · Between dialog modules.
    · From a program to a function module.
    and so on.
    The contents of the memory are released when you leave the transaction.
    Database Tables
    You can store data clusters in databases in the ABAP Dictionary. In order to do so, you must create databank tables with a special structure. SAP provides a template databank table called INDX, which you can copy and modify. This is why we also make reference to INDX type tables (see the keyword documentation).
    This method allows you to store complex data objects with deep structures in a single step, without having to adjust them to conform to the flat structure of a relational database. Your data objects are then available system-wide to every user. To read these objects from the database successfully, you must know their data types.
    You can use INDX-type database tables to store the results of analyses of data from the relational database. For example, if you want to create a list of your customers with the highest revenue, or an address list from the personnel data of all of your branches, you can write ABAP programs to generate the list and store it as a data cluster. To update the data cluster, you can schedule the program to run periodically as a background job. You can then write other programs that read from the data cluster and work with the results. This method can considerably reduce the response time of your system, since it means that you do not have to access the distributed data in the relational database tables each time you want to look at your list.
    Although INDX type tables are normal databank tables from the ABAP Dictionary, you should only use them in conjunction with the special statements for data clusters. Only in exceptional cases, for example in order to delete many data clusters from one area with a single statement, can you use Open SQL statements. In order to do this you must have a good working knowledge of the structure of INDX type tables and it is recommended that the table and its contents first be checked for different application cases using the data browser of the ABAP Workbench (transaction SE16).Although it is possible to access an INDX-type database using SQL statements, it is only possible to interpret the structure of the data cluster using ABAP statements.
    Cross Transaction Application Buffer
    The cross transaction application buffer is a storage area on an application server which all ABAP programs of the SAP system running on the same applications server can access. Data clusters in the cross transaction application buffer are exactly the same as data clusters that are organized in databank tables. Here we will refer to the databank table  dbtab. The data are not stored in the databank table itself but in a table with a corresponding set up. Therefore the databank table dbtab must also be an INDX type (see keyword documentation). The structure of this table is then copied for the storage of the cluster in the buffer. This gives you the possibility to store your own administrative information in every cluster in the buffer and import it again as necessary.
    The difference between the application buffers SHARED MEMORY and SHARED BUFFER lies in how the system reacts when the storage limit is reached (see Keyword documentation).
    reward  points if it is usefull .......
    Girish

  • In labview 64bit, Use PostLVUserEvent with user data cluster, unhandled exception occured.

    My labview is Labview 2009 64 bit, I use PostLVUserEvent to post message with cluster data to labview. The following is  the struct in dll:
    typedef struct {
        int32 dimSize;
        uInt8 elt[1];
    } TD1DINT8;
    typedef TD1DINT8 **TD1DINT8Hdl;
    typedef struct{
       int32       interruptSource;
       TD1DINT8Hdl portData;
    }DIInterruptData, *PDIInterruptData, **HDIInterruptData;
    In labview, the DIInterruptData corresponds to a cluster, in which there are a int32 integer and a uint8 array. 
    It works well in labview 32bit. But in labview 64bit, unhanlded exception occured. why?

    Hi Danil,
    when complaining about double-posts one should provide a link to the other thread to guide other users...
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Hr-abap Data Cluster

    Hi
    Q> Why cant we write select query on tables in data clusters? eg. in case of rt, crt (Payroll Result HR-ABAP)

    hi pranesh,
    1. Thats bcos
    2. The data in the table
       is contained in some ENCODED
       raw format,
       which only sap can understand.
    3. So directly writing query,
       would make no sense out of the data.
    4. Hence, sap provides some standard FMs
      for getting the data in such cluster tables
       for getting rt, crt etc.
    5.  eg.
    6. Use this logic and FM.
    DATA: myseqnr LIKE hrpy_rgdir-seqnr.
    DATA : mypy TYPE payin_result.
    DATA : myrt LIKE TABLE OF pc207 WITH HEADER LINE.
    SELECT SINGLE seqnr FROM hrpy_rgdir
    INTO myseqnr
    WHERE pernr = mypernr
    AND fpper = '200409'
    AND srtza = 'A'.
    IF sy-subrc = 0.
    CALL FUNCTION 'PYXX_READ_PAYROLL_RESULT'
    EXPORTING
    clusterid = 'IN'
    employeenumber = mypernr
    sequencenumber = myseqnr
    CHANGING
    payroll_result = mypy
    EXCEPTIONS
    illegal_isocode_or_clusterid = 1
    error_generating_import = 2
    import_mismatch_error = 3
    subpool_dir_full = 4
    no_read_authority = 5
    no_record_found = 6
    versions_do_not_match = 7
    error_reading_archive = 8
    error_reading_relid = 9
    OTHERS = 10.
    myrt[] = mypy-inter-rt.
    READ TABLE myrt WITH KEY lgart = '1899'.
    7. the internal table myrt
    will contain what u require.
    regards,
    amit m.

  • How to pass data from a Delphi pascal DLL class to a LabView data cluster?

    Hi all,
    I have the following problem:
    I'm using a dll written in Delphi Pascal to transfer data to LabView using the "Call Library Function Node".
    My Delphi dll contains this class:
      TFlash=class
        Fi:TFileInfo;
        constructor Create;
        procedure LoadFi(Filedir_and_nametring);
      end;
     TFileInfo=record
        Idx:smallint; 
        IdxLstSpl:array[0..4] of longint;
        Ms:word;
        Sp:array[0..4]of word;
      end;
    I've created the TFileInfo record datastructure into a LabView cluster to have the "same" variable.
    My plan was to call a Deplhi DLL function with the "Call Library Function Node" and to pass the address of the TFileInfo record, so the data would be passed to the LabView Cluster.
    When I make a simple delphi dll function like this, it works because I only pass an small integer to Labview (without reference to the data structure):
    var  Data:TFlash; 
    function GetNrOfRows(FilePath: string):integer;stdcall; 
    begin
      Data:=TFlash.Create;
      Data.LoadFi(FilePath); //this function gets the number of rows out of the selected file.
      Result := Data.Fi.Idx;
    end;
    When I try to use this procedure instead of the function above, to pass the address of the whole complex data structure of "Data" (TFileInfo), I'm unable to get the information of "Data" into my Labview cluster:
    procedure LoadFileInfo(FilePath: string; DataPointer: Pointer);stdcall; 
    begin
      Data:=TFlash.Create;
      Data.LoadFi(FilePath);
      DataPointer:=@Data;
    end;
    Call Library Function Node settings:
    - stdcall (WINAPI)
    - Run in UI Thread
    - Function prototype: void LoadFileInfo(PStr FilePath, void *DataPointer);
          * DataPointer --> Type: 'Adapt to Type' and Data format: 'Pointers to Handles'.
          * FilePath --> Type: 'string', string format: 'pascal string pointer'
    I'm struggeling with this problem for almost a week now and I can't really find a solution on the forum or google.
    I've also read the following posts:
    http://forums.ni.com/ni/board/message?board.id=170&message.id=229930&requireLogin=False
    http://forums.ni.com/ni/board/message?board.id=170&message.id=77947&requireLogin=False
    http://forums.ni.com/ni/board/message?board.id=170&message.id=51245&requireLogin=False
    (or did I miss something in these posts?)
    Hope my explanation is clear.
    Thx
    Solved!
    Go to Solution.

    Ok, I'm one step further:
    Because it works when passing an integer from the dll to Labview,
    I tried a simple vi containing a cluster with an small integer (16 bit signed Integer) in it and passing the pointer to that cluster:
    same settings:
    Call Library Function Node settings:
    - stdcall (WINAPI)
    - Run in UI Thread
    - Function prototype: void LoadFileInfo(PStr FilePath, void *DataPointer);
          * DataPointer --> Type: 'Adapt to Type' and Data format: 'Pointers to Handles'. (and the cluster wired to the output of the Call Library Function Node)
          * FilePath --> Type: 'string', string format: 'pascal string pointer'
    Changed the Delphi function to:
    procedure LoadFileInfo(FilePath: string; DataPointer: Pinteger);stdcall; 
    begin
      Data:=TFlash.Create;
      Data.LoadFi(FilePath);  --> this function fills in the data in Data.Fi
      DataPointer^:=Data.Fi.Idx; --> write the smallint on the address given by Labview
    end;
    When I call my DLL this way, the expected value appears in smallint indicator in de cluster on the front panel.
    When I'm passing a pointer from the TFileInfo Type:
    Delphi:
    var  Data:TFlash;
    type  PtrTFileInfo = ^TFileinfo;
    procedure LoadFileInfo(FilePath: string; DataPointer: PtrTFileInfo);stdcall; 
    begin
      Data:=TFlash.Create;
      Data.LoadFi(Copy(FilePath,2,length(FilePath)-1));
      DataPointer^:=Data.Fi;
    end;
    During debugging in my Delphi environment: when I get out of this function and pass this to Labview, an error occurs: access violation at 0x004E7125: read of address failed 0x00002A24. Process stopped.
    Is it actually possible to access data with 2 applications? Delphi--> common stack <--Labview

  • DAQ Assistant to typedef data cluster

    Hi All,
    I was hoping someone could be able to shed some light on an issue I have been pulling my hair on for a week now.  I am recently new to LabView (less than 6 months), and up until I have been able to locate/research any issues I had ran into.  The problem I'm having is as follows:
    Basically, I am using an SCXI-1581 and an SCXI-1102B (along with multiple other pieces of hardware) for a device we are creating.  Generating the signals with the DAQ Assistant was quite simple.  The problem I am running into is finding a way to relay these signals to an array or cluster, so that multiple other subvi's can quickly just "Unbundle by Name" to wire to their specified indicators on each page.  I have tried arrays, clusters, typedef's, etc to no avail and I'm not sure where else to look for help.  Unbundling the typedef cluster onto the subvi's works like a charm, the problem is the typedef ctl is not getting any data sent to it so the indicators on the SubVI's never receive a value other than the 0 located in the cluster typedef.  If there is a better way to go about doing this I would sure appreciate the help. 
    Breakdown:  I have 41 thermistors being generated from the DAQ Assistant.  I need to somehow convert this data into a form where it will be able to be constantly updated and read from a typedef/global/something.  I have taken a screenshot of what I was working on when I decided to post here.  There are broken wires atm, because I was trying everything I could think of.  Signal Manipulation/From DDT, Array to Cluster, Build Cluster by Name, Build Array, numerous things.  I basically want all 41 thermistors to leave the DAQ Assistant, be split by channel name/value, and input into an array or cluster that can become global.  I have broken it down to 4 channels in my screenshot for simplicity's sake.
    My apologies for repeating myself or running on, I'm working on very little sleep at the moment
    I appreciate any help anyone can shed on the situation.  Thank you!
    -Justin
    Attachments:
    DAQ_Cluster.png ‏17 KB

    I didn't have it connected in that particular screenshot but I have tried that before.  I just redid that scenario and took another screenshot.  Bringing a cluster typedef and dropping it in, switching to indicator so it will allow an input, and changing the Original Cluster Visible property to FALSE (just so two clusters of 4 Numeric Indicators are not visible).  Using the attached screenshot, the numeric values do update (on the front panel of this VI), but as soon as I connect that typedef to another VI and unbundle, those values do not populate on the subVI.  I changed the DAQ Assistant in this current example (to test)  as I am at home and do not have the 1581/1102B hardware here with me. 
    I will note that I do have this functionality working on another section of the GUI I am working on.  This working portion has 8 Boolean values in a typedef cluster and is exported and unbundled in the same manner as I am trying to get working with these data values on the subVI.  The way that the values get sent to the typedef is different but overall the same way that I would like to aim for on the DAQ_Cluster2 image.  Two screenshots enclosed this time.  I can go into much further detail if necessary.  Thanks again for the feedback.  I'm going to knock out some more of the pages involved for now, if anyone has any more feedback that would be fantastic.
    Also aeastet thank you for your reply as well.  I started reading through your link to Ben's nugget but my brain is mush right now and I am not too familiar at all with some of that functionality.  I will look back at it more soon.
    Thanks again!
    Attachments:
    DAQ_Cluster2.png ‏27 KB
    FCV_Cluster.png ‏8 KB

  • Pooled Data & Cluster Data

    hello
    Can any one give mee a Practical example of both for Pooled data and Cluster Data
    Awards for Sure

    hi,
    Pooled Table:
    Pooled tables are logical tables that must be assigned to a table pool when they are defined.
    Pooled tables are used to store control data. Several pooled tables can be cominied in a table pool.
    The data of these pooled tables are then sorted in a common table in the database.
    (<b>e.g. screen sequences, program parameters or temporary data..</b> )
    Cluster Table:
    Cluster tables are logical tables that must be assigned to a table cluster when they are defined.
    Cluster tables can be used to strore control data.
    They can also be used to store temporary data or texts, such as documentation.
    <b>eg : chk this table PCL1 - HR related data</b>
    rgds
    anver
    Message was edited by: Anversha s
    Message was edited by: Anversha s

  • How to Export data using DATA Cluster?

    Hi,
    I am trying to export around 10000 records using Memory ID concept  in the same session to another spot. 
    IF sy-subrc = 0.
    Exporting the number of total records
      EXPORT g_tot_line FROM g_tot_line TO MEMORY ID c_tline.
    ENDIF.
    My issue : - It throws dump saying
    ''When the SAP paging overflow occurred, the ABAP/4 memory contained
    entries for 8 of different IDs.''
    insufficent space and i need to use the clustres.
    I am not sure how to use Clusters in this scenario....
    Any suggestions will be appreciated..
    Regards,
    Charan

    What is so complicated about Data Clusters ?
    Did you do an F1 or read the online documentation: [http://help.sap.com/abapdocu_70/en/ABAPEXPORT_DATA_CLUSTER_MEDIUM.htm], [http://help.sap.com/abapdocu_70/en/ABAPIMPORT_MEDIUM.htm]
    If you've any specific question, shoot !!!
    BR,
    Suhas

  • Can I use cluster as Xcontrol data

    Hi,
    I am Using a Xcontrol to make interface customized, I need to get a cluster output from the xcontrol.
    I am Attaching the code I am Using Please Help me out in solving this.
    I have Xcontrol and Xcontrol data  I have to get any modification in xcontrol should reflect in xcontrol data cluster.
    Please run the printscreen.vi and check the result.
    LV8.6
    Regards
    Dev
    Attachments:
    Xcontrol.zip ‏106 KB

    You have to specify "data change = true".
    Jean-Marc
    Jean-Marc
    LV2009 and LV2013
    Free PDF Report with iTextSharp

  • How can I have a program prompt a user to input a selected number of simultaneous (different devices run off com/rs232 ports) and be able to compile all the data and/or graph it simultaneously?

    I have a project that I'm working on that I could use some help on.
    Some background on it is I'm taking data from a balance via RS-232 (can be a selectable list of balances), and then communicating with them on their own separate COM port. I need these to then run in parallel to then take masses in regular increments and then output them to a graph and/or TDMS file. 
    What I'm trying to have is that a subVI prompts the user to how many simultaneous runs will be going.
    Then I will want multiple pop prompts (one for each simultaneous run) which will have initial data input (data cluster) and then associate these with the COM port and the specified balance. 
    I initially thought of utilizing a For Loop this way but I can't get these windows to pop up multiple times while storing their own values in say a cluster array. Can anyone give me any ideas to get me a little further?

    Cameron,
    I've created a prompt for the user to select the number or runs to be run simultaneously. 
    This then should trigger the amount of prompts the user needs to input - ie VISA resource, and headers to label the "samples".
    I want this to be done in multiples (somewhere around 1-10 simultaneous runs - bounded by the program) so that data points from multiple sources can be taken and graphed/saved to file. I just am having issues with the loop situation to be able to keep prompting the user X times and also output the data to the front panel. Originally i thought I could somehow manipulate a tab control container but I'm getting roadblocked. 
    Does that help you understand what I'm trying to do?
    I've attached an image of what I want the user to input for each sampling.
    Attachments:
    Capture11.JPG ‏24 KB

Maybe you are looking for