DIAdem GPI: import groups in Data Portal

Hello,
I've developed a GPI-DLL to import my XML file, with the GPI extension toolkit (10.2).
So now, from my GPI, I can read the XML file (C++ function), but I don't know how to create a group in the data portal, (then the channel).
Which function can i use?
My configurationis DIAdem 10.2.0
Best regards,
Fred

Hi,
The best way to import data in DIAdem is to
develop a DataPlugin. Have you taken a look at the DataPlugins API? You should
prefer the DataPlugin technique over the GPI file filter technique.
To your question: There is no GPI-API
function for creating groups, but you can use the DIAdem ToCommand interface
for doing this. The attached example DLL shows how.
Register the DLL within DIAdem and run the
command “PropTest” in the module SCRIPT.
“PropTest” creates new root attributes
(“RPInt16”, “RPInt32”, …) and groups (“G1”, 
…)in the data portal.
Under the hood: The C++ function “PropTest“
in „PropTestCmd.CPP“ creates for example new groups with help of the class
“CDIAdemLayer”. “CDIAdemLayer” instances the DIAdem ToCommand interface and
provides a lot of methods for the handling of attributes and groups.
How does for example the method “RootPropertyCreate”
work? It is really simple. DIAdem provides the script command “RootPropCreate“.
Within “RootPropertyCreate” a string like “RootPropCreate("RPInt16", "DataTypeInt16")”
will be assembled and with help of the ToCommand method “CmdExecuteSync”
executed.
Thomas
Attachments:
PropTest.zip ‏426 KB

Similar Messages

  • IPhoto '06 - '08 Import Issues: Album Names Not Imported; Grouped by Date

    I imagine my circumstances aren't uncommon... After a clean install of Leopard and iLife '08 on my MacBook, I wanted to import my iPhoto '06 library into iPhoto '08. I had archived on an external hard drive the iPhoto Pictures directory from iPhoto '06 (the directory from ~user/Documents/Pictures/iPhoto Pictures/).
    Using the File>Import to Library function in iPhoto '08 and selecting the iPhoto '06 library resulted in all of the pictures coming in, *but they weren't organized in the albums I created in iPhoto '06*. Instead, all pictures were organized into groups by date.
    What in the ham sandwich is the proper way to import an iPhoto '06 library so that all of the old album names and organization is maintained in iPhoto '08?
    Many thanks for your time!

    TD,
    Many thanks for the advice. I found one other thing that I wanted to ask about before giving this a whirl.
    I noticed that the iPhoto Library in '08 is in fact a package, not a directory. Given that, there are two possible courses of action, and I wanted to know which was best.
    1. Delete the iPhoto '08 "iPhoto Library" package and replace it with the '06 "iPhoto Library" directory.
    2. Replace the contents of the '08 "iPhoto Library" package with the contents of the '06 "iPhoto Library" directory?
    I was uncertain about option 1, as I didn't know how getting rid of the package would affect the application (or if it's needed).
    Cheers,
    R

  • Getting file names of different groups in a data portal

    Hi,
    I am finding difficult to retreive the file names of the different groups loaded in the data portal. For example, say I have loaded two different files of same ext .tdms in to the data portal which automatically assigns as two groups. My objective is to retreive the file name of the two groups loaded using VBS in diadem 11.1.
    Can anyone help me in this regard.
    Regards,
    X. Ignatius
    Solved!
    Go to Solution.

    Thanks Andreas,
    I have got a plugin which loads the multiple lvm files with their sourcefile name. Earlier it would be like Labview Data, Labview data1, Labview data2.... when multiple files are loaded. Now with this plugin attached in the startup script, all the files are loaded with their original file names.
    Attached the plugins, place the Custom LVM Load Event. Vbs in the start up script, the other attachment is the function callled by the main script.
    Regards,
    X. Ignatius
    Attachments:
    Custom LVM Load.VBS ‏1 KB
    Custom LVM Load Event.VBS ‏2 KB

  • Data Portal Group Collapsing

    Hello! I would like to know if there is a way to programatically collapse each group in the Data Portal. I am creating many new groups programatically and also have many groups in the portal. After each is complete, I must either manually collapse each group or scroll down. This isn't a big problem, but it would be great if my script could collapse the groups before finishing.
    Thank you!
    Julia

    Hi Beri,
    As of DIAdem 11.0 and later there is a new "Portal" object with which you can remote-control what is shown in the Data Portal.  The following command will close all the the Channel Groups:
    Call Portal.Structure.Collapse(Data.Root) 
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

  • DIAdem taking a long time to load 700MB TDMS file to data portal

    I'm trying to load a 700MB TDMS file into DIAdem ,4 channels 10Hz sampling rate over 4 days . When i drag the file into the data portal , diadem freezes up , its on a 2GB machine, file located on the desktop, not running any other programs and it went 50min without being able to load before i made it quit. seems to work fine on smaller files though . Was wondering if this sounds normal and if anyone knows a way around it.
    yin
    Solved!
    Go to Solution.

    Thanks for all your input. 
    YongqinYe and Brad : I've tried defragmenting but this also seems to be taking a  long time (in excess of ) on 2 different machines. The index file is 300MB, so about 75% of the *.tdms, 
    Otmar:  i also tried registry loading the data but this still took a long time  on this particular file although it worked great on smaller files (5MB). 
    Brad : the file does not open in the labVIEW TDMS viewer  although i'm able to view it in chunks of 65000 using the TDMS importer for excel. 
    Stefan: the file does have explicit time stamp channel . 
    Any extra help would be appreciated but the way I'm thinking of doing it now is to use much longer buffer size (from only 6 to a few hundred) when collecting the data to decrease the level of fragmentation. 

  • How do I import non-numeric data into DIAdem?

    I have some non-numeric data in an Excel file which I would like to import into DIAdem. DIAdem recognizes the file and imports some of the data, but it only imports those cells that are purely numeric. Cells containing non-numeric characters are ignored. But I need that non-numeric data! How do I force DIAdem to import everything? (Some controls appear in the import dialog that seem like they might be useful here but they're greyed out.)

    Hi There,
    You can not load text columns from ASCII files into DIAdem 8.1 DATA channels (numbers only). But the ASCII Import Wizard will let you send those text values to either a separate ASCII file, which DIAdem can use to put them on a graph as labels, or to a DIAdem string array, which DIAdem can use to display them at various places in its environment.
    The below attachments demonstrate reading an ASCII text column into a DIAdem string array and displaying the values on a DIAdem table in GRAPH. Note that the index values of the string array are placed in a DIAdem DATA channel.
    Ask if you have further questions,
    Brad Turpin
    NI
    Attachments:
    ASCII_Text_Column.txt ‏1 KB
    ASCII_Text_Column.STP ‏1 KB
    ASCII_Text_Column.LPD ‏3 KB

  • How do I check to see if a channel group exists in the data portal?

    I have a list of channel groups in the data portal but sometimes some channel groups  are not created all the time.  How do I check using a script if a channel group exists or was created.

    Hello jreynolds!
    With the command 'GroupIndexGet'. It returns 0 if the group does not exist.
    Matthias
    Matthias Alleweldt
    Project Engineer / Projektingenieur
    Twigeater?  

  • How to display .lvm filename in data portal?

    When I drag a .lvm file to the data portal, it lists it as 'LabVIEW_Data' rather than the filename that I dragged there. When I drag another .lvm file it lists it as 'LabVIEW_Data2'. How can I get it to display the filenames that were dragged there instead of a generic 'LabVIEW_Data'?

    Hi Dewey,
    Unzip the below attached two VBScript files somewhere on your hard drive where you're willing to leave them.  Then run the "Custom LVM Load.VBS" in DIAdem SCRIPT.  Now drag a new LVM file into the Data Portal.  You should see the Group take on the name of the LVM file.  The custom load event only renames the Group if the channels in that last Group were loaded with the "LVM" DataPlugin.
    You can configure your DIAdem to always start with the "Custom LVM Load.VBS", declared as part of DIAdem's launch cycle, by editing the "Start Script" field in the "General Settings" dialog and then saving the settings prior to shutting down DIAdem.
    Ask if you have further questions,
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments
    Attachments:
    Custom LVM Load.zip ‏1 KB

  • Export and Import of Configuration Data

    Hi All,
    I have created a number of custom properties, structures, groups, renderers, layout sets etc and would like to move them from Dev to Test system.
    I have found the following in the help doco:
    "Export and Import of Configuration Data"
    http://help.sap.com/saphelp_nw04/helpdata/en/e1/029c414c79b25fe10000000a1550b0/content.htm
    However I am unable to see its functionality in our portal systems (namely the Actions->Export and Actions->Import functions).
    Our version of Portal is: 6.0.9.6.0
    KM: 6.0.9.3.0 (NW04 SPS09 Patch3)
    Therefore we should be able to see it? no?
    Are there any special settings to see these buttons?
    Cheers,
    Vic

    Thanks for your replies.
    OK, so in otherwords, it is not available in SP09 and only in SP12+.
    So, to "transport" this information I will have to manually reapply thes settings in the Test system!
    Message was edited by: Victor Yeoh

  • How to delete only a portion of the data portal?

    This would be similar to DataDelAll() command, but allow only a limited set of data to be removed.
    For some background:
    - DIAdem 9.1 sp2
    - LabVIEW interface calling various DIAdem/VBS scripts
    Using DIAdem to format reports based on various scripts and TDM data
    results, I would like to be able to load and unload various data files
    (TDM) while maintaining the specific report layout (also TDM) data in
    the portal.  Two (ugly) options seem to be:
    a)  load entire data result set into the portal (including layout instructions) and process, or
    b)  keep track of layout state variables and clear portal/reload layout/load next data
    This would all be easy if there is a command to enable the right-click delete... behavior of the data portal UI.
    Thanks!
    James

    Hello James,
    there are diufferent commands you can use to delete only a portion of the data in the portal. You can delete single channels, a selection of channels, or entire groups with these three commands:
    Call ChnDel(ChnArg) - deletes one channel
    Call ChnDelete(ClpSource) - deletes a selection of channels
    Call ChnSDel(ChnArg1, ChnNo) - delets a number of channels
    Call GroupDel(TargetGroupIndex) - deletes a group including its channels
    To create a selection of channels as argument for the second command, have a look at the functions
    ChnSelAdd, ChnSelGet, ChnSelCount
    Regards
    Ingo Schumacher
    Systems Engineer Sound&VibrationNational Instruments Germany

  • How to transport Associated Group in a Portal Role?

    Hi,
    I created a portal role which is contained in a folder X under Portal Content.  This portal role is associated with a particular ABAP menu-role by means of Assigned Groups.  When I transported the folder X with all dependent objects from Dev to QA, the portal role appeared but the Assigned Groups is empty.  Another words, the association between portal role and the ABAP menu-role could not be transported.  How can Associated Groups in a Portal Role be transported?
    Thank you in advance.
    Best regards,
    Zabrina

    Hi,
    I have tried to do it in two steps:
    1. Export and import portal contents which include the whole structure with folders, roles and iviews under each role.
    2. Export and import the same roles as user management data
    The result from 1 was that the whole structure including the roles is imported; however none of the portal role contains the associated assigned group.
    The result from 2 was that the UME roles with assigned group are imported as separat objects.
    Now, the same role appears both as portal role without assigned group and the UME object with assigned group. But, there is no connection between 1 and 2.  That means that I cannot use 2 anyway.
    Is there any other way to do than to export 1 and manuelly modify 1 with assigned role once again after transport?
    Thank you in advance for any helpful advice.
    Best regards,
    Zabrina

  • Creating a time channel in the data portal and filling it with data - Is there a more efficient way than this?

    I currently have a requirement to create a time channel in the data portal and subsequently fill it with data. I've shown below how I am currently doing it:
    Time_Ch = ChnAlloc("Time channel", 271214           , 1      ,           , "Time"         ,1                  ,1)              'Allocate time channel
    For intLoop = 1 to 271214
      ChD(intLoop,Time_Ch(0)) = CurrDateTimeReal          'Create time value
    Next
    I understand that the function to create and allocate memory for the time channel is extremely quick. However the time to store data in the channel afterwards is going to be highly dependent on the length I have assigned to the Time_Ch. In my application the length of Time_Ch is variable but could easily be in the order of 271214 or higher. Under such circumstances the time taken to fill Time_Ch is quite considerable. I am wondering whether this is the most appropriate way of doing things or whether there is a more efficient way of creating a time channel and filling it.
    Thanks very much for any help.
    Regards
    Matthew

    Hi Matthew,
    You are correct that there is a more efficient way to do this.  I'm a little confused about your "CurrDateTimeReal" assignment-- is this a constant?  Most people want a Time channel that counts up linearly in seconds or fractions of a second over the duration of the measurement.  But that looks like you would assign the same time value to all the rows of the new Time channel.
    If you want to create a "normal" Time channel that increases at a constant rate, you can use the ChnGenTime() function:
    ReturnValue = ChnGenTime(TimeChannel, GenTimeUnit, GenTimeXBeg, GenTimeXEnd, GenTimeStep, GenTimeMode, GenTimeNo)
    If you really do want a Time channel filled with all the same values, you can use the ChnLinGen() function and simply set the GenXBegin and GenXEnd parameters to be the same value:
    ReturnValue = ChnLinGen(TimeChannel, GenXBegin, GenXEnd, XNo, [GenXUnitPreset])
     In both cases you can use the Time channel you've already created (which as you say executes quickly) and point the output of these functions to that Time channel by using the Group/Channel syntax of the Time channel you created for the first TimeChannel parameter in either of the above functions.
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

  • From Mysql to Data Portal

    Dear All,
    I am new in DIAdem 12.0, I want to create a VBS script to create queries from a mysql server.
    Data is structured in different tables  and in its table data is structured in the way you see below ,
    I want to find the sensors with the same sensor_id and make channels with the respective date and value.
    For example I used the following commands:
    CallSQL_Select("sensor_id,measdate,measvalue","seal_pp_a_final","sensor_id=2 ORDER BY sensor_id","")
    Call SQL_BindChannel("date1","measdate","n")
    Call SQL_BindChannel("PP-A1","measvalue","n")
    It worked but the date values are not in this format 2013-06-19 00:00:00 do you know how I can solve this problem ?
    Since there are many sensors can I use a loop for example if I want to read from sensor_id (1-100)
    write something like
    For i=1 to 100
    CallSQL_Select("sensor_id,measdate,measvalue","seal_pp_a_final","sensor_id=i ORDER BY sensor_id","")
    Call SQL_BindChannel("date(i)","measdate","n")
    Call SQL_BindChannel("PP-A(i)","measvalue","n")
    i=i+1
    End
    Looking forward to your Comments .
    Thank you in advance,
    Ioannis
    Sensor_id
    Datetime
    Value
    1
    2013-06-19 00:00:00
    1.2
    1
    2013-06-19 01:00:00
    1.3
    2
    2013-06-19 00:00:00
    5.6
    2
    2013-06-19 01:00:00
    5.7
    3
    2013-06-19 00:00:00
    310.2

    Hi Engineer,
    I would strongly advise you to switch to the ADO method of querying the data base columns.  ADO will return the query results as variants, which allows you to handle all the different column data types with no effort.  There are additional advantages to ADO as well.  I adapted a standard example script I use with your column and table names and query and order conditions:
    ' needs to be set to a valid ADO connection string for data base
    ConnectionStr = "Dsn=ABCDEFG;Uid=;Pwd=;"
    ' construct the SQL query to execute
    Table = "seal_pp_a_final"
    ColStr = "sensor_id,measdate,measvalue"
    CondStr = " WHERE sensor_id=2"
    SortStr = " ORDER BY sensor_id"
    QueryStr = "SELECT " & ColStr & " FROM " & Table & CondStr & SortStr
    MsgBox QueryStr
    ' Connect to the data base
    Set ADO = CreateObject("ADODB.Connection")
    ADO.Open ConnectionStr
    ' Execute the query and import the resulting data records into a VBScript variable
    Set RecordSet = ADO.Execute(QueryStr)
    RowVals = RecordSet.GetRows()
    ChanNames = Split(ColStr, ",")
    ' Send the resulting data records from the query to new channels in the Data Portal
    Call DataDelAll
    Call GroupCreate(Table)
    Call GroupDefaultSet(GroupCount)
    Channels = ArrayToChannels(RowVals, ChanNames, 1)
    ' Disconnect from the database and output the query used and any errors
    ADO.Close
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

  • Error Importing a Transport in portal - Using custom role

    Hello Everyone,
    I have a custom role “XYZ” which has a few worksets copied (as delta links) from the standard System Administration Role. These worksets include Transport, Portal Display and Monitoring.
    Now, I have assigned a user “ABC” the following roles:
    1.Role XYZ
    2.Content Admin Role
    When the User “ABC” with the above mentioned roles, tries to import a transport package into the system he gets and authorization error. (This error does not occur if I assign the user “Super Admin Role”).
    Error Details :
    com.sapportals.portal.transport.RepositoryAccessControlException
    Import data – Access denied. (Object(s): pcd:……………..
    Object ID: …………
    Transport File: ………………..
    Original Exception:
    com.sapportals.portal.pcd.gl.PermissionControlException: Import data – Access denied. (Object(s): pcd:……………..
    at com.sapportals.portal.pcd.gl.transport.PcdGlTransportAdapter.checkPermission
    at  com.sapportals.portal.pcd.gl.transport.PcdGlTransportAdapter.startElement
    at   com.sapportals.portal.pcd.gl.xml.ContentHandlerManager.startElement
    <b>Questions:
    1.     Is it really possible to have this functionality (ability to Import and Export without Assigning System admin or super admin roles) achieved?
    (I went through a thread Portal role for transporting objects on SDN which discusses this scenario)
    2.     How should I check for additional authorizations required for Importing / Exporting Transport packages into portal. (without having assigned the super admin role or system admin role).</b>Thanks To all of you…
    Joan Thomas

    Thanks for the inputs.
    I have fixed the problem.
    To assign content objects to a package, you need at least read permission for the objects to be assigned.
    You can only import objects into the Portal Content Directory if you have read/write permission for each folder in the Portal Catalog where the imported objects will be stored.
    To create a transport package in a certain folder of the Portal Catalog, you need read/write permission for this folder.
    These 3 points helped me do the required.
    Raj

  • Error importing vendor master data from ERP

    Hi experts,
    currently we are trying to import vendor master data from ERP to SAP Sourcing 9.
    We exported the data in an XML file by using the transaction BBP_ES_MAST_DOWNLOAD.
    We already imported all the dependencies like vendor account group, purchase org, regions etc. successfully.
    However, every time we are trying to import the vendor data we receive the same result:
    Data Import:
    Trace.txt:
    Do you have any hints why this happens?
    Thanks in advance and best regards,
    Johannes

    Hello Johannes,
    This looks to come from a custom script in your system.
    Go to Setup > Script Definition and check all scripts defined on class "Supplier" (starting with those on context: Import Lifecycle Event).
    Search for a script that starts with "throw doc.createApplicationException(test..."
    Regards,
    Bogdan

Maybe you are looking for

  • Unable to complete backup. An error occurred while copying files to backup

    I erased and restarted my time capsule numerous times and tried re backing up. Little more then have way through i get this message "Unable to complete backup. An error occurred while copying files to the backup volume." With about 80gb left out of 1

  • ITunes keeps synching extra songs when none are selected.

    I have recently decided to redo the way I sync my music to my iPhone because I kept getting duplicate songs and playlists wouldn't sync correctly (and I don't think it's worth it to get iTunes Match). I cleared all of the music off of my iPhone 6 man

  • OSX LION NO SPEAKER SOUND but headphones still work

    After pluggin in headphones, and then removing them, sound is dead. Have tried every single fix I can find, except re-installing the OS. I think this needs to be sorted ASAP and not a fix.

  • Webservice invoke call doesn't work

    I'm invoking a webservice with axis, and it isn't working ok. It seems as if it's making something, but at the end it doesn't return anything. After executing all necessary methods (addParameter, setReturnType,setOperationName...) i execute invoke me

  • POTS/Analog Dial Access with PVDM3 and 3900? Possible?

    I have a PVDM3-16, 3925 and HWIC-CE1T1-PRI. I have a T1 terminating in the HWIC and the other end goes to an ATLAS 800. I dial into it with an analog v.92 modem. It provides dial-tone and a phone numbering setup. Sort of a self-contained phone system