Using LabVIEW 6i w Win NT or 95/98 et al: how do you keep a TCP/IP open connection 'open'. The application closes the connection even though the refnum is still active (valid.)
Actually, I open the TCP/IP connection and pass the connection ID through. Each command to/from (cycle) the UUT successfully executes. The refnum for the connection ID is then passed via a shift register in the while loop. i am using the type cast (4X) function to determine the validity of the connection and case statements. If the refnum is non-zero it assumes the connection is still open; if the result is zero, then the connection is closed and a new session opened in that case. What is happening is that the connection has closed and the refnum is still nonzero after the type cast function; su
bsequent commands to the UUT then produce Error 1 for the TCP/IP function (there was no open connection, so there could be no write occurrence.) Obviously, this probably shouldn't be happening. If someone can give me some idea of what I am not doing, or am doing wrong, I sure would appreciate it. In the event that I open and close a connection for each command to(from)(cycle) the UUT everything works. It is extremely slow. The connection should remain open according to all the pointers in the Help and TCP/IP function descriptions. Some of this application is proprietary, so not sure how much of an example I could use to illustrate from a VI, but if this doesn't get any where, I will see what i can do to better illustrate the problem...Thanks. T.Raper
I believe this is a related question. I am developing a LV application the uses TCP/IP to control up to 8 devices-under-test (DUT) at one time. They start and finish testing at arbitrary times relative to each other, and the IP addresses are not known until the DUT arrives. I have some question on what is the best way to manage the TCP/IP handles.
Presently, I have 8 Global IP addresses (one per testing site) that are updated as DUTs arrive and depart, and then whenever I need to communicate with a DUT I use TCP-Open, Write/Read, and TCP-Close. I do this Open/Write/Close each time there is a message to be sent to a DUT. This is basically working, but I notice that the OS (Windows XP or 2000) is running through local TCP/IP ports at a ferocious rate due to the TIME_WAIT behavior of Closed TCP/IP ports (It takes many minutes for a local port to become available again after being closed). If I am not careful, I can quickly exhaust the pool of OS ports by using tight polling loops or other very quick DUT accesses. I have tried not to do that in order to avoid running out of handles, but it is still very wasteful of ports.
While it is working, I feel so dirty burning through these handles like this since they appear to be a precious resource. I really cannot easily merge multiple Read/Writes into a single Open/Close since there are dozens of otherwise unrelated tests that communicate with the DUT as a part of their functionality. The tests are even in different subVI's that are accessed via a vi-server, and only one is loaded at a time.
I thought that a cute idea would be to cache the handles in Globals, and wrap the Open to use the cache if valid, but reading this thread is making me think it is a lot of effort -- I believe I would need to keep a VI running as a "IP Connection Server" at all times and use some form of messaging to get it to Open/Close TCP connections as needed. Since the DUTs arrive at aribitrary times, and with random IP addresses, I cannot establish all the TCP handles ahead of time -- they would need to be created dynamically. It is much more difficult than simply keeping the Connection IDs in global variables -- the VI that Opened them must not be allowed to terminate.
So... I am curious...... is it really that bad to Open/Close as frequently as I am doing it? Does it make me a bad person? I understand it is inefficient use of time, but the simplicity it brings to the structure seems huge, and the DUT is very slow anyway. And if it is bad, are they any more recent thoughts on alternatives? Do VISA handles behave the same way as TCP handles (ie. auto-close themselves upon exit of the VI that Opened them) ?
Message Edited by Mike Seibel on 11-28-2005 07:55 PM
Message Edited by Mike Seibel on 11-28-2005 08:00 PM
Message Edited by Mike Seibel on 11-28-2005 08:01 PM
Similar Messages
-
i have acrobat standard and it will not allow me to edit.. every file i go to open it says "there is a active file open and must close in acrobat" other times it says account cannot be validated after I have already paid for it.. please advise
Hi Timothy,
The account cannot be validated error was due to a glitch on our activation server that has been fixed now.
Please try using acrobat now and check if you are still facing the problem.
Regards,
Rave -
I am doing two people's jobs and I need to use two separate log-ins on the same website. How can I keep both log-ins open at the same time. Everytime I switch tabs I have to log in again.
Try one of these extensions for multiple cookie sessions.
Multifox: <br />
http://br.mozdev.org/multifox/ <br />
Cookie Swap extension: <br />
https://addons.mozilla.org/firefox/3255/ <br />
Cookie Pie extension: <br />
http://www.nektra.com/oss/firefox/extensions/cookiepie/ -
How can you keep your iPhone 4 (using it as my car's iPod) staying on the Audible app? When I leave the car and return to continue hearing a book, it has switched to iTunes.
The first time an iPhone is connected to iTunes that is used to sync with another iPhone or iOS device, you are prompted to transfer the backup for the other iPhone or iOS device or to set up the iPhone as a new iPhone.
The former does as provided - it transfers the backup for the other iPhone or iOS device to the iPhone replacing all data on the iPhone that is included with the backup being transferred. The latter does nothing allowing you to make your various selections for the iPhone sync preferences with iTunes.
This is designed to be done right away with a new iPhone.
If you don't have a backup for the iPhone with iTunes on your computer and don't have an iCloud backup that hasn't been updated since choosing to transfer the backup for your iPod Touch to the iPhone, the data that was on the iPhone is gone. -
I have an iPhone 4s that is no longer active on my account. I recently upgraded it after completing a 2-year contract. Is it still possible for me to have the iPhone 4s unlocked even though it is no longer active on my account?
Great question missmar23. You can contact our Global Support department at 1-800-711-8300 to discuss the details for your device.
KinquanaH_VZW
Follow us on Twitter @vzwsupport -
I want to use my old iphone for my kids as an ipod. How do I keep from getting text messages on it when it is turned on? If it is on, and my droid razar is on, text messages will go to the iphone. It is either a 4 or 4s ...I don't have Siri, so I think it's a 4. Thanks
Another thing to remember is the phone is actually usable for 911 calls and maybe others. Not a real good idea. Especially for a child.
It would depend however on the age of the child.
Good Luck -
hey how are you guys listen i have an iphone 4s the one i use with the H20 CARRIEr and i trying to enable the option call forwarding and when i type tho number i go back and i notice to the call forwarding it turning off as soon i back to the main menu ?
There are a lot of posts in the forums today with people having problems with iMessage. There was also a published outage yesterday, so it's possible there are still some issues that may be impacting you both.
I would just wait it out - I'm sure it will be sorted out soon. -
Delete memory Id when the session is still active
Hi all,
Can anyone tell me how to clear the Memory Id when the session is still active.
I am getting the amount value through Memory Id from import and export parameter when I am posting the check. Again if I reprint the check without closing the session the amount value is getting double evertimes.
If I delete from Memory Id I am not able to see any amount value while posting for first time.
Can anyone suggest me how to proceed further.
Regards
YathishLooks like you are not clearing the variables before and after that logic. Clear them and try.
Let us if you are doing that or not.
Rgds,
Naren
Message was edited by:
Someneni -
where and how can i find his id to contact him if the device is not activated and idon't know how to riech him
i will have to agree with hasscoo90. we badly need help how to contact the owner of this phone. we do understand the purpose of activation lock. and this is why instead asking Apple or any other company that offers a service (if there is any) to remove the activation lock for us, help us provide any contact information of the owner of this serial number we have and we will inform them of exactly what to do so that we can already use this iphone.
please help us. we really badly need your help. -
while using my pad it suddenly stopped and stated that I neede to activate it. Now it wont activate even though it had already been activated. What do I do?
Everytime I try to do an activation it later tells me that it could not activate because the activation server is temporarily unavailable. I ready to throw it.
-
I have set up Time Capsule to use with Time Machine but when I open Time Machine it 'cannot find' the Time Capsule and I have to 'Select the Disk' each time. In the Next Backup tab it always says "When disk is connected" even though the disk is already connected.
Your pro doesn't matter.. I presume it is happily working.
Your imac setup has got messed up because you changed from a local (my book being USB type I presume) to network drive. Did you do a clean install of Lion?
Did you use the backup from the Pro on the imac? Otherwise I don't see how the Pro shows up in use previous disk. Where is Pondini when you need him??
You cannot download Time Machine as an App and replace the current version. It is built into the OS.. the only way to do it is a clean install. Unfortunately that might be the only way around the issue.
There is a number of issues that Pondini has covered in the setup issues of troubleshooting.
This is the most relevant I think. http://pondini.org/TM/B6.html
But look at the whole section B setup problems.
http://pondini.org/TM/Troubleshooting.html
If it was me, I would store all the info you need.. not using TM but using a straight copy of files.
Then clean install Lion. I doubt any of these issues would exist if you had not installed Lion over existing setup or used a different backup.
See if you can get Pondini to respond.. !! -
Just activated iphone 4S and can't get new voicemail greeting to override the old greeting. Greeting from previous phone still plays even though a new greeting has been saved to the iphone. Also, the previous phone still receives voicemail nofications even though it is no longer active. What is going on?
We want to make sure that voicemail transition is super smooth SonyBony! Please be aware you must power off the previous device in order for the complete switchover to take place. We recommend leaving the previous device off now that you have activated your new device. Here is a link for additional assistance with voicemail on the iPhone 4s. http://vz.to/1kcyBlo
JonathanK_VZW
VZWSupport
Follow Us on Twitter@VZWSupport -
I signed into icloud to find my iphone. icloud tried to upload my calendar, froze my desktop calendar and then erased it when I unchecked the box. I use time machine. Can I restore my desktop calendar and how do I keep everything but my phone locator and mail off? I do not want to sync my desktop with icloud except for mail.
This the Activation Lock. Read here: http://support.apple.com/kb/HT5818
The only way is to login to iCloud with your computer browser and wipe the iPhone.
If you can't then you have a brick, Apple won't help and AL cannot be bypass.
https://www.icloud.com -
How do you burn photos to a disc so that the titles are shown and they can be used in windows?
How do you burn photos to a disc so that the titles are shown and they can be used in windows?
doAre they in iPhoto?
Select the pics in the iPhoto Window and use the File -> Export command. In the resulting window, at File Name, select 'Use Title'. Also check the boxes at Title and Keywords, and they will be written to the IPTC metdata of the files. Complete the export to a folder on the desktop and iPhoto will export the photos using the Title as a Filename. Burn that folder with the Finder.
Regards
TD -
Does the iPad mini have a setting so it can be used with either 120 or 240 electrical current? If yes, how do you go about setting the desired input voltage? I will travel to Northern Europe and want to know if I will need a voltage converter.
The iPad charger is dual voltage. You need only a plug adapter to be able to plug your US charger into a European wall outlet. A basic one costs about $2.00. - $6.00. Like this...
http://www.amazon.com/CVID-Grounded-European-Adapter-Adaptor/dp/B0098B5GN8/
Maybe you are looking for
-
I just downloaded the newest version of Itunes on my Windows 7 PC. I can't delete anything and I can't sync to my MP3 player. I tried deleting it and installing an earlier version of Itunes but it can't read the library. Please help.
-
How do I get Windows 8 on a usb to use Bootcamp on my MBA?
Just wondering because I am thinking about getting Windows 8 for my MBA. I figured if I had a MBP I could just put a Windows 8 disc in and go from there but I cant do that with a MBA. So it might sound like a stupid question, but if any one can help
-
Hi, I hope this hasn't been asked before, but I really need to figure out how to do this. We take forms in Word, convert them using the wizard, and then the only way I can figure how to make them fill in able and then saveable is to distribute thro
-
Hi, I just returned from an international trip yesterday. I noticed that all my i cloud contacts were erased when I arrived in England. I am very certain that they were all working fine on my phone before I left for the trip. When I go into my messag
-
TDF not displaying properly in Firefox 4
Hi, just an FYI to the TDF team...the web version is not displaying properly in Firefox 4.0.1. The main browser window (for lack of a better description) is slightly off-set maybe 10 - 15 pixels down and to the right. Because of this it covers up som