Causing problems of custom data type to deploy the shared target RT variable

I seem to have some difficulty in using a shared variable published network created from a customized data type when it is deployed as an executable on a target of cRIO RT.  I'll start by describing why I think that this is the rub.  I created my RT VI in the LabVIEW (LV 2012) development environment and everything works fine.  This VI is quite simple, because these were quickly devolved into an exercise in debugging.  The RT VI begins by simply flashing the LED to a couple of times and then starts a loop simple acquisition to read some values out of the material using the analytical engine (while still flashing the LED of the user).  After reading the material, the values are grouped in a cluster and written in a shared variable published to the network defined by a custom control type def.  The custom control contains five floats double precision.  If it's important, the RT cRIO system hosts the shared variable in this case.

So I have that deploy in the development environment, and everything works fine.  The LED flashes merrily along, telling me that the program runs correctly.  Running a VI host who reads the shared network has published variable gives the desired result.  Everything is good.

Now, I want the cRIO system to run this simple program by itself at startup.  I build, set it as start VI, deploy it, and then restart the cRIO target.  The LED never flashing... the VI doesn't seem to work.  I'll spare you the major part of the work of debugging and access to the end.  I basically "diagram Disabled" various sections of the code up to the VI began to run correctly in an executable file.  I kept reducing the size of the disabled code until something has been disabled: the writing in the shared variable for the custom data type.

So, I guess my question is this: are custom data types defined by type def would be personalized orders authorized executables to RT?  I read through the cRIO Developers Guide, my book of development in real time course of NOR and the white paper using shared Variables and I see nothing that forbids it.  I know that there are things not allowed in the executable files that are allowed in the development environment (property nodes façade, dialogue live, operating system specific calls, etc.), but no mention of the shared variable type custom data.  Any ideas as to why my VI is running in the development environment, but does not update unless I have delete the entry on the published network variable shared?

Thank you in advance for your help!

You must disconnect the data types of variables and then recompile. You can find it useful to keep on disk, a copy of the original lvlib.

Don't know if this is a bug or not. It was suggested by someone in the forum that putting the ctl files in the right position (the disk? in the draft?) would allow the rtexe start; I did a quick check and it didn't work then I dropped the tests more far.

Tags: NI Software

Similar Questions

  • Deploy the shared target rt variable fails (crio-9073)

    I use a cRIO 9073 with LabVIEW 8.6. I have some variable published to my PC network I want the cRIO host read. However when I try to deploy the variables on the cRIO, I get the following error:

    Initializing...
    Calculating dependencies...
    The checking for conflicts. This may take some time...
    Prepare the items for download. This may take some time...
    Variables variables.lvlib\\129.186.159.84\robot robot deployment deployment has failed (error:-2147220721, (Hex 0x8004030F) the configuration database cannot be opened, perhaps because of corruption.) Note: the steps that you did which led to this error and contact technical support).
    Completed with errors of deployment

    I tried to reinstall the software on the cRIO, which includes the network Variable 1.5.0 engine and tried hosting variables on the cRIO. I still get this error.

    Everyone knows about this problem? What should I do to use variables shared on the 9073?

    I tried stubborn MAX, who did not work. Then I reformatted the cRIO and the problem is solved.

  • How to create a custom data type

    Hello

    I'm using Labview 2009 and I am trying to create a custom data type and link it to the global variable that will be deployed in cRIO 9073. I couldn't find a method to achieve this. Please suggest a way to do this.

    Thank you

    Guilhem

    Right-click on a control and go to advanced-> customize.  This will open the control editor.  Change the type of a control to a Type def.  Customize if necessary and save the control.

  • Custom data type

    We use a custom data type container and add variables to use in the sequence inhabitants.

    It seems that the field of the local variable names having to match domain names that they have seized originally in the custom data type container.

    We want to reuse the custom several times in the sequence container for data type and would like to have descriptive field names of their use, which changes throughout the sequence.

    Is it possible to just rename the names of the fields of a local variable is of the type, data type container custom, while maintaining the field names the original custom data type container?

    With the help of TestStand 2013

    Thank you

    Hi CC57,

    I also recommend trying a templateVariable. You can use this to create a container with a particular name that you can copy in various places in the variable pane and change the names of the properties of confined there.

  • DLL custom data type

    I try to use a DLL in LabView that talks about an acquisition card. One of the functions requires a custom data type (MID2250_MDConfig_t) that LabView does not support by default. It is defined in the C header file as follows:

    typedef struct
    {
    int CoordsX;
    int CoordsY;
    } MID2250_PointCorrds_t;

    typedef struct
    {
    MID2250_PointCorrds_t ULPoint [4];
    MID2250_PointCorrds_t BRPoint [4];
    unsigned short u32SADThresholdValues [4];
    unsigned short u32MVThresholdValues [4];
    unsigned short u32SensitivityValues [4];
    } MID2250_MDConfig_t;

    Is there a way I can integrate this data type in LabView correctly. I saw people talking about wrapper dll on this forum but I'm a bit confused as to who. Can I create a similar cluster in LabView and pass it to the function using "node of the library call?

    abdel2 wrote:

    I try to use a DLL in LabView that talks about an acquisition card. One of the functions requires a custom data type (MID2250_MDConfig_t) that LabView does not support by default. It is defined in the C header file as follows:

    typedef struct
    {
    int CoordsX;
    int CoordsY;
    } MID2250_PointCorrds_t;

    typedef struct
    {
    MID2250_PointCorrds_t ULPoint [4];
    MID2250_PointCorrds_t BRPoint [4];
    unsigned short u32SADThresholdValues [4];
    unsigned short u32MVThresholdValues [4];
    unsigned short u32SensitivityValues [4];
    } MID2250_MDConfig_t;

    Is there a way I can integrate this data type in LabView correctly. I saw people talking about wrapper dll on this forum but I'm a bit confused as to who. Can I create a similar cluster in LabView and pass it to the function using "node of the library call?

    Since the tables are all fixed size (and not huge), they really are inline in the structure. This means that you can simulate a cluster containing many elements inside because it is the elements of the array. The first Point of the UL would be a cluster containing 4 cluster with each two int32 in it. Ditto for the second element. The third is a cluster with 4 uInt32 and so on.

    Then configure the setting to adjust the type and thread this cluster, and voila.

  • Where to define new custom data types?

    Hello

    In the past (TS 3.5) I created our own range of custom type file that has been used

    to store the new data types and then referred the case to other colleagues. The file would be

    stored in the ...\Program Files\...\User area.

    My question arose because we now use the TS 4.1/4.2, which is no longer a separate

    Directories of NOR and user in \Program Files.

    Because now I want to change an existing custom data type, I find that our range of custom type has

    fallen by the way side, forgotten.

    Even though I can see the custom data definitions within the sequence of type files that use

    custom data types, which means that I can edit them locally, I intend to return to

    a range of custom type, i.e. comprehensive definition.

    What is the relationship between the definitions in a range of custom type and custom data

    definitions of type of a file of sequence?

    When a palette to update file a file of sequence?, who takes over in the event of conflicts?

    is a really necessary sequence files palette file if they are separated by using the same custom data type

    can update the other? What is good practice when defining custom types of data?

    Thank you

    Gary.

    Hey guys,.

    This is a very interesting thread, and I've got everything right, in heart, with advice given so far. I just wanted to offer some additional tips on the conflicts of kind - with more response, the initial question concerning the definition of what is priority in case of conflict.

    It is important to note that TestStand uses type names and version numbers to identify the different types. It is also important to note that when you use a definition of type of customers within a sequence, the sequence (.seq) file containing the sequence will keep a copy of the type definition. This greatly facilitates distributed sequence files. However, it also opens the door to potential conflicts type.

    TestStand allows only one type of unique name to be loaded into memory at any given time, so that it uses the number of versions of the type to try to resolve these conflicts automatically. For example, TestStand can be configured to load any type is the largest version number (note that this can be changed via the tab Preferences dialog box Options of Station).

    All this information and more are found in the following tutorials...

    Conflicts and TestStand Type Versioning

    How to make a Type of custom step?

    Thanks for your time. I hope this has been helpful!

  • Help the insertion of an unknown number of lines in a custom Data Type

    Hi all

    I need help in the insertion of an unknown number of lines in a custom Data Type

    In Oracle I was thinking something like...
    CREATE OR REPLACE TYPE &HKDB_Schema_Name..SOMEDATA AS OBJECT (ID int, Name varchar2);
    /
    CREATE OR REPLACE TYPE &HKDB_Schema_Name..TYP_TABLE AS TABLE OF &HKDB_Schema_Name..SOMEDATA;
    /
    
    CREATE OR REPLACE PROCEDURE &HKDB_Schema_Name..SProc1
    (
    )
    AS
    l_TempTable TYP_TABLE := TYP_TABLE();
    v_count NUMBER := 0;
    l_ID int;
    l_Name varchar2(200);
    BEGIN
     
      LOOP
      -- exit the loop if the select returns no results. (look if exists in l_TempTable)
      v_count := SELECT COUNT(*) FROM Person p WHERE p.ID NOT IN (SELECT ID FROM TABLE(CAST(l_kgListTable AS TEMP_KGID_TABLE)));
    
      -- select the top result
      SELECT p.ID, p.UserName INTO l_ID, l_Name FROM Person p WHERE p.ID NOT IN (SELECT ID FROM TABLE(CAST(l_kgListTable AS TEMP_KGID_TABLE)))  
      AND ROW_NUM = 1;
    
      insert data into custom data type
      l_TempTable.extend;
      l_TempTable(l_TempTable.last) := SOMEDATA(l_ID, l_Name);
    
      EXIT WHEN v_count < 1;
      END LOOP;
    END SProc1;
    While I don't know this will probably do the job, it feels not very effective, have to select where the argument no_lig = 1 and then insert a facility on time. Is there a better way to do it?

    Basically, it's a migration of a MSSQL stored procedure where the equivalent would be...
    DECLARE @TempTable TABLE (ID int, Name varchar)
    
    INSERT INTO @TempTable (ID, Name) (SELECT ID, UserName FROM Persons)
    Thanks in advance,
    Toby

    Oh sorry you posted that before but I missed it. In this case maybe you should simply remove the

    as "HasChildren"{pre} part. This is only valid for a column name, but you input that expression directly into a type. It is not a column at this point.
    
  • How to delete a line item / of a custom Data Type?

    Hi all

    I can't tried to delete a line of a custom data type.

    As you will see in the code below I add a line to an array of Type (this is done several times). I then loop through each row in the type of array and pass it the id in a separate function. Once it is I so need to remove this item from the array Type - that's where I think my syntax is wrong because I get an error "ORA-00903: invalid table name.

    Clear code
     DELETE FROM TABLE(CAST(l_DeleteList AS TEMP_DOCVERSIONID_TABLE)) WHERE docVersionID = l_DocVersID;
    Complete code
    l_DeleteList.extend;
    l_DeleteList(l_DeleteList.last) := DOCVERSIONID(l_DocVersID);
    
    .......................
    
    select count(*) INTO v_count FROM TABLE(CAST(l_DeleteList AS TEMP_DOCVERSIONID_TABLE));
      -- loop temp table and delete document versions
      WHILE v_count > 0
      LOOP
      BEGIN
        SELECT docVersionID INTO l_DocVersID FROM TABLE(CAST(l_DeleteList AS TEMP_DOCVERSIONID_TABLE)) WHERE ROWNUM = 1;
        DeleteSingleDocumentVersion(l_DocVersID);
        DELETE FROM TABLE(CAST(l_DeleteList AS TEMP_DOCVERSIONID_TABLE)) WHERE docVersionID = l_DocVersID;
        select count(*) INTO v_count FROM l_DeleteList;
      END;
      END LOOP;
    Thanks in advance,

    Toby

    Trim element removes it from the end of the collection... but you are a loop of the collection from the first to the last clue.

    If you use delete then the item is deleted but index still exists... then array.last and County are not equal...

    You can use something as shown in this example (rather than use a time loop on many items)... after deleting an item to browse a table...

    SQL> Declare
      2     TYPE    TYP_TAB IS TABLE OF PLS_INTEGER ;
      3     my_tab  TYP_TAB := TYP_TAB( 1, 2, 3, 4, 5 );
      4     v       Pls_Integer ;
      5  Begin
      6     my_tab.DELETE(2) ;
      7     v := my_tab.first ;
      8     Loop
      9        Dbms_Output.Put_Line( 'my_tab(' || Ltrim(To_char(v)) || ') = ' || my_tab(v) ) ;
     10        v := my_tab.NEXT(v) ; -- get the next valid subscript
     11        Exit When v IS NULL ;
     12     End loop ;
     13  End ;
     14  /
    my_tab(1) = 1
    my_tab(3) = 3
    my_tab(4) = 4
    my_tab(5) = 5
    

    Published by: ravikumar.sv on August 10, 2009 15:19

  • If I started a project in first Cs5 and want to finish it in first Pro CC it causes problems exporting my sequence and get into the new software?

    If I started a project in first Cs5 and want to finish it in first Pro CC it causes problems exporting my sequence and get into the new software?

    Better is to import the cs5 project in the new project of CC.

    And Yes this could have problems, he could not.

    I would have ended up in CS5. Export to the lossless format and encode with SOUL CC until the final destination.

  • Deploy the shared library in WebLogic by EPCO

    Hello

    I'm deploying in WebLogic 10.0 an EAR file as a shared library.

    I am able to deploy using the server administration Console, but if I deploy the EAR by EPCO, the EAR is always deployed as an Application.

    Is it possible to deploy with EPCO as shared library? I declare the EAR as a shared library in any file descriptor before?

    Thank you
    Carles.

    If you save your shared library of the EAR in the preferences under WebLogic-> shared libraries then refer to this library in an application, EPCO will deploy the shared library when the listing application is deployed.

    -Konstantin

  • How to make your custom data type used in your QListDataModel to QML?

    I have QListDataModel filled with objects of a custom class carying data and defined with Q_DECLARE_METATYPE. So far, it works however I can't access the data in qml:

    e.g. text: ListItemData.Name
    

    I read that this can be solved by letting QML know your custom class/type, but how to do this?

    See

    https://developer.BlackBerry.com/native/documentation/Cascades/dev/integrating_cpp_qml/

    example:

    qmlRegisterType("com.isec7.materials", 1, 0, "Account");
    
  • Problem of XML data type

    I am trying to unflatten data from an xml file but my entry type for the type on the unflatten my guess isn't valid, and I get error 1106.

    Is attached, the file xml and VI

    XML file is in text loading constraints

    Your cluster of data type does not match your XML file. Fixed VI (LV version 2013) is attached. However, the file you posted seems to be a single element, not the entire file, so I can't verify that it works.

    If you have a previous version of LabVIEW, the cluster lacked a time stamp and had a cluster at the end which should be a string.

    Double post here.

  • Mapping of columns with different data type of sql teradata source target

    Hello

    I get a problem after upgrading our version of the Golden Gate to Version 11.2.1.0.13 17435036.

    Source DB: Sql Server

    Target the DB: Teradata

    We have generated the definition file and put it in the target server.

    The table structure for one of the target server table differs from the source server. Average datatype of some columns in a table is different than it is in the source.

    During replication, it throws an error that incompatibility of data type.

    Is there a keyword in Oracle Golden Gate, that we can use in parameter files to eliminate this error where Golden Gate will automatically match the columns.

    Before this upgrade version of Golden Gate in the source and target, everything worked well.

    Any help in this direction will be really appreciated.

    Bipul Singh

    Hi, ok, I knew this could be the case, but wanted to check your DDL first, but a change in the way BIT data types are stored in the path took place between versions 11.1 and 11.2.  The ILO data are coming in the target as 0x00 and 0x01, which SQL Server manages without conversion, but other targets will have to use the @NUMBIN function in your COLMAP clause to convert the BIT smallint.  And I don't actually know that the SMALLINT will map correctly, but I believe that is should.

    Here is an example:

    card dbo.XXX, target "SCHEMA". "" XXX_T0 ", colmap (usedefaults Roving_Bit=@NUMBIN (Roving_Bit)...

    You will have to do for all types of data BIT also.

  • Gets the data type variant for the selection of cases

    I don't ' know much about alternative, so I'll ask as many questions as possible on this subject.  If I have a table of varying, and each of these variations has been converted to a different data type.  This table will be the clue to a for loop and each item will be handled in a case inside the loop structure for.

    The issue is that I would like to take the variant data type, convert enum and use it to select the box on the structure of the case.  How do I do that?  Or what is the best way to do it?

    Yik

    www.Openg.org

    VI 'Get TDEnum of data' of the data tools package.

    There is also the "GetTypeInfo" VI which is located in the \vi.lib\Utility\VariantDataType folder.

  • data type number indicating the exponential value...

    Hello

    I HAV a column phone_no (data type of number) in a database. Why show the phone not in this format

    PHONE_NO
    ---------
    9.873E + 09

    Please give me the solution.

    Hello

    It seems that the default width for the number of columns on your system is 9.

    You use SQL * more?
    If so, you can change the default to 10 (or more) for your session:

    SET  NUMWIDTH 10
    

    or you can format specifically this column:

    COLUMN  phone_no  9999999999
    

Maybe you are looking for

  • SAMSUNG GALAXY Y video called for SKYPE?

    Hi guys,. I just want to know if SAMSUNG GALAXY is supports video calls on Skype? Please help me on this. Thank you.

  • Win98 to conversion of win7

    I have an old computer that I use as a power surge fried my more recent. in any case, I have win 98 on it and I would like to install win 7 on it, what should I do?

  • As a router E1200 internal (not connected to the internet)?

    I want to put a second router inside my router VDSL (new, soon-to-be-installed) provided by my ISP.  Read the E1200 manual I think I can use the 'Internet' to connect to one of the four taken on the cable my ISP router part and give it a fixed IP add

  • I hear the noise when using Skype.

    Hello I use a Samsung laptop and I'm having a problem in Skype.I can hear a very loud noise when I talk to my wife in Sri Lanka.It Strait as it rains there and I can't hear anything, there continue to increase. I've tried several things did not find

  • Windows 8. Toshiba Satalite. Windows does not recognize ethernet hardware.

    for some reason, I, ve lost my ability to connect rigid cable to my router. Laptop computer, windows 8. Toshiba Satalite. Windows does not recognize the hardware. How can I use add hardware without any driver?