Controlling bechoff IPC using a local labview application

Hi,
I am using a Beckhoff CX1000 IPC to interface between an AB PLC(via device net) and a device(via rs232. The IPC is running windows CE.net and currently the software is developed usind twincat. I had developed a test program using labview and ideally would like to run my app on the IPC. The IPC has flash card storage. I know beckhoff have made available a active x control however i know nothing of developing this on an IPC. Any ideas would be great

Thinking off the top of my head, if it were me, I'd start with the master-slave design pattern.
In the master loop, put your vi for reading the level.
In the slave loop, put very simple logic that looks at the value coming from the notifier and takes one of three actions each time a notification is received:
If the level is greater than the setpoint (+some "empirically determined" hysteresis value, say 1-2%) open the valve to let water out of the middle bucket.
If the level is equal to the setpoint (+- the same hysteresis value) make sure both valves are closed.
If the level is less than the setpoint (-the same hysteresis value) open the valve to let water into the middle bucket.
Repeat until you're done.
You will probibly want to figure out a better way to stop things than what is shown in the design pattern template - using an error to stop works, but in the long run limits your options.
Oh yes, when shutting down, there is one thing that you will need to be sure that you do - to prevent wet feet. But I'll leave that for you to figure out as well.
Mike...
PS: This is homework right?
Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion
"... after all, He's not a tame lion..."
Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

Similar Messages

  • Is there an easy way to know if a vi within a LLB not being use by a Labview Application

    To All,
    I have developed a Labview application over a year that contains a number of LLBs.  There are significant number of VIs within those LLB files that were written but have not been called  by the application.  I am trying to optimize all LLB files to exclude those unused VIs.  Because there are many of them, the task to find out which Vi is being used and which one is not become very tedious.  First question: Is there a way to automate the process?  Second question: Does a compiled Labview application include all used and unused Vis from the LLBs in the .exe file?  I am very appreciate any inputs from this community.
    A Labview User  

    Ben wrote:
    In pre-LV 8 you could do a "Save with options..." and choose development distribution, single prompt preserve hiarchy and LV will pick-up all of the used VI's and plomp them down in a new location leaving all of the used behind as well as fixing up a of the linkages to point at the new location.
    In LV 8 and beyond you can create a Source Distribution in the project and acoomplish the same thing.
    In LabVIEW 8+, you can get something similar to the first option by selecting "save for previous" and then pick the existing version (yes, it's there!).
    LabVIEW Champion . Do more with less code and in less time .

  • Datalogging and Supervisory Control : how to share data among LabVIEW applications on the same network?

    I'm new to DSC. Is there an example program or article about how to share data (live data and data saved after running a program) among LabVIEW (using DSC) that is very basic? I would like to share live data and test reult data (eg. excel) among computers on the same network (may be LAN). Does sharing data over a network by using DSC makes whole system (all computers) down when one computer is locked up?

    Hi,
    The easiest way to network DSC data is using "network tags". The way you do it is by simply configuring the server PC as you normally would do for a local application.
    Then from a remote compute, which we can call a client computer you can go to Tag Configuration Editor and option "File >> Import Network Tags.."
    In the window that opens up you can hit the browse buttom and navigate to your server computer, select the .scf file you want to have and hit the buttom import.
    Save the "client .scf" file locally and now you have in the client the same configuration you have in the server and your data is networked, from there on is just a matter of manipulating the data.
    I hope it helps
    Andre Oliveira

  • Using a LabVIEW application as default program for opening files

    Google has returned nothing useful on this.  I want to use a built LabVIEW application to open data files from the Windows desktop. It is easy to edit the Windows registry to set the application as default program - but I'm not sure how to set the event in LabVIEW to open the file.  Any suggested reading?
    Solved!
    Go to Solution.

    I have done this before...I have a small LabVIEW .exe which looks at the version of a VI and selects the appropriate version of LabVIEW to open it with if available. It also adds explorer context menu items for allowing you pick a specific version of LabVIEW to open the file with.
    This is a rough idea of the registry keys for adding a program to handle specific file types and to add items to the shell menu in the installer:
    Add your own 'LabVIEWOpenWithVersion' key and then add the key name to the OpenWithProgids for the file extensions you want to be able to open with your application. The command part looks like this:
    Look at the Windows/MSDN help for what the different keys mean and how they are used, I think you can also set a key to make one of your handlers (e.g. Open, openWithLV) the default for the file type.
    For getting the file that was opened 'with' your application, use the App.Args property, ignoring the first item (which is always LabVIEW) in the array.
    Certified LabVIEW Architect, Certified TestStand Developer
    NI Days (and A&DF): 2010, 2011, 2013, 2014
    NI Week: 2012, 2014
    Knowledgeable in all things Giant Tetris and WebSockets

  • DataSocket Server will not start when the Launch DS Server if Local URL.VI is bundled into a LabVIEW application.

    I want to run a LabVIEW application on several machines remotely that do not have LabVIEW installed (licensing issues). Hence I have built a LabVIEW executable with the RunTime Engine to install on all of these remote machines.
    The VI has a bi-directional link, using Datasockets, to a machine with DAQ and Image acquisition functions. It primarily receives data items, but also the capability to change data items so it needs to run the "Launch DS Server if Local URL.VI" in order to publish data to the DataSocket server.
    When I run the pre-built VI on a machine that has LabVIEW Developers Edition installed, everything works fine - ie.
    the DataSocket server starts on the remote machine. However when I build the *.exe application and run it on a machine with and without LabVIEW Developers Edition installed the VI successfully subscribes to the DAQ and Image Acquisiton machine, but it does not start its own connection to the Data Socket server, and hence does not publish the data that the DAQ machine needs to suscribe to. IT seems that the Launch DS Server if Local URL.VI is bypassed? I have fiddled around with the Build settings but to no avail.
    In short, how do I get the DataSocket Server to run in a LabVIEW executable? Is it indeed possible? Any advice would be welcomed.
    When distributing a Labview Application (*.exe) with Data Socket Server Publish functionality, the DataSocket server does not start and hence no data can be sent by the Remote PC to the Server. The VI successfully retrieves data from the DS Server. I have used the "Launch DS Server if Local URL.vi" in the ditributed application but for some r
    eason this VI is not executed when I run the executable. How can you force the DataSocket Server to run with executable LabVIEW applications?

    Ryan,
    How to add Datasocket Server Control.vi?
    Source Files only show Project Files.
    So, I added Datasocket Server Control.vi file to the project first.
    Then I added it to Always Included < Source Files < Application Properties (Build Executable).
    Last, I built the Executable, but it didn't work.
    Can you help me.
    Thank you.
    Pedro Raposo

  • Would like to monitor and control a labview application with a hand held device.

    Would like to monitor and control a labview application with a hand held device.
    Would like to use a palm or ipac on a local area network or communicate directly with the PC running windows.

    LabVIEW doesn't run on a hand held device. But, check out these documents:
    Is it Possible to Use Remote Front Panels to Control a LabVIEW VI Remotely Using my PDA?
    "What OS is recommended for LabVIEW to run on a PDA?"

  • PID control in a windows CE Labview application

    Hi there,
    I want to build an application that will control the temperature in some ovens, using PID control. The application will be running in a controller (or a touch panel computer) with windows CE OS. I have Labview 8.6, PID control toolkit 8.6 and Touch panel module 8.6. The problem is that the PID vi's don't seem to work in touch panel module. 
    Is there any way to implement PID control in a windows CE Labview application?  
    Thanks in advance.
    Solved!
    Go to Solution.

    I think with a timed loop you can run reasonable good timing down to 1 mSecond. I think 1 mSecond is the lower limit for non realtime systems like Windows/windows CE. And if you have the PID toolkit this will supply you with the functions you need. You do not need an extra CE PID toolkit. This because  the touch panel module run under your standard Labview environment. But I do not know if all the functions in the PID tool like fuzzy logic are compatible with CE. Have you also considered Windows Embedded as OS for your module. With windows Embedded you can run standard Labview built exe files
    Both Windows Embedded, and XP Embedded can be trailed
    http://www.microsoft.com/windowsembedded/en-us/products/westandard/default.mspx
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)

  • Passing strings to a LAbVIEW application from Visual-C++ using ActiveX

    Hello all,
    I have built a LabVIEW application with ActiveX server enabled. I can
    start the application, and can read and set simple control values like
    numerics.
    But now I want to pass (SetControlValue) strings and read (GetControlValue) strings from controls.
    After searching a whole day for examples or HowTos I found nothing. Can
    anyone give me tip where I can find something about that?
    Examples are also appreciated.
    Best regards
    Heinrich Eidloth

    The problem you are running into is that a BSTR is not a normal string (%s in the printf), but a wide character string (i.e., two bytes per character) string with the size stored in it. If the string contains ASCII characters, such as Hello World, then the one of the bytes per character is 0 (for example, 'H' would be 0x48 0x0).
    When printf sees this, it thinks that it is a normal, null terminated string of "H". That is what you are seeing. You might try the %S (capital S) since that tells it the string is a wide character string.
    Also note that BSTR's are part of the COM (Automation) system and so are don't freed with a delete or free() statement. Instead you need to release the memory with a SysFreeString() call.
    If you aren't very familiar with C/C++, then you've taken on an advanced topic on top of a complicated language. If you can, you might want to try using either VB6 or .NET (C# or VB.NET). Those languages handle all of this for you automatically and you don't have to worry about freeing the memory.
    If not, the book I started with to learn COM programming was this one (http://www.amazon.com/gp/product/1572313498/104-3574382-6511132?v=glance&n=283155&n=507846&s=books&v...).
    Brian Tyler
    http://detritus.blogs.com/lycangeek

  • Building an application that does not use any local program files or libraries

    I need to build an application that will not use any local libraries or LabView program files(even if LabView is installed on the PC). I also am curious if anyone knows if there is a way to debug such an application(in it's compiled state).
    Any help on these topics would be greatly appreciated.
    -Nate
    Solved!
    Go to Solution.

    Hello,
    I am unclear on what you are trying to accomplish here. As the previous poster mentioned, if you enable debugging when building your application, you can remotely connect and probe the block diagram of the running executable. Executables use the run-time engine but could also access drivers or other run-times if using a specialized toolkit/module. This all depends on your application.
    -Zach
    Certified LabVIEW Developer

  • Control CS-200 Konica Minolta chromameter using USB and labview

    Hi,
    Does any body have any ideas about controling a Konica Minolta CS-200 chromameter using Labview. The Chromameter has an USB interface to the computer that is controlled by its own software. I dont think there is a command language available for this or any such thing. But is there a brute force way of reading measurements from CS-200.
    Thank you, Jignesh

    I developed a LabVIEW application a few years ago that use the Minolta
    CA210 color analyzers.  I used the ActiveX controls in LabVIEW to
    interface to the unit via USB (RS232 as well).  The unit came with
    software that you had to install on the target computer (it put the
    DLLs used to control the unit in the windows system folder and added
    registry entries).  There was a SDK manual that showed all of the
    methods and properties in the DLLs; once I figured out how to make
    calls via ActiveX, I was able to control the unit.
    Hopefully the CS-200 can be controlled similarly.  I've attached a subVI used to initialize a CA210; hope this helps!
    Daniel
    Attachments:
    CA210 ActiveX Initialize.zip ‏22 KB

  • How can I control external devices using a touch screen with a standalone LabVIEW app

    For my senior design project my group and I created a hybrid extended range vehicle with 90 Li+ Batteries thats charged by a 15 kW generator and/or that is also being charged by a 5 kW fuel cell. Currently, our system is capable of measuring voltages off of the batteries and displaying them on a laptop via LabVIEW. To process this data, we are using a cRIO FPGA. What we would like to do now is have a touch screen for the driver to choose what power source charges the batteries as well as monitor a pressure reading coming from the fuel cell tank. 
    What sort of small touch screens allow for LabVIEW to be uploaded on and used for controls?
    Does a cRIO have the capability to power such a screen and handle the data transfer from the fuel sensor and switching relays (for switching on and off powersources)? 
    Do I need an additional license for creating standalone applications and how would i go about creating a standalone app?
    sorry for so many question. Any reply helps. Thanks!
    Solved!
    Go to Solution.

    That sounds like a pretty interesting project.  If you are interested, National Instruments hosts a Student Design Competition where you can win cash or a trip to Austin for NIWeek.
    steve215 wrote:
    What sort of small touch screens allow for LabVIEW to be uploaded on and used for controls? 
    NI does sell Touch Panel computers that can be used to control LabVIEW applications.  You can find more information here: HMIs and Industrial Touch Panels and here: LabVIEW Real-Time and Touch Panel Deployment and Replication Resources. Our 6-inch touch panel computers run Windows CE, so programming on them is a little different than programming on a full Windows OS.  You may find the Getting Started with the LabVIEW Touch Panel Module useful.
    You can use third party devices with the LabVIEW Touch Panel Module, although you will need a deployment license for it.  More information can be found in the getting started guide.
    If you were able to send the cRIO information over a network (which from your description sounds unlikely), you may be able to use a smartphone to control your application.  More information can be found on our Community Smartphone Group.
    steve215 wrote:
    Does a cRIO have the capability to power such a screen and handle the data transfer from the fuel sensor and switching relays (for switching on and off powersources)? 
    If you were using the 6-inch touch panels, they require 18 to 32 VDC (the fuse becomes an open circuit if input level exceeds 33 VDC).  The data transfer from the switching relays can be monitored and changed with the touch panel.
    steve215 wrote:
    Do I need an additional license for creating standalone applications and how would i go about creating a standalone app? 
    If you went the touch panel route, you would need to purchase the LabVIEW Touch Panel Module, and a touch panel.  The NI touch panels come with a touch panel deployment license.  Step-by-step guides for creating the standalone app can be found in the Getting Started with the LabVIEW Touch Panel Module guide. 
    Regards,
    Elizabeth K. 
    National Instruments | Applications Engineer | www.ni.com/support 

  • How can I build a LabView application that uses the 2012 runtime, on a development system with LabView 2013 or 2014 installed?

    I need to build a LabView application .exe to run with the 2012 Runtime, for legacy support. I currently have LabView 2013 installed on my development system, and have 2014 available. How can I build an application that uses the 2012 runtime on this development system? Do I have to downgrade to 2012? Thank you.

    We have existing customers that have installed our application that was originally built with 2012 (provided by a contractor that is no longer available).  Due to IT regulations, it is far easier to update these customers by simply replacing the .exe file, than creating an install that their IT department must run.
    If I have to downgrade to LabView 2012, where can I get the installation for this?

  • Using labview applications on mobile phones

    Hello,
    I am interested in using LabVIEW applications on Mobile Phones. Kindly suggest how it could be used and which type of mobile phones are suitable it.
    Thanks

    Hi Intelligent,
    National Instruments has a Mobile Module for developing applications specifically for mobile devices.  Check out this article for supported devices: LabVIEW Mobile Module Software Requirements and Supported Devices.
    In addition, if you device runs Windows XP Embedded, you should be able to install the LabVIEW Runtime Engine and then run an executable built in LabVIEW.
    Have a great day,
    Chris V
    Applications Engineer
    National Instruments

  • Now I am using Windows Xp Labview program now i want control the Sun Solaris OS Board.Is it Possible in Windows XP Labview?

    Now I am using Windows Xp Labview program now i want control the Sun Solaris OS Board.Is it Possible in Windows XP Labview?

    You better should post your question in the LabVIEW forum - this one here is dedicated to LabWindows/CVI...

  • Sip communicater - bridge - the server application is using only local ip..

    Hi all,
    I want to use the open source jvoicebridge sip communicater for my application development. but Iam testing it first if its working or not. My problem is that the bridge i.e. the server application is only using the local ip address like 192.168.1.2 but not the external ip like 122.161.153.97. Becoz of this the softphone running on client is not able to detect the server so not able to connect.
    I want the server application i.e. the bridge to use the external ip address, so please guide me how to change the settings for that......................please help me .................

    This sounds like an application specific problem. I suggest you contact jvoicebridge support groups [https://jvoicebridge.dev.java.net/contribute.html]

Maybe you are looking for