Is it possible to log an array to a database using only one statement?

I'm using Teststand 2.0.1. Now I can use "database options.." to log single number or string to Oracle database with no problem. But I have the difficulty to log an array to my database by using only one statement. Does Teststand has the ability to loop the stepresult usingthe array size as an index to log the array to the database? Or some other way to log array?

Jingtao -
You have a two options to log array data:
1) Use the Str expression function to convert the array of number property to a string with elements delimited by some character like a comma or space. You could then the single value to a variable string field. To retrieve the data you will have to parse the string to repackage the data.
2) Log the data directly to a binary field. TestStand takes the safearray version of the array and writes it byte for byte out to the field. To retrieve the data, you will have to pull it back into a safearray to repackage it in binary form.
Did you have a different way that you would have liked TestStand to use to store the data? What type of data field and what format of data?
Scott Richardson (NI)
Scott Richardson
National Instruments

Similar Messages

  • Hi,  If I have 1 license for creative cloud, will it possible to install in 2 computers (1 laptop and 1 desktop)?  When I am in the office I can use desktop and at home I can use laptop? At the same time I will be using only one devise. Will that be possi

    Hi,  If I have 1 license for creative cloud, will it possible to install in 2 computers (1 laptop and 1 desktop)?  When I am in the office I can use desktop and at home I can use laptop? At the same time I will be using only one devise. Will that be possible?  Thanks

    Yes. Yes. Yes.
    Mylenium

  • Is it possible to enable to VSS with 6500 chassis when only one chassis have the WISM ?

    is it possible to enable to VSS with 6500 chassis when only one chassis have the WISM ?

    thank you very much for the reply, that mean both the chassis no need to have the same modules installed on both the chassis . 

  • Is It Possible to store an entire  file in database using java?

    Hi All,
    I am new to Programming. please help he out Is It Possible to store an entire file in database using java? is possible, can u tell me the way to make this success? Thank you in advance.

    Thanks PhHein
    i got that application. i stored one file in db, and i displayed that in browser. thank u very much.

  • I have aol email set up on my iphone4. Is there a way for me to log out of that account after use, so one one else in my family can read my emails?

    I have aol email set up on my iphone4. Is there a way for me to log out of that account after use, so one one else in my family can read my emails?

    Not easily, no. The better solution would be to put a passcode on the phone.

  • Is it possible to purchase creative cloud and try it for only one (1) month? My free trial expired without using it.

    Is it possible to purchase creative cloud and try it for only one (1) month? My free trial expired without using it.

    The price is higher, I think $70.  But you can purchase without the annual commitment.

  • HT204053 why does my ipad "Apple Store" app, not recognize me when i try to log in using my apple id?  i use only one apple id for both store and iCloud and know i am keying correctly.  hmmm.

    we use a pc to hold all of our media but are two ppl in the household.  we both log into itunes and apple store using our own passwords.  recently on my ipad i was no longer able to upgrade/log in the apple store because when it asks for my password it prompts for my partners password and it doesn't recognize me.  also, oddly, my partner added an app that i also want to add on his ipad.  when i attempted to add that app using my apple id log in it thinks i'm him and prompts for his password on my ipad therefore leaving me no way to have that app.  how do i get my app store to function again (recognize me) and how can we finally figure out how to separate the media so i don't get his apps on my devices and mine on his (and then not be able to access them b/c we don't share passwords)?  please help.

    Open the App Store app, go to the Featured pane, swipe to the bottom, tap the Apple ID and sign out. Tap again and sign in with the Apple ID of your choosing.

  • Storing an array into the database using jdbc

    Hi,
    i�ve got a problem storing an array into a database. I want to store objects consisting of several attributes. One of these attributes is an array containing several int values. I don�t know exactly what is the best way to store these objects into a database. I have created two tables connected by a one to many relationship of which one stores the array values and the other table stores the object containing the array. Is that ok or should I use another way. It�s the first time I�m trying to store objects containing arrays into a database so I�m very uncertain in which way this should be done.
    Thanks in advance for any tips

    1. You should use blob or longvarbianry type colum to stor that array.
    2. All object in that array should be Serializable.
    3. Constuct a PreparedStatement object
    4. Convert array to byte[] object
    ByteArrayOutputStream baos=null;
    ObjectOutputStream objectOutputStream=null;
    baos = new ByteArrayOutputStream(bufferSize);
    objectOutputStream = new ObjectOutputStream(baos);
    objectOutputStream.writeObject(array);
    objectOutputStream.flush();
    baos.flush();
    byte[] value=baos.toByteArray();
    5. Now you can use PreparedStatement.setBytes function to insert byte[] value.

  • How to write a 2D array to a database using database connetivity toolkit?

    Hey Gang.
    I am having trouble writing records efficiently to my database. I have a 2D array of elements that I am writing to my database. Currently, I am writting one row at a time using a FOR loop and "DB Tools Insert Data.vi". Unfortunately, this process is very time consuming. When I try writing in the entire 2D array (as opposed to 1 row at a time) I get the error:
    "Number of query values and destination fields are not the same..." 
    Is there any way to write a 2D array to a database in one shot?? (and take up the same number of records as if I wrote each row individually)
    Any ideas would be much appreciated.
    Using LV 2010.
    Cheers

    Maybe Ive explained the issue incorrectly. Please see the attached snapshot. The top portion of the code is what I currently have. It works, but it writes one database record at a time and the loop runs ~1000 times. (How I am generating the data to write is not particularly important but how I am writing to the database is currently my issue)
    The second loop is what I would like to get working as the database write function will only run 4 times (as determined by the number of elements in the variable "Multiple Tables".
    Thanks to all for the input so far.
    Attachments:
    Database Write Test.zip ‏64 KB

  • Is it possible to uninstall just clients and not databases using winbatch

    Due to security updates we have chosen to remove all previous versions of Oracle CLIENT, and we currently have a WinBatch script that parses all home locations and then uninstalls the Oracle software from those home directories using the Oracle uninstaller.... yep you can see where this is going, on a PC with Oracle Database installed (IE Devs) their database(s) were uninstalled too DOOOHHHH!!
    What I am in need of is a scripted method to parse all home directories (because we all know Devs will just reinstall the client they think they need) and uninstalls just the CLIENTS and not the databases. Is this possible programmatically?
    Edited by: 960187 on Sep 19, 2012 3:09 PM

    960187 wrote:
    Due to security updates we have chosen to remove all previous versions of Oracle CLIENT, and we currently have a WinBatch script that parses all home locations and then uninstalls the Oracle software from those home directories using the Oracle uninstaller.... yep you can see where this is going, on a PC with Oracle Database installed (IE Devs) their database(s) were uninstalled too DOOOHHHH!!
    What I am in need of is a scripted method to parse all home directories (because we all know Devs will just reinstall the client they think they need) and uninstalls just the CLIENTS and not the databases. Is this possible programmatically?
    Edited by: 960187 on Sep 19, 2012 3:09 PMThis is a fool's errand. The database home includes the client software. And that is necessary because there are times when the database instance itself has to take the role of a client.
    Yes, there can be a separate 'client-only' home that can be fairly easily identified, but that still leaves a client in the db home.
    You need to re-think your 'requirement'.

  • Is third-party SO/PO  process possible using only one company code?

    Hi friend,
    1) my client wants to implement third-party PO process but also wants a way of keeping track of inventory during this process. I know that inventory should be tracked on the vendor side and not on our client side since we're doing third-party PO.
    However my client wants to track inventory (in an inventory g/l account like 120100) so that when my client post a Goods Receipt, the inventory account
    gets Debited and when client post  the outgoing invoice to customer, the inventory account gets Credited. In this way, my client can track
    if the customer have received the ordered item or not.
    The problem is that third-party PO posts to consumption account but DOES NOT post to inventory account. Is there any way of
    setting this up so that in addition to posting to comsumption account every time a Goods Receipt occurs?
    2) i tried to create "Individual Purchase Order" (customer order from client -> client order from
    vendor -> vendor ships item to client -> client then ships item to customer) so that posting will hit inventory account.
    However, i find that taking this approach involves setting up a Plant for vendor (A), a Plant for our Client (B), and a Plant for Customer (C).
    Because when i do a Goods Receipt, the stock has move from Plant A to Plant B. Then when i do a Goods Issue to the customer, it asks for the receiving plant. I assume this means that the stock moves from Plant B to Plant C.  
    Also, from the reading i did on the forum, i get the impression that i need to create more than one Company Code if i were to do
    third-party PO.  Do the Vendors have to be created in a different company code then the Customer? Or does it mean that Just the
    plant (like Plant A) needs to be created in a different Company Code then Plant B and Plant C?
    3) can i do third-party PO using only ONE company code?
    Can anyone provide some clarification on this issue? I've read tons of posting but none really helped clear  this issue up.
    Thanks so much.

    Dear Kishore,
    Individual PO processing is not third party process at all. In third party process the vendor delivers the goods dirctly to the customer - please check what SAP help says.
    http://help.sap.com/saphelp_46c/helpdata/en/dd/5601d4545a11d1a7020000e829fd11/content.htm
    Dear Queyen,
    One important point of third party process is that there's no need to keep stock of materials - that is in harmony with reality. Why does your customer want to keep stock from the goods if they doesn't receive at all? Is it coreect? It doesn't correspond to the fact.
    You can do statistical (ghost) GR against the third-party PO and you can see the goods movement in MB51 - I think this should be enough.
    http://help.sap.com/saphelp_46c/helpdata/en/dd/560287545a11d1a7020000e829fd11/frameset.htm
    BR
    Csaba

  • Is it possible to require a security password to be entered only one time for each instance of a pdf

    How I imagine it to work:
    I receive a secured pdf; I open it and enter the password. I am able to open the pdf again without password restrictions. If I copy the pdf I am required to enter a password the copy

    Passwords are set when the document is created in Acrobat, and as far as I know they MUST be applied each and every time the document is opened. In other words, it doesn't and can't use cookies to remember that you've already entered it, because there are none in the OS.

  • Is it possible to create 2 sites in iweb and publish only one when wanted?

    I use iWeb to create my website, I love it because it makes it easy for me to make and maintain my website. I'd like for my wife to be able to create her own website using iWeb also.
    I don't host with .mac and neither will my wife. I publish to a folder on my desktop and ftp my files to my host.
    My question is...can my wife and I both use iweb to design our websites seperatley and publish the sites seperatley? If so, how? When I publish to a folder it seems that everything in iWeb is published to the folder.

    Yes.
    There is software available on VersionTracker.com or MacUpdate.com called iWebSites (go to either site and do a search for it). It lets you create more than 1 resource file and lets you choose between them. As a result, you can have as many individual websites as you like and upload them individually.
    Hope this helps.

  • Why we have only one log writer in oracle

    Why we have only one log writer in oracle while we have more than one DB writer and archiver in oracle.

    skvaish1 wrote:
    Was this a interview question? Looks like to me..
    High DML allows multiple log writer processes as well by spawning multiple log writer processes.
    No - there is only one log writer process per instance.
    Don't confuse the function of I/O slaves with the function of the log writer.
    Regards
    Jonathan Lewis
    http://jonathanlewis.wordpress.com
    http://www.jlcomp.demon.co.uk
    To post code, statspack/AWR report, execution plans or trace files, start and end the section with the tag {noformat}{noformat} (lowercase, curly brackets, no spaces) so that the text appears in fixed format.
    "Science is more than a body of knowledge; it is a way of thinking"
    Carl Sagan                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Is it possible to refresh parent window using only JSP??

    If I open a up a new browser window using target="_blank" in the link. Is it possible for me to refresh the parent window using only JSP?
    I know it's possible using Javascript ( window.opener.location.reload(true) ), but my customer don't allow me to use Javascript.

    There is no problem Timo. I'm actually glad that you responded. You're a person that works with ADF for a long time so you know what can be or not easily done, so many thanks.
    I'm going to ask you another question so i don't have to open a new topic and cause a little spam on the forum.
    Is there any way to have more than 2 attributegroups working in my treemap, or in another words, more than 2 ifs in my treemap to color the elements by more than 2 colors or patterns?
    I have this:
    <dvt:treemapNode value="#{row.Store}" label="Store: #{row.Store},  amount: #{row.Amount}" id="tn2" drilling="replace">
         <dvt:attributeGroups value="#{row.Amount lt 10000000}" type="color" id="ag5" label="#{row.Amount lt 10000000 ? 'Abaixo dos 10.000.000' : 'Abaixo dos 20.000.000'}"/>
         <dvt:attributeGroups value="#{row.Amount lt 20000000}" type="color" id="ag7" label="Amount less than 20.000.000"/>
    </dvt:treemapNode>
    If i try to put another attributeGroups, it will not work, for example, for the tests, i've try to add a attributeGroup for an especific amount and all my elements got colored.
    Don't know if it is important but i have a hierarchy in my treemap.
    Any ideias Timo?
    Regards and many thanks.

Maybe you are looking for

  • Production order wise report  of  all component.

    dear all I want production order wise report  of  all component. 1) quantity required 2)issue quantity3)currect stock I got  quantity required and issue quantity field in co24 but i didnt get currect stock field(unrestricted stock) in that t-code Is

  • When I print business cards, they sometimes print 1/4 too high but not always.

    I have my business cards in a Word document using an Avery template. I have used the same file for years. I never had a problem with my Canon printer but after buying an HP Photosmart D110 I have had nothing but problems. When I print then they print

  • Unable to check status of Warranty Return

    ) Hi, I recently organised a return for my Zen x-fi 32gb (around 3 weeks ago) Since then I haven't heard anything, so I've tried on numerous occasions to input my RMA number in the 'check status' page but it always tells me it isn't an RMA number, ev

  • Cluster and JSP compile

              On a cluster, how come if I make a change to a JSP it doesn't recompile           without restarting the servers? Is it supposed to be that way? In the same           vein how do I get the servers to recognize that their is a newer version

  • How to know whether a connection leak occured in weblogic8.1

    How to Know whether Conenction Leak has Occured or Not ??..Where does the WeblogicServer8.1 print the STACK TRACE if connection Leak has occured ? or does it maintain a LOG FILE , where any entries can be seen................