Labview and opc

Hi, currently im using labview to communicate with an OPC server over a network. So i wrote my program a few months ago now. And im still having issues with communication to the remote opc server. The last few weeks i thought id cracked it, but it seems to be losing comms again, not sure if its to do with dcom settings or network settings. It seems to be intermittent, not sure what it could be??
Stuart

Hi Stuart,
I have researched your issue and have found a number of documents which I think could be of use. I have linked these document below.
Good example to use, to communicate with a remote opc server?
Connecting LabVIEW to an OPC Server through a DataSocket Connection
DataSocket Tutorial
I hope one of these helps.
Best Regards,
Christian Hartshorne
Applications Engineer
National Instruments

Similar Messages

  • LabVIEW and OPC Server

    Hola
    Estoy trabajando con LabVIEW 7 Express, una licencia de LabVIEW OPC Server, y quiero comunicarme con los registros de un PLC de la serie Premium de Telemecanique.  El PLC con el que estoy trabajando habla Modbus TCP/IP, y no estoy seguro de si con el OPC Server del lado de LabVIEW es suficiente para comunicarse con el PLC Premium.  ¿Alguien ha tenido experiencias como esta? ¿Ha logrado comunicar LabVIEW con un PLC que hable Modbus TCP/IP?  ¿Tener el OPC es suficiente para garantizar la comunicacion?
    Gracias
    Alfredo

    Estimado Alfredo,
    National Instruments cuenta con un OPC para Modbus, si tu PLC se comunica por medio de Modbus, no habra ningun problema para establecer dicha comunicacion.
    Saludos
    Alvaro

  • Labview and Mitsubishi OPC: communication

    Hi,
    My problem is I have to communicate between a Mitsubishi FX1N and Labview using OPC.  I have Labview 8.0 is that enough to communicate or do I need the DSC module ? I want to do I so simple as posible, nothing fancy. Maybe use of global variables ?
    Dr. Mackay

    Hi
    DSC is not necessary to read OPC tags, but it does have a lot of neat features. You can use Datasockets to read OPC tags. A very simple example that demonstrates this is called NI Demo OPC Client and can be found in NI Example Finder. To find the URL of the OPC tags you want to read, you can use DataSocket Select URL.vi.
    Regards

  • Siemens SPS5 and LabVIEW over OPC

    Hello everyone,
    for a new project i have to down and upload some data between a PC running
    LabView and a Siemens SPS5 PLC controller.
    Im new to this kind of application so it would be nice to hear in which way
    i should try to do that.
    A friend told me i should take a look at OPC (Ole for Production Controll).
    Does anyone know where i can find some infos about it?
    I would be very interested in some example Vi's and which hardware i need
    for this application.
    Tom
    ROTEX GmbH
    Langwiesenstr.10
    74363 Gueglingen
    Germany
    Fax: 0049 (0)7135 103 200 - Tel: 0049 (0) 7135 103 287

    Consider posting your question in natinst.public.bridgeview.general by visiting http://zone.ni.com/dev_exchange/newsgroups.htm. The people who monitor that group will be able to respond to your post. Thanks for your cooperation.

  • LabView and Ethernet I/O modules (from Advantech)

    I'm a LV beginner and I need to communicate via Ethernet with DAQ modules (ADAM-6000 series from Advantech). What is the best and easy way to communicate using Ethernet ? LV has built in VI's to do this ? I've read and heard a lot about DataSockets and OPC servers, it's necessary to go this way? I've LV 4.1 and 5.1, Need I to get LV 6i or 6.1 ? Should I acquire some toolkit for LV ?
    I'd appreciate your help.
    Paolo Santos
    Automation Engineer.

    Paolo,
    I am not a expert on the ADAM-6000 series from Advantech. But here are some of the options I think you have. Advantech most probably has a driver(dlls) for the modules. Once you configure your modules through a configuration utility, you can use the LabVIEW 'Call Library Function' to make direct calls to that driver and be able to communicate with the ADAM-6000. I think if you are a LV beginner, this could take quite some effort to figure-out the driver calls.
    If the modules communicate via TCP/IP, FTP or UDP, You can use the LabVIEW Internet toolkit to communicate with it.
    A better option could be to set up a OPC Server for the ADAM-6000 and use the simple datasocket client examples to communicate with it. A easy solution could be to get a N
    I distributed I/O hardware- FieldPoint, system(http://sine.ni.com/apps/we/nioc.vp?cid=1206​〈=US). With the FieldPoint driver installed you can select from the huge library of FieldPoint LabVIEW shipping examples and be able to get your application up and running in a very short time.
    Regards,
    Pravin

  • Is it possible to connect labview with opc server without using NI dsc Module ?

    Hellow sir,
    I want to get data over labview using OPC server and i am not using any dsc module vi (Alams, print, GUI, security).I am using share variable to get data from OPC server to labview. Now i want to deploy that application to third party computer. (where there is no NI software is installed)
    i am using labview 8.6 and 2009.
    Many ? like....
    1) what is the procedure to install that application in third party computer.
    2) Do i need to use my dsc run time licence..?
    waiting for your valuable feed back.
    Thank you.
    CLAD
    Labiew programmer

    Hi, When you connect to NI OPC Server by creating New I/O Server > OPC Client. You will see all registered OPC Servers running on local machine or remote machine. I used KepServerEx from Kepware and LSIS OPC Server from LG with no problems. Just make sure that the OPC server is running.
    Hope it helps
    Waleed El-Badry MSc.,MCPD, ISTQB Certified Tester
    Assistant Lecturer
    Mechatronics Department
    Faculty of Engineering
    Misr University for Science & Technology
    Attachments:
    LG.png ‏57 KB

  • Profibus and OPC questions

    Hi,
    I need to communicate from Labview to a Siemens S7 PLC via Profibus and I have a few questions.
    1. Does anyone have any recommendation on using the Siemens Prifibus PCI card/OPC server or Applicom PCI card/OPC server or other make?
    2. What is the best way to communicate from Labview? To an OPC server by datasocket(I seem to see a lot of comments about Labview not being a very good OPC Client when using datasocket!), or to an OPC server by ActiveX automation, or by ActiveX controls?
    Any help is appreciated!!
    Sal

    Hi,
    1. I have had customers using Applicom cards and OPC Servers without much problem.. overall, they're pretty good.
    2. 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〈=US
    Hope this helps.
    Rgds,
    Khalid

  • LabVIEW and SCADA

    Dear all,
    I really wanted to know, Can we consider LabVIEW 7 application a SCADA application (with out any add-on module "e.g.DSC module").
    I'm talking about definetions now, Is LabVIEW for SCADA or only Data acquistion ?
    Iam seeing that LabVIEW provides most of the SCADA packages features:
    Visualization, Alarming (can be developed), Trending .. etc
    The only problems 9in my point of view) are:
    1- Communication: I mean handling communication with the different controllers (mainly PLCs), I know it can be done (MAX and OPC) but no easy as the other packages.
    2- handling data bases for storing/retreving alarms and so.
    Please remeber that I'm talking about the Basic package of LabVIEW (No add*-ons).
    I want to share this with you.
    Thanks
    Ayman Mohammad Metwally
    Automation Engineer
    Egypt - Cairo

    Actually Lookout is still alive and well, it probably was "BridgeVIEW" you remember which was basically LabVIEW with SCADA enhancements. If you are planning on trying to do real SCADA, the DSC has a lot of SCADA enhancements to LabVIEW, but it won't be as easy as building a SCADA system using a SCADA package, like Lookout or inTouch. One thing that I miss from Wonderware and Intellution's iFix are how easy it was to build cool, automated graphics. I've been using LabVIEW for 12 1/2 years, work mostly in it, love it, but boy I would like to be able to _easily_ make a valve control that changed depending on its state and looked cool, not to mention pipes that showed stuff flowing through them. Actually to be able to make scalable graphics, where after I put a graphic on a button I could scale it easily, like a native control, would be nice!
    Good Luck
    Putnam Monroe
    Putnam
    Certified LabVIEW Developer
    Senior Test Engineer
    Currently using LV 6.1-LabVIEW 2012, RT8.5
    LabVIEW Champion

  • LabView DSC + OPC Servers + Windows 2003 server

    I just want to suggest this guide from Matrikon to the ones that are going to deal with DSC labview modules, OPC servers and windows 2003 server (Win 2003 is not officially supported by NI).
    Appling this configurations I solved some problems I was having with my application.
    gianpiero

    Here are the updated links:
    pdf MatrikonOPC: DCOM for Windows 2000 and NT
    pdf MatrikonOPC: DCOM for Windows XP SP1 and 2003 (base)
    pdf MatrikonOPC: DCOM for Windows XP SP2 and 2003 SP1
    Misha

  • Connecting between labVIEW and PLC S7-1200 using EPICS

    Hello everyone,
    I'm trying to connect between LabVIEW and PLC S7-1200 using EPICS. I did it using OPC and it succeeded and the communication was done, so right now i'm trying to do it using EPICS. so Can anyone help me with that?
    Thanks in advance.
    Ahmed

    Hello,Ahmed:
    Now I'm trying to conect S7-1200 to Labview by OPC server 2012, I'm newer for both PLC S7-1200 and OPC server. by the help file of NI's OPC I tested many times, but lost totally.
    You mentioned that you have succeeded making the connection between them, could you please help me :
    1) How to set in Simense TIA software? I can set the PLC's IP address now, that's all;
    2) OPC server setting.
    if there is a video, that will be great.
    thanks a lot.
    Delphi77.

  • I am receiving the data through the rs232 in labview and i have to store the data in to the word file only if there is a change in the data and we have to scan the data continuasly how can i do that.

    i am receiving the data through the rs232 in labview and i have to store the data in to the word or text file only if there is a change in the data. I have to scan the data continuasly. how can i do that. I was able to store the data into the text or word file but could not be able to do it.  I am gettting the data from rs232 interms of 0 or 1.  and i have to print it only if thereis a change in data from 0 to 1. if i use if-loop , each as much time there is 0 or 1 is there that much time the data gets printed. i dont know how to do this program please help me if anybody knows the answer

    I have attatched the vi.  Here in this it receives the data from rs232 as string and converted into binery. and indicated in led also normally if the data 1 comes then the led's will be off.  suppose if 0 comes the corresponding data status is wrtten into the text file.  But here the problem is the same data will be printed many number of times.  so i have to make it like if there is a transition from 1 to o then only print it once.  how to do it.  I am doing this from few weeks please reply if you know the answer immediatly
    thanking you 
    Attachments:
    MOTORTESTJIG.vi ‏729 KB

  • Problem with Labview and an ARM Cortex

    Good morning,
    I am currently trying to use Labview with a board from ST Microelectronics (MCBSTM32) with an ARM Cortex Processor.
    I use the SDK and have followed the tutorials.
    But, when I try to launch the program (the simple loop as write in the tutorial n°2 : http://zone.ni.com/devzone/cda/tut/p/id/7029 ), Keil gives me an error via Labview:
    "Argument 'DARMSTM' not permitted for option 'device'."
    It seems that Keil does not allow an ARM Cortex from ST as the device.
    Moreover, after having this problem, I am unable to use a Keil project ,even a project which worked before, without Labview. I need to restart the computer.
    I also try to launch the Keil project generated by Labview, without using Labview, and it works. But as soon as I use Labview, I have the error.
    Did anyone already have this error or know how to solve it
    Thank you for your answer and sorry for my bad english.
    Regards,
    Raphaël VAISSIERE

    Hi Raphi,
    So let me make sure I understand,
    The project created in LabVIEW errors out with the message "Argument 'DARMSTM' not permitted for option 'device" 
    If you open the same project in Keil uVision, it runs fine
    Here are my questions:
    1. So how does the code run when run through Keil? does it deploy and run fine?
    2. Did you follow the porting procedure completely?
    Your target STM32F103RB  is techincally supported by Keil but you need to port the RTX kernel to it. This paragraph explains it:
    To determine if your target already supports the RTX Real-Time Kernel, browse to the \Keil\ARM\Startup directory, then browse to the folder that corresponds to the manufacturer of your ARM microcontroller. If there is an RTX_Conf*.c file for your target, then the RTX Real-Time Kernel has already been ported for your ARM device. If no such file exists, skip to chapter 4 for more information on the RTX Real-Time Kernel and a guide for porting RTX to your ARM microcontroller. 
    You also need to port the Real-Time agent to it.
    I just want to make sure that you have followed the guidelines. If you have and are still having problems, we will continue to explore this.
    Thanks,
    National Instruments
    LabVIEW Embedded Product Support Engineer

  • I am trying to use Labview and RP1210 compliant hardware to connect to a truck J1939 bus and receive messages.

    I am trying to use Labview and RP1210 compliant hardware to connect to a truck J1939 bus and receive messages. 
    Specifically I am attempting  to read data frames using the RP1210_READMESSAGE .   am able to configure the hardware and send a message to the J1939 bus. .    I think I have not configured something correctly.  I can use the RP1210_SENDMESSAGE and see the message I have sent on the bus using CANalyzer   When I use the RP1210_READMESSAGE   I get the timestamp from a message and the return from the function sends back the correct number of bytes (the number matches the number of bytes I sent out plus four bytes from the timestamp).  What I am having trouble with is actually receiving the data. I have had the same type of behavior from two different hardware (Vector CANcase XL and Nexiq USB Link), so I don't think the issue is vendor specific.
    Has anyone been able to make the RP1210_RECIEVEMESSAGE function work correctly?
    Thanks for any help

    Thanks
    I have already tried that.  The links are the NI RP1210 wraper. The problem I am having is using labview to interface with the RP1210 layer.  The RecieveMessage char*fpchAPIMessage this is the output which is a pointer to a cahracter array.  In this variable I can receive the timestamp of the message but not the message.  The retun showns the correct amount of bytes are aviaable (18 for a 8 byte message) but I can only get the 4 byte timestamp  I think I have to dereference this pointer to view the data.  I am not sure how to fix this. 

  • Tcp data b/w labview and c++

    Hi
     i am trying to establish TCP connection b/w LABVIEW and C++ program. Server is established in C++ while client is implemented in labview.Although connection is successfully establish b/w server and client, both are unable to correctly understand data send/receive among them. Forexample if i want to send an int type send_array from server, i use standard WINSOCK function "send" like that:
    send(AcceptSocket,(char*)send_array,129*4,0);
    but when client in labview receive this array, it shows unexpected values.As a client, I used "simple data client.vi"  with one modification i.e. as sent data size(129*4 bytes) was fixed, only one TCP read was used . 
    Same problem exists if i send data from client to server.
    Kindly help me
    Best Regards
    Solved!
    Go to Solution.

    It's probably an big/little edian problem. If you are using the Flatten/Unflatten from String functions, you can specify which to use.

  • Questions on Saving and mining data with Labview and DIAdem

    Hi,
    I am sampling two signals at 200k sampling rate. I am trying to save the data on harddisk and analyzing the data using DIAdem.
    If I save the data using mesurement file format .tdm and .lvm, the file size will be about 4 Gigabytes for only 10 mins' acquisition. It is very slow to process it.
    I used the software Clampex and pCLAMP(Axon Instruments) before. At the same 200k sampling rate and also acquiring two signals, these programs save the data as .atf format and the size is only 400 MB for 10 mins' acquisition.
    I wonder if there is also a good way to handle this situation using Labview and DIAdem, and how to do it?

    Hi, Jonathan:
    I tried the TDM binary file format. The file size is 800 MB per min acquisition and it will take a long time to just open these files. For my application, I have to take data for several hours. I am looking for a way to reduce the size of files.
    Is there any other type of file format that can reduce the size significantly and can be handled easily?

Maybe you are looking for

  • Doubt in File to idoc scenario

    Hi All, My scenario is to post the Customer Master Idoc  in R/3 from file. XI configuration has done and R/3 settings were made and i am able to see the idoc in R/3 but it is with error saying that "Account group in the IDoc is different". Kindly sug

  • How to get LiveCycle Designer forms to ignore default text in fields when validating

    Hiya, I'm testing out Designer ES4 to build a simple form that's submitted via email.  Everything is working except for my text boxes...  They are set up as required fields but because I've included default text with instructions, if you press submit

  • Previous Messages are highlighted with a line on the side

    I have inadvertently changed the way a message is viewed when opened. A line now appears on the side of each previous message. I must have set this feature by mistyping and hitting a key board short cut. However I cannot find a way to revert to a vie

  • Safari won't launch after update

    I just did a software update today. I updated iTunes, Safari, Quicktime, and Java. None looked to be "major" updates. Now I cannot launch Safari. A window will open and partially load -- then it just quits. I've restarted my computer twice. No luck.

  • How do i keep my photos from getting dark after the load on aperture?

    My photos look great as they load but the moment I click on them and they fully load they get completely dark? How do I keep this from happening? Please help me