Definition of the ASAM-ODS unit

Hello

I'm creating a file converter that should correspond to the ASAM ODS standard.

I use the "storage/data plugin" tip screws, range of the file IO. For now my test are based on the creation of an ATF file on my computer. Eventually the Oracle server with the asam-ods database.

The *.atf files that I create can be read: 'Tiara' and "AVL Concerto" too.

The problem I have is the association of a unit (rUnit) of my "MeasurementQuanties". I understand that I must pass a reference to the unit

INSTELEM MeasurementQuantity
  Id = 67;
  iName = "P_CV_CEE";
  rMeasurement = 3;
  rUnit = UNDEFINED;
  rQuantity = UNDEFINED;
  iDataType = "DT_FLOAT";
  iDescription = UNDEFINED;
  iSize = UNDEFINED;
  iSystemName = UNDEFINED;
  iChannelMode = UNDEFINED;
  iInterpolationMode = UNDEFINED;
  iDelayTime = UNDEFINED;
  iDeadband = UNDEFINED;
  iLocalName = UNDEFINED;
  LocalColumn = 67;
ENDINSTELEM;
INSTELEM Unit Id = 45; iName = "hhmmss"; rPhysicalDimension = 35; iGain = 1.; iOffset = 0.; iSystemName = "hhmmss"; iUser = "AlmaAutomotive"; iProject = "Common"; iLastUpdate = "20100304183325000000000"; MeasurementQuantity = UNDEFINED; quantities = UNDEFINED;ENDINSTELEM;

I need to change the rUnit = UNDEFINED to something similar to rUnit = UnitID

Any help is appreciated!

Hi Davide.

There are two cases to consider:

(1) the device that you want to assign does not exist and must be added to the unit catalogue

(2) the device that you want to assign already exist in the catalog of the unit

Here's a VBScript code that shows the main actions that need to happen.  In your case, you already have the references to 'Channel' as your reference light green MeasurementQuantity table.

' determine subtypes of aounit and aophysicaldimension
dim unitEntity : set unitEntity = store.Model.Entities("aounit").SubTypes(1)
dim physdimEntity : set physdimEntity = store.Model.Entities("aophysicaldimension").SubTypes(1)

''''''''''''''''''''''''''''''''''''''''''
' I: unit does not exist and we have to create it in the unit catalog
dim channel : set channel = store.GetElementList("tdm_channel", "name=ch1", 1).Item(1)

dim mPhysDim : set mPhysDim = store.CreateElement(physdimEntity, "m")
mPhysDim.Properties("length_exp").Value = 1
mPhysDim.Properties("mass_exp").Value = 0
mPhysDim.Properties("time_exp").Value = 0
mPhysDim.Properties("current_exp").Value = 0
mPhysDim.Properties("temperature_exp").Value = 0
mPhysDim.Properties("molar_amount_exp").Value = 0
mPhysDim.Properties("luminous_intensity_exp").Value = 0

dim cmUnit : set cmUnit = store.CreateElement(unitEntity, "mm")
cmUnit.Properties("factor").Value = 0.001
cmUnit.Properties("offset").Value = 0
cmUnit.References("phys_dimension").Elements.AddReference(mPhysDim)

' now we have created the unit and can add it to the channel
channel.References("unit").Elements.AddReference(cmUnit)

store.Save

''''''''''''''''''''''''''''''''''''''''''
' II: Query the unit already added in case I
dim channel2 : set channel2 = store.GetElementList("tdm_channel", "name=ch2", 1).Item(1)

dim unitEntityName : unitEntityName = store.Model.Entities("aounit").SubTypes(1).Name
dim myUnit : set myUnit = store.GetElementList(unitEntityName, "name=mm",1).Item(1)
channel2.References("unit").Elements.AddReference(myUnit)

store.Save

Brad Turpin

Tiara Product Support Engineer

National Instruments

Tags: NI Software

Similar Questions

  • memoryconsumption-ASAM ODS - AOP5 (Speicherproblem)

    for txt German please read below...

    ****

    Hi @ all,

    I had a problem with memoryconsumption in the code as follows:

    [...]

    Call OdsValAlloc ("VehicleList", "Ods_TYPE_INST", 1).

    Call OdsInstList ("Vehicle", "State = 1 VehicleList", "", OdsHandle)

    intAnzahlVehicle = OdsValCount

    IntI = 1 to intAnzahlVehicle

    ' * Anzahl der Configs ermitteln

    Dial OdsValuesCount (VehicleList (intI), 'Configurations', OdsHandle)

    intAnzConfigs = OdsValCount

    ' * Instanz mit den entsprechenden "Configurations".

    Call OdsValAlloc ("ConfigList", "Ods_TYPE_INST", 1).

    Call OdsValGet (VehicleList (intI), "Configurations", 1, intAnzConfigs, 'ODS_TYPE_INST', "ConfigList", 1, OdsHandle)

    IntJ = 1 to intAnzConfigs

    [...]

    Next

    Call OdsValFree ("ConfigList")

    Next

    Call OdsValFree ("VehicleList")

    [...]

    I have itterate through several instancelists, which I get of our ASAM-ODS-database. Several information as in this code "vehiclename" or "configurationsnumber" is stored in variants and writes in a txtfile.

    Several trys with a shortend script with I only itterates through the bodies exhibits the same behavior.

    I only GET information from the database.

    After a while my memory is used and the script chrash.

    Unfortunately, it seems that the 'OdsValFree' command frees the memory space used of the GPI-variables.

    If I close the connection to the server ("OdsClose"), then the memory will be accessible again.

    All advice out there?

    THX

    Contur

    ****************************************

    German:

    Hi zusammen,

    ICH habe in um Scripten, die wie das wanted aufgebaut sind, das problem, dass immer mehr Speicher und das Script nach einer weile busy DIAdem mit ner Speicherfehlermeldung absturzt.

    Beim Itterieren durch diverse Instanzen, welche ich aus of our ASAM-ODS-data base lese, wird immer mehr Speicher keine, auch wenn ich - wie im angegeben - die GPI-specific freigebe Script.

    ICH habe den Code before can Schön, dass ich nur durch die Instanzen itteriere und nichts weiter in irgendwelcher form vorhalte. Problem experienced existiert.

    Wenn ich mit "OdsClose" die zur beende, wird der Speicher freigegeben DB connection. However email ich handle Instanzen ja zum Itterieren...

    Habe ICH in diesem Fall nur lesenden Zugriff auf die data base.

    Danke as read

    Contur

    Hmm, aktually the plugin behaves like that.

    Information retrieved by the server are collected up to

    • OdsDialogRefresh handle
    • OdsClose handle

    is called. This behavior is made to enable high-performance access to data server recovered.

    I a m a bit wondering this same course of instances will cause this huge memory consumption.

    Your entities have attributes thaosands? Or just you manage an enormous amount of instances.

    Please keep in mind that, normally, an ASAM Ods server does not return more than 10,000 cases.

    Workaround solutions:

    OdsDialogRefresh will not release the full memory but should be a good first step and allows in most cases.

    OdsClose will help globably as you already determinde. This is not the worst. There are two ways to do the job.

    To be known: the odskeys returned by odsinstlist, odsvalget, odssvalget are persistent. So that they can be used even if the session is closed. Even the next day.

    1. Close the sourec some time and go on the use of the source after having reopened.
    2. Use a second store opened and the key retrieved by source1 source2. If you can open and close a few times source2.

    Both solutions work quiet well with AOP, AOP5, ATF, ATFX.

    Hope this helps

    Greetings Andreas

    P.S.: To speed up the work with AOP5, it is possible to specify Instances which should not be removed from the cache in the advanced settings. Canidate for things like unit or quantity on the other must be retrieved from server every time that it is requested. So if if you work on a playground with the same unit, quantity, this may help. Otherwise the device and quantities can be resolved to a second source which is not updated or closed.

  • Create ASAM ODS hierarchy

    I am configuring an ASAM ODS server. I already create the server, export the configuration, and installed on the client computer. Then I am able to connect from a client computer to the server but when I try to run the script to the hierarchy that does not work. My understanding of the forums another is that the script "main.vbs" to create the hierarchy should be run in tiara 2012 (I'm running with 2012 SP1 and still does not work).

    The first thing I notice is that after the conection icons are not the same in the interface ASAM (NAVIGATOR) and then when I run the "main.vbs" and "CreateASAMModelHierarchy.SUC" the error attached.

    Can you please help me with this problem?

    Neither Chei,

    In case you have the same problem as did nrin, here is once again this solution:

    To connect to the NI ASAM-ODS server with AOP5 please follow these steps:
    1. open the NAVIGATOR tiara.
    2. go to settings - data banks...
    3. Add a new data store. Or using the first button on the toolbar or via the context menu.
    4. enter a name, select the use AOP5 and click OK.
    5. in the following configuration dialog box, you must enter the computer name of the machine running the server OR ASAM-ODS.
    (This information is also displayed in the dialog box settings ASAM Manager DataFinder (DFSE)
    6. click on the [...] button in the URL line. In the next dialog box, select your server ASAM-ODS.
    7 leave the dialog boxes for configuring two clicks on the [OK] button and open the new data store in the BROWSER.
    8 download the creative hierarchy script that has been updated on January 27, 2014 and run in DIAdem SCRIPT

    Brad Turpin

    Tiara Product Support Engineer

    National Instruments

  • I tried to tap three fingers on the trackpad to find the definition of a word in an article.  It did not work.  How can I put a definition of the word in an article published in El Capitan?

    I tried to tap three fingers on the trackpad to find the definition of a word in an article.  It did not work.  How can I put a definition of the word in an article published in El Capitan?  I googled this question and he said to three fingers on the trackpad, of the band which is what I tried without success.

    carolfromknoxville wrote:

    I tried to tap three fingers on the trackpad to find the definition of a word in an article.  It did not work.  How can I put a definition of the word in an article published in El Capitan?  I googled this question and he said to three fingers on the trackpad, of the band which is what I tried without success.

    Highlight the word, right-click on it and select "search... "with the white line that represents all that is the word.  It will pull up from the definition in the dictionary.

  • Definition of the word "Rootkit".

    (Sorry if this is the wrong subject, but at least it includes the definition of the word ;-)
    There are two competing definitions of the word; Rootkit

    The first is:
    -ROOTKIT = 1: "hide", 2nd: 'malicious', performs actions harmful to the network, system or users. He must do the 1st and the 2nd is assumed.
    (In this definition of the first part, root means something that lies under the surface.)
    The second is:
    -ROOTKIT = software that includes privileged code, using the resources of protected system and functions. The term dates with Unix System Utilities that provided functions not in the operating system. The current use is for the privileged of the legitimate software and malware who wins and who uses privileges through unauthorized means.
    (In this definition of the first part, root means the privileged or administrative account on a Unix system).

    People who work with or for one of the organizations AV utility, use the second. They generally speak of a detection of rootkits to change system made by a valid software as a legitimate Rootkit and a false positive detection. So they specifically differentiate legitimate Rootkits and malicious Rootkits. All the utilities Virus definitions include a legitimate list of these Rootkits to eliminate false positive detections.

    It would seem that the demarcation line may be IS professional and 'lay '. But the document Microsoft, Understanding Anti-Malware Technologies, seems to be using the first definition. If address to business people, but the wait is it was written by a professional.

    Is there a principal security analyst at Microsoft, who might have real experience at the origin of this word. (No kiddies offense, but are looking for some who actually fought in the 'little Indian-Big Indian war').

    (Note: Rootkit is always indicated as badly spelled, if developers of Office have not yet added to their 'words' dictionary)

    So you don't think it might help to post if you are looking for people with experience Unix in Unix forums instead of Microsoft forums?

    The thread may be in another part of the whole of the site answers Forums, but you are always in the wrong place.

    To use an analogy, you go to the forum of plumber to request information on how the Electrical Code are 120 and 240 circuits in homes rather than ask the electrician forum.  Maybe some electical plumber also works and may know, but are not significantly higher chances of success asking a group of electricians instead?

  • Virus & spyware definitions update failed. error code: 0x8024402c. Error description: Microsoft Security Essentials was unable to install the updates of definition, because the proxy server or target server names is not resolved.

    Virus & spyware definitions update failed.

    error code: 0x8024402c.

    Error description: Microsoft Security Essentials was unable to install the updates of definition, because the proxy server or target server names is not resolved.

    Here is an article that meets your specific error message regarding updates:http://support.microsoft.com/kb/900936.  I am surprised that the error occurs with all the updates, but there may be a difference between them that causes the problem for definitions, but not for others.  I hope that this will solve the problem.

    If this does not help, please transfer your question in Forum Windows Update:http://social.answers.microsoft.com/Forums/en-US/vistawu/threads where updates experts will be happy to help you.  Please post with the information requested here:what to post in the Windows Update forum

    I hope this helps.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • You can eprint with the droid bionic unit hp photosmart plu

    You can eprint with the droid bionic unit hp photosmart plu

    Hi, QB

    Yes, need to go to the market Andriod and download HP ePrint home & Biz app.

  • Installing the 4.0 unit

    Hi all

    I would like to install the 4.0 unit (x), but I'm not able to find a list of the Cisco site servers on which they are supported. Is it possible to install the HP DL320 G2 Server?

    TKS

    Don't know your DL320 server specifications but it will be similar to MCS7825 in this list.

    Cisco Unity support list of platforms

    http://www.Cisco.com/en/us/products/SW/voicesw/ps2237/products_data_sheet0900aecd802132ef.html

  • Cannot display the copy of the definition of the printer, but the printer is accessible from programs

    I'm trying to configure two definitions for the same local printer (HP P1005 on USB001), with the definition of a printer set to simplex and the other set duplex.  After you install the second printer (which has a different name) I can print a test of her page and she is visible when printing programs.  However, when I go to devices and printers, only the first definition of printer is displayed.  How can I get the two definitions of the printer to appear, so I can set the second definition of the printer?

    Thank you.  This does not solve the problem, but led me on a road where I think I understand how Windows 7 handles several definitions for the same printer.  I had created the second definition of the printer in the same way suggested you and just makes one more time.  Same result - I saw one of the two printers listed after the opening of the devices and printers.  However, I right click on the printer, and when I select one of the options in the first level of the menu, I am asked to select what printer definition to choose.  Cool.  For example, a right-click and by positioning the mouse on preferences printer displays two printers, allowing me to select preferences for the printer I want.

    Different from what I had expected, but it works, probably as planned.

    Thanks again for your response.

  • oracle.jbo.NoDefException: Houston-25002: definition of the type of the view definition com.model.ModVariablesView is not found.

    Hi all

    I am a newbie with ADF, I developed a test using Jdeveloper 12.1.3.0 application and it works very well on the integrated weblogic Domain.

    When I deploy the application (EAR and directly to Weblogic bot) to a second domain weblogic application fails to load to return the following error message:

    oracle.jbo.NoDefException: Houston-25002: definition of the type of the view definition com.model.ModVariablesView is not found.

    at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:880)

    at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:766)

    at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:748)

    at oracle.jbo.server.MetaObjectManager.findMetaObject(MetaObjectManager.java:862)

    at oracle.jbo.server.ViewDefImpl.findDefObject(ViewDefImpl.java:874)

    ........................................................................................................................

    The application has been updated to include EJB jar files in the ear.

    Any help is greatly appreciated.

    Kind regards

    Mihai

    The view definition is mentioned in the DataBindings.cpx file? In the DataBindings.cpx page definition files may need to be changed. Please post the DataBindings.cpx.

    See also

    Blog of melissa SOA: ADF 11 g Houston-25002: definition "VO" type View Definition is not found error

  • Can I customize the forms based on the responsibility on the same operating unit?

    Hello!

    I would like to ask if I can customize forms that are based on the responsibility on the same operating unit? Here's the scenario: order entry form, the descriptive flexfield is disabled on a responsibility more but must be activated for a particular responsibility. In addition, on most of the responsibilities, booking, picking up until shipping are manually, while on a special responsibility, I need to automate these steps.

    Thanks in advance.

    Jon

    Hi Jon,

    Yes. Forms can be customized at the level of the Site, the user, the responsibility.

    For more information, please visit:

    Form customizations in Oracle E-Business Suite (release 12) (Doc ID 395117.1)

    How to make forms of customization (Doc ID 468657.1)

    Information about the ability to customize the form of Oracle Applications 11i (Doc ID 279034.1)

    Limits to customize forms (Doc ID 420518.1)

    Thank you &

    Best regards

    Asif

  • Exempt / substitute a VM from a definition of the alarm

    I have a problem where a single virtual machine regularly has high CPU usage and trigger the alarm to default CPU.  I want to turn off the alarm of CPU on this virtual machine unique but want to leave it enabled on all other virtual machines.  I met someone with the same problem in this thread, what is old enough:

    Re: Substitution alarm

    Is it possible to substitute a definition of the alarm, or exempt a particular object to inherit the alarms configured at a higher level?  I know I can remove the definition of alarm CPU on the top-level object and create alarms of CPU for all other virtual machines manually, but that's not really what I'm looking for because it's a lot of work and it requires me to do not forget to create a CPU alarm whenever I create a new virtual machine.

    Is what I'm trying to do possible?

    Hello

    It is not so complicated, you can start with particular alarm (i.e. high CPU usage) on level of vCenter... then at the data center level

    Create two folders, one for VM you want to exclude the folder second alarm of CPU for other virtual machines.

    Next right on second alarm of CPU to recreate folder to make it spread to all other virtual machines.

    When you create a new virtual machine, simply place it in the right folder with desired awakening group.

    Although its not perfect for your case... you can also disable the alarm action at all to object to specific infrastructure.

    Just right click on VM - > alarm - > disable the stock alarm

  • oracle.apps.fnd.framework.OAException: oracle.jbo.NoDefException: Houston-25058: lastpaiddt definition of the attribute type is not found in LoanUpdateVO1

    Hello

    I created a based EO VO in which a column is recovering value per query:

    VO request is:

    SELECT principalEO.LOAN_ID,

    principalEO.LOAN_NUM,

    principalEO.DESCRIPTION,

    principalEO.FROM_DT,

    principalEO.TO_DT,

    principalEO.COMP_ID,

    principalEO.COMPANY_NAME,

    principalEO.PROJECT_ID,

    principalEO.PROJECT_CODE,

    principalEO.PROJECT_NAME,

    principalEO.LOAN_AMT,

    principalEO.LOAN_SANCTIONED_AMT,

    principalEO.LOAN_DISBURS_AMT,

    principalEO.LOAN_PROCESSING_CHARGES,

    principalEO.INTERST_RATE,

    principalEO.INTEREST_AMT,

    principalEO.PRINCIPLE_REPAYMENT,

    principalEO.TDS_RATES,

    principalEO.SYNDICATION_FEES,

    principalEO.SYNDICATION_PAID_TO,

    principalEO.VENDOR_ID,

    principalEO.VENDOR_NAME,

    principalEO.VENDOR_SITE,

    principalEO.INSTITUTION_TYPE,

    principalEO.LOAN_TERM,

    principalEO.LOAN_TYPE,

    principalEO.SECURITY_DET,

    principalEO.REMARKS,

    principalEO.INVOICE_FLAG,

    principalEO.EMI_DATE,

    principalEO.DISBURS_DATE,

    principalEO.ATTRIBUTE4,

    principalEO.ATTRIBUTE5,

    principalEO.CREATED_BY,

    principalEO.CREATION_DATE,

    principalEO.LAST_UPDATE_DATE,

    principalEO.LAST_UPDATED_BY,

    principalEO.LAST_UPDATE_LOGIN,

    principalEO.EMI_AMT,

    principalEO.EMI_AFTER_MONTH,

    (select from_dt in the omx_sec_loan_repay where loan_num = principalEO.Loan_num and paid_amt is null and rownum = 1) AS LAST_PAYMENT_DT

    OF OMX_SEC_LOAN_PRINCIPAL principalEO

    now I have to apply validation, from date should not be before Last_payment_dt

    Controller code I've written is:

    If (pageContext.getParameter ("updateloan")! = null)

    {

    String LoanNum = (String) pageContext.getParameter ("LoanNum");

    OAViewObject vo = (OAViewObject) am.findViewObject ("LoanUpdateVO1");

    Line OARow = (OARow) vo.getCurrentRow ();

    Date FromDt = (Date) row.getAttribute ("FromDt");

    System.out.println ("date is:" + FromDt);

    Date lastpaiddt = (Date) row.getAttribute ("lastpaiddt");

    System.out.println ("date is:" + lastpaiddt);

    }

    When I turn the page, error:

    oracle.apps.fnd.framework.OAException: oracle.jbo.NoDefException: Houston-25058: lastpaiddt definition of the attribute type is not found in LoanUpdateVO1

    at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException (unknown Source)

    at oracle.apps.fnd.framework.webui.OAPageErrorHandler.processErrors (unknown Source)

    at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest (unknown Source)

    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage (unknown Source)

    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage (unknown Source)

    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage (unknown Source)

    at _OA._jspService(_OA.java:71)

    When I give another deposited instead of lastpaiddt, it works fine...

    Hello

    Looks like the attribute is missing, can you check if the attribute named "lastpaiddt" exists under LoanUpdateVO1?

    Right-click on LoanUpdateVO1 - > properties - > list of attributes - > and check if the missing attribute exists

    Kind regards

    Had

  • Two trust hierarchy of request for the same business unit

    Hello

    We have a single operating unit, but we must develop 2 hierarchy of approval of requisition to the same operating unit, system is able to see a single...
    How can I make two hierarchies working for the scenario as follows (employees of Dubai using the hierarchy of Dubai and Abudhabi employees uses the hierarchy of Abudhabi)?

    Hello

    You can do it manually. Create two hierarchies, the purchase value of document type that the hierarchy of approval modification can. Select the required hierarchy, then he will automatically get this approval flow.

    Kind regards
    Linda

  • Orchestrator how Automatic Add the computer to the specific ORGANIZATIONAL unit and edit the Description of the computer

    Hello

    We use VMware Orchestrator to clone sysprep VM templates, and join the virtual machine to the domain.

    The problem is that we cannot find a function in Orchestrator to join VM to the specific ORGANIZATIONAL unit and edit the description of the computer.

    Our workflow built sysprep on the fly so that we can not add a command in sysprep to join the specific ORGANIZATIONAL unit

    Plugin installed:

    • VIX
    • Active Directory

    Example workflow:workflow.png

    Any ideas how to set up our requirements in the workflow

    Hello

    Over the past two months, I learned Orchestrator and built a large workflow highly customized for the automation of windows and linux deployments of models.  We are also in two different datacenters which each have their own ORGANIZATIONAL unit in AD.  The solution I use is "dsadd computer" (http://technet.microsoft.com/en-us/library/cc754539 (WS.10) .aspx) and then then I execute 'netdom' on Windows OS which adds the server to the domain and reboot.

    I use sysprep for the IP configuration, etc., but don't not to join the server to the domain.  Once sysprep is finished I execute the following code to add the computer object to the specific ORGANIZATIONAL unit:

    var cmdText = "cmd/c";
    "var = cmdLine" dsadd computer------"" + att_AD_OUPath + "------"-desc------"" + arg_in_AD_ComputerDescription + "\" - u "+ att_domainUser + '-p' + att_domainPass;

    order = new order (cmdText + cmdLine);
    returnCode = command.execute (true);

    If (returnCode == 0)
    {
    System.log ("computer" "+ arg_in_serverName +" has been added to the domain");
    }
    on the other
    {
    throw "error adding computer '" + arg_in_serverName + "' to the field."
    System.Error ("error adding computer '" + arg_in_serverName + "' field.");
    }

    Installation program:

    • Standalone Orchestrator installed on Server 2008
    • Active Directory Domain Services role installed on the server Orchestrator

    I hope this helps!

    Post edited by: robrtb12

Maybe you are looking for