How to kill TCP-IP Listen or Open Connection while they are waiting to connect?
We have an application that acts as a control panel for a customer's device.
It connects to the device using TCP-IP.
It can be configured to connect as a server (listener) or as a client.
The user of this applicaiton must have the ability to disconnect from the device and point and connect to a different device at a different IP and port.
When the user tries to connect to a device but can not (the device is not ready or the IP address is wrong) he wants to abort the connection, change the settings then restart the attempt to connect.
How do I stop the TCP-IP Listen or TCP-IP Open Connection VIs? We typically use a timeout of a couple seconds and this is a long delay for a respond to the operator when he wants to abort the connection attempt.
Thanks for the quick response.
I was hoping there was a more elegant Labview solution that may work for both the wait on listen and the connect VI.
I tried to close the wait on listener by closing the ref from the create listener.
That works. See attached picture. I use a queue to send the abort message. The wait on listen state will be blocked until either a connection is made or an abort message is sent via the queue. If a message is sent, the dequeue vi unblocks and causes the listener reference to close which will kill the wait on listen VI. If a TCP-IP connection is made it will close the queue reference which will kill the dequeue vi.
I guess for the TCP-IP connect VI I can:
A. Use a couple second time out that is tolerable to the operator if then abort the connection attempt. (like you suggested)
or
B. Create a VI with the TCP-IP Open Connection VI in it. I can launch that VI dynamically and wait until done (invoke node Run VI with Wait Until Done set to true). If a connection is made it will finish and I will read the outputs using an invoke node (Ctrl Val.Get). If it needs to be aborted, I will abort the VI using an invoke node (VI Abort).
Attachments:
Wait on listener with Abort example..JPG 265 KB
Similar Messages
-
I updated iOS 7 and my contacts were ok then they suddenly disappeared a few weeks after updating. I have no idea if it has anything to do with iOS 7 but when I email someone the contacts are there. When I open the app they are gone. What happened?
Try:
- Reset the iOS device. Nothing will be lost
Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
least ten seconds, until the Apple logo appears.
- Reset all settings
Go to Settings > General > Reset and tap Reset All Settings.
All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
- Restore from backup. See:
iOS: How to back up
- Restore to factory settings/new iOS device.
If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
Apple Retail Store - Genius Bar -
Sending photos from Lightroom to Photoshop - covered with colours? Opening from Bridge they are fine. Does anyone know how to set up the monitor from advanced to basic? Someone said that might be the issue but I can't find any area in control panel where it has the option?
You need to supply more information and screen shots of the problem would also be useful.
-
My iphone 4s will not allow me to open applcations that I have downloaded. I have tried a few things but still will not allow me to open. Shows they are open once pushing the home button twice. Please help!
Pressing the Home button twice does not show you what apps are running. It shows you what apps were recently used.
Download a free app from the App Store. Once it downloads, your other apps should work properly again. -
How do I see photos in iCloud to make sure they are backed up?
How do I see photos in iCloud to make sure they are backed up?
If you see them in iCloud or photo stream they are backed up.
-
I updated my 3GS to os5 and set up icloud and it backed it up, although, the backup says incomplete. I turned off the contacts under icloud and they are now all gone off the iphone. How do I get them back? I feel like they are in icloud, because the contacts went to another iphone i have.
I did turn the contacts back on and it didnt work. I am hoping the wi-fi connection I am on at school is not compatible, and it will work when I get home. Thanks!
-
is there any way to view full pdf and office documents opened in safari? they just open partically if they are bigs
Drag them to your iTunes library. Download the free iBooks app. Select the PDFs you want too sync in the iTunes books pane. The iBooks app will show your books collection or your PDFs collection as you select.
-
how do i get my ringtones back on my iphone, they are in the itunes library but not on the ph
Is it selected in iTunes? Is the ringtones longer than 35 secs?
-
How do I show the details of a customer when they are logged in a secure zone?
How do I show the details of a customer when they are logged in a secure zone?
I want to show the customer details as well as some customer CRM fields that are applied to the customer. None of these are entered via a form, they would be entered by the client. The customer would need to be able to log in to view the information and get an email alert when it is updated. Help!?Hi,
You might want to look into customer service zones which allows customers once logged in to see their case, order and own details.
- http://kb.worldsecuresystems.com/133/bc_133.html
- http://kb.worldsecuresystems.com/kb/customer-service-area-orders.html
- http://kb.worldsecuresystems.com/kb/allowing-customers-view-update-crm.html
Kind regards,
-Sidney -
When importing from my camera or file in Lightroom 5 my pictures are over-exposed by 1-2 stops, while they are well exposed on the camera-screen. How to get the 'right-exposed pictures on the screen?
There is an option in your Lightroom preferences on the General tab, "Treat JPEG files next to raw files as separate images". If you have that option checked then Lightroom will import and display both your raw and JPEG files. Are you using active D-lighting on your camera? If you are then you need to turn off that feature.
-
My email (sign-in) and password for iTunes is different than my email (sign-in) and password for iCloud. How do I change my sign in and password so they are the same for both iTunes and iCloud without losing my iTunes content?
Hey Lakedrive442,
It sounds like you have changed your Apple ID which you use with iTunes. If so there are several places you may need to update it as outlined in this article.
Apple ID: What to do after you change your Apple ID - Apple Support
Of course some might not apply, but many might.
Thank you for thinking of Apple Support Communities for your support needs.
Nubz -
How can I attach several images to my Outlook Mac 2011 email message and have all of the images reduced in size while they are being sent out. Thank you
https://discussions.apple.com/message/11994130#11994130
-
I would like to "get off the cloud". How do I copy all my contacts, etc from where they are on the cloud to "on my Mac"?
Export the information to your Desktop. Stop syncing in iCloud, which should give you the 'On My Mac' option. Then import the information.
-
my imessage and facetime arent working and they said they are waiting for activation, how do i activate it?
Create the playlist folders.
Create the playlists inside them.
Drag your folders of music to their respective playlists.
You may want to visit Edit > Preferences > Advanced, then turn off the Keep... & Copy... options.
tt2 -
Reinstalled dreamwever cc and now my extensions don't show up. Any Ideas? PS when I open extension manager they are in there
Hi The solution was I had to reinstall all the extensions, then they showed up. Thanks
Sincerely
Dennis Handa
DHManagement and PR
www.agentezsite.com
www.businessezsite.com
www.flarren.com
www.keysluxuryliving.com
321-956-4003
2601 Reed Avenue
Melbourne Fl 32901
Maybe you are looking for
-
Hi I have two forms to mark employee attendance daily and employee Leave.Which employees are present marking attendance P into emp_attendance table. i have to keep record of the absent teacher who didn't inform and emplyee which are on leave.Which em
-
How do I distribute apps to clients in house (more than a hundred)
I'm currently wanting to distribute apps that plugin to software we have developed for our clients (more than a hundred). These apps are not for public and don't want them to be. 1. How can I distribute them? 2. Do I have to enroll in iOS Developer P
-
ISA, Sales Order Search, Search by extra fields
In the standard ISA, customer can search based on Reference Number, Transaction Number, and Purchase Order Number. The options exist in a drop down menu. I want to add extra fields in the menu and search with new criteria. How do we add functionality
-
SUS MM POR (Purchase Order Response) Workflow
All, I am trying to configure MM-SUS(Plan Driven Procurement) scenario with SRM 5.5 and EEC 6.0. XI is set up. There is no SRM. It only ECC and SUS. Steps 1- PO is created in ECC, transmitted to SUS. 2- On SUS Supplier logs on and processes P
-
Create a Work Flow Task for a milestone of the network activity
hi friends, I am creating N/W and Milestone using BAPI_NETWORK_MAINTAIN. Now, I want to update <b>Milestone Functions Tab</b> which has <b>Task Id,</b> and other fields. Please suggest me <b>some Function M