Creating an array without using "auto-indexing"

Hello,
it is terrible! I'm new in working with LV5.0 (Evaluation) and I can't
find any examples how to write data into an array without using the
function "auto-indexing" of the "WHILE" or "FOR"-loops..
The values do not appear all at the same time, so I can't use the
"create_array" function.
So I want to "collect" all occured values and then write them e.g. in a
file.
Did I miss anything in the description ???
Who can help me?
Thanks, CHZ

CHZ wrote in message news:[email protected]..
> Hello,
> it is terrible! I'm new in working with LV5.0 (Evaluation) and I can't
> find any examples how to write data into an array without using the
> function "auto-indexing" of the "WHILE" or "FOR"-loops..
> The values do not appear all at the same time, so I can't use the
> "create_array" function.
> So I want to "collect" all occured values and then write them e.g. in a
> file.
The "Create array" function can be configured to take arrays as well as
elements. You have to use a loop that iterates as often as necessary,
checking for new data. When it receives new data, it adds the new data to
the existing array. It's probably easier to attach a small example than to
describe it in more
detail.
[Attachment Array.zip, see below]
Attachments:
Array.zip ‏10 KB

Similar Messages

  • How do you create an array without using a shell on the FP?

    I want to be able to read the status of front panel controls (value, control box selection, etc.) and save it to a file, as a "configuration" file -- then be able to load it and have all the controls set to the same states as were saved in the file. I was thinking an array would be a way to do this, as I have done that in VB. (Saving it as a text file, then reading lines back into the array when the file is read and point the control(s) values/states to the corresponding array element.
    So how do I create an array of X dimensions without using a shell on the front panel? Or can someone suggest a better way to accomplish what I am after? (Datalogging doesn't allow for saving the status by a filename, so I
    do not want to go that route.)

    Thanks so much m3nth! This definitely looks like what I was wanting... just not really knowing how to get there.
    I'm not sure I follow all the icons. Is that an array (top left with 0 constant) in the top example? And if so, that gets back to part of my original question of how to create an array without using a shell on the FP. Do I follow your diagram correctly?
    If I seem a tad green... well I am.
    I hope you understand the LabVIEW environment and icons are still very new to me.
    Also, I had a response from an NI app. engineer about this problem. He sent me a couple of VI's that he threw together approaching this by using Keys. (I still think you are pointing to the best solution.) I assume he wouldn't mind m
    e posting his reply and the VI's for the sake of a good, thorough, Roundtable discussion. So here are his comments with VI's attached:
    "I was implementing this exact functionality this morning for an application I'm working on. I only have five controls I want to save, but they are all of different data types. I simply wrote a key for each control, and read back that key on initialization. I simply passed in property node values to the save VI at the end, and passed the values out to property nodes at
    the beginning. I've attached my initialize and save VI's for you to view. If you have so many controls that this would not be feasible, you may want to look into clustering the controls and saving the cluster as a datalog file.
    Attachments:
    Initialize_Settings.vi ‏55 KB
    Save_Settings.vi ‏52 KB

  • "Create alternate versions without using extra disk space" Really?

    "Create alternate versions without using extra disk space" says Apple. But is that really true? Because, from what I understand, for Aperture's OS Integration (with the Media Browser) to work, Aperture has to render Previews of all your photos first. So, any alternate versions that you create, do exist on your Hard Drive in the form of an actual file (e.g. a JPEG).

    Reuben Feffer wrote:
    "Create alternate versions without using extra disk space" says Apple. But is that really true? Because, from what I understand, for Aperture's OS Integration (with the Media Browser) to work, Aperture has to render Previews of all your photos first. So, any alternate versions that you create, do exist on your Hard Drive in the form of an actual file (e.g. a JPEG).
    As Ian notes, it's smaller than a RAW - also smaller than an alternate PSD you might make, or duplicating a background layer in a PSD.
    Also though, you don't have to have previews for everything - I find what I do is leave automatic preview generation turned off and then just generate previews for images that I like the end result of. This lets you explore alternate versions with essentially no addition space used.

  • How to create a domain without using the root user in Sunone Server

    Hi,
    I am having one requirement to create a domain without using root user in sunone application server 8.1. Does any body know the solution?
    Message was edited by:
    SPBP

    Hi,
    If you are using file-based installation, you can install as non-root user and create domains as usual. You can use asadmin command available at <AS_INSTALL>/bin to do this.
    ex: ./asadmin create-domain domaindir /tmp/justfortest adminport 4850 --adminuser admin domain_nonroot_test
    Did you face any problem doing this in non-root. Unless you have write permissions in domaindir, you won't be facing any problem.
    Hope this clarifies your question.
    Thanks,
    -Balaji.

  • Creating itune account without using credit card

    Hi.
    I m new apple user has a little question.
    Can i create Itune account without credit card.? if it is possible then tell me the process of creating itune account without using credit card. 
    Warm Regards,
    Chandan Sharma

    I follow the provided link but payment method does not show option "non" i am very frustate.
    please help me because i do't have a credit card.

  • Is it possible to create .ncd file without using MAX?

    Is it possible to create .ncd file without using MAX? I am trying to read the data given by hundreds of possible Arb. IDs on one of the CAN port without having to create it from the MAX.
    Thank you

    Hi,
    the NI-CAN driver software does not provide functions/VIs to generate
    *.ncd files. However the *.ncd file format is just plain XML (ASCII text). Take a
    look at the example.ncd file that gets installed with NI-CAN
    (<ProgramFiles>\National Instruments\NI-CAN\):
    <?xml version="1.0" encoding="UTF-8"?>
    <nican_config version="0.1">
    <saved>8/8/2005,17:58</saved>
    <message name="TransmissionFluids">
      <id extended="0">82</id>
      <dbc>C:\Program Files\National Instruments\NI-CAN\example.ncd</dbc>
      <conflicts>0</conflicts>
      <bytes>6</bytes>
      <interface>1</interface>
      <comment></comment>
      <channel name="ClutchPressure">
        <conflicts>0</conflicts>
        <bitfield start="0" bits="8" order="0" type="1"/>
        <linear_scaling factor="1.600000e+001"
    offset="0.000000e+000" max="4.000000e+003" min="0.000000e+000"
    default="0.000000e+000" unit="kPa"/>
        <comment></comment>
      </channel>
    </message>
    </nican_config>
    Thus, you could generate *.ncd files with simple file I/O. Having XML-specific file I/O functions simplifies this task.
    -B2k

  • Finding the largest values of an array without using if condition

    Hi,
    I am trying to find the largest values of an array without using any if condition. Can any one tell me the solution for that..
    Thanks

    I am trying to find the largest values of an arrayThe 'S' to values suggests that you want not only the largest one, but multiple ones among the largest ones. The best way, I think, is to sort the array, so that its largest values are grouped topgether. If the type is already Comparable, the following single line does the job:
    Collections.sort(myArray);After this, the last values of the array are the largest ones.
    Jerome.

  • Is therere an option to create apple id without using a credit card?

    is therere an option to create apple id without using a credit card?

    http://support.apple.com/kb/HT2534

  • 1d cluster array replace value in a 1d boolean array (without using Loop)

    Hi ,
    is there a way to replace the values (string , boolean) ​​of a 1D array Cluster with value of 1D boolean array without using loop ?
    Regards
    Simone
    Attachments:
    111.png ‏75 KB

    Replace Array Subset requires that the array elements are type compatible with the elements that you want to replace. That seems not the case in your example.
    And the For Loop is anything but slow. How many billion elements do you expect your array to have to worry about performance of the for loop? With the type definition of your example even a ready made LabVIEW function would have to do internally a for loop too, since the boolean data inside the original array can not be in a continous memory area.
    Maybe if you show us what you try to do with the for loop we can understand better what your concerns are. As it is from the front panel image alone it is really hard to understand what your imagined problem might be.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Can i create apple id without use the credit card?

    can i create apple id without use the credit card?

    I'm getting the same thing. I created a new Apple ID via the Internet (appleid.apple.com) When I go to my device to try to use it, I have to review it first and in that process, I'm asked for a credit card or iTunes gift card. There is NO 'none' option.
    I work in a school district and we'd like employees to use their own apple ID for free apps which will allow them the freedom to explore apps without weighing down our tech dept with myriad requests for random apps. I deal with a broad demographic and many users are suspicious of putting personal credit card info on an Internet-based account.
    However, it appears they are locked out of the store unless they have some form of payment on file. Even if they enter a gift card, what happens when it's used up? Will they get locked out of the store if they don't have a balance?
    Anyone have a work around? If not ... APPLE Please update your support materials to explain this, or fix the bug.
    Thanks!

  • HT2589 how can i create apple id without using credit card details ?

    how can i create apple id without using credit card details ?

    @Limnos - that doesn't work anymore. There is no NONE option. I've been at it for hours trying to set up my daughter's account. I've tried creating and verifying an appleID on the web, on her touch...everything. Every single time you get to the stupid Touch, it wants to walk you through the verification of the account and it demands payment (even for their suggested apple Remote method listed in the KB).

  • How to create a inputstream without using the file operation

    Hi friends
    In my application, I have to create a Streamsource object using the below constructor:
    public StreamSource(InputStream inputStream)
        Construct a StreamSource from a byte stream. Normally, a stream should be used rather than a reader, so the XML parser can resolve character encoding specified by the XML declaration.
        If this constructor is used to process a stylesheet, normally setSystemId should also be called, so that relative URI references can be resolved.
    Parameters:
        inputStream - A valid InputStream reference to an XML stream.*[http://java.sun.com/j2se/1.4.2/docs/api/javax/xml/transform/stream/StreamSource.html#StreamSource(java.io.InputStream) |http://java.sun.com/j2se/1.4.2/docs/api/javax/xml/transform/stream/StreamSource.html#StreamSource(java.io.InputStream) ]*
    But for creating the inputstream, i am creating a tempory file, ie I am using fileinputstream.
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.StringReader;
    import javax.xml.transform.Source;
    import javax.xml.transform.Transformer;
    import javax.xml.transform.TransformerFactory;
    import javax.xml.transform.stream.StreamResult;
    import javax.xml.transform.stream.StreamSource;
    public class SourceConvertor
        private static Source convertStaxToStream(Source request)
    // here the argument to this method is StaxSource and the return type is StreamSource
            TransformerFactory factory = TransformerFactory.newInstance();
            Transformer transformer = null;
            File fp = null;
            FileInputStream fInp = null;
            try
                transformer = factory.newTransformer();
                fp = new File("tempFile.txt");
                transformer.transform(request, new StreamResult(fp));
                fInp = new FileInputStream(fp);
            } catch (Exception e)
                e.printStackTrace();
            return new StreamSource(fInp);
        public static void main(String args[])
            try
                String message ="<author><name>Rai</name><book>GodOfSmallThings</book></author>";
                Source original = new StreamSource(new StringReader(message));
                Source converted = convertStaxToStream(original);
                TransformerFactory factory = TransformerFactory.newInstance();
                Transformer transformer = factory.newTransformer();
                transformer.transform(converted, new StreamResult(System.out));
            catch (Exception e)
                // TODO Auto-generated catch block
                e.printStackTrace();
    This is not at all a good aproach because evey time it is creating a new file.
    So can anyone suggest a better aproach or idea or a simple code snippet so that i can create the inputstream without creating a temporary file.
    Thanks in advance:
    *[http://www.javamilestone.blogspot.com/  |http://www.javamilestone.blogspot.com/  ] *

    Err, a StreamSource is a Source. Check the Javadoc. You can pass it directly to the transform.

  • Creating glossy surfaces WITHOUT using gradients

    Greetings,
    I'm trying to do a smartphone illustration in Illustrator for a t-shirt print. The challange is I can't use any gradients, and I'm having a hard time creating that glossy/reflective feel. The tutorials I found always uses gradients so they're not much help.
    My question is, can someone give me some tips about creating a reflective surface illustration without using gradients (and preferably without using transparency)? Thank you very much for your help.

    You need to be clear about your requirements. Limiting the number of inks to eight does not rule out grads or tints. Are you saying you can't handle halftone or tint screens (array of tiny dots)? If so, then your requirements are solid line art, no screens.
    For example, Joe's example is line art (no grads or other continuous-tone), but it may very well be set up as tints of one color (black), in which case it would still require tint screens. If your requirement is strictly solid line art, then you would have to use a different ink for each shade of gray, printed as a solid, and the file would have to be built to separate that way; i.e.; using a separate spot color for each gray.
    JET

  • Wants - Create CCMS Alerts without using RWB

    Hi,
    I would like to create CCMS Alerts such as CPU performance, memory ect. ect. without using RWB
    is that posible ? if yes how can i do that...
    also I want to create CCMS alert will sent mail for different users, like memory alert sent to couple of users, and CPU performance alerts mail to different users like basis team...
    Thanks in Advanced

    Thanks for Accept my Eaddress, can I get your Eaddress please.... yahoo or msn
    as you know that I am trying to create CCMS in XI 3.0 and its nothing any link with tcode: ALRTCATDEF
    I am follow some sim.file / doc to setup CCMS to (Lotus notes)
    I setup everything but alerts is not show in lotus notes
    SAPconnect works fine, internal mails are working fine
    I wana share with you guys, what i done yet
    USER SETTING
    1. in SU01 my user has my Eaddress on it
    2. Comm. Meth mail
    SMTP SETTING
    1. SAP&CONNECTNET is actives and internet mail works
    2. In SMTP setting mail host localhost and port: 25
    3. Create background job every 5 munites
    RZ21 METHOD SETTING
    RZ21 --> copy Method CCMS_OnAlert_mail to TEST_CCMS_OnAlert_mail
    in parameters tab: Sender: my user name
    Recipient: myamil address
    Recipient - typeid: U
    In Release tab check autore action method
    MTE CLASS
    1. under SAP CCMS Monitor Templates --> Dialog overview --> dialog Response Time --> Server name --> properties
    then double click MTE class, and in auto-reaction method name: TEST_CCMS_OnAlert_mail
    2. Goback to MTE tree, click open alerts push button
    3. its show 10 alerts when I click display alerts push button show 10 alerts and status "Action_Failed"
    Question: why its not mail automatically, did i miss anything or will i need to change profile ?????
    please i would like to setup only this thing
    thanks

  • Using auto-indexing tunnels to write data files?

    Hi,
    I am using ni-motion controller to control a servo motor and collect position and torque data. I want to write the collected data to TDMS files.
    Recently I learned about the producer/consumer design pattern and I figured that would be a good approach to ensure that writing the files didn't slow down my data collection timed loop.
    However, I also figured out that my program seems to run well if I wire the data I collect to auto-indexing tunnels. Then I use a structure that only executes after all the data collection is done to write the arrays I built to TDMS files.
    Is there any reason that the latter method would be advised against? Can the auto idexing tunnels slow down my loop enough for it cause concern? I am only collecting about 5000 data points for each channel.
    Cheers,
    Kenny
    Solved!
    Go to Solution.

    Well, autoindexing tunnels don't write data files, they just accumulate data until the loop completes. If this is a FOR loop with a known number of iterations, the size of the output data can be allocated in one swoop, which is very efficient. If you are autoindexing on a WHILE loop, the final array size is not known, so LabVIEW needs to make a guess and and requires occasional new memory allocations whenever the last guess is exceeded. This is inefficient.
    One problem with these approaches is if the program or computer crashes. In this case the data in the shift register is lost forever, while if you would stream it to disk, you would have most of the data acquired so far.
    If you use a proper producer/consumer architecture, you should be able to asynchronously write the data and it will not slow down your acquisition. No need ot wait for the competion of data gathering.
    LabVIEW Champion . Do more with less code and in less time .

Maybe you are looking for

  • How Mail work with image attachements and HTML image ?

    Hello, I'm writing an application that sends html emails with images to Mail.app. When Mail display the mail, everything is okay, images are correctly embedded in html code, using inline attachements. But there's still a problem : The images are also

  • Using a gift card

    we teach reading and have apps in the store.  we want to distribute a gift card which gives the buyer a choice for an iphone or ipad purchase. they go to our website and choose, then then purchase it in the itunes store using a promocode supplied by

  • Empty demarcation in analysis authorization

    Hi all,        I am working on analysis authorization. I have done  everything as per the SAP help document. But when i execute the query in RSRT, it is showing 'Empty demarcation' in authorisation variable section. Does anyone know how to correct th

  • FRUSTRATION with ipod update

    I have tried and tried to up date my iPod with no success and am now on the verge of tears trying to figure out what to do. I can't re-install my iTunes with the cd I received with my iPod because it says that a newer version is installed, but I can'

  • Connect an Ipod to your Car Stereo

    I recently purchased a new car radio that supports mp3 players, meaning it has a usb input. Is there a cable that converts the ipod headphone cable to a usb output, or is it not possible to connect the ipod to the radio. PS. I tried connecting it wit