Mindstormer Posted September 1, 2007 Report Share Posted September 1, 2007 How is it possible to find out at the server side which client pressed a button on a reentrant vi? thank you Quote Link to comment
Mellroth Posted September 1, 2007 Report Share Posted September 1, 2007 QUOTE(Mindstormer @ Aug 31 2007, 11:06 AM) How is it possible to find out at the server side which client pressed a button on a reentrant vi?thank you Can we get some more info about this application, the best would be if you could upload the VIs and/or a picture. It is more or less impossible to answer your question without any more information. /J Quote Link to comment
Mindstormer Posted September 1, 2007 Author Report Share Posted September 1, 2007 QUOTE(JFM @ Aug 31 2007, 10:59 AM) Can we get some more info about this application, the best would be if you could upload the VIs and/or a picture.It is more or less impossible to answer your question without any more information. /J Ok, First I will explain what i want to achieve I have a Reentrant vi and I published it with the web publishing tool. Now different clients can connect to it. To make it simple: on the vi is only a simple button. Now I want to know what the status of the button of every connected user/ip/client is. This information should be available at the server. I added a reentrant vi with just one button. thank you Quote Link to comment
Grampa_of_Oliva_n_Eden Posted September 1, 2007 Report Share Posted September 1, 2007 QUOTE(Mindstormer @ Aug 31 2007, 07:58 AM) Ok, First I will explain what i want to achieveI have a Reentrant vi and I published it with the web publishing tool. Now different clients can connect to it. To make it simple: on the vi is only a simple button. Now I want to know what the status of the button of every connected user/ip/client is. This information should be available at the server. I added a reentrant vi with just one button. thank you I have not played with this recently... I believe reeentrant instance have unique references. If you track the references from each instance this may help you. Another approach is to use templates (VIT) were each instance gets a unique name when opened. Otherwise you will have to develop you VI's to "drop their own bread crumbs" so you can follow that path back home. Is thise the type of info you are after? Ben Quote Link to comment
Mindstormer Posted September 1, 2007 Author Report Share Posted September 1, 2007 QUOTE(Ben @ Aug 31 2007, 12:24 PM) I have not played with this recently...I believe reeentrant instance have unique references. If you track the references from each instance this may help you. Another approach is to use templates (VIT) were each instance gets a unique name when opened. Otherwise you will have to develop you VI's to "drop their own bread crumbs" so you can follow that path back home. Is thise the type of info you are after? Ben thanks for the reply The problem is that I searched in labview and on the internet how to get these reference to each instance. But I didnt found it. So you can narrow down my problem to just finding the instance reference from a clone from a reentrant vi. And then I probably can use this reference with vi server to monitor the status of the button. I never worked with templates so I also will look further how it works Quote Link to comment
Grampa_of_Oliva_n_Eden Posted September 1, 2007 Report Share Posted September 1, 2007 QUOTE(Mindstormer @ Aug 31 2007, 08:37 AM) thanks for the replyThe problem is that I searched in labview and on the internet how to get these reference to each instance. But I didnt found it. So you can narrow down my problem to just finding the instance reference from a clone from a reentrant vi. And then I probably can use this reference with vi server to monitor the status of the button. I never worked with templates so I also will look further how it works Let the reentrant VI determines its own ref and pass it out via a queue etc. Ben BTW This thread is cross posted on NI http://forums.ni.com/ni/board/message?board.id=170&message.id=268731&jump=true' target="_blank">http://forums.ni.com/ni/board/message?boar...1&jump=true Quote Link to comment
Mindstormer Posted September 1, 2007 Author Report Share Posted September 1, 2007 QUOTE(Ben @ Aug 31 2007, 12:58 PM) Let the reentrant VI determines its own ref and pass it out via a queue etc.Ben BTW This thread is cross posted on NI http://forums.ni.com/ni/board/message?board.id=170&message.id=268731&jump=true' target="_blank">http://forums.ni.com/ni/board/message?boar...1&jump=true I tried this but the property from vi server "this vi" always references to the original vi. So how do I get the reference to the cloned vi's? Quote Link to comment
Grampa_of_Oliva_n_Eden Posted September 1, 2007 Report Share Posted September 1, 2007 QUOTE(Mindstormer @ Aug 31 2007, 10:58 AM) I tried this but the property from vi server "this vi" always references to the original vi. So how do I get the reference to the cloned vi's? Before we get into that mess, could you try the template appraoch first? The behaviour of reentrant VI's has changed with LV 8.X and I am not able to recite the rules off-hand. Ben Quote Link to comment
Mindstormer Posted September 1, 2007 Author Report Share Posted September 1, 2007 QUOTE(Ben @ Aug 31 2007, 03:06 PM) Before we get into that mess, could you try the template appraoch first?The behaviour of reentrant VI's has changed with LV 8.X and I am not able to recite the rules off-hand. Ben I dont exaclty understand how I should implement the template with the web publishing tool?And does the template need to be reentrant? Quote Link to comment
Grampa_of_Oliva_n_Eden Posted September 1, 2007 Report Share Posted September 1, 2007 QUOTE(Mindstormer @ Aug 31 2007, 11:32 AM) I dont exaclty understand how I should implement the template with the web publishing tool?And does the template need to be reentrant?If I change the source of the webpage to the template. Then its the same, I test with Ip adres, and on 2 different computers the ip adres of the original is returned. The vi, the template was made from is reentrant otherwise only one user could as control at the same time. So the template approach isnt working im afraid . So Im still looking how to get a reference to the cloning vi's thanks already I don't feel that I am serving you well. In this nugget http://forums.ni.com/ni/board/message?board.id=170&message.id=226491#M226491' target="_blank">http://forums.ni.com/ni/board/message?boar...=226491#M226491 I posted an example (see post #1) that shows you how to instaciate multiple instaces of a VIT. Sorry about the lame replies. The Q will take time to answer and doing this while working is just not possible. Ben Quote Link to comment
Mindstormer Posted September 1, 2007 Author Report Share Posted September 1, 2007 QUOTE(Ben @ Aug 31 2007, 03:42 PM) I don't feel that I am serving you well. In this nugget http://forums.ni.com/ni/board/message?board.id=170&message.id=226491#M226491' target="_blank">http://forums.ni.com/ni/board/message?boar...=226491#M226491 I posted an example (see post #1) that shows you how to instaciate multiple instaces of a VIT. Sorry about the lame replies. The Q will take time to answer and doing this while working is just not possible. Ben No no I am glad someone is trying to help me. I must leave now, but I will test this after I come back, and that will be monday. I will send u my email, and then you can add me to msn messenger Quote Link to comment
TG Posted September 3, 2007 Report Share Posted September 3, 2007 QUOTE(Mindstormer @ Aug 31 2007, 09:06 AM) How is it possible to find out at the server side which client pressed a button on a reentrant vi?thank you I too am unqualified to chime in but your problem got me thinking. Is the server launchin the re-entrant Vi's? Reason I ask is there may be a way to get at the name of the instance if it is set up as a clone. Maybe that could be used to get at the status of the button. (With Vi server) Quote Link to comment
Mindstormer Posted September 4, 2007 Author Report Share Posted September 4, 2007 QUOTE(TG @ Sep 2 2007, 03:47 AM) I too am unqualified to chime in but your problem got me thinking. Is the server launchin the re-entrant Vi's? Reason I ask is there may be a way to get at the name of the instance if it is set up as a clone. Maybe that could be used to get at the status of the button. (With Vi server) yes the server has the clones in its memory so I know there must be a way possible. But I only dont know what way. But maybe I gonna fix my solution with ASP.NET.I read that it cant be coupled to labview code. And I think with ASP it is possible to find out which user pressed a button Quote Link to comment
Ton Plomp Posted September 4, 2007 Report Share Posted September 4, 2007 QUOTE(Mindstormer @ Sep 3 2007, 10:05 AM) yes the server has the clones in its memory so I know there must be a way possible. But I only dont know what way.But maybe I gonna fix my solution with ASP.NET.I read that it cant be coupled to labview code. And I think with ASP it is possible to find out which user pressed a button Could you tell us how you initiate the connection. But LV 8.2.1 has some special Remote panel application properties. EDIT: Also look at this http://thinkinging.com/2007/03/29/reentrant-vi-clone-name/' target="_blank">post on Jim Krings blog Ton Quote Link to comment
Mindstormer Posted September 19, 2007 Author Report Share Posted September 19, 2007 QUOTE(tcplomp @ Sep 3 2007, 09:53 AM) Could you tell us how you initiate the connection.But LV 8.2.1 has some special Remote panel application properties. EDIT: Also look at this http://thinkinging.com/2007/03/29/reentrant-vi-clone-name/' target="_blank">post on Jim Krings blog Ton That post was what I was looking for I think, Now I did it with ASP. An example of asp code that is steering labview: Set lvApp = CreateObject("LabVIEW.Application") lvapp.BringToFront VIPath = "c:\inetpub\wwwroot\test.vi" Set VI = lvApp.GetVIReference(VIPath) VI.FPWinOpen=True%> <B>OS Name is :</B> <% =lvApp.OSName%><br> <B>Target CPU is :</B> <% =lvApp.AppTargetCPU%><br> <B>OS Version is :</B> <% =lvApp.OSVersion%><br> <B>OS UserName is :</B> <% =lvApp.UserName%><br> <%Set VI = lvApp.GetVIReference(VIPath) Call VI.Call(ParamNames, ParamVals)%> Degree C: <INPUT NAME="degc" SIZE="30" VALUE="<% =ParamVals(0)%>"><P> Degree F: <INPUT NAME="degf" SIZE="30" VALUE="<% =ParamVals(1)%>"><P> <INPUT TYPE=SUBMIT VALUE="Return"> <%set vi=nothing%> Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.