Writing to a profibus network using labview datasocket

Hello
Can anybody help me?
I'm trying to control a moeller inverter using labview datasocket on a profibus network. the problems i am having is how to structure my Vi to write the message. so far i have used loops to write the first message to notify the inverter of status change then to write the new frequency setpoint. but i am having awful trouble doing this consistently without the inverter sending a fault message and denying me further control. i have also used an update button to pass the next value on but this requires furious mouse clicking to eventually get the message to the inverter. i have tried modifying some of the labview examples for CAN write and some others but often with less success. i'm sure this must be a standard thing with any Profibus writing to any other equipment. Can anyone give me any pointers or example code to help.

Hi,
I'm assuming that since you're going over datasocket, then you're linking to a profibus opc server.
For OPC in LabVIEW, LabVIEW Datalogging & Supervisory Control (LVDSC) module is the way to go. LVDSC is an add-on module which you can install on top of your LabVIEW. It provides native (non-datasocket) OPC support. In addition, it also provides features typically required by a datlogging and supervisory control application, like historical logging and trending, alarming, security, etc. Check it out:
http://sine.ni.com/apps/we/nioc.vp?cid=10418&lang=​US
With either datasocket, or LVDSC, you're looking at a polling setup, and the actual communications is done with the Profibus OPC server. In this way, if you're writing to quickly, or the poll rate isn't correct at the server side, then that could lead to problems.
I would recommend contacting both the OPC provider, and the device manufacturer to see if there's any quirks in the system you need to be aware of, and create your code appropriately.
Another option might be to take on already developed drivers and hardware. There is a company in Germany offering VISA drivers for Profibus communications (www.comsoft.de), however, they're linked to specific profibus interface cards. This is not a personal or a National Instruments recommendation however, but something another user has posted on a similar discussion forum so we can't be held responsible if you decided to go down that route.
http://forums.ni.com/ni/board/message?board.id=120​&message.id=224&requireLogin=False
Thanks
Sacha Emery
National Instruments (UK)
Message Edited by SachaE on 01-31-2006 01:35 PM
// it takes almost no time to rate an answer

Similar Messages

  • How to configure and test Profibus network using NI part number 780161-01 Master/Slave interface

    I have purchased this board from NI. I have been in touch with Comsoft who it appears is the developer of this board. I have used the configurator II to try and build the network. The GSD file for my slave board is entered. I also can see the GSD file for the master. There appears to be no obvious way to test the bus from the configuration tool. I have tried the Express VI provided by Comsoft. Nothing happens. I have a purchased profibus cable with terminations installed. I know the cable works as another division has another Profibus master that does work using this cable How do I configure correctly for sure? How do I test?
    Thanks
    Rick
    Solved!
    Go to Solution.

    Hi Rick, 
    First, ensure that you have the correct drivers installed on your system: 
    Make sure NI-VISA 4.2 or later is installed on your system.
    First install 1.3x.x COMSOFT driver
    Second install a DF PROFI II Slave and Master board in your PC-System.  
    Reboot your computer System.  
    Install the NI-PROFIBUS driver, instructions can be found here. 
    However, it sounds to me like you may have an issue with your bus configuration or with the GSD file. First, did you obtain the GSD file from the manufacturer or from profibus.com? 
    Also, common issues with the configuration include specifying an improper baud rate (supported baud rates can be found here), or an incorrect PROFIBUS address. Were you able to successfully save the bus configuration and generate the configuration database? Were you able to load the configuration database into the master device successfully as well?  
    If you are unable to resolve this issue, can you provide me with some more information about your system setup and error? What PXI chassis are you using, version of LabVIEW, operating system? What devices are you testing on the bus? 
    Julianne K
    Systems Engineer, Embedded Systems
    Certified LabVIEW Architect, Certified LabVIEW Embedded Systems Developer
    National Instruments

  • Need help writing host program using LabView.

    Need help writing host program using LabView.
    Hello,
    I'm designing a HID device, and I want to write a host program using National Instrument's LabView. NI doesn't have any software support for USB, so I'm trying to write a few C dll files and link them to Call Library Functions. NI has some documentation on how to do this, but it's not exactly easy reading.
    I've written a few C console programs (running Win 2K) using the PC host software example for a HID device from John Hyde's book "USB by design", and they run ok. From Hyde's example program, I've written a few functions that use a few API functions each. This makes the main program more streamlined. The functions are; GetHIDPath, OpenHID, GetHIDInfo, Writ
    eHID, ReadHIC, and CloseHID. As I mentioned, my main program runs well with these functions.
    My strategy is to make dll files from these functions and load them into LabView Call Library Functions. However, I'm having a number of subtle problems in trying to do this. The big problem I'm having now are build errors when I try to build to a dll.
    I'm writing this post for a few reasons. First, I'm wondering if there are any LabView programmers who have already written USB HID host programs, and if they could give me some advice. Or, I would be grateful if a LabView or Visual C programmer could help me work out the programming problems that I'm having with my current program. If I get this LabView program working I would be happy to share it. I'm also wondering if there might already be any USB IHD LabView that I could download.
    Any help would be appreciated.
    Regards, George
    George Dorian
    Sutter Instruments
    51 Digital DR.
    Novato, CA 94949
    USA
    [email protected]
    m
    (415) 883-0128
    FAX (415) 883-0572

    George may not answer you.  He hasn't been online here for almost eight years.
    Jim
    You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice

  • Controling wheelchair by speech command using Neuron Network in labview

    Hi all,
    I'm doing project about "controling wheelchair  by speech command using neuron network in labview". I found some informations about controling whelchair combine with function microsoft speech recognition in window or something like that but this was not my point. So, I have some question about that:
    1) How do I store the command "Left-Right-Back-Go-Stop" in labview. After that, analyzing to find the differences of characteristic of these command.
    2) Based on these characteristic above, using neuron network to find exactly command.
    Are there anyone do like this before? I need all help from you.
    Thank you so much.

    Greetings;
    First, it is most excellent that you have gotten to where you can compare the words being said to the sample.
    If I understand correctly, you are interested in continuously acquiring sound, saving it and then comparing it with the sample? That is not as straightforward as it sounds simply because it would be difficult to realize when there is sound in the first place and when that sound is relevant. 
    I would probably start by figuring out whether there is or not sound by comparing the microphone input to a certain threshold, saving if there is sound, and then halting the recording when the sound stops. It would be then that you would compare with your samples via the algorithm that you have made.
    In order to check for volume, I came across the following example:
    http://zone.ni.com/devzone/cda/epd/p/id/2150
    It was mentioned in the following discussion:
    http://forums.ni.com/t5/LabVIEW/Microphone-Input-Detection/td-p/487367
    Cordially;
    Simon P.
    National Instruments
    Applications Engineer

  • How to use LABVIEW to collect wireless network camera (with video server) video.

    How to use LABVIEW to collect wireless network camera (with video server) video.I would like to use LABVIEW for a wireless network camera (IP Camera comes with the video server module)the client program.Will the ability to achieve?If feasible, how to do, there are examples, thank you.

    I believe NI Vision is what you are looking for. 

  • I'm trying to read some XML data from temperature logger over my network. I'm using LabView version 2009 sp1. I'm using the URL Get Document Vi. It works fine when using Internet sites like google or foxnews etc...

    I'm trying to read some XML data from temperature logger over my network.  I'm using LabView version 2009 sp1.  I'm using the URL Get Document Vi.  It works fine when using Internet sites like google or foxnews etc...
    When I use it with my temperature logger most of the time I get an Error 66...but some times it does work and actually retrieves the document. 
    I can use the same address "http://172.22.21.68/XMLfeed.rb" (Internet Explorer or Google Chrome) in my browser and get a response every time.  When accessing from my browser the server in the temperature logger does take around 6 seconds to respond, but it does respond every time. 
    Is the URL Get Document Vi exceeding a timeout?  If so, where can I set it to wait longer?
    Attachments:
    Error 66.jpg ‏183 KB

    It looks like the TCP Buffered Read has a 2.5 sec timeout, I believe that is where I had trouble as well.  Try creating your own URL Get HTTP Doc vi in which you call URL Get Document in normal mode, with an appropriate number of characters to fetch (enough characters so that you capture all the important data in the XML file).
    Attachments:
    ex1.PNG ‏33 KB

  • Launching an application in a networked host PC using labview 8.0

    HI all,
            I was wondering if it was possible to launch an application in a networked, host PC using Labview 8.0???? I d appreciate it if any one could reply to this question.
    Thanks.

    You could use VI server to launch an application on another PC. Have a look at the following and go through examples in the Example Finder:
    How Do I Use Remote VI Server Over the Network?
    vi server launch application
    Adnan Zafar
    Certified LabVIEW Architect
    Coleman Technologies

  • How can read and process data uploded from a datalogger on a network with labview

    hello evryone.
    i have a agilent datalogger 34972a data acquire temperature reading and makes them availlable on a network. i would like to acess this data on a pc running labview, analyse and prsent them. my problem is that i am not quite sure how to tell labview acquire this specific data.
    any help would really help me getting started.
    thanks already.
    Yann

    Are you
    Running the Agilent stand alone (or using Benchlink) and writing data to a file on the network ?
    Do you want to use LabView to control the networked data logger and aquire data? 
    If you are doing #1 then you can not use LabView because the Agilent (and Benchlink) strores data in a proparitary format.
    You have to use Benchlink to export the data to a CSV file before any other program besides Benchlink can read it.
    If you want to do #2 then you simply access the Agilent through VISA just like if it were connected using USB, Serial, or GPIB. 

  • Is there anyway to make a PC look like a PLC on a Profibus network?

    We currently have a PC based data acquisition system. A customer has asked us to integrate the PC into their PLC (Profibus) network and make it appear as though it (the PC) is a slave on the profibus.
    I have found some interfaces that convert profibus to ethernet but haven't found anything, short of the NI Applicon boards (and others), that allow me to go the other way. As I only want to be a relatively stupid slave on the profibus, I was wondering if there isn't a more economical solution.
    Any comments, suggestions, directions, etc. would be helpful as I'm starting from scratch and am not sure where to go with this...
    Kind Regards,
    Eric

    Hi, Del Conte
    I've looked at: http://www.sea.siemens.com/machine/products/cnc/prod_810d.html#1523 and have seen that this CNC consist of Numerical processor, power units and has integrated PLC S7. And there is possibility to connect this PLC to PC through Profibus. I didn't remeber if inside of Softnet exist OPC Server. You can check it in Simatic NET Configuration Console. Siemens doesn't provide any drivers for LV to their CP5611 card. Comunnication idea relay on using OPC Server. OPC Server establish and continue data exchange between PLC and PC. Labview has OPC Client features by means of DataSocked or DSC module to get/put the data. If you give me your PLC configuration (series numbers of all PLC modules on the rack from left to right ,e.g. - 6ES7315-2AG10-0AB0) I can prepare to you connection configuration PLC - PC. Moreover you have to have STEP7 Programming Software and Simatic NET Software to download PLC configuration into PLC.
    Regards. Rumcajs

  • HELP!!! Using LabView to display/control Mitsubishi FX series PLCs

    Hello,
    I am a LabView novice and have some questions around using LabView to control and display information from several laboratory instrumentation with a Mitsubishi FX series PLC. The communication protocol for the PLC is Profibus. What LabView modules/products do I need? Will I be using the OPC server and client to communicate to the PLC? Will I be using the device drivers? Is the device drivers the same as the OPC server. Will I need a profibus network card in the PC for Labview to communicate to the PLCs. Once again, I am a novice so please be patience if I ask more questions to understand your response.

    Hi,
    The following thread seems to address a similar query:
    http://forums.ni.com/ni/board/message?board.id=170&message.id=27248&requireLogin=False
    To answer some of your other questions:
    1. You'll be communicating with the Mitsubishi hardware using an OPC server.
    2. This isn't the same as the device drivers, though it could be included with the device drivers you got from Mitsubishi, you would have to check that with them.
    3. I don't know if you need a profibus network card in your machine, again, you'd have to check that with Mitsubishi
    NI do provide OPC software but I'm not sure if your device is supported. Check if it's listed in the following supported device list. If not you should be able to get an OPC server from Mitsubishi. According to the thread linked above they have one that's compatible with LabVIEW.
    The software NI provides that can communicate with OPC servers is called the Data Logging and Supervisory Control Module. What LabVIEW software do you currently have?
    I would advise that you contact Mitsubishi to make sure you have all the necessary hardware first. Also, ask them about the OPC server software. Then you can work on controlling the PLCs with LabVIEW.
    I hope this clarifies things but if not, post some more questions.
    Regards,
    Sarah
    Applications Engineer | National Instruments | UK & Ireland

  • Labview Datasocket momentarily locks up

    Labview Datasocket Ver 4.1(36) for LV 7 momentarily freezes when another socket connects. Simple example publish a dynamic tag to DS Server then subscribe to that tag from another network PC. I've tried this on multiple machines and the results are similar. The DS Server packets stop incrementing and the Server/Diagnostic window becomes unresponsive for 5-10 seconds.
    Any help would be appreciated..

    So far I've tried serving from 3 different machines 1 of them has just been reformatted. I verified what I saw yesterday using the DS Reader/Writer examples and found the same thing. I setup the DS Server on machine 1 along with the writer and everything works good. But as soon as I launch the Reader the server hangs and the Reader times out, to get around this I set the reader to never time out and after 8-15 sec the server continues and the the reader can see the data. I wanted to rule out the network so I connected 2 PC's with a crossover cable assigning them 10.1.1.1 and 10.1.1.2 and saw the same reaction.
    Both PC's are logged in as the same user.

  • How do i open and control other programs using labview?

    I'm presently trying to use labview to try to open and operate another program,but having much difficulty.The external program i'm using is called the Foundation program.
    This Foundation program will use VHDL programming to create a virtual chip and then synthesising it.This program will then simulate the output of this VHDL program to verify that it is working as desired.Then the last stage is to download the whole VHDL program into a FPGA chip using a xilinx cable.
    All this need to be done using a labview program - to open the Foundation program and then extract the saved file and then to execute the download command to cause the VHDL program to be downloaded onto the FPGA chip.How do i go
    about doing all this?What is the first step i must do.Also all this have to be done thru networking..looks like its too difficult..I really need help.
    grays

    I haven't done VHDL so pardon my ignorance.
    LabVIEW can call external DLL via "Call Library Function" or C programs via "Code Interface Node", both located in "Advanced" function.
    If your program is a DOS program, use "System Exec.vi" found in "Communication" function. If you need to format your DOS command prior to sending it, use the "Format Into String" function in "String" function palette.
    Lastly, if you're trying to extract data, assuming it is text, use "File I/O" functions. If the data is binary, use "File I/O -> Binary File VIs".
    Hope that answers most of your questions.
    Shan Pin Koh

  • Process Failure when communicating over MODBUS using LabVIEW 2011 and DSC

    I'm currently trying to read from a PLC's holding registers using MODBUS/TCP. I've confirmed that the PLC is updating the values and responding to MODBUS communication correctly using a third party program called Modbus Poll. However, when I try to poll the PLC using LabVIEW's shared variable engine, I am unable to read any values from the same addresses that I'm viewing with Modbus Poll.
    My setup simply consists of a PC connected directly to the PLC over Ethernet, with no router in between. I am using LabVIEW 2011 SP1 with the DSC module.
    I opened the NI Distributed Systems Manager to view the status of all shared variables in the Modbus library that I created and I've noticed that the CommFail bit is permanently set to "true". All other variables with a "read" access mode report "Process Failure". I've tried restarting the process as well as stopping and starting the local variable engine with no success. I've also restarted my computer several times to see if any services were failing, but this does not seem to have fixed the problem.
    I finally resorted to monitoring communications over the network card that I have the PLC plugged into via Ethernet using Wireshark and I've found that while Modbus Poll is communicating with the PLC, many MODBUS and TCP packets are sent and received. However, when solely using LabVIEW or the NI DSM to communicate with the PLC, there does not appear to be any communication over the network card.
    Something that may be worth noting is that I was able to communicate with the PLC and read values from it with the DSM on just one occasion, when I first figured out which addresses I should be reading from. It all stopped working shortly thereafter. Prior to this, "CommFail" was not usually set to "true" with my current configuration. Thinking that it was my firewall, I have since turned my firewall off, but this seems to have had no effect on the problem either.
    Any help on this matter would be appreciated.
    Solved!
    Go to Solution.

    Just a thought but I think the  register addresses used by LabVIEW are one off of the actual register #.  I was using a CRIO as a modbus IO Server and had to shift the register addresses by 1 to get things to work correctly (can;t recall if it was +1 or -1).  This is documented somewhere on ni.com but can;t seem to find it now.  But here is another  link that may help:
    http://zone.ni.com/reference/en-XX/help/371618E-01/lvmve/dsc_modbus_using/
    Dan

  • Problems with communication across a network using shared variables

    I have two programs(projects) running on two different computers connected with a LAN. I am using LabVIEW 8.0, and the DSC-module. The program on one of the computers have measurements that I want to collect and show on the program running on the other computer on the network. I choose the indicator where I want to show the data, select ''Properties'', ''Data binding'', ''Shared Variable Engine (NI-PSP)'', ''Network Items'' and then browse for a Network...but the problem is that in my ''Network Neighborhood'' There is only one computer...and that is the one I am one...not the computer on my Network that I want to communicate with....
    Have anyone any suggestions on how to solve this?
    Kind regards Mari

    Mari,
    Check this link regarding trouble shooting network-published shared variables:
    http://digital.ni.com/public.nsf/websearch/6E37AC5435E44F9F862570D2005FEF25?OpenDocument
    This might be a firewall issue, so I would check that first.
    Frode

  • How do I grab data from a url?query using LabView 8.0?

    If I copy the following url in my web browser, it will give me the quote of BBD-A.TO symbol from yahoo. The data is comma separated (csv).
    http://finance.yahoo.com/d/quotes.csv?s=BBD-A.TO&d​=t&f=sl1d1t1c1ohgvj1pp2wern
    I would like to know how to grab that information using LabView. I tried using datasocket VIs but I was unsuccessful, it seems that as soon as I put the query part of the url, I am not able to read (timeout occur).
    I think there might be another way to do it using .NET "httprequest" and "httpresponse" classes but again I was not successful. 
    I am really new to this, thanks for your help.

    Hi Ben,
          Try adding "[text]" to the end of the URL that you're supplying to the "Datasocket Open (Read)".  In your case: http://finance.yahoo.com/d/quotes.csv?s=BBD-A.TO&d​=t&f=sl1d1t1c1ohgvj1pp2wern[text]
    Also, Jeremy L posted a GetHTMLSourceString.vi.
    Cheers.
    Message Edited by tbd on 01-07-2007 12:08 AM
    "Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)

Maybe you are looking for