What is the purpose of open/close connection data socket?

Hello everyone,
I am writing and reading values in OPC Server through data socket. What is the purpose of open/close connection data socket when writing /reading a value?  Without the open/close connection element, it still work correctly. I am writing values in the server thru event stucture.I do not need any buffered reading or writing. What will happen if I didnt not use the open/close connection? Maybe it may cause some problems in my program which i didnt realise? 
And I have attached an example of my program. Thanks
Yehchia
Attachments:
Test Event.vi ‏11 KB

Hi YehChia,
I was talking about something like that:
1. Not good. since with every iteration the DS connection needs to be opened and closed.
2. Good. Since you open the connection only once then do the reads and close it afterwords.
Christian

Similar Messages

  • What is the shortcut to open|close the Sidebar?

    I was very used to have F9 on every platform to open|close the sidebar.
    As I am a keyboard people, the clicking on the Sidebar icon is not a perfect solution. You had the shortcut and now it's gone.
    I respectfully ask for it back.
    No troubleshooting info is required, because it's not a failure.

    @Aleksej: My version of Firefox is 36.0.4 in Linux Ubuntu 14.10. The sidebar that I want to open is the one that has Delicious service inside of it. I suppose other services or kind of things might be in it.
    @cor-el: I know that using Ctrl+B gives me the Bookmarks sidebar, or Ctrl-H the History one. Precisely, that is the shortcut that I'm looking for, so I can open|close the Delicious service, or anything else that can be opened|closed with the Sidebar icon.
    I'm looking NOT to use the mouse to open|close, but a keyboard shortcut.
    I already know that the Customize keyboard plugin does NOT bind a new shortcut, and the Sidebar shortcut is NOT included... or maybe I'm wrong, :D

  • What is the purpose of the 1394 and USB jacks on the 30" Cinema?

    I have a 30" Cinema display connect to my (current-model) Mini via the Thunderbolt port and an Apple Dual-DVI adapter.
    The back of the display has a pair of USB jacks and a pair of Firewire jacks, and the adapter has cable connections to match. What is the purpose of all these connections? I can tell you right now, it seems that nothing is coming or going through any of these paths. The Cinema display is working just fine but these miscellaneous connections aren't live as far as I can tell.
    What would be great is if the FW tail on the adapter could be used as a second FW port for the Mini. Can that be made to work? Is there some way to route a FW signal to the Displayport?
    TIA for any thoughts on this matter.

    If I have to connect one  Cinema FW port to the sole FW port on the Mac Mini, that doesn't gain me any additional ports--it consumes one of two ports and leaves me a net of one open port--the same quantity I started with.
    The display's FireWire cable (not one of the ports on the back of the display) connects to the computer's FireWire port (via a FW400 to FW800 adapter).  This uses up one computer FireWire port, but the display has two FireWire ports, so you gain one port.
    It's the same for USB.  You lose one port of the computer but get two on the display.
    BTW, your response implied that the Thunderbolt port "contains" both USB and FW connectivity. Can I simply tap off the FW and feed my external FW hard drive directly from the Thunderbolt port?
    Thunderbolt doesn't include USB and FireWire directly.  Instead it includes a version of PCI.  Apple is making some simple Thunderbolt to FireWire or Internet adapters, but they have only one Thunderbolt connection, so if you used one, there would be no place to connect your 30" display.  (The HDMI port is limited to 1920 x 1200, so cannot drive a 30" display at full resolution.)
    Belkin is coming out with an adapter that you could use, but it is not cheap.
    <http://www.belkin.com/pressRoom/releases/uploads/ThunderboltCableDock_060512.htm l>

  • What is the proper way to close all open sessions of a NI PXI-4110 for a given Device alias?

    I've found that, when programming the NI PXI-4110 that, if a the VI "niDCPower Initialize With Channels VI" (NI-DCPower pallette) is called with a device
    alias that all ready has one or more sessions open (due to an abort or other programming error) a device reference results from the reference out that has a (*) where "*" is post-fixed to the device reference where and is an integer starting that increments with each initialize call. In my clean up, I would like to close all open sessions. For example, let's said the device alias is "NIPower_1" in NI Max, and there are 5 open sessions; NIPower_1, NIPower_1 (1), NIPower_1 (2), NIPower_1 (3), and NIPower_1 (4). A simple initialize or reset (using niDCPower Initialize With Channels VI, or, niDCPower Initialize With Channels VI, etc.) What is the proper way to close all open sessions?
    Thanks in advance. Been struggleing with this for days!

    When you Initialize a session to a device that already has a session open, NI-DCPower closes the previous session and returns a new one. You can verify this very easily: try to use the first session after the second session was opened.
    Unfortunately, there is a small leak and that is what you encountered: the previous session remains registered with LabVIEW, since we unregister inside the Close VI and this was never called. So the name of the session still shows in the control like you noted: NIPower_1, NIPower_1 (1), NIPower_1 (2), NIPower_1 (3), and NIPower_1 (4), etc.
    There may be a way to iterate over the registered sessions, but I couldn't find it. However, you can unregister them by calling "IVI Delete Session". Look for it inside "niDCPower Close.vi". If you don't have the list of open sessions, but you have the device name, then you can just append (1), (2) and so forth and call "IVI Delete Session" in a loop. There's no problem calling it on sessions that were never added.
    However - I consider all this a hack. What you should do is write code that does not leak sessions. Anything you open, you should close. If you find yourself in a situation where there are a lot of leaked sessions during development, relaunching LabVIEW will clear it out. If relaunching LabVIEW is too much of an annoyance, then write a VI that does what I described above and run it when needed. You can even make it "smarter" by getting the names of all the NI-DCPower devices in your system using the System Configuration or niModInst APIs.
    Hope this helps.
    Marcos Kirsch
    Principal Software Engineer
    Core Modular Instruments Software
    National Instruments

  • What is the purpose of IA32.api plugin and how to disable it.?

    Hello,
    We have an issue with this plugin in our company.
    This plugin is making IE Crash.
    I would like to properly disable this to workaround the issue.
    Questions:
    1°) What is the purpose of this plugin? i heard it's about AutoUpdate, is this true? if so i suppose disabling AutoUpdate should suffice.
    2°) I know the trick to rename the IA32.api file within the plugins folder but it seems like it make Adobe Reader more unstable. So i think this is not a proper way to do it.
    Any help would be appreciated.
    Cheers
    -Benjamin

    Our application uses Internet Explorer with the default PDF viewer as Adobe Reader to display PDFs.  The html just specifies "open file xxx.pdf" and the default viewer is invoked.  This works fine and the user closes the PDF when done and goes on his way.  But we see a lot of errors where our application registers a crash, and when the crash dump is analyzed the crash is below:
          another Module attempted to call the following unloaded Module: IA32.api or AcroPDF.dll
    As I can see in the forums this has been an issue with Adobe reader for several years.  Is there any solution or work around for this?  We are about to lose a major account due to the frequent crashes in Adobe that look as if they came from our application.

  • What's the purpose of OSX Server on a Mac Mini?

    What's the purpose of OSX Server on a Mac Mini? Is it to make it a Media server?
    Thanks,
    Jeff

    Mac Mini makes a good workgroup server, classroom server, web server, DNS server, authentication server, or... Pretty much any time you want a small and quiet computer for a particular task. And for typical tasks (web and DNS and...) you can roll several together onto a single box, and can run (for instance) two as paired DNS and Open Directory servers.
    Mac OS X Server works nicely on most any of the Mac Mini boxes, too, while the Mac Mini Server does have a better price here and a configuration that's more targeted at server-oriented uses. The MMS adds RAID in particular, though that could be added onto the previous servers using external storage and FireWire.
    If you want a media server, then you don't necessarily need Mac OS X Server, you can do nicely with Mac OS X client and connections to whatever you want to use for media; digital TV or whatever. Front Row works OK here, and EyeTV is very nice.

  • IPod Touch Newbie: What is the purpose of the iTunes app on my iPod Touch?

    What is the purpose of the iTunes app on my iPod Touch?
    All it does is connect to the iTunes store if I'm near a WiFi connection. It appears to be useful only for impulse purchasing of media. So why is it not named "iTunes Store"? It appears to have no other function.
    Also, to listen to my iTunes music on iPod Touch I have to click on the Music button...not the iTunes app. What logic is that?
    Also, iTunes has synced a movie for me, but I have no clue how to view it on the iPod Touch. It doesn't appear in iTunes on the iPod Touch, and there is no "Movie" button anywhere. What am I missing? I can't find it anywhere.

    For purchasing music, downloading podcasts,etc.
    http://manuals.info.apple.com/enUS/iPod_touch_3.1_UserGuide.pdf

  • What is the purpose of Multiproviders???

    Hi Everyone,
    I am currently trying to create a multiprovider.
    I have read the SAP documentation but I still do not understand in what circumstances should I create a multiprovider for reporting.
    Would appreciate if anyone can provide details on what is the purpose of multiproviders?
    Assuming I have the following scenario, should I create a multiprovider for reporting?
    Infocube A:-
    Characteristic
    - Employee Number
    - Cal Month/Year
    - Shift Type
    Key Figure
    - Hours
    Infocube B:-
    Characteristic
    - Employee Number
    - Cal Month/Year
    Key Figure
    - Amount
    I need to report on both the key figures for each employee and what is the shift type of the employee for the specific cal month/year. The employee number, cal month/year and shift type will be used as selection parameters.
    I am thinking of creating a multiprovider for this reporting need but I think there will be some problems.
    For example:
    1) If I input the employee number and shift type as selection parameters, the amount column will be empty when the report is displayed.
    2) If I input on the employee nunmber, then I'll be able to see both the key figures when the report is displayed but the data are on different lines which does not make sense to users.
    Emp ID   Shift Type    Cal Mth/Yr   Hours     Amount
    200001   Shift         05.2006       10 
    200001   Not assigned  05.2006                 1000
    Only if I don't show the shift type column, then the record will be display in a single line.
    How can I rectify such a problem.
    Please advise.
    Thanks.
    Shunhui.

    Hi,
    A MultiProvider is a type of InfoProvider that combines data from a number of InfoProviders and makes it available for reporting purposes. The MultiProvider does not itself contain any data. Its data comes entirely from the InfoProviders on which it is based. These InfoProviders are connected to one another by a union operation.
    InfoProviders and MultiProviders are the objects or views that are relevant for reporting.
    Multiprovider - used when we want to report on chracteristics and keyfigures that are in different data targets.
    http://help.sap.com/saphelp_nw04/helpdata/en/52/1ddc37a3f57a07e10000009b38f889/frameset.htm
    Thanks
    DST

  • What is the purpose of F-03 clearing? How to clear GL account there in F-03

    HI,
    What is the purpose of F-03 clearing? How to clear GL account there in F-03.Please help me in understanding the concept.
    Thanks
    Supriya

    Hello,
    There are cases where you pass some manual entries which might not have cleared against the other related item, THOUGH the balance has been ZERO.  Like cases where you reverse logistics invoice through MR8M, then entry gets reversed but they are still open items. Like some GRIR accounts might have debit and credit entries for same purchase order and the balance MIGHT have become ZERO, but still they are open item. To clear all these open itesm (changing the status of the open items to cleared items, you need to use F-03)
    Please go to F-03 and give the GL account which want to manually clear the debit and credit items.
    Normally you will this kind of activity for clearing account, where there is no automatic clearing mechanism explained in OB74.
    now click on open items. (if you know any specific things like document number etc. you can fill them, then they will act as a FILTER and only those document numbers you feeded will be appeared)
    Now select the items you want to clear. Deselected all other you do not want to clear. Selected items will be in blue colour and the difference at the end of the screen MUST be ZERO to post (unless you configured otherwise)
    Click on save button.
    The entries passed will GL Account A Dr and GL Account B Cr. Meaning that there is no implication but posting the debit and crediting the same account and clearing the status of the line items from OPEN to CLEARED.
    Hope I am clear.
    Regards,
    Ravi

  • What's the purpose for the resistor in the jack of Pismo's power supply?

    Recently the power supply of my Pismo started failing and I decided to troubleshoot it. Turned out the cable next to the jack was broken. I went on with the repairs and inside the jack I found a resistor connecting the negative terminal with the shield of the jack. What's the purpose for it? What would happened if I just removed it (I found a site that said it wasn't really necessary)?
    Andy

    After talking to a couple of experts in the field of electronics, they both confirmed tat that resistor is there in order to suppress any RF interference that the PowerBook might produce.

  • What is the purpose of odbcinst.ini?

    I have installed unixODBC.x86_64 (2.2.14) and mysql-connector-odbc-5.3.4-linux-el6-x85-64 on Oracle Linux Server 6.5 64 bit with Oracle 12c and MySQL Community Server 5..6.14.
    I wonder what is the purpose of odbcinst.ini since the odbc driver is already configured in odbc.ini.
    ODBC.ini has the following configuration:
    [myodbc5]
    Driver          = /tmp/shared/mysql-odbc/lib/libmyodbc5w.so
    DATABASE        = peter
    DESCRIPTION     = MySQL ODBC 5.3 Unicode Driver
    SERVER          = localhost
    UID             = peter
    PASSWORD        = peter
    SOCKET          = /var/lib/mysql/mysql.sock

    This is really a question more specific to the ODBC driver itself and really should be asked in that forum.
    The purpose of an odbcinst.ini file is to list all installed drivers. The syntax is; a name followed by a property which tells us the drivers file name. For example;
    [Sybase 11]
    Comment = Super Duper Sybase Server
    Driver =  /usr/lib/libsybase.so.11
    Setup = /usr/lib/libsybaseS.so.11
    FileUsage = 1
    Botton line is you need to have a working ODBC connection for DG4ODBC to work.
    Regards,
    Matt

  • What's the purpose for the two Wireless Antennas on a WAP?

    I have a very simple question, that I'm a little confused about. Here it goes.
    Most Access Points have two antennas. One is labeled as LEFT/PRIMARY and the other is RIGHT.
    What is the purpose for the two antennas? When I have one antenna connected it works without any issues. Can I just use the LEFT/PRIMARY antenna for wireless connectivity? What are the purpose for the two?
    And we are talking about a single band, 802.11b/g NOT 802.11a.
    Thank you!

    Hi Rashida,
    The use of two Antennas on these AP's is used for "Diversity Mode. In many cases, 1 single Antenna will work nicely. Here is an explanation for the use of two Antennas :)
    This describes the use of 2 **Identical Antennas in "Diversity" Mode;
    The purpose of diversity is to overcome multipath reflections. Diversity antennas that share the same physical housing are placed at an optimum distance apart. The maker of the particular antenna determines that distance based on the characteristics of the antenna. When you use a pair of antennas with matching characteristics to provide diversity for cell coverage in your facility, the guideline is to put those matched antennas at a distance apart from each other that is equal to a multiple of the wavelength of the frequency that is being transmitted. The 2.4 GHz wavelength is approximately 4.92 inches. Therefore, to support diversity on a 2.4 GHz radio with two separate antennas, the antennas should be spaced approximately 5 inches apart. The antenna pair could also be spaced at multiples of 5 inches, but the distance between should not exceed 4 multiples: reflected waves farther apart than that are likely to be so distorted and different in delay spread that the radio could not work with them.Because each antenna is selected by itself, both antennas must have the same radiation characteristics and be positioned to provide similar cell coverage.
    **** Two antennas connected to the same access point must not be used to cover two different cells.****
    From this good doc;
    Multipath and Diversity
    http://www.cisco.com/en/US/tech/tk722/tk809/technologies_tech_note09186a008019f646.shtml
    A diversity antenna system can be compared to a switch that selects one antenna or another, never both at the same time. The radio in receive mode will continually switch between antennas listening for a valid radio packet. After the beginning sync of a valid packet is heard, the radio will evaluate the sync signal of the packet on one antenna, then switch to the other antenna and evaluate. Then the radio will select the best antenna and use only that antenna for the remaining portion of that packet.
    On transmit, the radio will select the same antenna it used the last time it communicated to that given radio. If a packet fails, it will switch to the other antenna and retry the packet.
    One caution with diversity, it is not designed for using two antennas covering two different coverage cells. The problem in using it this way is that, if antenna no. 1 is communicating to device no. 1 while device no. 2 (which is in the antenna no. 2 cell) tries to communicate, antenna no. 2 is not connected (due to the position of the switch), and the communication fails. Diversity antennas should cover the same area from only a slightly different location."
    Diversity Antenna Systems
    Diversity antenna systems are used to overcome a phenomenon known as multipath distortion of multipath fading. It uses two **identical antennas, located a small distance apart, to provide coverage to the same physical area.
    From this Antenna reference guide;
    http://www.cisco.com/en/US/products/hw/wireless/ps469/products_data_sheet09186a008008883b.html
    Hope this helps!
    Rob

  • What's the purpose of copying the projects?

    I use Enterprise PeopleTools 8.49 Installation for Oracle for a guide to install the peoplesoft. When I did the step of Updating Database to Latest PeopleTools Release of Chapter 7B, I found that it told me to copy the project to the database but no to tell me to build it. Without building the project, the objects of the project can not be built. Should I need to build the project? What’s the purpose of copying the projects?

    I'm afraid, you were starting to speak about Peopletools installation tasks, which come with its own particularities, now you're speaking about maintenance packs which come with other particularities.
    Honestly, I didn't read the MP6ML installation guide, and if you need to build the project or not, I do not know, and if you need, I don't know the options neither.
    But I'm sure, because I did it several times by the past for other MPs, everything was well explained in the doc and/or template, including the exact options you need to set before building the project.
    For MP application, PSCA should be used as most as possible, if not possible, then manuals steps are described in the templates. If not, then open a case to Peoplesoft support.
    ...the second one just told me to copy the projects named HC9_MP6_ML_1_CP and HC9_MP6_ML_2_CP from file to my target database. So should I build the projects? And which options should I choose when I build the projects?If the template describe only a manual copy project (without build), then copy and do not build the project.
    Nicolas.

  • What's the purpose of a CUSTOMIZE install of iLife 08?

    So over the weekend I upgraded to iLife 08 on my machine. I wanted everything except Garageband. So I selected custom install from the options. I checked everything I wanted and made sure I did NOT check Garageband. It even said SKIP next to it. So I proceeded with the install of the other apps and low and behold a little while later I looked at the screen and it said GarageBand content being installed!
    Does this thing have a mind of its own?! What is the purpose of a custom install if its going to put apps on that I don't want any way?
    Sure enough when it was all done, I opened my applications folder and Garageband was in there. I have Soundtrack Pro and have no need for Garageband.

    DVX100Shooter,
    It is very possible that you inadvertently caused Garageband to be "checked" when closing the category under which it falls. In the "Customize" interface, items are included in sub-lists that are opened and closed using the "disclosure triangles." Individual items can be enabled or disabled with their own check boxes, or the entire sub-list can be enabled or disabled using the check box for that list.
    What I am getting at here is that it is relatively easy to mistakenly enable a list heading, perhaps when closing the disclosure triangle, thereby enabling the items in the list. I've done this myself when navigating these dialogues.
    Scott

  • What is the purpose of the foreground/background color?

    I want to know what is the purpose of the foreground/background color in photoshop, am knew to PS, so am just trying to figure what are the purposes of some of these stuff.
    Regards,
    Jamaine Semple

    Please read the Help files.  Start with "Creating, Opening and Importing images".
    • Select a canvas color option.
    White Fills the background or first layer with white, the default background color.
    Background Color Fills the background or first layer with the current background color.
    Transparent Makes the first layer transparent, with no color values. The resulting document has a single, transparent layer as its contents.
    The Foreground Color is chosen for the brush, shapes, etc.
    Eventually, you want to read the entire content of the Help files, and maybe, hopefully, a book like " Photoshop Classroom in a Book".
    Photoshop is a professional level application that makes no apologies for its long and steep learning curve.
    Take a class at a community college.  Teaching you Photoshop from the ground up far exceeds the scope of the forum.

Maybe you are looking for

  • How do I find the AS that this links to in my flash file via "find"?

    I have a flash file that I have on a web page. When I hover over the Join Us image, the mouse changes to a hand. I can click on the "button" but it doesn't take me anywhere. I'm trying to find out if there is a way to find the link in my Flash file v

  • Why Can't I See The Artist's Name In The Media Centre Play Mo

    I'm listening to my Zen Touch on my computer at work. I'm playing my music through Media Centre and cannot see the Artists' Name in the player. I only get a number (the number of the file within the player, I presume). Anyway to correct this problem?

  • Health app and restarting day

    so i get up pretty early every day, 4am. my health app doesn't seem to restart the day. when I open my health app in the morning it gives me all of my data from yesterday. how many steps I walked, etc. but doesn't show any of today's data? I noticed

  • Bad Server Certifcate?

    Alright, I've got a bit of an odd problem here. Whenever I go on to a site that Safari says could be "insecure," I choose to continue, but when loading the page, all pictures on that page are replaced by blue boxes with question marks in them. So I c

  • CSS code completely fouled up by CSS designer

    I'm having a bunch of bugs with Dreamewaver CC. Inserting images in code view or in design view always places them in the wrong place. For example inserting an image using Cmnd/Ctrl + Alt/Option + i with the cursor placed before paragraph 1 will inse