Documentation on How to Develop an OPC Client Using LabWindows/CVI?

What documentation is there on how to develop an OPC client application using LabWindows/CVI?  What tutorials, if any, are there?  What reference manuals, if any are there?
I am completely new to LabWindows/CVI.  I will be starting soon with the tutorial, "Getting Started with LabWindows/CVI".  However, our application needs to communicate with an RSLinx OPC Server.  Any documentaiton on how to learn to do this would be very much appreciated.

http://www.ni.com/white-paper/4626/en/  Just did a quick google and this came up, Labwindows CVI and Labview are quite different but I usually look at Labview examples then try take the general idea from the example and apply it in CVI, hope this helps

Similar Messages

  • How to write to MS Word using LabWindows/CVI

    HI all
    is there any toolkit available to write to MS Word in LabWindows/CVI. like the report generation toolkit in Labview is there any option in CVI.
    regards
    Regards
    Solved!
    Go to Solution.

    Hi,
    there is an instrument driver (toolslib\activex\word\wordreport.fp) and several examples are shipped with CVI, i.e. word2000demo.cws

  • How to develop a web browser using API javatv?

    How to develop a web browser using API javatv?
    I'm tryin' to build a web browser using the API javaTv and
    I want to know if that is possible and if somebody already made this.
    This web browser will run a page developed in jsp.
    Thanks.

    You don't need JavaTV to write a web browser.
    Whichever Java platform you're using with JavaTV should provide enough.

  • How to access the result list in teststand after execution using labwindows​/cvi

    I am developing a user interface in labwindows/cvi that runs multiple teststand sequence files and would like to combine their reports (generated in teststand) into a single file at the end of a UUT. What is the best way to do this? At the moment, I'm trying to access the result list local variable after the execution has ended using API calls from labwindows/cvi and an end-of-execution callback event but those run-time variables do not exist anymore. How do I get a hold of the result list array at the end of an execution? I would like to grab this variable and pass it along from sequence to sequence using labwindows/cvi and not teststand itself. Is this possible? Any help would be great.
    Thanks in advance,
    Luis

    Hey Luis,
    Check out the response to this thread at the NI TestStand board here!

  • How to get the OPC Client (VC++ example program) to work? Having DataSocket problems...

    I'm trying to get our custom software (written in C++ by someone else) to talk with a NI FieldPoint device. The device works fine, and can communicate perfectly with the FieldPoint Explorer.
    Our software uses the ComponentWorks DataSocket ActiveX control (cwds.ocx) to talk with an OPC Server which in turn communicates with the FieldPoint device. (I think this is what happens, but my detective work is far from complete). The call to Create the datasocket results in an error:
    Can't connect to URL step 4 (0x800c000d)
    I think this error comes from our code and I believe that the URL is not the problem.
    This led me to investigate whether the DataSocket is working at all.
    I downloaded the sample application called OPC Client, compiled it into a Release version executable ran it on my client machine.
    I believe the Browse button is supposed to bring up a list of OPC servers, but instead i get the error message:
    OPC Client, Member not found.
    I have installed and registered every possibly related .dll and .ocx file I could find, but believe that I am still missing something. If anyone could help me get this example program working, I think it would go a long way towards solving my overall problem.
    Thanks,
    Eric
    Process Instruments, Inc.

    Another clue: In reading the KB article called "Redistributing a ComponentWorks Application Built with DataSocket" (Document ID: DIRECT-45GPQQ) I came across this line:
    "If you want to use OPC browsing, include BVOPCClient.dll."
    This seemed like the thing to do, but I couldn't find it on my client or development machine. However I did find it on an old development machine that was used to develop the original software that I am working on, and happens to be the only machine on which the OPC Client example program works. (I can't test my code on this machine because the instrument isn't connected to it.)
    I copied the file BVOPCClient.dll into the C:\WINDOWS\SYSTEM directory on my client machine and then tried to register it with regsvr32.exe. I go
    t the following error message:
    c:\windows\system\BVOPCClient.dll was loaded, but the DllRegisterServer entry point was not found. DllRegisterServer may not be exported, or a corrupt version of c:\windows\system\BVOPCClient.dll may be in memory. Consider using PView to detect and remove it.
    I then found a newer version of BVOPCClient.dll on your site and downloaded that with the same result.
    I then reinstalled FieldPoint Explorer 3.0 with all options checked AND ComponentWorks 2.01 with all options checked to see if the .dll would show up and be registered that way. No dice.
    Do you think this .dll may be the key to getting my OPC Server communicating? And if so, what is my problem with registration? I am a newbie when it comes to regsvr32.
    Thanks,
    Eric

  • How can I use LabWindows/CVI do Roulette Wheel ?

    This is LabVIEW's example.
    I want use cvi to like it. (push  start button & picture will be whirl)
    How do I create an image and Rotate it ?

    The LV program does not rotates the image: it recalculates and redraws it instead. You can observe that numbers are not rotated but are always drawn horizontally.
    You could replicate this behaviour using a canvas control and the appropriate functions to draw text and arcs and paint them. You can look at canvas.cws and piedemo.cws examples. They are already installed on your machine in samples directory: use the example finder (Helo >> Find examples menu function) to locate it.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • How to discard or release mutex in labwindow CVI.

    Hi,
    How to  release mutex  in labwindow CVI.
    I have one existing DLL . This DLL  using method 'CreateMutex(NULL, TRUE, "USBDriverRunning");' . 
    We need  to create another dll , this DLL be  release Mutex   'USBDriverRunning'.  
    Thanks
    Mukesh Kumar

    CreateMutex returns an handle that is to be passed to ReleaseMutex for releasing the resource. After that you must call CloseHandle on the same handle to clean up everytging.
    I don't know whether the handle of a mutex created with NULL in the first parameter can be passed to another DLL; I have never tried to do something similar but be careful with the following note int he function help:
        If this parameter is NULL, the handle cannot be inherited by child processes.
    You will need to carefully read the Remarks section of the function help and make your own tests.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • OPC client using DataSocket - Error 0x80040154

    hi everyone,
    i am setting up OPC comm between LabVIEW 2010 and SMA OPC Server. they are in the same machine. i have followed all DCOM settings there, and i can view and write data of SMA OPC through MatrikonOPC. 
    then i start using DataSocket Select in LabVIEW. while i run the vi I can see a pop up window showing all running OPC servers in that PC. but while i double-click my SMA OPC server or other OPC servers, i always get this error -
    error code - 0x80040154,
    Class not registered
    The server is not properly registered on the machine.
    Try running <server>.exe /RegServer for an executable server, or RegSvr32.exe <server>.dll for an inproc server.
    i tried following the instruction of last line, but never succeed. 
    Looking for any kind of help. Thank you very much. 

    Hi Daniel,
    Thanks for submitting your question. This error occurs because your OPC server is not registered. For example, here is an article that explains how you can register our FieldPoint servers:
    How Do I Register an OPC Server Without LabVIEW?
    http://digital.ni.com/public.nsf/allkb/662939B4C756729286256C24005530B9?OpenDocument
    Yours might require a different method so it is worth contacting the manufacturer of your OPC server and ask them how you can register your server. Uninstalling and reinstalling the OPC software will sometimes take care of any registration issues.
    I also thought you would find these links useful:
    http://zone.ni.com/devzone/cda/tut/p/id/3978
    http://digital.ni.com/public.nsf/allkb/E9887094890516EB862570A700486F0E?OpenDocument
    http://zone.ni.com/devzone/cda/tut/p/id/7450
    Hope this helps.
    Thanks
    Mahdieh G
    Applications Engineer
    National Instruments UK&Ireland

  • How to develop a discussion forum using Java?

    I am actually developing a forum using Java. That would actually include registering process for a new user and if the user has an account, he can log in. The program should then generate a welcome message and a randomly-created password of 8 char (char+digits), this wil be printed on the screen. I am quite a newbie in this area.. Appreciate for ur help
    Thanzz....

    and what is more import than actual programming when making a software like a forum system is the database design.
    so first you have to designe your database
    decide which data that you have to store and decide what are the table that you will need and what columns that you want in the tables
    thats where you should start

  • How do you create a client using static libraries?

    We are trying to create a client that does not use shared libraries.
    We have tried to use a -Bstatic option when linking the libraries but,
    we get the error /usr/local/tuxedo/lib/libtux.a(libtux.so.60): fatal
    error: input shared object in static mode
    We have tried several variations like moving the .a files, changing
    the options around and got no where.
    Any suggestions would be greatly appriciated.
    Thank you.

    Hello,
    If you are using JSF, you can create a LOV by using the selectItem
    component.
    Look at this sample code:
    <h:form binding="#{backing_test.form1}" id="form1">
    <h:selectOneMenu binding="#{backing_test.selectOneMenu1}"
    id="selectOneMenu1">
    <f:selectItem itemLabel="option1" itemValue="1"
    binding="#{backing_test.selectItem1}" id="selectItem1"/>
    <f:selectItem itemLabel="option2" itemValue="2"
    binding="#{backing_test.selectItem2}" id="selectItem2"/>
    <f:selectItem itemLabel="option3" itemValue="3"
    binding="#{backing_test.selectItem3}" id="selectItem3"/>
    </h:selectOneMenu>
    </h:form>
    Regards,
    Luis R.

  • How to Develop a HTTP Webserver Using JAVA

    i need to develop a HTTP web server using Java. it should work like this when you run the web server giving the specific port number on command prompt , while i browse localhost :port number it should display the HTML pages where that i saved in HDD. can some one help me to do this task.....

    Anunatalie wrote:
    ... . can some one help me to do this task.....
    Yes

  • How to develope a code for using different baudrates?

    hi to all
    i want to develop an application for serial communication.
    So at initially i want to give a different baudrate settings?
    like
    12000,9600,etc.,
    So any one help for this....?
    plz..

    Hello,
    Different baud rate for a single port or different ports.
    For different ports then make a text file like this and parse it, then form a list of the object into which the port and baud is set.
    Text file should be like this
    tty1 9600
    tty2 19200
    tty3
    and so on.

  • How can I transfer a XML file content to a MS SQL database by stored procedure using LabWindows/CVI SQL Toolkit?

    Hi,
    I have a problem to transfer a XML file content to a MS SQL database by a given/fixed stored procedure. I'm able to transfer the content of the file by using following method ...
    hstmt = DBPrepareSQL (hdbc, EXEC usp_InsertReport '<Report> ..... </Report>');
    resCode = DBExecutePreparedSQL (hstmt);
    resCode = DBClosePreparedSQL (hstmt);
    ... but in this case I'm not able to fetch the return value of the stored procedure! 
    I have tried to follow the example of the stored procedure in the help documentation (DBPrepareSQL) but I miss a datatype for xml?!?
    Any idea how to solve my problem?
    KR Cake  
    Solved!
    Go to Solution.

    After some additional trials I found a solution by calling the stored procedure in this way
    DBSetAttributeDefault (hdbc, ATTR_DB_COMMAND_TYPE, DB_COMMAND_STORED_PROC);
    DBPrepareSQL (hdbc, "usp_InsertReport");
    DBCreateParamInt (hstmt, "", DB_PARAM_RETURN_VALUE, -1);
    DBCreateParamChar (hstmt, "XMLCONTENT", DB_PARAM_INPUT, sz_Buffer, (int) strlen(sz_Buffer) + 1 );
    DBExecutePreparedSQL (hstmt);
    DBClosePreparedSQL (hstmt);
    DBGetParamInt (hstmt, 1, &s32_TestId);
    where sz_Buffer is my xml file content and s32_TestID the return value of the stored procdure (usp_InsertReport(@XMLCONTENT XML))
    Now I face the problem, that DBCreateParamChar limits the buffer size to 8000 Bytes.
    Any idea to by-pass this shortage??

  • I use LabWindows/CVI and SCXI modules, how can i check the polarity of a capacitor during an ICT?

    I am a newbie using CVi Lab Windows and SCXI modules, how can i perform ICTs to check the proper polarity of a capacitor?

    Hello,
    That's a big question for a single sentence. Could you give some more details about the hardware you have, and the measurements you want to take?
    By the way, when you say ICT, do you mean In-Circuit Test or something else?
    Thanks,
    John N
    Applications Engineer
    National Instruments

  • How do I configure ports for PCI-1200 using LabWindows/CVI?

    I want to use 2 ports of the PCI-1200 DIO ports as oup ports. Whenever I write to a port using WriteToDigitalPort, the other port will be reset.
    Shoud I congigure the ports at the beginning of the program? If so How do I do it?
    (LabWindows 5.5)

    I would suggest using the lower level NI-DAQ functions instead of the Easy I/O functions. (You have a lot more flexablity this way.) To configure seperate ports use the function DIG_Prt_Config, then instead of using WriteToDigitalPort, use DIG_OutPort. Here is an example that writes to one port using these NI-DAQ functions. All you need to do to write to two ports is add two lines in; another DIG_Prt_Config and another DIG_Out_Port.
    Good luck and let me know if this does not work for you.
    Brian
    Attachments:
    DOOnePort.zip ‏4 KB

Maybe you are looking for

  • Reporting Services in both SharePoint 2013 connected and native mode?

    Is it possible to configure Reporting Services (SQL Server 2014) to support both SharePoint 2013 connected mode and local Report Server in native mode on the same server using multiple instances of RS? The reason for this setup is to avoid having to

  • Rounding off differences for Vendor and Customer payment

    Dear All, Rounding off differences for vendor payment in T Code F-53 is giving the following error when I want to post. Item category 06000 not allowed in accounting transaction 1000/0001 Message no. GLT2001 Diagnosis The online document splitting is

  • SAP HANA Input parameters in SAP BO Analysis

    Hi, dear experts. Please help me with one problem in SAP BO Analysis. Problem is: in sap hana studio i made calculation view that has some input parameters (Param. type - Direct, Sematic Type - Date, Data type - Date). Then i made filter with this pa

  • Required "/" (root) file system size on UNIX for Solution Manager.

    Hello SAP Gurus,    I am setting up SAP Solution Manager 3.2 on HP-UX. It is asking me about 350MB free sapce on "/" file system for Central Instance installation and about 120MB free sapce on "/" file system for Database Instance installation.    I

  • DHCP HELP Please.......

    I have all DHCP clients and server on same VLAN in the same subnet on CAT4507. I can also ping DHCP server, but the clients are not getting IPs. I've checked DHCP config on server seems to be OK. When I turn on debug I get following: 1w3d: -----Addit