How do I create an xControl with multiple inputs and outputs?

Hello,
i am trying to write a new Xcontrol Element. In the data model I can create data types using the cluster to create compound types, eg an int and an int array. But how do I create an xcontrol which has multiple data inputs and outputs?
Kind Regards

Limping_Twerp wrote:
Alright: I see: An xcontrol is either an input OR an output. How do I achieve an output? Secondly: So you are saying the only Elements that can have multiple inputs and outputs are VIs?
Can you take a few steps back and explain what you are actually trying to do. SubVIs and Xcontrols have nothing in common and it is not clear why you even try to compare them side by side (e.g. in terms of the number of connectors).
Your questions about input or output tell us that you seems to have some misconceptions about xcontrols. Xcontrols are like regular controls, except they have some built-in intelligence that you can program. Most front panel object can be either controls or indicators and the same is true for Xcontrol. You create an Xcontrol, and after placing it on the front panel you can decide if it should be a control (where the code reads the value) or an indicator (were the code writes values to it). When you define the xcontrol facade, you also need to program how the visuals change if it is changed from control to indicator or vice versa.
As a first step, you should opend the example finder and look at some xcontrol examples.
Again, what are you actually trying to do? 
LabVIEW Champion . Do more with less code and in less time .

Similar Messages

  • Planning Folders with multiple input and output layouts

    Hi,
    I have a planning folder with one input layout and 4 output layouts. The input layout has a GPS assigned to it which will be executed before layout change. Will this function get executed when I open any of the output layouts(out of 4) not necessarily the immediate output layout (next to the input layout) and will the calculated data be displayed accordingly. Can some one please confirm me on how that works.
    Scenario2: I have one input layout and 2 output layouts. The input layout has a GPS assigned which will be executed before layout change and the first output layout has another GPS assigned which is basically a push button. Then how does this work.
    Points will be assigned . Help is greatly appreciated.
    Thanks,
    Vamsi

    GPS will not be executed when you open any of the output layouts but will be executed only when you open the input layout. Yes, the calculated data gets stored in planning buffer so it will the displayed in input/output layouts accordingly.
    Scenario2: The GPS assigned to input layout will be executed when you open the input layout. GPS which is assigned to output layout in the form of a button will be only executed when user will click on that button. Calculated results will be available in all the layouts as the result remains in planning buffer until user explicitly click the 'SAVE' icon in applpication toolbar.

  • Multiple inputs and outputs using DAQmx VIs

    Hello,
    I am fairly new with the LabView programming language.  I have a few training books that I have been reading, and I have been following online tutorials and reading the forums.  However, I have come to a problem where I don’t see a clear solution.  I am using LabView 2009 (9.0f3) and DAQmx VIs.
    I am using a NI 9172 chassis PLC, with two 9201 AI cards, 9217 AI RTD card, 9472 DO card, 9263 AO card, and two 9237 AI Bridge cards.
    I am reading eight analog inputs with the 9201 cards, two analog RTD inputs with the 9217 card, three digital outputs with the 9472 card, three analog outputs with the 9263, and eight analog inputs with the 9237 cards.
    I wrote a simple program to test one digital output task, two of the analog output tasks, and a single analog input task.  I put all of them in the same while loop, and it worked perfectly.  However, when I add analog input tasks to the same loop, I get an error 200022.    So I tested each sensor individually by changing the channel before each run.  I searched error 200022 and found that this is because I cannot start another analog input task until the previous one ends.  With this said, I don’t know how to acquire an analog voltage in the same task as an analog RTD voltage.  Both inputs take different constants in the start task DAQmx icon.
    Attached is my test program.  It is titled “Test All”. This is the program I used to test the various sensors.  I tested the input sensors one at a time, and it worked fine.  A few tasks are written just to test functionality, and will be added to later.  The data is only displayed on the screen.  I will add triggers and data write to disk functions later.  This program works now, but if I add more analog inputs, it will generate the 200022 error.
    Can someone show me how to correctly write the code for multiple inputs and outputs using DAQmx?  All training materials and tutorials I can find all show a single input or single output, not multiples of each.  Thanks for looking.
    -Randy
    Attachments:
    TestAll-NI.vi ‏32 KB

    Hi RandyC,
    The Knowledge Base article Using Different Types of DAQmx Global Channels in the Same Task goes into a little more depth of what Bryan is talking about, and it also includes some example code to help show what to do.
    Hope that helps,

  • How can i create  excel sheet with multiple tabs using utl file?

    how can i create excel sheet with multiple tabs using utl file?
    any one help me?

    Jaggy,
    I gave you the most suitable answer on your own thread yesterday
    Re: How to Generating Excel workbook with multiple worksheets

  • How can I make Apple Earphones be the Input and Output for Audio

    I have some older headphones and they aren't compatible with a Mid 2010 (Intel Core i3) 21.5 Inch iMac
    Is there some way to make Apple Earphones be the Input and Output for Audio in the iMac
    This is a problem for me personally as when I am talking to someone on Skype the iMac picks up the In-built Microphone audio, and yes the headphones I'm using do work straight from the iMac as audio output
    Any help is appreciated

    you can connect the headset to something like this
    http://www.ebay.com/itm/NEW-MaelineA-3-5mm-Female-to-2-Male-Gold-Plated-Headphon e-Mic-Audio-Y-Splitter-/381100440348
    and then connect the mic to the input and the headset to the headset port

  • How to use a bluetooth cellphone for audio input and output

    Hello, I was wondering how to set-up my Mac Book so that I can use my bluetooth cellphone for audio in and audio out. Ideally, I would like to use my handset for talking on iChat and Skype. Has anyone had any luck doing this? When I bond my cellphone these optiosn do not appear. I know that this is easy to do on a Windows machine but I am not sure about how to do it on my Mac Book.
    Thanks!

    Yes it should do what you want.
    Go to "Audio Midi Setup", and go to the Audio menu and click "Open Aggregate Device Editor". The interface is pretty simple but if you do get stuck, just use the help function in Audio Midi Setup, as it has a step by step guide.
    Then when you return to logic, go to the Preferences>Audio>Drivers section and select Aggregate Device as the new driver rather than either the built in sound or the tascam. Then the inputs and outputs will apply to BOTH devices.

  • How can I create a hashmap() with multiple values for the same key?

    I am trying to write an application that will us something like a Map() with multiple values but some have the same key. Is this possible?

    i had the same question. just create a List, add all the values u want to it, and then put the List into the map like u would a normal single value. e.g.
    List list = new ArrayList();
    list.add(value1);
    list.add(value2);
    map.put(key, list);
    i bet u r doing the same course as i am =)

  • How do i create linked pages with multiple video clips on each of them?

    I took a bunch of small videos with my digital camera, and now want to make a dvd that has a main menu with 7 choices, and then each one of those will take you to pages with each clip as a motion button (6 to a page). So if i click on "Dublin" on the main menu, it takes me to Dublin #1 which has clips 1 - 6, i can then click on an arrow to go to a second page with clips 7 - 12, etc. I can return to the main menu and click on "Belfast" which takes me to the first page of 6 clips, then a second page with 6 more, etc.
    The problem I am having is linking two or more Chapter pages together. Thanks for your help.
    Eric

    Welcome to the forums, Eric.
    iDVD has a few limitations, but you can do much of what you want.
    Limitations: Only 6 selections per menu page. And the Forward/Backward selection buttons advance only one menu at a time.
    Basic solution: Use the folder button to create a link to a submenu; move to that submenu and drag your movies onto that menu page. Repeat for more submenus.
    Alternative approach: Use iMovie to join all the Dublin videos, with chapter markers to designate each segment. Import the movie with chapter markers into iDVD and they automatically create the Dublin submenus. And you can watch all the Dublin videos in a row, or use the menus to navigate to the desired video. After you watch the last segment, you'll automatically return to the main menu.
    John

  • How do I create an iView with multiple links to R/3 transactions

    Hello Portal developers,
    I'm looking for a solution for displaying multiple links on a single iView or Page.  The requirement is calling for several SAP Transactions and a link to an external web application from a single view.  Could or should this be done using KM Navigation iView, or creating separate iViews for each link and placing them in a page?
    Thank you for your recommendations.

    Hi Terry,
    Are the SAP Transactions fixed ?
    I mean have you fixed that only these many transactions have to be displayed ?
    If yes, better option would be to create separate iviews for each and assign these to the "Related Links" or "Dynamic Navigation" of a page.
    IF no, that means, you want the user shall enter the transaction code and that transaction should open up in iview, then ofcourse you cant go in for the above solution.
    Thanks,
    Samta

  • Srvrmgr syntax: how can I create Named Subsystem with both Name and Description values?

    In looking through bookshelf, there is no syntax discussed that allows you to include both the Name value and the Description value for a Named Subsystem/Profile Configuration.  In the screenshot, the circled values were created with the server manager command-line.
    In contrast, you can create a component definition with a Name (full name) and Description.
    For CompDef, this works:
    create component definition CompDefTest1_enu for component type AppObjMgr component group Fins run mode Interactive full name "Test Comp Def Test 1" description "Test 1 Object Manager CompDef"
    For Named Subsytem, this does NOT work:
    create named subsystem Test5 for subsystem EAITransportDataHandlingSubsys full name "Test 5" description 'Test 5 Description'
    Can anyone tell me if, for a Named Subsytem, there is a proper syntax to include both the Name and Description values in the command-line, or is the only way to manually create it in the UI?

    Hi,
    I have reviewed the help for create command in srvrmgr, it does not give the full name and description as parameters for subsystem creation. However, as you indicated these parameters are available for component definition creation:
    srvrmgr> help create
      create { component group | compgrp } <component group name>
           [ full name <descriptive name> ]
           [ { description | desc } <description of component group> ]
      create { component definition | compdef } <component definition name>
           for { component type | comptype } <component type name>
               { component group | compgrp } <component group name>
           run mode { batch | interactive | background }
           [ full name <descriptive name> ]
           [ { description | desc } <description of component definition> ]
           [ with [param <param_name>=<value>[, <param_name>=<value>...]]
                  [fixparam <fixed_param_name>=<fixed_value>[,...]]]
      create named subsystem <named_subsystem_name> for
           subsystem <subsystem_name> with <param_name>=<param_value> [, ..]
    Bookshelf also has an example of subsystem creation that does not include full name and description:
    http://docs.oracle.com/cd/E14004_01/books/StoreFwdMsg/StoreFwdMsg_InstallConfig14.html#wp1351472
    In this case I suggest you to create a ticket on My Oracle Support to confirm that srvrmgr does not support creating a new subsystem with full name and description parameters, and request an enhancement request for these parameters to be included in create statement for new subsystems when using srvrmgr.
    Hope it helps,
    WSiebel

  • Problem with File Input and Output

    I'm using a class named Output which takes 2 arrays as input and is simply supposed to output them to a file named myfile.txt. However, every time I call it it catches an exception and just prints out Error Writing to File. Here is the source:
    import java.io.*;
    public class Output
         public Output(int[][] orig, int[][] orig2)
              int[][] first = orig;
              int[][] second = orig2;
              try
                   FileOutputStream out = new FileOutputStream("myfile.txt");
                   PrintStream p = new PrintStream( out );
                   p.print("{");
                   for(int i = 0; i < 50; i++)
                        for(int j = 0; j < 30; j++)
                             p.print(" " + first[i][j]);
                   p.print("}");
                   p.println("\n\n\n");
                   p.print("{");
                   for(int i = 0; i < 50; i++)
                        for(int j = 0; j < 30; j++)
                             p.print(" " + second[i][j]);
                   p.print("}");
                   p.close();
              catch (Exception e)
                   System.err.println ("Error writing to file");
    }

    Equis.Scry wrote:
    So basically is my computer not letting this APPLET create a txt file? For security reasons, applets by default cannot access the local file system (on the client) and cannot open any network connections except back to the server that served them up. You can sign your applet, and set up permissions in the JRE that your browser runs to allow the signed applet to do things that applets normally can't. However, before starting down that path, I suggest you examine whether your applet really needs to access the local file system, and if it does, if it should really be an applet, or would be more appropriate as an application.

  • How do I create a program with multiple sessions?

    I need to allow multiple sessions with this program.
    I realize that it involves threading of some sort, but I'm pretty new to this area and am not sure how I should go about this.
    Here are the instructions:
    "�     Write an application that will create an online dictionary a data file will be supplied that contains a list of words and their meanings. The hash table will contain a key (the word in question) and a value (byte offset of the word meaning stored in a random access file). You will also provide methods for entering, searching and deleting words online. The program must allow for multiple sessions."
    I have most of this all done, and have a dictionaryBroker ready to write the add, delete and search methods.
    But what about the mutliple sessions?
    I'm thinking that my hashTable and RandomAccessFile classes are both going to have to be singleton.
    What I want is for multiple people to be able to run the program at the same time, but if one person adds or deletes a record, I want it to update instantly for everyone.
    But it also needs to run smoothly for everyone using it.
    Thanks for any help, I just need a little push in the right direction here to help get me going.

    Well here is the entire assignment:
    &#61607;     Write an interface for a hash table that satisfies the following criteria:
    The hash table will contain a key (String) and a value (Object)
    Allow for a specific load capacity, if the capacity is exceeded the table is rehashed. The rehash may be called independently
    Must allow for maintaining the hash table (adding modifying etc) the key will not be changed
    Must allow for retrieving information from the table
    Must allow addition using a Map object or one key, value pair at a time
    The addition using a Map and the rehash must be a two pass approach
    �     Implement the interface.
    �     Write a test routine to test all aspects of the interface. The test must calculate the efficiency of your hashing algorithm.
    �     Write an application that will create an online dictionary a data file will be supplied that contains a list of words and their meanings. The hash table will contain a key (the word in question) and a value (byte offset of the word meaning stored in a random access file). You will also provide methods for entering, searching and deleting words online. The program must allow for multiple sessions.
    Submission
    Submit your eclipse project or executable jar file through WebCT. An efficiency of 70% or better must be attained for the assignment to be graded.
    I'm in Canada, not the US.
    It says online dictionary, but I don't think we actually have to do that. I'm pretty sure I can just use a simple GUI to allow them access to the dictionary.
    So, I'm assuming that I just have to make sure that if multiple people are trying to access it at the same time it needs to update at the same time or something. The hashtable was the main part of the assignment so this part shouldn't be too large.

  • How do I populate a ScrollView with multiple TextView and ImageView?

    Hi there,
    I'm new to development and I'm trying to create an app which includes many views, each with a scrollview containing a combination of blocks of texts and images.
    I can do this awkwardly with Storyboard, but what's the simplest way to setup and populate these through code?
    Thanks,
    Darryl

    Thanks for your response.
    Since writing my first post, I have learned that I cannot
    simply return the 2 dimensional array I create in my CFC. I think I
    need to return an array of structures.
    So now the question is, how do a receive an array of
    structures and stick it into an arrayCollection?
    I get this error:
    TypeError: Error #1034: Type Coercion failed: cannot convert
    mx.collections::ArrayCollection@3ce1251 to Array.
    in this function:
    [Bindable]
    public var acPeriod:ArrayCollection;
    private function wsListResult(event:ResultEvent):void{
    acPeriod= new ArrayCollection(wsList.onePeriod.lastResult);
    }

  • How to share one iTunes library with multiple computers AND Apple TV? Help?

    It seems like my dilemma may not be easily solved. Hopefully it isn't as complicated as I think it will be. Here's the situation:
    My wife hates that, in order to see or do anything with the images she takes, I need to have iPhoto open on my computer (Mac Pro), and she then has to connect to it over sharing.
    By the same token, I don't like that she buys iTunes content on her MacBook, which is sometimes a duplicate of content I already have. Now that the App Store is out, that is going to start getting really expensive.
    So instead, I want us to be able to:
    1) Have ONE iTunes library on the network, and ONE iPhoto library. Both of these would be accessible to any computer on the network. When you launch iTunes, you would get all the media that is in that library.
    2) Both be able to access iTunes at the same time to listen to / watch content.
    3) Both be able to purchase iTunes content, and when it it purchased, it updates that single library. If I buy a song, the next time my wife fires up iTunes, that song is there for her to listen to.
    4) Have our two Apple TV units be able to play content from this library.
    So, I know that we need something on the network. I have a Drobo with DroboShare, so that is one option. I also have a spare Mac Pro laying around, along with a copy of OS X Leopard Server.
    I just don't know what route we should take with this. All I want is for us to share a library, to be able to both use that library, for us to be able to sync content from that library to our portable devices, and for our Apple TVs to also see that library.
    Possible?!

    I'm sort of in the same boat. We've got an iMac with separate User Accounts set up and are currently sharing the same iTunes and iPhoto libraries along with streaming them to our Apple TV.
    Right now I'm the only one with an iPod, however she'll be getting one in a couple of weeks.
    We also just picked up a MacBook yesterday and I'd like to be able to sync certain libraries like iTunes and iPhoto so that no content gets duplicated on either the iMac or MacBook and so that we both have access to the current libraries for each program on our iPods and AppleTV.
    I have an external hard drive that I back up the iMac on and I assume I could manually keep things current with that but there's got to be an easier way...that's why these are Macs right?
    Bill

  • CFP-DIO-550 open multiple input and output at the same time

    I am trying to read and write at different times with the cFP-DIO-550.  I cant figure out how to read all the inputs at the same time.
    In the Create Tag.vi, I cant figure what to wire to the Item Name input.  I have tried Input 0, and that works, but it is only one input, I need to read all 8.  I have also tried Input All, All, Input 0:8. input 0-8, input 0: Input 8, Input 0 - Input 8, and I always get an error.
    I cant find anything on it in the manual.
    Thanks,
    Kenny

    Normally I would select 'All' using a FP IO point function instead of create tag ( LV 7.0 and up ).   I have noticed that the 'All' is only available if the module is all inputs or all outputs.  It may be that since your module is an IO, 'All' is not available by default. 
    I think you need to create an item in MAX in the Data Neighborhood under the DIO-550 Module and configure it to use all the IO on the module.

Maybe you are looking for

  • Issues with Creative Cloud payment - Problemas al intentar pagar el abono de Creative Cloud

    La primera vez que adquirí el producto se realizó el pago, el segundo mes me llegó una notificación que no se había podido efectuar el pago, así que revise mi tarjeta de crédito y había cupo disponible, sin embargo la fecha automática de cobro ya pas

  • Error when importing object "MC11VA0ITM_TAB".

    Hi SDN, Error in ABAP application program. The current ABAP program "SAPLMCEX" had to be terminated because one of the statements could not be executed. This is probably due to an error in the ABAP program. When attempting to import data, the structu

  • No preview image available

    When I place various formats in an illustrator CS3 document, for most file types, no preview is avaialable, The same images and files preview in InDesign. As a work around we are using In design to visually search a collection of images through the p

  • Is solidworks compatible with my macbook pro 7 intelcore duo using a bootcamp??

    I have a macbook pro 7 intelcore duo and i would like to install and use solidworks on it for my university work. So far i know im required to bootcamp my macbook and install windows to install solidworks. Will my mabcook pro be able to operate solid

  • "Export To Premiere" Does Not Work

    Premiere sequence sent to Audition for editing does not export back to Premiere. It does create the new audio files in a seesion folder. I can import the files into my project, but that's not how it's supposed to work. It worked in the past. CS6