How to place event callback components and "main-VI" components in the same Front Panel?

What I'm trying to accomplish:
Place a .NET component, which generates events, and other standard LabVIEW components in the same Front Panel. The standard LabVIEW components should be updated when events are being generated in the .NET component.
How I tried to solve it:
Problem:
The event callback code must reside in a separate event callback VI. In order to "pass the event up" to the main VI I tried to use a global variable. The interrupt does occur:
but I was hoping that the string indicator would be updated when the event occurred, but it wasn't.
Questions:
What's the best way to solve what I try to accomplish? If I want to solve the problem on the picture above, how would I do it (it may not be the best solution, but I'm still curious what's wrong)? Please feel free to be over-explicit when replying as I am novice LabVIEW programmer. Thanks in advance for any help.

There are two bundle functions for creating clusters. The function simply called Bundle operates almost exactly like the Build Array function I showed. The type of the output cluster depends on whatever you wire in as inputs. You don't have to supply a specific type parameter.
The function called Bundle by Name takes in a specific type of cluster in the top input and allows you to fill in the values of that specific type of cluster. To create the specific type of cluster you want, you need to create a cluster of string references. Here's how to do that:
Go to the Front panel and drop down an empty cluster shell.
Go to the Refnum palette and drop down a Generic Control Refnum. Now here's a cool trick to turn that generic refnum into a string-specific refnum (a so-called strictly-typed refnum). Grab a string from the controls palette and drag it into the Generic Control Refnum. Once you drop it, you'll see the refnum change its icon to display a string picture.
Make copies of this string refnum (as many as you need) and add it to the cluster shell.
Now, if you're making specific types of clusters to work with, now is the absolute best time to learn about typedefs if you haven't already. It will save you hours and hours (if not days) of development time in the future. Trust me!
Jarrod S.
National Instruments

Similar Messages

  • How can i use the same front panel graph in more than one events in an event structure?

    i want to display the signals from my sensorDAQ in a graph.but i have more than one event in the event structure to acquire the signal and display it in the graph.the first event is to acquire the threshold signals and its displayed in the graph as a feedback.after the first event is executed, i will call the second event,where the further signals are acuired and compared with the threshold signals from the event 1.my question is how can i use the same front panel control in more than two events in the event structure?please answer me i'm stuck.
    Solved!
    Go to Solution.

    Hi,
    I have attached here an example of doing the same using shift registers and local variables. Take a look. Shift register is always a better option than local variables.
    Regards,
    Nitzz
    (Give kudos to good answers, Mark it as a solution if your problem is Solved) 
    Attachments:
    Graph and shift registers.vi ‏12 KB
    graph and local variables.vi ‏12 KB

  • How can I listen to itunes and play a game at the same time on my ipad 4?

    How can I listen to itunes and play a game at the same time on my ipad 4? This means I need to run 2 apps at the same time itunes and my game.  The game has its own sound control so I can turn off its sound while i listen to itunes tracks.  But I don't know how to set it up so the ipad does both.

    Anytime you open an app that has a persistant sound stream - a movie, a podcast, some games - it will overide the music app's stream. nothiong you can do to change it.

  • How can you listen to music and play a game at the same time?

    How can you listen to music and play a game at the same time?
    I am playing music, by starting the Crash Baandicoot Nitro Kart 3D game it shuts off the music playing. Is there a way around this?
    It seems like this should be possible.
    Message was edited by: RuthlessVengeance
    Message was edited by: RuthlessVengeance

    Select the music play list you want to listen to and start it playing. Go back to the home screen and start the app you want to use, music will stop. Press the home button two time quickly and it will bring up a simple control for controling the music. This works for me with all of the apps I have purchased including games. Just a note you can pull up the same music control if the iPod is a sleep and locked by pressing the button three times quickly.
    Mike

  • How can i send multiple videos and photos, via mail, at the same time?

    you allowed to send only one video or 10(+) photos via mail.
    but can you send both at the same time? so 10(+) photos and a video (or more than one) in one mail?
    because if my mom has birthday pictures or something like that. She likes to be able to send it directly from her iphone to every person she knows in just one mail.
    anyone any tips or tricks?

    Those restrictions are generally part of the email provider, not just the phone. Attachments are restricted due to size, bandwith use, etc. Trying to send that much information in an email attachment is even restricted on a computer. Sharing via photo sites is generally a better option for large amounts of pictures and large video files.

  • How to add new data entry and display old data in the same screen in SM30?

    Hi, Experts:
    We need to use SM30 to maintain a table entry. When I click the button of "New Entries", the table screen becomes blank. I can only add new data but not be able to see the old data existing in the table.
    How can I have the new line available for me to add new data at the same time see the data currently existing in the table?
    Thanks,
    Jenny

    Hi, thanks for the reply!
    Just to follow up for what we did to disable the delete function for maintaining table records. We hided the Delete button by adding a "MODULE disable_delete" code in Screen Painter. So now only adding records to the table is allowed.
    Thanks,
    Jenny

  • How to encode multiple camera views and display them separately on the same page

    Does any one know if this is possible with just one
    encoder/streaming server or would you need multiple encoders to
    send separate views?

    Hello after a long time.
    I have 2 the same capture card. And I am trying to stream to 2 diffrent rtmp server. I start first one and no problem. But when I run second FME instance and select second stream card, first one turns to black and second one shows up. When I close second, first one again comes back.
    What shoul I do for streaming multiple streams form multiple stream cards?
    Best regards.

  • How to place content between header and tabs?????

    i have header part which has to be constant through out the portal but below that i have 3 links
    like I AM employee,employer,broker..
    which has to be shown only in home page above tabs..
    how can i achieve this..
    how to place content between header and tabs..:(kindly help..

    Hi Samiran
    Try these approaches and see if that works.
    1. In the Header Section, you header footer shell and add a Header Portlet. This Header Portlet associated JSP file will have all static content in the top section. In the bottom section, add these 3 links say to right hand corner. Show these links only based on some request property like isHome. Now for the main book having Home and other page associate a BackingFile. Within this backing file in the lifecycle methods like preRender or handlePostBack, get instance of BookManager and all the pages and see which page is Active. For that active page check its page definition label which will be always unique. IF the page def label is like home_page_def (this is page def label you give for home page), then set the key value in the request property like isHome=true. By only doubt is after Book backingfile is triggered, the header has to be reloaded, because only then it can pick up the request attributes.
    2. Create a brand new portlet like HomePageLinks portlet. Make its Title Property Not Visible, and other user interface properties like NoBorder, NoTheme etc. The associated JSP will have the 3 links you mentioned right aligned. You can use css styles to make it right etc. Now drop this portlet in the Header Shell area. You already have HeaderPortlet in the top, below that you will have this HomePageLinks portlet. Now associate a backing file for this Portlet to show, only if the Books current active page is Home page by comparing the def label etc as mentioned above.
    In both scenarios, only concern is when we click on different Pages, the entire portal has to be rendered right from the Top Header. Only then the backing file will set the key, and the HomePageLinks portlet can show or hide accordingly.
    Try firing an Event when the Home page is clicked. This listener for this Event can be the HomePageLinks Portlet. I guess Event mechanism should work irrespective of where the portlet is placed. In the event listner, see if you can show/hide this portlet.
    The only challenge is Header section needs to reloaded everytime you click on a Tab.
    Start putting some backing files and System.out.printlns to see if the Header section gets reloaded on click on any Tabs.
    These are just my thoughts over the top of my head. Other forum users can have better alternatives or a different version of above approaches.
    Thanks
    Ravi Jegga

  • Hello there - how can I share my iTunes library between two users on the same computer? I put the library in a shared folder between both and have selected this library on both as well, but when I update iTunes with music etc it only appears on one?

    Hello there - how can I share my iTunes library between two users on the same computer? I put the library in a shared folder between both and have selected this library on both as well, but when I update iTunes with music etc it only appears on one?

    Thank you Joe - I tried this but it's only showing a teensy amount of music - the stuff on the second users account as opposed to the giagntic library on the 'main' account. I actually went to a Genius Bar and they said that apple doesn't really want you to share music between accounts - parents don't want to hear their kids music etc. Which seemed strange, but it might be the case sadly   Thanks anyway!

  • How could I play and transmit a stream from the same camera

    How could I play and transmit a stream from the same camera?

    Hi,
    As I said, you can use the method getVisualComponent() of the Processor to get a preview Window.
    You create a Processor, prepare it to generate an appropriate output DataSource for what you want to do (saving, TXing, etc).
    Then, for this Processor you extract an AWT Component where the stream will be previewed using the method getVisualComponent().
    Some of the player examples in the JMF guide use this technique. I'm still not write my own player. I'm using an adaptation of the RTPPlayer, but I'm planning to use the above technique to create a Player where I can apply some effects to the stream and then save it if the user wants to.
    If someone already did that, please, correct me if my procedure isn't right!
    By the way, thanks for your help! I was using the DataSource returned from Manager.createCloneableDataSource only to create the clones. I was feeding my main Processor with the original DataSource. That was the problem!
    RGB

  • I want to have different headers in Pages. I want to be able to set them and not have them be the same. For example I want ii then iii and so on...How do I do that?

    I want to have different headers in Pages. I want to be able to set them and not have them be the same. For example I want ii then iii and so on...How do I do that?

    Hi BelleDesign,
    "Headers" is short for "Continuing Headers."
    Use a Header when you want recurring information on a series of pages in your document.
    If ii, iii, etc. are page numbers, you can place them in Headers using Insert > Page Number, then formatting the page number to lower case Roman numerals.
    For more on Headers and Footers, see Chapter 3, Working with document parts in the Pages '09 User Guide, available for download via the Help menu in Pages. Discussion of Headers and Footers starts on Page 54.
    Regards,
    Barry

  • My email (sign-in) and password for iTunes is different than my email (sign-in) and password for iCloud. How do I change my sign in and password so they are the same for both iTunes and iCloud without losing my iTunes content?

    My email (sign-in) and password for iTunes is different  than my email (sign-in) and password for iCloud. How do I change my sign in and password so they are the same for both iTunes and iCloud without losing my iTunes content?

    Hey Lakedrive442,
    It sounds like you have changed your Apple ID which you use with iTunes.  If so there are several places you may need to update it as outlined in this article.
    Apple ID: What to do after you change your Apple ID - Apple Support
    Of course some might not apply, but many might.
    Thank you for thinking of Apple Support Communities for your support needs.
    Nubz

  • How to create a cube/ods/infoobjects etc..and also  why to create the same

    Dear Friends
    how to create a cube/ods/infoobjects etc..and also  why to create the same objects.
    thanks & Regards
    Ramana

    Hi Friend,
    Creating Infoobjects
    1. Go to RSA1 -> Modelling tab.
    2. Click on Infobjects.
    3. Create a new Infoarea.
    4. Now create Infoobject Catalog for Characterstics and Key Figures.
    5. Now create Char Infoobject under Char Catalog and Key figure Infoobject under Key Figure catalog.
    Creating Cubes:
    1. Right click the info area and choose create info cube.
    2. Select the type of cube you wish to create and comnfirm your selections.
    3. The next screen is where you actually define the cube.
    4. Now you will notice the difference.
    5. Place your cursur on key fig and right click and chose infio object direct input; chose your key fig for the cube.
    6. Similarly for the dimension; right click the dimension and chose inbfo object direct input, chose your chars and out them in dimension.
    7. Activate the cube.
    Creating a ODS is also the same.(in step 1 choose create ODS)
    Creating Multicube/Multiprovider
    1. Right click the info area - chose create multi provider.
    2. select the cubes , DSOs, info objects that you need for the multi provider.
    3. On the right side of the screen, you will see all the objects that you selected and open the key fig and dimension and drag the ones you need to define the multi provider.
    4. Identify the chars and key figs.
    5. Acvitate the mullti provider.
    Why we create them ?
    Infobjects : They are fields in R/3. As we require fields in R/3 tables we require infoobjects in BI.
    ODS : This actually is like a table in R/3.
    Cube : This contain the Key figures.(e.g Sales quantity, Amount etc)
    Hope it helps.
    Regards
    Hemant Khemani

  • Ive lost my apple ID for my ipod, now i have an iphone and i want to use the same apple ID for both can someone tell me how to do this

    I have lost my apple ID for my ipod, now ive got a new iphone and i want to use the same ID for both, can anyone one tell me how to do this? ( i no my ID for the iphone)

    Just use the same ID.
    These may alos help:
    How to use multiple iPods, iPads, or iPhones with one computer
    What is the best way to manage multiple...: Apple Support Communities

  • I deleted the pre-installed iPhoto app from my iPhone 5s by mistake. And I can't find the same app in the App Store. How do I recover it?

    I deleted the pre-installed iPhoto app from my iPhone 5s by mistake. And I can't find the same app in the App Store. How do I recover it?

    iPhoto for iOS is no longer being offered by Apple and has been replaced by the Photos app. It is not compatible with iOS 8.  This Apple document may help:  Migrating from iPhoto for iOS to Photos on iOS 8 - Apple Support

Maybe you are looking for

  • Creation and Change Date for Tcode and Function Groups

    Hello All, I need to display the Creation and Change Dates for Custom Tcodes and Function Groups in a Report. Can anyone please let me know the logic of retrieving it. regards, Mahesh

  • IPad 1 upgraded to iOS5 suddenly not playing music correctly

    Hey all - I'm noticing (all of a sudden) that my iPad's Music app is not playing my music correctly. An example: in shuffle mode, if I manually advance to the next track, the app tells me it's playing, but the counter is not advancing, and there is n

  • Urgent! SRM210 manual needed

    Hi, Can somebody help me with manual SRM21O? It's really urgent.I will reward full points. My e-mail:[email protected] Thanks, Mandar

  • TreeSet performance on adding things in order

    I have a TreeSet that I am adding to. The items I'm adding are presorted. I seem to remember that adding items to a TreeSomething in order is a bad idea. As it leads to just one branch. Is this true? so should I rethink my addition to the Tree? or ca

  • Extraction Checker RSA3

    Hi, I created a generic DataSource  using a function module and i'm testing it using RSA3. I'm trying to extract the records by specifying a range of values for a field in the DataSource , but RSA3 extracts all the records without considering the spe