Possible to create an array of devices?

Hello,
as a Java Programmer I like to programm in the object orientated manner.
I have more than 50 valces to manage and established a state diagramm.
So if the value is true or one in the matrix in row 52 of a column definig the operation type then I would like to set the valve 52 to "open".
Therefore I would like to put all devices of type valve in an array and start the corresponding valve.at index 52 of a device array in a for loop.
I have not hardware yet but I probably want to use the DAQ unit of NI.
Will it be possible to program it in this way?
Thanks very
 much
Thommy7571
Solved!
Go to Solution.

Thommy7571 wrote:
By the way if I create an array and use it with this index component to act on one element this did never work yet..
Even if the dimensions are equal I get an error:
error: trying to connect a 2D array of type "boolesch" to 2D array of "invalid". 
the same if I want to initialize one.
I don't see any possibility to adapt or define the type of the element
in an array for all elements at once. How must I do it?
I will have the same problem with the device array.
That description makes no sense. Can you show us your code instead?
LabVIEW Champion . Do more with less code and in less time .

Similar Messages

  • Is it possible to create an array using Advaced Actions?

    I need to create an interaction where the user can make selections from a long list of items on multiple slides. I want to store these 'customized selections' in a an array so that at the end of the course, I can display specific feedback that relates to the selections the user made throughout the course. Is it possible to do so using Advanced Actions? Can anyone point me to a resource that describes how I might accomplish this functionality?
    Thanks!

    It depends how you create the 'selections', how many items can be selected (all of them?) and how you'll create the feedback based on those selections. There are plenty of use cases with advanced actions on my blog.
    Another approach would be to use JavaScript of course.
    Lilybiri

  • Create an array of fixed dimension

    Hi,
    Is it possible to create an array of fixed dimension during the intial stage?
    Veena

    Yes, this is done using the initiialize array function (on the array palette). If you drop the function on the diagram you will see that by default there is a dimension size input and an element input. If you want to create a 1D array of 20 elements of DBLs wire 20 to the dimension input and a double precision value of 0,0 (if you want all the 20 to be zero in the beginning) to the element input.
    If you want the array to be 2D...3D etc. expand the function icon by resizing it (use the arrow cursor to grab the corner of it and resize...). It will then add size inputs for additional dimensions...
    MTO

  • Can I create "variable array"?

    Is it possible to create an array of variables? Eg. if I have to 10 boolean control, called Switch1, Switch2... Switch10, and I need to switch one of them to ON, but which one to switch on depends on different situation. Say, at situation A, I need to switch on Switch3, then at situation B, I need to switch on Switch5, etc. Can I write just one command, with the switch number as the input, so that it can switch on different boolean control (Switch#) at different time? (i.e. treating the variables Switch1 to Switch10 as an array of variables called Switch#).
    BTW, this question was asked by another LabView user in 2000, but there hasn't been a satisfactory anwer.

    I can think of one way off the top of my head, but it suffers from some fundamental flaws, and I'm not entirely familiar with the functions involved, so it may not work!
    The solution:
    It is possible to open a reference (using the Open VI Reference) to the VI being run. From there, it is possible to obtain a reference to all of the controls on the front panel using property nodes. Using these references, it should be possible to set the properties of the controls.
    The flaws: It's complex, it's large overhead, and it's virtually impossible to maintain.
    I've run into the same problem before with controls embedded in tab controls, since buttons on two different tabs cannot belong to the same cluster or array. I have yet to see a solutio
    n that I like.
    Perhaps someone else out there has seen a good solution for this one? Or maybe NI will bite the bullet and implement heterogeneous arrays and "virtual" clusters (clusters who's front panel objects are not spatially associated
    Sorry I can't help more.

  • Is it possible to/how can I create an array of arrays in Labview 6i?

    I am trying to create a data structure based on a tree where each limb is an array of arrays and each of those arrays is an array of arrays...etc. My ultimate purpose of this is for multidimensional (infinite) data saving/data recovery.

    I suspect it won't work for your intended application, but here is an answer to your question:
    You can't create an array of arrays, because that would be the same as increasing the number of dimensions of the array. However, you can store an array in a cluster, then have an array of clusters with arrays in them. So, indirectly it is possible. This gives you the possibility of each array being a different size.
    Bruce
    Bruce Ammons
    Ammons Engineering

  • Is it possible to create a 1 D array with the "build array VI"? when receiving random number

    Hello all,
    Is it possible to create a 1 D array with the "build array VI" when receiving random number?
    I am receiving random data and the build array VI always create a 2D array which might cause some problem if you want to compute certain type of operation after.
    Any example will be welcomed.
    Thank you,
    Israel 

    Hello Lynn and Yamaeda
    First I want to Thank you Lynn for your linguistic contribution indeed "Build Array" is a primitive and not VI, thank you for the education. In reality what I am doing is simple.
    I have two arrays of complex elements Array1 and Array2.
    Array1 conains the complex elements ""(a0+ib0) ; (a1+ib1) ;...(an+ibn) ;
    Array2 conains the complex elements ""(c0+id0) ; (c1+id1) ;...(cn+idn) 
    What I want to do is the multiplication of the first array by the  conjugate of the second array element.
    Array1*(Conjugate Array 2)" for the first element the results is "(a0.C0-b0.d0) + i(b0c0-a0d0)" and the etc...
    and then taking the square root ([(a0.C0-b0.d0) power of 2]) +  [(b0c0-a0d0) power of 2])
    I was wondering if there were some dedicate primitive that could solve the computation above which is the cross correlation in Frequency domain.
    Thank you very much.
    Israel

  • Is it possible to create a tagged pdf with apple pages?

    Not sure if possible and any tutorials would be appreciated.

    > Is it possible to create a tagged PDF with Apple Pages?
    Short answer: No, Apple chose at the introduction of Mac OS X to support only Adobe PDF 1.3 and those parts of Adobe PDF 1.4 that include device-independent transparency, but not those parts of Adobe PDF 1.4 that include Adobe XMP for XML markup of the page description program.
    Long answer: Adobe PostScript is a page description programming language, unlike Xerox Interpress which is a page and document description programming language. In other words, Adobe PostScript is a streaming or sequential rendering model that cannot simulate the behaviour of a bound book where the user can turn from any one page to any other page arbitrarily. Adobe introduced Acrobat Distiller in 1993 in order to convert Adobe PostScript page description programs into Adobe PDF page and document description programs that share the same fundamental functionality as Xerox Interpress.
    Conversion from Adobe PostScript to Adobe PDF buys one nothing but page-independent processing. Specifications published by Adobe in 1993 state how the SFNT Spline Font file format used by Apple and Microsoft for Unicode imaging has to be re-encoded into PostScript font program dictionary format (PostScript so-called simple fonts with less than 256 glyphs and PostScript so-called complex fonts (CID fonts) which are simple fonts tiled into a single superfont). All that is left is the glyph identifiers, and per Unicode Specification version 1.0 the glyph identifiers are private and font-dependent, so no character information can be inferred.
    ISO 19005:2005 PDF/A is a superset of ISO 15930:2002 PDF/X-3. The problem with ISO 15930:2002 PDF/X-3 is the same as above, that is, Adobe PostScript cannot encode the file format of the International Color Consortium, which has to be re-encoded to PostScript CSA Color Space Arrays and PostScript CRD Color Rendering Dictionaries. It is possible to encode the ICC file format directly in PDF 1.3 and higher, as specified in ISO 15930 and ISO 19005, but because PDF encodes only the glyph identifiers that are the output of the SFNT file format, and not the UCS Universal Character Set input and the settings for the feature selectors in the font file, ISO 19005:2005 has come under criticism for failing to support search in complex scripts.
    ISO 19005:2011 is supposed to address the shortcomings by saving the UCS input into the PDF itself, but in this case it is impossible to use Adobe PostScript and Adobe Acrobat Distiller as intermediates to Adobe PDF. So in order to drive ISO 19005:2011 Adobe would have to ditch Adobe Acrobat. I am not sure if there is software that implements ISO 19005:2011, but I noted that the Apple iBook Store does not accept PDF at all. Personally, I struggle to think of how to explain to endusers the overwhelming number of Adobe ISO PDF formats (there is PDF/E, PDF/UA and whatever else), and the overwhelming number of Adobe ISO PDF versions of these formats (there is ISO 19005:2005, ISO 19005:2011, ISO 15930 all the way back to 1999/2000 in God knows how many versions at this point).
    Best wishes,
    Henrik Holmegaard
    would-be technical writer

  • HT204053 the only way to creat an icloud account is with a ipad, iphone or imac. is it possible to creat the account from my windos PC? i already downladed i cloud, and i have an Apple ID but Not an Icloud account/

    the only way to creat an icloud account is with a ipad, iphone or imac. is it possible to creat the account from my windos PC? i already downladed i cloud, and i have an Apple ID but Not an Icloud account/

    Isa Garduño wrote:
    the only way to creat an icloud account is with a ipad, iphone or imac Apple computer.
    As you already knew, no, you cannot create a new iCloud account from anything but the above devices.
    http://support.apple.com/kb/HT4436

  • Is it possible to create a Windows 7 Partition via Bootcamp while having an internal RAID 0 Setup ?

    Is it possible to create a Windows 7 Partition via Bootcamp while having an internal RAID 0 Setup ?

    Yes, just not on the RAID. Boot Camp Assistant will only partition a single drive containing OS X. You cannot partition a RAID array.

  • I want to create an array that goes into a case structure where each element in the array is an individual case and gets done in order

    I want to create an array that goes into a case structure where each element in the array is an individual case and gets done in order. Any ideas, I've been playing with the idea but have had no luck, is this even possible?

    Hi,
    Please check it out the attached Vi.. Is this you need?
    Sasi.
    Certified LabVIEW Associate Developer
    If you can DREAM it, You can DO it - Walt Disney
    Attachments:
    Event.vi ‏11 KB

  • Is it possible to make an array of JButtons?

    is it possible to make an array of JButtons?

    Note that this doesn't create any JButtons, just the array!

  • How to create an array with Generic type?

    Hi,
    I need to create a typed array T[] from an object array Object[]. This is due to legacy code integration with older collections.
    The method signature is simple:public static <T> T[] toTypedArray(Object[] objects)I tried using multiple implementations and go over them in the debugger. None of them create a typed collection as far as I can tell. The type is always Object[].
    A simple implementation is just to cast the array and return, however this is not so safe.
    What is interesting is that if I create ArrayList<String>, the debugger shows the type of the array in the list as String[].
    If I create ArrayList<T>, the class contains Object[] and not T[].
    I also triedT[] array = (T[]) Array.newInstance(T[].class.getComponentType(), objects.length);And a few other combinations. All work at runtime, create multiple compilation warnings, and none actually creates T[] array at runtime.
    Maybe I am missing something, but Array.newInstace(...) is supposed to create a typed array, and I cannot see any clean way to pass Class<T> into it.T[].class.getComponentType()Returns something based on object and not on T, and T.class is not possible.
    So is there anything really wrong here, or should I simply cast the array and live with the warnings?
    Any help appreciated!

    Ok. May be you could keep information about generic type in the your class:
    public class Util {
        public static <T> T[] toTypedArray(Class<T> cls, Object[] objects){
            int size = objects.length;
            T[] t = (T[]) java.lang.reflect.Array.newInstance(cls, size);
            System.arraycopy(objects, 0, t, 0, size);
            return t;
    public class Sample<T> {
        Class<T> cls;
        T[] array;
        public Sample(Class<T> cls) {
            this.cls = cls;
        public void setArray(Object[] objects){
            array = Util.toTypedArray(cls, objects);
        public T[] getArray(){
            return array;
        public static void main(String[] args) {
            Object[] objects = new Object[] { new LinkedList(), new ArrayList()};
            Sample<List> myClass = new  Sample<List>(List.class);
            myClass.setArray(objects);
            for(List elem: myClass.getArray()){
                System.out.println(elem.getClass().getName());
    }

  • Is it possible to create custom layouts in "Pages '09"?

    Is it possible to create my own custom document layout size in "Pages '09", or am I stuck with the 8.5 X 11 templates?
    I'd like to create a custom document layout 4.5 X 5 for a small flyer that I must design.
    O

    Is it possible to create my own custom document layout size in "Pages '09", or am I stuck with the 8.5 X 11 templates?
    The answer is that you can set a custom x-y coordinate space or select a canned x-y coordinate space from the ISO A series or any of the industry and US national series.
    This fact is not based on the application software, but on your own use of a digital graphic device that draws patterns of picture elements. Your display and your printer are digital graphic devices.
    With a digital graphic device, the application, the OS and the driver don't communicate in ASCII control codes for carriage return and so forth.
    The application, the OS and the driver communicate in x-y coordinate spaces within which you set other coordinates for typography frames and photography frames.
    This is what you see in Apple Pages layout mode as well as in the layout mode of Microsoft Word, and in any version of Aldus PageMaker since 1985, QuarkXPress since 1987 and so on and so forth.
    When you are done and have exported your design to disk as Adobe PDF, the x-y coordinate space you set for the design space can be seen as the Media Box in Apple Preview > View > PDF Display > Media Box.
    If you set an x-y coordinate space that is larger than the x-y coordinate space, then it is device-independent. Apple Preview will by default scale the size down to the dimensions of your digital graphic display, will scale the resolution down in memory, will convert the scalable type to smooth bitmap type in memory, and will convert other colour spaces to the ICC colour space of your digital graphic device. Another digital graphic device with an x-y coordinate space that has another dimension can draw your design as is, draw scaled up, draw scaled down, or draw as is in tiles. This is how books and periodicals have been proofed and then printed for a quarter century.
    Should be taught in school, though.
    /hh

  • How do I create an Array of Images

    Hi,
    I'm creating a program that basically is a slideshow. It has buttons that allow the user to switch from image to image, and has some audio in the background. I was wondering how I might create an array to store the images. I'm very new to Java, so please no detail is too small. I've just started using arrays, so I'm not sure where I would store the files or how to call the images. Please be descriptive and as dumbed down as possible :)
    Thanks for the help!

    I like ArrayList
    ArrayList<BufferedImage> myPics = new ArrayList();then just dump them in with add(myBufferedImage)
    If you'e not using BufferedImages then just change the BufferedImage to Image.
    to get, say the 6th image back out, then use:
    myBufferedImage = myPics.get(5);the index starts at 0 and should be addressed as 0 to (myPics.length - 1)

  • Is it possible to create a timestamp with an accuracy of 1ms?

    I want to acquire data with PCI-6023 and write them with a precise timestamp to a file. Is it possible to create a timestamp with an accuracy of 1ms?
    Maybe somebody can tell me experiences with logging data over a time periode up to 24 hours (and time-accuracy of 1ms)?

    Hi Hans, This forum is related to one of National Instruments' automation products rather than data aquisition. Perhaps you will acheive better results if you post your question to one of the "Measurement Devices" forms instead.

Maybe you are looking for

  • IPhoto 9.4 "damaged or incomplete"

    Downloaded and installed the latest iPhoto update (9.4) for Mountain Lion via the App Store yesterday. It seemed Ok for a while, but now it will not open. Error message: "You can't open the application because it may be damaged or incomplete". It is

  • What steps should I follow ?

    Hi all, First of all, I am from Holland, I'll try my best not to write in riddles.... I have two 30 minutes DV tapes I would like to edit and than show to my friends in Holland AND the States. How do I start ?? My idea is to import the footage of eac

  • Camera matching profiles for Olympus in PS CS4

    From where will I get the camera profile for my manufacturer (Olympus). I do have ACR 5.7 with Photoshop CS4.   I checked with Olympus, and they said that Adobe creates the camera profiles, not the manufacturers. Please provide some informaiton on it

  • Old photoshop downloading

    How can download old photoshop like CS2 -3-4 for free MAC version?

  • Plz can someone show me simple thread code work

    Plz can someone show me simple thread code work with main function, without any applet...thread including start(),run(), and stop(), am I right or not ?? thx