How do I detect whether a publishing object is connected to the datasocket server or not?
I have 2 vis which communicate via datasocket. The behaviour of the second vi depends on whether the first vi is running or not, and both vis can be started and stopped independently of each other. I need vi 2 to be able to detect whether vi 1 is running or not. Simple, I thought, I'll have a boolean in vi 1 called Running which is set to True when the vi is running and False when it shuts down. I'll publish that vi to datasocket and have a matching boolean in vi 2 which subscribes to it.
It doesn't work, because as soon as vi 1 stops, Running disconnects and the matching boolean in vi 2 misses the fact that it got set to False before it disconnected, and just gets stuck in the True state.
So it seems to me there should be a "Is object connected?" vi or function somewhere, but I can't find it.
Is there another way to detect whether a vi is running or not? Preferably without using shared globals as I find that quite ugly, in fact I've switched to using datasocket from using shared globals because the latter just seemed like really ugly programming.
Note: I will have several variants of vi 1 with different names, so I can't just try to open a reference to the vi. That's why I wanted to use a datasocket object; all the versions of vi 1 can have a boolean called Running.
I found a solution. The subscribing boolean in vi 2 is now in its own little loop that executes every 50ms in parallel to the main program loop.
In vi 1 there is a delay of 500ms between the publishing boolean being set to false and the vi stopping.
That way the subscriber boolean has plenty of opportunity to read the False state of the publisher.
Similar Messages
-
Community Publishing-"Unable to connect to the CPS server" Error
I am trying to connect to Community publishing.
I download the Community Publishing Air app, but when I put in my username/password,
I get this error "Unable to connect to the CPS server. Please make sure your firewall settings allow access to this url:
http://cps.corp.adobe.com/nioamfpoll".
I have updated Air, but got the same behavior.
I am running osx (10.6.6) on a 8 core Xeon.
Any suggestions?
Thanks
ClayHi Clay,
Do you have a firewall, or are you behind a corporate firewall that blocks certain ports on your machine?
What do you see when you visit this URL?
http://cps.corp.adobe.com
How about the following URL?
https://cps.adobe.com/nioamfpoll
Thanks,
Puny Sen -
We have installed Adobe Acrobat X Pro- English,Francais,Deutsch version 10.1.9 in our test environment and tried testing it for converting SAP pages into PDF with a few pilot users. In doing so we faced a challenge, where only one user at a time can use Adobe Acrobat PRO to convert SAP pages in to PDF.As long as the first user who is connected to Adobe Acrobat Pro via SAP isn’t logged off, other users connected to the same server are not being able to get the “Save As” dialog box to save the PDF in their preferred location.
This is a business requirement and we need an urgent solution for the same. Can anyone help us in telling us if this is possible and if yes the how to go about?It's not something we deal with here, the LiveCycle products are a different world. Key points: Adobe LiveCycle is a range of products, some desktop, some server. LiveCycle PDF Generator is the one you should look at, it comes in 3 editions. License terms are by negotiation. Key management is via its Java API.
-
How to find whether any disk arry is connected in the system
Hi Guys,
Please help me regarding Disk Array.
1) What command(s) should I use to check whether any disk array is connected in the server or not.
2) Please share the method for,
For single server system (A single sun server is connected with exernal disk array).
For Cluster server system (Two servers are connected as a sun cluster and Disk array is connected to the cluster as resource).
3) If the disk array is from SUN or from other vendor, how can i know that?
4) How to find how many disks are available in the Disk array?
ThanksWow... I got a reply from nik !!!
Thanks for your reply..
*1) I have a confussion that format command only report the local disks not external disks(Disk array). Is that correct?*
2) We have a cluster server V890+V890 + Disk-Array(Sun StorageTek). The format output is below.
*(5,6,7 & 8 are disk array?)*
root# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c1t0d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
/pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w500000e01924a4e1,0
1. c1t1d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
/pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w500000e01a467d91,0
2. c1t2d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
/pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w500000e019dd3151,0
3. c1t3d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
/pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w500000e01a467321,0
4. c1t4d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
/pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w500000e01922a001,0
5. c2t600A0B8000482D560000031B482A46BCd0 <SUN-CSM200_R-0619 cyl 51838 alt 2 hd 512 sec 64>
/scsi_vhci/ssd@g600a0b8000482d560000031b482a46bc
6. c2t600A0B8000482D5600000318482A46A6d0 <SUN-CSM200_R-0619 cyl 51838 alt 2 hd 512 sec 64>
/scsi_vhci/ssd@g600a0b8000482d5600000318482a46a6
7. c2t600A0B8000482DBC00000659482B59D3d0 <SUN-CSM200_R-0619 cyl 51838 alt 2 hd 512 sec 64>
/scsi_vhci/ssd@g600a0b8000482dbc00000659482b59d3
8. c2t600A0B8000482E200000049E482B599Ad0 <SUN-CSM200_R-0619 cyl 51838 alt 2 hd 512 sec 64>
/scsi_vhci/ssd@g600a0b8000482e200000049e482b599a
(End 0f output)
*3) For cfgadm output is given below*
root# cfgadm -al
Ap_Id Type Receptacle Occupant Condition
PCI0 unknown empty unconfigured unknown
PCI1 unknown empty unconfigured unknown
PCI2 unknown empty unconfigured unknown
PCI3 unknown empty unconfigured unknown
PCI4 scsi/hp connected configured ok
PCI5 pci-pci/hp connected configured ok
PCI6 pci-pci/hp connected configured ok
PCI7 fibre/hp connected configured ok
PCI8 fibre/hp connected configured ok
c0 scsi-bus connected configured unknown
c0::dsk/c0t0d0 CD-ROM connected configured unknown
c1 fc-private connected configured unknown
c1::500000e01922a001 disk connected configured unknown
c1::500000e01924a4e1 disk connected configured unknown
c1::500000e019dd3151 disk connected configured unknown
c1::500000e01a467321 disk connected configured unknown
c1::500000e01a467d91 disk connected configured unknown
c1::508002000065adb9 ESI connected configured unknown
c3 scsi-bus connected configured unknown
c3::rmt/0 tape connected configured unknown
c4 scsi-bus connected unconfigured unknown
c5 scsi-bus connected unconfigured unknown
c6 scsi-bus connected configured unknown
c6::rmt/1 tape connected configured unknown
c7 scsi-bus connected unconfigured unknown
c8 scsi-bus connected unconfigured unknown
c9 fc-private connected configured unknown
c9::200600a0b8482dab disk connected configured unknown
c10 fc-private connected configured unknown
c10::200500a0b8482dbd disk connected configured unknown
c11 fc-private connected configured unknown
c11::200700a0b8482dab disk connected configured unknown
c12 fc-private connected configured unknown
c12::200400a0b8482dbd disk connected configured unknown
usb0/1 unknown empty unconfigured ok
usb0/2 unknown empty unconfigured ok
usb0/3 unknown empty unconfigured ok
usb0/4 unknown empty unconfigured ok
*4) root# cfgadm -al -o show_FCP_dev*
Ap_Id Type Receptacle Occupant Condition
c1 fc-private connected configured unknown
c1::500000e01922a001,0 disk connected configured unknown
c1::500000e01924a4e1,0 disk connected configured unknown
c1::500000e019dd3151,0 disk connected configured unknown
c1::500000e01a467321,0 disk connected configured unknown
c1::500000e01a467d91,0 disk connected configured unknown
c1::508002000065adb9 ESI connected configured unknown
c9 fc-private connected configured unknown
c9::200600a0b8482dab,0 disk connected configured unknown
c9::200600a0b8482dab,1 disk connected configured unknown
c9::200600a0b8482dab,31 disk connected configured unknown
c10 fc-private connected configured unknown
c10::200500a0b8482dbd,0 disk connected configured unknown
c10::200500a0b8482dbd,1 disk connected configured unknown
c10::200500a0b8482dbd,31 disk connected configured unknown
c11 fc-private connected configured unknown
c11::200700a0b8482dab,0 disk connected configured unknown
c11::200700a0b8482dab,1 disk connected configured unknown
c11::200700a0b8482dab,31 disk connected configured unknown
c12 fc-private connected configured unknown
c12::200400a0b8482dbd,0 disk connected configured unknown
c12::200400a0b8482dbd,1 disk connected configured unknown
c12::200400a0b8482dbd,31 disk connected configured unknown
Which part of output is indicating diskarry.. Please help me to understand....
FYI
root@# more /etc/vfstab
#device device mount FS fsck mount mount
#to mount to fsck point type pass at boot options
#/dev/dsk/c1d0s2 /dev/rdsk/c1d0s2 /usr ufs 1 yes -
fd - /dev/fd fd - no -
/proc - /proc proc - no -
/dev/md/dsk/d103 - - swap - no -
/dev/md/dsk/d100 /dev/md/rdsk/d100 / ufs 1 no nologging
/dev/md/dsk/d115 /dev/md/rdsk/d115 /global/.devices/node@1 ufs 2 no global
swap - /tmp tmpfs - yes -
/dev/vx/dsk/ossdg/exporthome /dev/vx/rdsk/ossdg/exporthome /export/home ufs 2 no logging
/devices - /devices devfs - no -
ctfs - /system/contract ctfs - no -
objfs - /system/object objfs - no -
sharefs - /etc/dfs/sharetab sharefs - no - -
How can I detect that there is an internet connection?
How can I detect that there is an internet connection?
Peter GoossensHow can I detect that there is an internet connection?
Peter Goossens
Peter,
You might want to experiment with this. It's not perfect, but...
Class
Imports System.IO
Imports System.Net
Namespace InternetConnection
Public Class SiteInfo
Private _displayName As String
Private _connectionString As String
Private Sub New(ByVal name As String, _
ByVal connectionString As String)
_displayName = name.Trim
_connectionString = connectionString.Trim
End Sub
''' <summary>
''' Gets the connection string of this instance.
''' </summary>
''' <value></value>
''' <returns></returns>
''' <remarks></remarks>
Public ReadOnly Property ConnectionString() As String
Get
Return _connectionString
End Get
End Property
''' <summary>
''' Gets the display name of this instance.
''' </summary>
''' <value></value>
''' <returns></returns>
''' <remarks></remarks>
Public ReadOnly Property DisplayName() As String
Get
Return _displayName
End Get
End Property
''' <summary>
''' A method which will add a new site to your collection of SiteInfo.
''' </summary>
''' <param name="siList">Your generic List(Of SiteInfo).</param>
''' <param name="displayName">The display name for this new instance
''' of SiteInfo.</param>
''' <param name="connectionString">The connection string for this
''' new instance of SiteInfo.</param>
''' <remarks></remarks>
Public Shared Sub AddNew(ByRef siList As List(Of SiteInfo), _
ByVal displayName As String, _
ByVal connectionString As String)
Try
If siList Is Nothing Then
Throw New NullReferenceException("The collection of SiteInfo cannot be null.")
ElseIf String.IsNullOrEmpty(displayName) OrElse displayName.Trim = "" Then
Throw New ArgumentException("The display name cannot be null or empty.")
ElseIf String.IsNullOrEmpty(connectionString) OrElse connectionString.Trim = "" Then
Throw New ArgumentException("The connection string cannot be null or empty.")
Else
If siList.Count > 0 Then
Dim findDuplicate As IEnumerable(Of SiteInfo) = _
From si As SiteInfo In siList _
Where si.DisplayName.ToLower.Replace(" "c, "") = _
displayName.ToLower.Replace(" "c, "") AndAlso _
si.ConnectionString.ToLower.Replace(" "c, "") = _
connectionString.ToLower.Replace(" "c, "")
If findDuplicate.Count <> 0 Then
Throw New ArgumentException("This is a duplicate entry.")
Else
siList.Add(New SiteInfo(displayName, connectionString))
End If
Else
siList.Add(New SiteInfo(displayName, connectionString))
End If
End If
Catch ex As Exception
Throw
End Try
End Sub
''' <summary>
''' A method which will return a boolean value to indicate internet
''' connection status.
''' </summary>
''' <param name="siList">Your generic List(Of SiteInfo).</param>
''' <param name="displayName">The display name for the instance
''' of SiteInfo to use.</param>
''' <returns></returns>
''' <remarks></remarks>
Public Shared Function InternetIsConnected(ByVal siList As List(Of SiteInfo), _
ByVal displayName As String) As Boolean
Dim retVal As Boolean = False
Try
If siList Is Nothing Then
Throw New NullReferenceException("The collection of SiteInfo cannot be null.")
ElseIf siList.Count = 0 Then
Throw New ArgumentOutOfRangeException("Count", "The collection of SiteInfo cannot be empty.")
ElseIf String.IsNullOrEmpty(displayName) OrElse displayName.Trim = "" Then
Throw New ArgumentException("The display name cannot be null or empty.")
Else
Dim findInstance As IEnumerable(Of SiteInfo) = _
From si As SiteInfo In siList _
Where si.DisplayName.ToLower.Replace(" "c, "") = _
displayName.ToLower.Replace(" "c, "")
If findInstance.Count <> 1 Then
Throw New ArgumentException("This instance is not in the collection of SiteInfo.")
Else
retVal = TestConnection(findInstance.First.ConnectionString)
End If
End If
Catch ex As Exception
Throw
End Try
Return retVal
End Function
Private Shared Function TestConnection(ByVal url As String) As Boolean
Dim retVal As Boolean = False
Try
Dim request As WebRequest = WebRequest.Create(url)
Using response As HttpWebResponse = DirectCast(request.GetResponse, HttpWebResponse)
Using dataStream As Stream = response.GetResponseStream
Using reader As New StreamReader(dataStream)
Dim responseFromServer As String = reader.ReadToEnd()
retVal = True
End Using
End Using
End Using
Catch ex As WebException
retVal = True
Catch ex As Exception
retVal = False
End Try
Return retVal
End Function
End Class
End Namespace
Example Usage
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, _
ByVal e As System.EventArgs) _
Handles MyBase.Load
Dim siList As New List(Of InternetConnection.SiteInfo)
InternetConnection.SiteInfo.AddNew(siList, _
"Test1", _
"http://dev.virtualearth.net/REST/v1/Locations/37221?o=xml")
InternetConnection.SiteInfo.AddNew(siList, _
"Test2", _
"nothing here")
InternetConnection.SiteInfo.AddNew(siList, "Test3", _
"www.google.com")
InternetConnection.SiteInfo.AddNew(siList, "Test4", _
"http://fls-online.com")
' This will return true:
Dim bool1 As Boolean = _
InternetConnection.SiteInfo.InternetIsConnected(siList, _
"Test1")
' This will return false:
Dim bool2 As Boolean = _
InternetConnection.SiteInfo.InternetIsConnected(siList, _
"Test2")
' This will return false:
Dim bool3 As Boolean = _
InternetConnection.SiteInfo.InternetIsConnected(siList, _
"Test3")
' This will return true:
Dim bool4 As Boolean = _
InternetConnection.SiteInfo.InternetIsConnected(siList, _
"Test4")
Stop
End Sub
End Class
Let me know your results please?
Still lost in code, just at a little higher level. -
How can I see whether songs in iCloud are also on the PC locally (so I can sync them with a Classic)?
In iTunes, on the View menu select 'Hide Music in the Cloud'
-
My Macbook air flash had gone for a month and I saw Apple's Macbook air flash storage drive replacement program. I'm not sure whether that program is still available for the broken device or not. Now, I'm booting from the external hard drive. Warranty has gone in October 2013..
I want to send back my macbook air back to apple store. The problem is that I bought it from US and now, I'm using it in Myanmar. If the program is free of charge for my device, it's worth trying to send back to US. Since mine is broken, I'm afraid Apple will take charges for reparing.
So, if anyone having the same problem as me, I would like to get suggestion....
Thank you!!I have no idea about how to handle the international aspect of your question.
But here is the Apple writeup about the problem and the remedy. Maybe that will help you.
http://www.apple.com/support/macbookair-flashdrive/ -
How can I make an Apple ID without credit card if the "none" tab is not visible to me?
Help me out pleaseHello, aligt9p.
Thank you for visiting Apple Support Communities.
To create an Apple ID without a credit card, there is a specific series of steps that have to be processed in order to allow the payment to be set as none on creation of the account.
Creating an iTunes Store, App Store, iBooks Store, and Mac App Store account without a credit card
http://support.apple.com/kb/HT2534
Why can’t I select None when I edit my payment information?
http://support.apple.com/kb/TS5366
If the specific steps have not been processed, a credit or debit card will be required to complete the setup the account.
However, it can be removed and payment method changed to none as long as there is not an outstanding balance.
iTunes Store: Changing account information
http://support.apple.com/kb/ht1918
Cheers,
Jason H. -
my ipod touch just shows the charge symbol on the screen and i checked whether there is a problem in the charger but it works perfectly on my iphone 4 and when my ipod is connected to the computer itunes is not recognising my device pls help me
tmplHi pranoop,
If you are having an issue with your iPod touch not being recognized by iTunes when connected to your Windows computer, I would suggest that you troubleshoot using the steps in this article -
iPhone, iPad, or iPod not recognized in iTunes for Windows - Apple Support
Thanks for using Apple Support Communities.
Sincerely,
Brett L -
the tittle is my question. I am noob , so I hope i can make my question clear. Now i 'd like to tell you more about my question:
My aim is to set a VPN server in Local lan, then ppl can connect to the VPN server, But I dont wanna all of the Local lan IP cant connet to it. So I neet to set a rule to restrick some local Ip to connect failure, just like banning so IP in a rule.such as: just like the "192.168.4.3~192.168.4.20 ; 192.168.7.3~192.168.7.20 " IPs can connect . the IPs which outside the rules can not do.
my step is following:
1) install server app
2)and then i set a VPN server , finally the VPN server can be connected successfully by local lan computer(PC or Mac)
3)But i found no restrict IP founction in Server app panel.
4)then i down load workgroup manager, and found nothing there about such a founction about IP restriction.
so can you tell me how to aproach my aim?
Please tell me in a clear detail,I am noob
thank youWon't the password restrict everyone from connecting unless they know the password?
I have never worked with a VPN server, so I can't really add any suggestions. Below are links to Apple support articles, but I'm not sure they will help you:
VPN - Set up Connection
VPN - Advanced Setup
VPN - Connect
VPN - Connect Automatically -
Why can't I connect to the update server? If I manually download SW, how do I update phone or ipad since it is not in iTunes?
ThanksI assume all of your network connections are OK, you can get to the internet and that you aren't blocked by something like an enterprise firewall. Are those assumptions correct? . My experience has been that from time to time, the update server get's "maxxed out", and if you try later it will work.
-
I have a new time capsule (replace my old time capsule). I want to erase my old one. My computer does not see the old one anymore, how do I connect it (the old TC is not connected to modem). I want to erase it and then use it as either a second hard drive (sired/sirelesly?) or as a hard drive/bridge. So,
1. why doesn't my cmputer see the old TC
2 once i have solved that, how do I erase the old one
3. Can I use the old one as a supplemental hard drive
a. wired?
b. wirelessly?
4. Can I use the old one as a range extender?
I know .. a lot of questions but I would appreciate any help.
Thankssgetraer wrote:
I have a new time capsule (replace my old time capsule). I want to erase my old one. My computer does not see the old one anymore, how do I connect it (the old TC is not connected to modem). I want to erase it and then use it as either a second hard drive (sired/sirelesly?) or as a hard drive/bridge. So,
1. why doesn't my cmputer see the old TC
2 once i have solved that, how do I erase the old one
3. Can I use the old one as a supplemental hard drive
a. wired?
b. wirelessly?
4. Can I use the old one as a range extender?
I know .. a lot of questions but I would appreciate any help.
Thanks
1. Because it is either the same IP as the new one or hidden by being plugged in as a second router.
To access it, isolate one computer from the existing network and plug it directly by ethernet to a lan port of the TC. Use the erase function in the TC to remove all the content of the hard disk.
Then go to the internet tab, connection sharing and select off bridged. You can then reconnect the TC to the network.. and the computer as well. The TC will act as bridged device.. getting IP from the main router and should then appear correctly in Airport utility.
2. I covered in 1. But you just go in airport utility manual setup. disk, and you will see the erase function. You can also set it to bridge and leave the erase until you put it back in the network.. but be careful you erase the right one.
3. You can use the old TC via wired or wireless.. although I would always stick to wired connection if possible. Speed on wireless is 10x worse than wired.
Also note the reliability goes down dramatically after 2 years.. a series 1 3 years old or more is ebay fodder unless you want to repair it. Do not trust vital data to it.. when it dies you will have issues recovering it.
4. Yes, all apple routers will function as wireless extenders. when you do that the ethernet ports turn off so it becomes a purely wireless device.. strange apple decision on what you want to use your TC for. -
I have an iMac OS 10.4. I downloaded Firefox a while ago and I had no real problems with it. Then I got this message that I should update Firefox to 3.6.16. So I hit the "Download" button and I get the "Software Update" which says "Downloading the update" with a progress bar and below it , it says "Connecting to the download server". But it gets stuck there. The progress bar has gone to the end of bar. How can I get hooked up to the Update server?
That is because that Firefox 3.6.x version has been released later than the Firefox 4 version.
If you have problems with updating then easiest is to download the full version and trash the currently installed version to do a clean install of the new version.
Download a new copy of the Firefox program and save the DMG file to the desktop
* Firefox 4.0.x: http://www.mozilla.com/en-US/firefox/all.html
* Firefox 3.6.x: http://www.mozilla.com/en-US/firefox/all-older.html
* Trash the current Firefox application to do a clean (re-)install
* Install the new version that you have downloaded
Your profile data is stored elsewhere in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Firefox Profile Folder], so you won't lose your bookmarks and other personal data. -
Find how many users are connected in the Oracle Server
Hi,
I am using Oracle 10g. My question is, is it possible to find how many users are connected in the Oracle Server. We are having one Server and we are having many client machines which will connect the Oracle.
And one more question in the meanwhile i want to take Backup of one database which client as connected. Is it get any problem to the client machine which is accessing the server. And How to take the backup from the server machine. Any commands to process.
Thank u...!Hi there.
If You run
select count(*) from v$session where username is not null;you'll get the number of users connected to Oracle server,
and yes , you could do backup while users are connect to db you are backing up.
cheers -
How can i display a image file which is placed in the applications server
Hi all,
Can any one help me how can I display a image file which is present in the application server.
With regards,
M.Ramana Murthyhi,
*& Form TOP_OF_PAGE
* text
FORM F_TOP_OF_PAGE.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
IT_LIST_COMMENTARY = IT_LISTHEADER
i_logo = Logo name
* I_END_OF_LIST_GRID =
ENDFORM. "TOP_OF_PAGE
rgds
Anver
Maybe you are looking for
-
Problem with set_item_instance_property and set_lov_property
Hello guys, I am using oracle forms 6i and new to it. I am having a multi data block. I am facing a problem when I try to set the item instance property with respect to the list type. 1) Basically, I am having a list item having three types MANUAL, I
-
F11(Query mode) and Execute Query in Oracle Forms
Hi Experts, I am working with EBS11.5.10.2 and database 9i. I am working on forms, i am new to forms. Could somebody help me how to achieve F11(query mode) functionality in APPS forms. Thanks in advance.
-
Exporting library to place on my notebook.
I know that I can backup my library to a disc (or about 10 700mb discs in my case) and use it to restore on my notebook. a) Is there a simplier way to do this rather than popping in disc after disc to backup from my desktop and then restore to my not
-
Embarrassed to say that for the first time in ages I have connected my Blackberry device to my laptop to back up and the password I thought was correct clearly isn't the one. I have tried other favourites but all faied and have now used 4 out of my 5
-
Jdeveloper remote deployment error
Dear All, I have developed a fusion web application using jdeveloper 11g. I want to deploy it to a remote weblogic server (11gR1). When i am trying to deploy it to remote server from jdeveloper it gives me following error. [04:00:14 PM] ---- Deployme