Jump to content

Fredxxx

Members
  • Posts

    11
  • Joined

  • Last visited

Everything posted by Fredxxx

  1. Hey everybody, i have a little problem here. On my block diagram i have a numeric control terminal . I want to drop a VI Server reference and a digital numeric Refnum form my existing control on the block diagram. I already tested around with the "New VI Object" Node, but figured out, that it`s not that easy Thanks in advance. Fred
  2. Hey John and everybody whos reading, thanks a lot, the aproach with the installer was succsessful. The installer deploys the lvsw file directly after installation (not on application startup!). Concerning the topic of the difference between RemotePanelServer and the WebApplicationServer: In my opinion every setting i took in app.ini and niwebserver.conf was for the remotepanelserver. I conclude that, because in both files i using the remotepanelserver port(8000) and while the WebApplicationServer is on port 8080. So everthing works fine so fa, BUT.... :-) I have still problems with some shared variables i am using in my project for connecting the main.vi with the webmethods. They are not working on the other TargetPC where the executable is run. I already sitched on "deploy shared variables at startup" in the executable build properties. Do i have to do anything else???? So thanks a lot! Greetz Fred
  3. Hey John, thanks for your advise. I will try it with the Installer, like you said. The problem with the RemotePanelServer and the WebApplicationServer is, that i need both for my program. This is because the RemotePanelServer gives access to the WebServerRootPath (default is National Instruments\Labview2010\www). I use this Root Path as a Shared Folder over the Network, to dynamically exchange data between the HostPC and the ClientPC, which uses the WebInterface. This is the reason I have to approach the RemotePanelServer and the WebApplicationServer separately... Greetz Fred
  4. Hey everybody, once again i have some trouble with my webservice VI and hope you guys can help me out! Iam using LV 2010. This time I want to start my Webservices through an executable. I have a project with a MainVI which interacts with the WebServiceVis. It already worked fine, when i started it from the developer Environment. Now I held on to the Instruction from NI and created an executable after these specifications: http://digital.ni.co...625778800609FF2 I tested the build executable on another computer. I avoid to use the LV developer environment on this PC, so i did not build and deploy my webservice before i start the executable. The MainVi is working, but the webmethods are not! I get no Error Message. I just can´t access my web methods over the browser. I give you the code of the application.ini: [TestApp] WebServer.Enabled=True WebServer.Port=8080 and the code of the niwebserver.conf # Web server configuration file. # Generated by LabVIEW 10.0 # 06.06.2011 13:39:20 # # Global Directives # ErrorLog "$LVSERVER_ROOT/logs/error.log" LogLevel 3 CustomLog "c:/Programme/National Instruments/LabVIEW 2010/resource/webserver/logs/access.log" "%h %l %u %t \"%r\" %>s %b" TypesConfig "$LVSERVER_ROOT/mime.types" ThreadLimit 10 LoadModulePath "$LVSERVER_ROOT/modules" "$LVSERVER_ROOT/LVModules" "$LVSERVER_ROOT/.." LoadModule LVAuth lvauthmodule LoadModule LVSnapshot lvsnapshotmodule LoadModule LVRFP lvrfpmodule LoadModule dir libdirModule LoadModule copy libcopyModule Listen 8000 # # Directives that apply to the default server # ServerName LabVIEW DocumentRoot "C:/Programme/National Instruments/LabVIEW 2010/resource/webserver/../../www" Timeout 60 AddHandler LVAuthHandler AddHandler LVSnapshotHandler .snap AddHandler LVRFPHandler AddHandler dirHandler AddHandler copyHandler DirectoryIndex index.html KeepAlive on KeepAliveTimeout 60 I have two suspicions what could be the problem. First, the instruction says nothing about adding the Web Service Build file( application.lvws) to the executable Build. Perhaps, i have to do that, to get my executable to run.... Second, I don´t know with what WebServer i interact. In LV2010 there is the RemotePanelServer and the WebApplicationServer. When I now write "WebServer.Enabled=True", what Service is invoked? The NI documentation does not distinguish between RemotePanelServer and the WebApplicationServer... In my System the RemotePanelServer runs on port 8000 and the WebApplicationServer runs on port 8080. It´s not possible to let them use the same port. Lot´s of question. If something is not understandable or you need more Code to get the context, let me know! Thanks to anybody who´s reading my mess ;-) Greetz Fred
  5. Hey Ned! Thanks a lot, it's working. I set the port number for the project unter My Computer/ Properties. Then i added a "*" (access granted to everybody) to the access lists. And now i can open my MainVi from every application instance i want. I use the OpenApp node with machine name "127.0.0.1" and the port number i set before! You guys are great! Greetz Fred
  6. Hey all! Ned point me here to this thread, because i had a similar problem like NeilA. I want to connect a webmethod Vi with a Main Vi on another application instance. I have rebuilt the solution appendage of Nathank and Ned and partly succeeded with Neds: I can connect the two VIs, when i start them not out of project, but out of the windows explorer (Main Labview Application). With Nathanks appendage I get an error, because, even when i have a project open, the Webmethod VI throws me an error, that no project is found and so i can´t get an application ref. So what i wanna do, is to connect the Webmethod and the Main.vi, even when the MainVI is run through a project. What i think is, that i need to find out what port number the open project has, so i can uniquely select it. But maybe my approach is wrong, like NeilA iam a pretty rookie with G. I hope you guys can help me fixing the problem. Thanks a lot Fred Ps.: I attach a Screenshot of my working Version, which i rebuild from Ned. This works for the Main Labview Application instance. Like I said, i want to get it work for the MainVI in a project :-)
  7. Hey all! I got a Problem here and hope perhaps you can help me. I have two VIs: a Main.Vi that constantly produces data and a webmethod.vi (Block Diagram attached), which calls for that data and publish it to the web. I have already set up a WebServer in the ProjectExplorer, where i added the webmethod VI to the Sourcefilelist. This should work fine. The problem is, that i can not retrieve the data from the Main.vi. Precisely, I don´t get the Ref of the Main.Vi, when I run the Webmethod.vi through the URL. I guess, that the node "Open VI Reference" doesn´t work with Web Services. Is that so? What can i do do get this webmethod.vi to work?? Thanks a LOT, Greetz Fred
  8. Hello, this time i have a really difficult problem. I to trigger a Building process of an FPGA-Bitfile in a project programatically by scripting. I failed with two different ways aprroching this problem: First i tried to get the reference of the Bitfiles in the project to trigger the building procss by an invoke node. But this failed, because a FPGA-BuildSpecification has an abnormal class, so i can not go to a more specific class than ProjectItem. Second i used the BuildTargetsProgrammatically.vi in the example path //\National Instruments\LabVIEW 2010\examples\project\programmatically build. I integrated BuildTargetsProgrammatically.vi as a SubVI in my MainFile. In the end this method works, i can trigger the building process of normal executables, but not of FPGA bitfiles. Does anybody has a solution or an advise for this Problem? Greetz Fred
  9. Hey friends, thanks a lot for your help. Especially the advice with UNDO is very useful!!! Greetz Fred
  10. Hello everybody, my aim is to rename all different objects, nodes, constant, in a huge program, which have a specific prefixx ( f.e.. XX_ ) as Value or as label. Normally i would use the find-dialogbox, search for the string "XX_" and replace it with the new rrefix (f.e. New_). But i have to do this with scripting programatically. Does anybody know a function or a routine, which can do this? Thanks a lot! Greetz Fred
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.