Communicat​​e between C# window applicatio​​n and Labview.

Hello all!
Now what I shall do is to use both labview application and C# window application for my project. Basically it's that the state change in labview triggers an event in C#. As a short description, my labview application receives UDP message from an external device and shows them on the front panel. I'd like that when the received message reaches for example 10, the C# application is triggered to implement a switch.
I got the idea to use .Net object in labview, a constructor node to get a reference to my C# app, and in my C# app expposing public methods telling the app something happened in the LV app. I think that would help but I don't know how.
Anybody could give me an example of that. The importance for me is to know how should I set the constructor node in labview, and what is to add in C#, like "using labview" in the header.
Thanks in advance!
Chao

Once you constructed the .NET parent object (the one which provides the access to your "reaction code"), you can use invoke and/or property nodes to call into the .NET assembly.
So if your object exposes a method which should be called once you hit 10 samples, you simply count the number of samples available in LV and once 10 are available, you use an invoke node to call the appropriate method.
There are a bunch of examples provided with LV, for instance one called "Task Monitor Using .NET Objects".
Norbert
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.

Similar Messages

  • Are there any example vi's for implementing a circular buffer between a plc, opc server, and labview dsc??

    I am storing a block of data inside plc registers and reading this group into labview as a continuous set of datapoints. I am counting the number of scans in the plc and sometimes the number of points collected inside labview doesn't match.

    To explain a a little bit about tag updating:
    The LabVIEW DSC tag engine is not just updated on any change of the value within the plc. There are, in fact, several "deadbands" that must be crossed before those tags are updated:
    1) The OPC Server has a deadband - where the plc register value has to change a certain % before it is recorded.
    2) In the LabVIEW DSC moduel, there is an I/O Group Deadband that determines when the tag engine is actually updated.
    Both of these deadbands must be satisfied before a new "value" is recorded in the LabVIEW DSC tag engine.
    Therefore, I would check your OPC Server's deadband (configurable in the OPC Server configuration utility) and also the I/O Group deadband for those tags (configurable in the tag configuration
    editor).
    If this doesn't resolve the issue, please let me know. Thanks.

  • Maximize Code Reuse Between Windows Phone 8 and Windows 8(via Microsoft Dev Center)

    Win8 App Developers: Picked this up on the Microsoft Dev site..great tips for reusing code between your Windows 8 app and Windows Phone.
    Summary: In this section, we will help you make the right choices to maximize code reuse in your apps. As a developer, you want to streamline your development and make maintaining your apps as efficient as possible. By working smarter, you give yourself more time to develop more apps and fill the marketplace with your creations. When building an app for Windows Phone 8 and Windows 8, you should look for opportunities to share code, designs, and assets as much as possible so that you maximize the return on your investment. This section describes the sharing techniques that you can use when building you app for both platforms.Read full article
    LenovoDev.com Manager

    Very useful! Thank you!
    Jonas
    Microsoft MVP: Windows Consumer Expert
    Yoga Tablet 2 10 || ThinkPad X1 Carbon (20A7007MPH) || ThinkPad Helix (3698-6EU) || IdeaCentre B540
    Twitter: @jonashendrickx

  • What is the difference between Microsoft Speech API Dsktop and Windows Runtime versions?

    There is a text-to-speach funtionality on Windows Desktop and on Windows RT and Windows Phone. I want to know what is the difference of TTS APIs (SAPIs)?

    Hi TIKSN,
    Based on your description, it seems that you want to know the difference of the TTS APIs among the Windows Desktop and Windows Store/Phone app. If so in Windows Desktop it uses this
    System.Speech.Synthesis APIs to implement the text-to-speech function. But in Windows Phone Runtime and Windows Store 8.1, it uses the
    Windows.Media.SpeechSynthesis APIs to implement the text-to-speech function.
    For the difference between the "Windows.Media.SpeechSynthesis" and "System.Speech.Synthesis", please try to check the reply which posted by @Rob Caplan - MSFT in here:
    http://stackoverflow.com/questions/25710852/what-are-the-different-between-windows-media-speechsynthesis-and-system-speec
    If I have misunderstood you, please feel free to let me know.
    Best Regards,
    Amy Peng
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How do I get my Photo Stream to sync with my Windows 7 PC and my iPhone 5 after it has stopped working?

    My photo stream has always synced just fine between my Windows 7 PC and my iPhone 5. However, just a month or so ago it stopped automatically syncing. I turned it off and on in the iPhone settings in two places, deleted all the photos manually, signed out of iCloud on my PC and even uninstalled iCloud on my PC. Now it appears to be partially working. If I add or delete photos from my Photo Stream on my iPhone, the changes are reflected on my PC. However, if I delete photos or add photos to my Photo Stream folder on my PC, the changes are not reflected on my iPhone. I can delete all the pictures out from my Photo Stream on my PC but they are all still there in my Photo Stream on my iPhone. How do I get the two devices to sync properly again?

    Hello snoopy016,
    Thank you for using Apple Support Communities.
    For more information, take a look at:
    iCloud: My Photo Stream troubleshooting
    http://support.apple.com/kb/ts3989
    I added some photos into My Photo Stream on my Windows PC, but they don't appear in My Photo Stream on any of my devices.
    Have a nice day,
    Mario

  • Unity 3D and LabView

    Has anyone here successfully managed to connect a LabView VI to an action initiated from within a Unity 3D developed virtual world (or game)?
    I have been successful in transferring a signal from an Open Sim (think Second Life) 3D world to a LabView VI which in turns activates a robot motor.
    But no luck replicating this in Unity.
    Just trying my luck here :-)
    Michael
    Dr. Michael Vallance
    Future University, Japan.
    Homepage http://www.mvallance.net
    International Virtual Environments Research Group (iVERG) http://www.iverg.com

    I don't know of anyone who has successfully done so in Unity 3D.
    But have you read the following post ?
    http://mypersonalsoft.blogspot.jp/2010/12/unity-3d-integration-with-any.html
    It sounds like it is all about building correct interfaces between the third party software and LabVIEW.
    To do that, you can look at the following link even though you may already have cheked it out.
    Connecting LabVIEW to 3rd Party Software Packages
    http://www.ni.com/white-paper/10060/en
    Furea Kiuchi
    Applications Engineer
    National Instruments Japan

  • Compatibility issue between your power management system and Windows 8.1

    I have purchased a new Lenovo Ideapad S410 and have this problem.
           Compatibility issue between your power management system and Windows
           It also gives a message "Your PC ran into a problem and needs to restart. We're just collecting some error info, and then we'll restart for you. (100% complete)
           If you'd like to know more, you can search online later for this error:
    VIDEO DXGKRNL FATAL ERROR
    Please help! My laptop is only 5 days old.

    What model do you have? Can you post your MTM or model name?
    Sometimes these messages are a false alarm.

  • What is the difference between Windows Workflow Activities And SharePoint Workflow Activities in Workflows?

    Hi All,
    What is the difference between Windows Workflow Activities And SharePoint Workflow Activities in Workflows?
    Thanks in Advance!

    Hi,
    Both are developed with .NET framework, per my knowledge, the biggest difference would be the environment they applied to: one for Windows platform, one for SharePoint platform:
    http://msdn.microsoft.com/en-us/library/vstudio/ms733615(v=vs.90).aspx
    http://msdn.microsoft.com/en-us/library/office/ms446847(v=office.14).aspx
    Best regards,
    Patrick
    Patrick Liang
    TechNet Community Support

  • Is there a difference between microsoft office for mac and for windows?

    As a college student it's important that everything is equal for windows and mac for using instructions. So i am wondering if theres a difference between microsoft office for mac and for windows?

    There are differences between the two version of Office. If you need to be exactly like the Windows version, you will have to run Windows on your Mac.
    Allan

  • Incompatibility between JDK 1.4 and Windows XP Fax and Picture Viewer

    I have noticed an incompatibility between JPG files that are output from Windows XP Fax and Picture Viewer and read in by JDK 1.4 (or 1.4.1). In particular, when an image is transfered from a digital camera to a Windows XP machine, then rotated and saved in the Windows XP Fax and Picture Viewer, the resulting image file appears with corrupted colors when read and saved by the ImageIO class in JDK 1.4.
    Here is my code:
         import java.awt.image.BufferedImage;
         import javax.imageio.ImageIO;
         BufferedImage buffImg = ImageIO.read (new File ("in.jpg"));
         ImageIO.write (buffImg, "jpg", new File ("out.jpg"));
    I have also output the file with graphics format PNG and seen similar apparent corruption of colors.
    This is an image that was loaded onto Windows XP from a digital camera then rotated 90 degrees and saved with the Windows XP Fax and Picture Viewer:
    http://www.adigitalsolution.net/pics/verticalOrig.jpg
    Here is the same image read and written by JDK 1.4 ImageIO.read() and ImageIO.write():
    http://www.adigitalsolution.net/pics/verticalJavaOut.jpg
    Note that the colors appear corrupted in the above image.
    This is an image copied directly from a Sony Cybershot DSC - P71 digital camera:
    http://www.adigitalsolution.net/pics/horizontalOrig.jpg
    Here is the same image read and written by JDK 1.4 ImageIO.read() and ImageIO.write():
    http://www.adigitalsolution.net/pics/horizontalJavaOut.jpg
    It appears fine (brilliant tropical colors).
    Note that both images contain the "EXIF" header, which is the JPEG-like format used by many digital cameras. Some may say that the JDK 1.4 spec does not support EXIF, but the image not touched by Windows XP was read successfully. And other image editing programs read in both successfully, such as PaintshopPro and the Mozilla 1.0 web browser. But there is a specific incompatibility with JDK 1.4.
    I have reproduced this problem on Windows NT 4 and Red Hat Linux 7.3 using an image file that was saved on Windows XP.
    Here is a warning from Nikon about the behavior of Windows XP Fax and Picture Viewer:
    http://www.dpreview.com/news/0112/01121402nikonxpwarnings.asp
    Does anybody know a workaround?

    This is scary and explains why some of my Exif headers are trashed.
    I would guess the problem has something to do with XP not writing the file back out 100% true to the JPEG spec.
    Really annoying that they do this. They think they can just hack up and change standards that are not their own. Take their FTP client in Windows XP. Talk about a broken client.
    My suggestion is to dis-associate jpegs with XP's image and fax viewer. Instead associate them with Mozilla.

  • Drag and Drop between two windows

    I would like to implement Drag and Drop between two windows for example in Windows I can take URL Address form browser and drag it and drop it in to any control that excepts String like TextField.
    I would like to have the same behavior with my Java Text Controls.
    What can I do to achieve this?

    There is no configuration for it. It should work.
    Can you try it in a different user account. If it works in a different account, then it is likely something in your current user account that is messed up. If it doesn't work in another user account, then it is likely something with Mail, itself. 
    You could try downloading and installing the 10.6.7 combo update. That may repair what is wrong.

  • What exactly is the diff between main window and variable window

    what exactly is the diff between main window and variable window in SAP script?

    hi,
    MAIN WINDOW :- In a main window you display text and data, which can cover several pages (flow text). As soon as a main window is completely filled with text and data, the system continues displaying the text in the main window of the next page. It automatically triggers the page break.
    You can define only have one window in a form as main window.
    The main window must have the same width on each page, but can differ in height.
    A page without main window must not call itself as next page, since this would trigger an endless loop. In such a case, the system automatically terminates after three pages.
    VARIABLE WINDOW :- The contents of variable windows is processed again for each page, on which the window appears. The system outputs only as much text as fits into the window. Text exceeding the window size is truncated; the system does not trigger a page break. Unlike constant windows, the page windows declared as variable windows may have different sizes on different form pages.
    As far as the processing of the window contents is concerned, the system currently treats constant and variable windows alike. The only difference is that constant windows have the same size throughout the form.
    hope this will be useful.
    If useful then reward points.
    with regards,
    Syed

  • I have problem with data transfer between Windows Server 2012RT and Windows7 (no more than 14kbps) while between Windows Sever 2012RT and Windows8.1 speed is ok.

    I have problem with data transfer between Windows Server 2012RT and Windows7 (no more than 14kbps) while between Windows Sever 2012RT and Windows8.1 speed is ok.

    Hi,
    Regarding the issue here, please take a look at the below links to see if they could help:
    Slow data transfer speed in Windows 7 or in Windows Server 2008 R2
    And a blog here:
    Windows Server 2012 slow network/SMB/CIFS problem
    Hope this may help
    Best regards
    Michael
    If you have any feedback on our support, please click
    here.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • How to I increase the space between the top of tabs and the frame of the entire window? It was fine until Firefox updated

    Hello,
    How to I increase the space between the top of tabs and the frame of the entire window? It was fine until Firefox updated and since it updated it reduced the space. Now the space is too thin which makes it more difficult to move the open window frame around when I need to grab something from Desktop. Image attached.

    In the image, see how thin the space is right above the tab? It was much wider before Firefox update so if any know how to make it wider again, please let me know. Thank you
    ''troyable7 [[#question-1058550|said]]''
    <blockquote>
    Hello,
    How to I increase the space between the top of tabs and the frame of the entire window? It was fine until Firefox updated and since it updated it reduced the space. Now the space is too thin which makes it more difficult to move the open window frame around when I need to grab something from Desktop. Image attached.
    </blockquote>
    In the image, see how thin the space is right above the tab? It was much wider before Firefox update so if any know how to make it wider again, please let me know. Thank you

  • HT1369 While syncing between my window laptop and my iPad, the following occurs "iTune has stopped working"

    While syncing between my window laptop and my iPad, the following occurs "iTune has stopped working" message came on just yesterday, 19 May 2012.
    Wonder what went wrong?
    can anyone offer a tip or two?
    Thanks

    Try this, it worked for me when nothing else did:
    Perform a SoundLink® speaker reset, following these steps:
    On the speaker, press and hold Mute for 10 seconds, the LEDs will flash briefly
    Press Power to turn the SoundLink® speaker back on
    Reconnect the device, if necessary.

Maybe you are looking for

  • Reverse path direction in Illustrator CS5

    I have started to use Illustrator CS5 for outline drawing this year. I purchased the license time ago, but I always preferred to use FreeHand for outline drawing (I design lettering and typefaces). Now that FreeHand is unfortunately become a bit too

  • K1 Question about Camera Quality since 3.2.1

    Can anyone confirm if the image quality of video (as opposed to stills) shot using the front-facing camera has diminished under 3.2.1? I'm noticing a much more over-exposed ('solarized') effect on video this past week. For example, I have noticed a c

  • How do we create a promotion which is not out of the box?

    hello, how do we create a promotion which is not out of the box?

  • Macintosh Drivers CD

    When I moved someone stole a box that had my mac installer cd's in it and now I can't install windows because I need the drivers cd that was stolen. So is there a copy of the drivers CD on the hard drive that I can burn to a cd? Does Apple have it av

  • Bridge SRP with IOS device for routing.

    Hi, Can someone please detail how-to use the SRP (essentially bridged) for WAN connectivity and an IOS device. I plan to use an 881 ISR for routing, NAT, IPSec, GRE and PAT. I note Ethernet port 4 on the SRP -U model is a selectable LAN/WAN port? But