How to add an array of data in Citadel database

I have an array of data which I want to directly put it in the Citadel Database. Normally the write tag VI writes one value at a time. How can this be done ?

It depends on what you really want. Could you be a little more specific? Does each point have its own separate timestamp? If so, you could simply put the "Write Tag.VI" inside a FOR LOOP and insert values one after another. This would give a separate timestamp to each value. I have attached a simple VI that shows how to do this.
Or are you looking to record some type of vector, where you log a complete array of data at each interval? I don't think this is possible (I'm using DSC 6.02) unless the data-type is a bit-array, in which case you would simply use "Write Data (bit array).vi".
Another option, depending on what you are aiming for, would be to create your own "VI-based Device Server" and use the VIs on the palette submenu call
ed "DSC Server Development". With your own Device Driver you can write multiple datapoints to the input queue simultaneuosly. In this way, you can write more than one point at a time... but that doesn't mean that each time interval will contain an array of data. Assuming that the data is analog, the data will still be logged to Citadel "one after another" so that when you look at it with the HTV, you will see one curve of analog values.
Attachments:
Write_array_to_citadel.vi ‏17 KB

Similar Messages

  • How to add byte[] array based Image to the SQL Server without using parameter

    how to add byte[] array based Image to the SQL Server without using parameter.I have a column in table with the type image in sql and i want to add image array to the sql image column like below:
    I want to add image (RESIM) to the procedur like shown above but sql accepts byte[] RESIMI like System.Drowing. I whant that  sql accepts byte [] array like sql  image type
    not using cmd.ParametersAdd() method
    here is Isle() method content

    SQL Server binary constants use a hexadecimal format:
    https://msdn.microsoft.com/en-us/library/ms179899.aspx
    You'll have to build that string from a byte array yourself:
    byte[] bytes = ...
    StringBuilder builder = new StringBuilder("0x", 2 + bytes.Length * 2);
    foreach (var b in bytes)
    builder.Append(b.ToString("X2"));
    string binhex = builder.ToString();
    That said, what you're trying to do - not using parameters - is the wrong thing to do. Not only it is insecure due to the risk of SQL injection but in the case of binary data is also inefficient since these hex strings are larger than the original byte[]
    data.

  • How to add a day to Date() ( i.e 2002Oct10 to 2002Oct11 )

    Hi anyone, How to add a day to Date().
    <%
    String R, fulldate;
    java.util.Date Rdate = new java.util.Date();
    R = Rdate.toString();
    String DD=Rdate_string.substring(8,10);
    String MM=Rdate_string.substring(4,7);
    String YY=Rdate_string.substring(24,28);
    fulldate = YY+MM+DD;
    //ie. fulldate = 2002Oct10 but I want it to be 2002Oct11
    %>
    pls. help and thanks a lot.

    Hi,
    Please replace the following line in your program,
    String DD=Rdate_string.substring(8,10));
    with
    String DD=String.valueOf(Integer.parseInt(Rdate_string.substring(8,10)) + 1);
    This will work fine. Basically what this code is doing is that, it will get the Integer from the String, increment it by 1 and then change the integer to the String again.
    Hope this helps,
    Rajat,
    OTN Team

  • How to add Fields in Additional Data B in VA01/VA02.PLease help me out.

    HI All,
    My requirement to add a Custom Screen in Va01/VA02 .Kindly suggest if any screen exists are there.
    How to Add extra fields in Additional Data B in header of VA01/VA02.is access key is neccessary for that.
    Thanks in  Advance.

    Hi
    Check the link
    http://techbays.com/2008/04/17/implicit-enhancement-in-sap-ecc-60/
    There is a BADI BADI_SD_V46H0001 and Method EXIT_SAPLV46H_003.
    You should be able to it without access keys.Consult your SD Functional Guy also
    Regards
    Sanil Bhandari

  • How To Add InfoObject in the Data Selection Tab of InfoPackages in 2004s

    Hi Y'all!
    I would like to ask how to add an infoobject in the Data Selection Tab of the InfoPackage in 2004s.  It says its optional, this definintion of selection criteria for the infopackage.
    My apologies, I don't understand how this is done.  Surely, I would like, however, to understand how to add an infoobject in this data selection Tab of the InfoPackage in 2004s.
    Can any kind soul out there (gurus) please lend me your thoughts?
    Regards,
    Philips

    Hello Rajani!
    Thank you very mcuh for that!  I super appreciate it!  Can you prescribe how I can do this step by step please?  Where exactly in the DS can I locate this "field for selection" option in the DataSource?
    Regards!
    Philips

  • How to add an array of integers to JList?

    I know it should be easy, but I can't see a simple way to add an array of integers to a JList.
    int[] per_ints = tempbean.getPercents();
    //missing wrapper
    JList list2 = new JList(per_ints);//wont work because JList will not take int[]

    what you should do is convert the int to string and then populate the list...
    int[] per_ints = tempbean.getPercents();
    Integer perI[] = new Integer[per_ints.length];
    for (int z = 0; z< per_ints.length; z++){   
    perI[z] = new Integer(per_ints[z]);
    JList list2 = new JList(Integer.toString(perI));
    i think this should work...but if not try to convert tempbean.getPercent() to string and making that array a string array...basically store string in the list some how....probably not the best or simplest way..but i think it should work

  • Using TestStand How I pass an array of data into a DLL (IPC3.dll) for serial communication

    I am ussing a DLL created by another party. I have the list of the C declaretions. I have been able to write a seq that can turn the comport ON/OFF or select a different port but I have not been able to send or recieved any data. I have created an array of bytes(unsigned 8-bit integers)to send and recieved data but nothing goes out or in.

    Hi Toro,
    There is an example in your \Examples\AccessingArrays\PassingArrayParametersToDLL directory that illustrates exactly how to pass TestStand arrays as arguments to dll functions. The source files for the .dll are located in the same directory.
    For more information on passing arrays as parameters to modules you should read the "DLL Flexible Prototype Adapter" section of Chatper 13 in the TestStand User Manual, and pay special attention to the subsection entitled "Array Parameters". You can access the User Manual from the TestStand Start Menu group, the TestStand Sequence Editor's Help menu, the \Doc directory, or online at the following link:
    http://digital.ni.com/manuals.nsf/websearch/50B69DA356B8D38C86256A0000660E6B?OpenDocumen
    t&node=132100_US
    Jason F.
    Applications Engineer
    National Instruments
    www.ni.com/ask

  • How to add an Array within an array?

    Hi friends can any body guides me how to add array within array.
    Actually i am getting Array from server side and i have to append one more node(Array) in same array and send it back to them.
    here is the structure of my array that i am getting from server side.
    temp = Array (@4445e09)   
        [0] = mx.utils.ObjectProxy (@4314821)   
            Mylanguages = Array (@4445b69)   
                [0] = Object (@449ac91)   
                    Mylanguage = "English"   
                    Mylanguage_code = "EN"   
                    Mylanguage_id = "1"   
                    selected = "Y"   
                length = 1   
            currentpage = "1"   
            definition_id = "20"   
            delete_record = "Y"   
            edit_record = "Y"   
            insert_record = "Y"   
            numberofpages = "1"   
            numberofrecords = "1"   
            object = Object (@4432449)   
            productgroups = Array (@43cea51)   
            type = null   
            uid = "111111"   
        length = 1
    I have to add an array similar to like Mylanguages  containing object which contain some info like some ids. and my array becomes
    ttemp = Array (@4445e09)   
        [0] = mx.utils.ObjectProxy (@4314821)   
            Mylanguages = Array (@4445b69)   
                [0] = Object (@449ac91)   
                    Mylanguage = "English"   
                    Mylanguage_code = "EN"   
                    Mylanguage_id = "1"   
                    selected = "Y"   
                length = 1   
            currentpage = "1"   
            definition_id = "20"   
            delete_record = "Y"   
            edit_record = "Y"   
            insert_record = "Y"   
            numberofpages = "1"   
            numberofrecords = "1"   
            object = Object (@4432449)   
            productgroups = Array (@43cea51)
           AddedNOde= Array (@4445b69)   
                [0] = Object (@449ac91)   
                    id= "10"   
                    tempId= "100"   
                    Mylanguage_id = "1"   
                length = 1           
            type = null   
            uid = "111111"   
        length = 1   
    please tell me how it possible.
    Thanks in Advance
    Regards
    Vineet osho

    Hi Vineet,
    You can simply add another Array as shown below:
    for each(var obj:Object in temp)
         obj.AddedNOde = YourNewArray;
    By doing above NewArray is added to  all the objects of temp Array.
    Thanks,
    Bhasker
    Message was edited by: BhaskerChari

  • How to capture user name and date in the database

    How to capture the person name who edits the application and the date of edit in the database...
    Pallavi

    Hi
    There are substitution strings you can use for this purpose.
    1.APP_USER ------is the current user running the application
    2.SYSDATE --------represents the current date on the database server
    APP_USER Syntax
    Bind variable------ :APP_USER
    PL/SQL------- V('APP_USER')
    Substitution string---------- &APP_USER.
    SYSDATE_YYYYMMDD Syntax
    Bind variable------- :SYSDATE_YYYYMMDD
    Direct PL/SQL------- APEX_APPLICATION.G_SYSDATE (DATE DATATYPE)
    PL/SQL-------- V('SYSDATE_YYYYMMDD')
    Your application will be based on a table with primary key column. You create a 'before update trigger' on that table and add columns 'UPDATED_ON' and 'UPDATED_BY' to that table. Add the following to that trigger:
    :NEW.UPDATED_ON := SYSDATE;
    SELECT V('APP_USER') INTO :NEW.UPDATED_BY FROM DUAL;
    -Priyanka

  • How to move only subset of data from one database to another?

    Both source & destination are Oracle11g databases.
    The requirement details are as below,
    1) The database contains static as well as transactional data for telecom domain.
    2) We have to move region-wise data from one database to another.
    3) There are around 10 regions.
    4) The region wise data extraction from source db is based on around 40 to 50 tables. Rest of the tables contains
    static data & it will not change.
    5) The volume is around 1 million subscribers per region.
    6) The migration is required because
    a) The client is upgrading its base product which uses this database
    b) There is a change in structure of static tables
    c) Hardware upgrade
    d) The client want to start with single region on new database & rest of the regions will be operated from old
    database.
    7) Keep execution time to very minimum.
    I am thinking to have solution as below,
    1) Create destination database with upgraded db structure (as mentioned in 6b)
    2) Create database links to access source db in destination db.
    3) Write SQL queries to fetch data from all the respective tables for a specific region
    4) Write separate PL/SQL blocks for each table to fetch data from source db & insert into respective table in
    destination db
    a) Use FOR ALL & bulk collect to improve the performance
    b) Divide table data into multiple chunks & execute parallel batches (around 10) to insert the data
    5) Validate pre & post counts to verify the success of migration
    Is there any other better way?
    Regards,
    Sandeep

    How to move only subset of data from a partiular table by using transportable tablespace?
    E.g. SUB table using SMP_SUB tablespace contains subscriber data in source database.
    The indexes defined on SUB table are under SMP_IDX_SUB tablespace
    The subscribers data can be categorized by different regions, say region_id column. Then how to move data & indexes of SUB table from source db to destination db?
    any specific example would be helpful.

  • HOW TO TRANSFER USER DEFINED TABLE DATA IN NEW DATABASE

    Dear all , I am trying to transfer user defined table data,in new database ,can you please tell how i can do it

    Thanks for Quick responce
    I have Following databases
    1) Targate Database EOU TEST
    2) Source database  STI_BLANK
    Table @MACHINE
    I tried But it has some error
    INSERT INTO EOU TEST.@MACHINE
    SELECT STI_BLANK.@MACHINE* FROM STI_BLANK.@MACHINE
    Edited by: Abhijit Bhise on Apr 1, 2010 3:27 PM
    Edited by: Abhijit Bhise on Apr 1, 2010 3:28 PM

  • How to POST operation or Save data to a database in Siena

    Hi,
    Can anyone help us with guiding how to call a REST operation to POST data to the database when the user clicks the Save button.
    There is very little information on REST services and we were only able to find how to get data but nothing on how to POST.
    Thanks,
    ESI Team

    Hi,
    POST functions can be called like any other functions inside Siena. For example, if your service has a SendData function, you can call it on the OnSelect of a button.
    In the WADL file that describes the services, you will need to specify it is a POST function:
    <resources
    base="http://www.MyService.Com/Http.svc/
    ">
        <resource
    path="SendData">
          <method
    name="POST"
    id="SendData">
          </method>
        </resource>
    </resources>
    For more information on WADL creation, please refer to
    this article.

  • Options to edit historical data in Citadel database (Lookout 6.0)

    We are running a new installation of Lookout 6.0
    I am looking for ways to edit the historical data that is found in the Citadel database. For example, if an alarm clears before I can enter comments, I would like to go to the database after the fact and enter comments regarding the alarm.
    We are running this on XP pro operating system.
    Thanks,
    Alan

    Hi Alan,
    I am afraid this will be difficult, if at all possible.  Citadel data, by design, can be written to (and edited?) only by the product using it, i.e., Lookout, LabVIEW-DSC, etc.  Outside of these products we can only retrieve the data -- not edit or add to it.  As you are probably aware, some of the options for writing user data (as opposed to IO/system data) from within these products is to use the Logger Object in Lookout and the VI-Server approach in DSC (http://zone.ni.com/devzone/conceptd.nsf/webmain/5a921a403438390f86256b9700809a53). 
    So, I guess one option is to "annotate" / write additional data separately using the Logger Object, referencing the Alarms somehow.
    Having said that, I believe Lookout 6.x (Citadel5) uses MSDE for storing Alarm data (other data is still stored in the native Citadel database).  You could explore this -- try opening the MSDE database from Query Analyzer, from instance, and see if it can be edited.  I haven't tried this. 
    Hope this gives you some ideas. 
    -Khalid

  • Cant extract historical data from Citadel database

    When using the simplest VI's to extract historical data from the Citadel database, I get error messages :
    using "Get Historical Tag List.vi"
    CIT_OpenDatabase.vi
    error code - 0x8abc0010
    Using "Read Historical Trends.vi"
    CIT_ReadTrace.vi
    error code - 0x8abc0010
    I am using dsc version 6.0, and have already tried to upgrade to ver. 6.0.2. This did not go well, and I had to return to ver. 6.0 (reinstalling NT and everything else) to make my system run again.

    Download and install the latest release of Logos from ftp://ftp.ni.com/lookout/logos. Logos is the backbone drivers for the Citadel database. The most recent releases of Logos addresses issues that are similar to this.

  • How to add a time characterstic(date) to already loaded cube??

    Hi All,
    We have a cube loaded(by daily deltas) for more than two years now, how can we add a date to this cube, what are the possibilities??
    1. do we need to delete all data,add that date ,reload??( quite tedious time consuming ,out of option for now)
    2. jut add that date to new dimension, load from now on?? but we may need data from past for that characterstic.
    3. if we copy that cube to another cube, add that char to old cube, then reload data from copied cube to old cube. is it possible to load all the data for that new filed for last two years??
    Please let me know the successful solutions as iam doing it in production system.
    Regards,
    Robyn.

    Hi Eric,
    ya that might be possible,but that charaterstic cannot be derived from the data present in cube as it needs to be derived from R/3 by changing the extract program of that cube.
    the plan is to create new cube with similar structure of old one plus this new date field,populate this new cube for say required years data, then generate query as using these two cubes in multiprovider.
    do u have any alternate solution for this
    Regards
    Robyn.

Maybe you are looking for

  • [solved] emacs won't start

    I'm interested in learning some lisp and it seems like emacs+slime is the way to go (even though I perfer vim). Seems like there is something weird with my configuration somewhere, because it won't run. $>emacs emacs: Invalid visual specification `Di

  • HT4946 back up is not working for apps

    itunes on windows7 didnt back up all of my apps from iphone5 and i have 300 apps some of them installted from other account and they are paid and i couldnt know this account password cuz it not mine its for my friend and all so there are more account

  • What is causing ASA 5520 v8.4 error 305006 for DNS traffic?

    I implemented transparent mode NAT in single context mode on an ASA 5520 v8.4.  Some connections are working well, but I am seeing others unable to resolve DNS.  I am seeing lot of the following error messages: Syslog ID 305006 regular translation cr

  • Iminthly inventory summery report for inventory audit purpose

    Hi All, Our customer generally required for monthly inventory summery report like below- Item opening quantity,value- item Purcashed during month quantity, amount- item sold or consumed qty, amount- item closing qty,amount. So can any one tell me how

  • OS X Mavericks Slowed Everything

    I have trouble opening applications, but specifically, I can't even load Internet websites. It is the slowest OS ever. I have been thinking I should try and redo a full install of OS X Mavericks, but I have no idea what else to do. I have checked my