Remote Panel exe no custom icon
I have a built exe which has remote panels enabled and is working properly, however there are two less than ideal issues I am trying to resolve:
1) The custom icon I have developed for my exe only appears in the titlebar of the server VI but not in the remote panel. The default LabVIEW icon is displayed on the remote panel. I assume this is because the remote machine's OS has not registered the icon of the exe and is using the icon registered to the run-time engine on the remote machine. I would like to know if anyone has found a workaround to getting custom icons to show properly in the remote panel?
2) There seems to be a slight delay in actually loading the front panel of the main VI in the remote browser, or any pop-ups remotely for that matter. You can visually see the LabVIEW toolbar (run, stop, VI icon, etc.) for a split second before the VI shows as running on the remote panel. This occurs when calling a subVI set to open front panel when called. Even if VI Server is used to load a VI and the VI is run well before the front panel is opened there is still a lag on the remote machine that displays the VI before it is running and shows the LabVIEW toolbar briefly. Does anyone know how to improve this? For pop-ups it looks a little awkward (I know pop-ups are probably not recommended for remote panels but my application requires a limited amount of them).
Steffan
Joe_S wrote:
Steffan,
Let's start with the first issue. I have gotten a chance to test out the first problem on my own, creating an executable that runs with remote panels in LabView 2010 and I was not able to reproduce the problem with the custom icon. The icon that I made for the VI shows up on the remote computer. I did not see any CARs relating to this issue. One thing you can try is running your program in the LabView development environment to see if the icon still won't show up on the remote computer. That way you can determine if the issue is within LabView or within the executable. You can also do the same thing to see if you still see the delay in the LabView toolbars.
Hope that helps! Have a great day!
Regards,
Joe S.
Application Engineer
National Instruments
Hi Joe,
Thanks for the reply. For the custom icon, that is created in the build specification for the exe so it can't be run from the development environment to test. Which icon resolutions did you specify? Does your remote test machine only have the run-time engine installed? I tried specifying icons for all resolutions but that did not make a difference. One additional thing to note is that my server machine is running Windows 7 and the remote machine is running XP. Could that be a possible cause?
As far as the toolbars delay, that is present in both development environment and as an exe so that one should be easily reproducible. Let me know if I am missing something here.
Steffan
Similar Messages
-
How do I run Remote Panel Connection Mgr on server with just runtime & exe
We are running a LabVIEW 6.1 executable on a PC with Windows2000. We have remote panels enabled and the system seems to be working fine. However, we would like to be able to run the Remote Panel Connection Manager in order to monitor the load we placing on our communications system. I can run it while in development mode, but the option is no longer available under Tools once I create the exe. On the actual server machines we do not have the full development system (only the runtime engine) installed. Is there a way to run the Remote Panel Connection Manager while running just the exe with the runtime engine?
The manager is a separate VI. It's located in \project\remotepanel.llb. You could try building an separate exe from it or including it as a support file in the exe you want to run as a remote panel. If it does run, you might have to create a custom menu in order to call it from your exe.
-
Custom Icon for Windows.exe from a Mac
It doesn't seem possible to insert a custom icon for a Windows executable when working on Captivate on a Mac, is that right? The documentation (below) seems to gloss over this shortcoming.
Custom Icon
You can customize the icon that is displayed for the executable file. Click Browse (...) to add a custom icon for your file. Ensure that the icon file has a .ico extension (on Windows)/.icns (for Mac).I tried submitting this same problem as a feature request and/or bug report.
Unfortunately, and somewhat disconcertingly, the Captivate Bug Report form also doesn't work. No matter how thoroughly I entered my request, I got these error messages:
The following error(s) must be corrected before this form can be completed:
Please enter your name
Please enter your E-mail address
Please select if it is feature request or the bug report.
Please select a product
Please enter the issue description -
I have several machines running LabVIEW 8.2.1 my application uses remote panels embedded in a browser to display the front panel of the running VI. One machine is responding with the brower window coming up, but when the VI is launched it is displayed on the remote machine as a stand-alone remote front panel. About half of the machines have had InternetToolkit intalled, at least one machine that is working does not. the machine in question does not. Could this be part of the problem.
The enclosing web pages are generated by a .Net web server running on port 80, LabVIEW web server on port 81.
Example object block from the generated page. Other than machine and vi information I do not se any differences between the applications.
<!-- LVRemotePanel -->
<OBJECT ID="LabVIEWControl" BORDER=1
CLASSID="CLSID:A40B0AD4-B50E-4E58-8A1D-8544233807AE"
CODEBASE="ftp://ftp.ni.com/support/labview/runtime/windows/8.2/LVRunTimeEng.exe"
WIDTH="722" HEIGHT="740" >
<PARAM name="server" value="http://hostname.domain.class:81" />
<PARAM name="LVFPPVINAME" value="Force.vi">
<param name="REQCTRL" value="true">
<EMBED src="http://hostname.domain.class:81/.LV_FrontPanelProtocol.rpvi82" LVFPPVINAME="Force_13.vi"
REQCTRL="true" WIDTH=722 HEIGHT=740 TYPE="application/x-labviewrpvi82"
PLUGINSPAGE="http://digital.ni.com/express.nsf/express?openagent&code=ex3e33&">
</EMBED>
</OBJECT>
Any thoughts or help greatly appreciated.
Thanks,
PhilKevin,
Thanks for the reply.
Attached is a screen shot of the problem. This is from my home machine which does not have a LabVIEW environment installed, but does have runtime plug-ins for 7.1 & 8.2.1. I also get similar results on my development machines.
The serving machines are all on campus.
The remote front panel on the left is what I expected to see embedded in the 'loading ....' field on the Web page on the right.
The application [ The iLab Project ] is complex and uses a collection of .Net Web Services to provide access to remote labs using the Internet.
Access to an iLab Lab Server running on port 80 is authorized by a Service Broker, normally running on another machine. The Lab Server, LabVIEW environment and measurement hardware are normally on the same machine, iLab Lab Server using port 80, LabVIEW WebServer using port 81.
Once the user is authorized and redirected to the Lab Server the Lab Server ensures that LabVIEW is running and the specified VI is loaded, a web page is generated on port 80 that includes the OBJECT block to display the front panel from port 81. Example OBJECT block included in my original post.
I have used this code on three other 8.2.1 Lab Servers with different VI's and the Front panel is displayed in the web page as expected.
Variations of the code have been used since LabVIEW 7.0. Prior to version 8.2 the InternetToolkit, GWeb Server and a custom CGI VI were used to generate the contents of an in-line frame to display the Front Panel. Since 8.2 I generate the Object block directly as part of the aspx processing. Is it possible I need the InternetTookit installed even if it is not used, I'm pretty sure one of my working systems has never had the toolkit installed, the machine in question has not.
I hope this makes my problem clearer, any help, pointers or further questions will be appreciated.
Phil
Attachments:
remotePanelBehavior1.jpg 216 KB -
Remote Desktop Re-arranging Desktop Icons
I have a Windows 8.1 Pro desktop customized with the Control Panel | Personalization | Display option to smallest possible size for desktop icons. This works well enough for a login by console.
As soon as I connect by Remote Desktop, the arrangement of icons on the desktop is completely scrambled. Is there any way to remember the arrangement of desktop icons and have these be the same for both console and remote desktop connections to Windows
8.1?
WillHi Will,
"Dynamic scaling level update" is a new Windows 8.1 feature.
Remote Dsktop Connection now also updates the scaling level in the remote session to match the client-side configuration. you must change it on the local PC and it will automatically be updated in the session.
Karen Hu
TechNet Community Support -
Remote Panels under Virtual OSs?
I've been asked a question from a customer...
If they run a LabView compiled VI under a Virtual OS (like Microsoft's), would they need separate Remote Panel licenses for each Virtual OS? As an example, if a user has 5 Virtual XP OS's running, and a compiled VI running in each one, and they want 4 users to access the remote panel for each VI running, would they need 1 20-user RP license, or 5 5-user licenses?Hi Steve,
I am just going now, but I will look into this tomorrow - if you dont get an answer by the morning.
My first question is, if you have one instance of XP and you deploy and exe with remote panels, with 4 users - how many would you need?
My guess is each instances of XP would need to be licensed indivually and therefore you would need licenses for each instance of XP (and then what ever the users effect is).
Kind Regards,
Kind Regards
James Hillman
Applications Engineer 2008 to 2009 National Instruments UK & Ireland
Loughborough University UK - 2006 to 2011
Remember Kudos those who help! -
Invalid server IP address for Remote Panels under LV 8.0.1
The other messages for troubleshooting the "invalid server IP address" were very helpful with getting my EXE to operate as a remote panel. But there is still one issue that I cannot resolve that seems to be caused by the 8.0.1 upgrade.
The remote panel work perfectly using IE6 on a computer that has the LV 8.0.1 FDS or PDS installed. When I use a computer that has LV 7.1 or no LV at all, the invalid server IP address appears inside the border of where the VI should appear on the HTML page. The connection to the remote computer is correct, the HTML file is delivered by the web server in LV, but the panel part of the page returns the error.
Does the part of the HTML that loads the Run Time Engine need to be updated for 8.0.1? Will the LV 8.0 RTE work for a remote panel on an EXE compiled for LV 8.0.1?
The code is:
var obj = '<OBJECT ID="LabVIEWControl" CLASSID="CLSID:A40B0AD4-B50E-4E58-8A1D-8544233807AD" WIDTH=1216 HEIGHT=915 CODEBASE="ftp://ftp.ni.com/support/labview/runtime/windows/8.0';
if (lng.indexOf("fr") != -1) { obj = obj + '/French'; }
else if (lng.indexOf("de") != -1) { obj = obj + '/German'; }
else if (lng.indexOf("ja") != -1) { obj = obj + '/Japanese'; }
obj = obj + '/LVRunTimeEng.exe">';
Michael Munroe, ABCDEF
Certified LabVIEW Developer, MCP
Find and fix bad VI Properties with Property InspectorThanks for the suggestion, Tunde. After further experimentation, it seems that 8.0.1 was not the problem. I worked perfectly when I removed the <parameter server=... > line that I added manually.
Michael Munroe, ABCDEF
Certified LabVIEW Developer, MCP
Find and fix bad VI Properties with Property Inspector -
How can I disable messages generated by Remote Panel?
I created an application (EXE) to server its panel to other network clients.
I used the Tools > Web Publishing Tool to generate a HTML code to create two different web pages to access this application using Web server:
- Embedded (for some users who need visualize the panel in real time).
- Monitor (to display panel snapshots to users updated every 1 second).
I don't need anyone controlling the remote panel, so I used this option:
Tools > Options > Web Server: Browser Access and checked Allow Viewing (not controlling) for every client connected.
Ok, both are working fine. But it a user try to Request control of VI on the Embedded page (right click in the remote panel), the application running in the server displays a message: Denied control request from XXX: Check permissions.
The embedded page stills working fine, but in the Monitor page that message appears in a box (see attached picture below)..
Is there a way to disable all messages in the remote panel? I realized that I need to access the computer where the application EXE is running to close the message.
I'm thinking in two solutions:
- Unable the right click menu in the embedded page to avoid clients request control of the remote panel.
- Run a code in the application to erase messages generated.
Has anyone an idea how to solve this?
Thanks in advance,
Klein
Message Edited by Klein on 08-06-2008 12:54 PM
Attachments:
Remote Panel message.jpg 10 KBHi Dpcamargo,
I'm already using monitor with a delay of 1 second and this doesn't seems real time like remote panel visualization.
But you sent me a good tip: use java code to cancel right clicks at all....
I will try this solution.
Hey, we are both brazilians! So, thank you so much, Dpcamargo. -
Remote Panel and DSC interfering?
Hi, I wonder if DSC or OPC is interfering to view my remote panel in a executable, since I installed them and now I cannot see my web page. I mean the instructions says close Labview to gain acces with the executable, does DSC or the shared variabel Server or something is interfering?
What happened:
I have a program which monitors temperature for rooms with fruit, We acquire the temps through modbus RTU, and We see that info through internet.
First I did it with the modbus libraries, and It worked, We had the web page working through remote panels and the web publishing tool.
But now I saw the DSC toolkit for Labview, and excited about that I migrated the whole functionality to the IO servers, and until the very end, when everything else works ok, the web page or remote server doesn't works, works with the VI but not with the EXE.
The first time I followed this, and I did this time again with not succes
http://digital.ni.com/public.nsf/allkb/7F95D43D3F50FCAC8625710E000068E1
Currently state:
My Web server is started and works in development, I made a webpage named TRY.html, and it works in Labview with the VI.
I know that the plugin doesn't works on chrome, but just to let you see that the problem is not IEXPLORER, whetn the web page is static it works on chrome too.
With IEXPLORER (right) it works in chrome (left) it doesn't
Working on IExplorer
So I followed the steps from the instructions, added the web page to my project, added to the build, and built
Then I modified my NIconfigserver file, and CLOSED labview entirely, the tutorial says so, I closed at least as much as I used to do before.
My ni config
# Web server configuration file.
# Generated by LabVIEW 14.0
# 13/06/2015 11:44:16 p. m.
# Global Directives
NI.AddLVRouteVars
ErrorLog "$LVSERVER_ROOT/logs/error.log", level=2, anew
TypesConfig "$LVSERVER_ROOT/mime.types"
LimitWorkers 10
LoadModulePath "$LVSERVER_ROOT/..;$LVSERVER_ROOT/modules;$LVSERVER_ROOT/LVModules"
LoadModule LVAuth lvauthmodule
LoadModule LVSnapshot lvsnapshotmodule
LoadModule LVRFP lvrfpmodule
Listen 8000
# Directives that apply to the default server
NI.ServerName LabVIEW
DocumentRoot "C:/SMC/data"
InactivityTimeout 60
SetConnector netConnector
AddHandler LVAuth
AddHandler LVSnapshot snap
AddHandler LVRFP
AddHandler LVSnapshot
AddHandler fileHandler ""
AddOutputFilter chunkFilter
DirectoryIndex index.html
My ini
[SMC]
server.app.propertiesEnabled=True
server.ole.enabled=True
server.tcp.paranoid=True
server.tcp.serviceName="My Computer/VI Server"
server.vi.callsEnabled=True
server.vi.propertiesEnabled=True
WebServer.Enabled=True
WebServer.TcpAccess="c+*"
WebServer.ViAccess="+*"
DebugServerEnabled=False
DebugServerWaitOnLaunch=False
saveFloaterLocations=True
find.viListFlags=0
LastErrorListSize=0,0,0,0
paletteStyle="NamedIcons"
And so, I open my EXE, then reload the webpages, and I can see that the web server is started, because it shows the html, but I cannot link to my EXE. It says that can't find my VI
Requested VI is not loaded into memory on the server computer
If I close the EXE the server stops
Remote Panel connection refused by specific server, Make sure Labview Web server is enabled
And that's my history
It's always hard for me to get the web page working, but this time I've spent hours without success
I did the test in my development pc and in the target PC and is the same, on these PC's the webpage was working before using DSC.
So any help will be appreciated
My best regardsThe DSC Runtime Engine will be sufficient for the deploying the project to a new computer. The Run Time Engine is equivalent to the DSC Module, but you can't do any programming with it. You will need to purchase a separate license for the Runtime license for each deployment computer also.
What is the DSC Run-Time System and When Should I Use It?
http://digital.ni.com/public.nsf/allkb/E56DB8726DB68F288625770E00594351
Thanks,
Frank
Application Engineer
National Instruments -
Remote panel and selective control access through Security with DSC
Hi Everyone,
I looked around to see what labview had to offer concerning security of remote panel and all the solutions I've found only propose full access to a remote panel, or none. The login page is not an option for me as everyone on the intranet can access the remote panel for monitoring but not everyone can have control to the buttons on it.
With the DSC module, I can give securities to the different controls and it works great with the exe, if I log in or out, the controls appears or disapears. Unfortunately, with remote panels, those controls are always visibles. Furthermore, when I log in from a remote panel, all the other remote panels get logged in with the same username and priviledges. When I log out, same thing, it logs out all the other remote panels. So the last guy who logs in gives its priviledges to every one else who is monitoring the remote panel at that time. when he logs out, he logs everyone out. I used a reentrant vi hoping that this would solve the problem but it didnt.
I would like to do what my colleague does with Advantech without any problem. He has only 1 .exe is running on the server and whoever connects to it through webserver, just needs to log in and he has all the priviledges of an guest, operator, admin, etc.. with access to controls and features accordingly. All this without interfering with the other people using the remote panels. This colleague has always been doubtful about the capabilities of labview to do SCADA systems and uptil now, I've been able to prove him wrong.. please help me continue
There are workarounds, using remote desktop to the server instead of webserver but it definitely is not as practical for the client and it will need quite some work to to synchronise all the exes open from the differents sessions, through the use of shared variables, binding and securities.
Thank you for your help.
Solved!
Go to Solution.Thank you very much for your reply Jordan.
The NI security info is on the server (local domain with groups and users), and the running exes as well. The remote panel is not supposed to be accessed by internet, at least not yet, but just by the computers on the network and thinkline computers who are directly connected to the servers. the remote panel is accessed through the simple url: http://serverip/Application.html
There is no problem with accessing the remote panel of the exes on the server from another computer on the network. But there are several security issues when logging in and out with the NI Security Programmatic Login and logout VIs through the remote panel..
The 1st problem occurs when several people access the remote panel at the same time. In my setup, everyone is allowed to check what's happening on the front panel of the running exe, go through the tabs, check the graphs, the tables, etc.. , but only the administrators and the operators can send commands to the machines and the production line through this remote panel. Hence some buttons are accessible to all users, while others are only accessible depending on the privileges of the person logged in.
So like I said in the 1st post, I configured some buttons to be accessible only by the users of the admin group. When the exe runs, it's perfect, if I log in and out with an admin account, the buttons appears and disappear accordingly. But when I check the remote panel, those admin buttons are always visible, even if I am logged in as a guest or even logged out. Is it because the remote panel only needs minimum runtime engine and doesnt use the dsc runtime engine? if so, any work around?
Furthermore, another big problem is that if I login as an admin in one remote panel, then login as an guest in another remote panel, and then logout back from the first remote panel, it says: "User Domain/Guest logged out". Hence, my second login logged out my first user. I can actually see the admin buttons appearing and disappearing on the exe when login as admin and guest from the different remote panels.
So that's it, I would like my remote panel to behave like a normal scada system, with one exe running in the back (on the server) and with all the users accessing it through web server. Several users might/will access the remote panel at the same time and each of the users have a login/password that grant some of them the privileges to take some actions while giving the others only monitoring rights.
I hope that I have been more clear in this 2nd post,
Thank you again for your time.
Best Regards,
Tom. -
Automatically create folders then attach custom icon to each folder.
This is my current working script, does anyone know how I can now add customer icons to the folders in Applescript
Many thanks
Matt
set theWeekNumber to ""
repeat
display dialog "Please enter the week number:" default answer theWeekNumber
set theWeekNumber to text returned of result
try
if theWeekNumber = "" then error
set theWeekNumber to theWeekNumber as number
exit repeat
on error
set thePrefix to "INVALID ENTRY! "
end try
end repeat
set theAFolder to "AFolder_WK" & theWeekNumber
set theBFolder to "BFolder_WK" & theWeekNumber
set theEnd to "_PSD"
set theEnd2 to "todo"
tell application "Finder"
make folder at folder "Studio:Users:matthewchild:Desktop" with properties {name:theAFolder & theEnd}
make folder at folder "Studio:Users:matthewchild:Desktop" with properties {name:theBFolder & theEnd}
make folder at folder "Studio:Users:matthewchild:Desktop" with properties {name:theAFolder & theEnd2}
make folder at folder "Studio:Users:matthewchild:Desktop" with properties {name:theBFolder & theEnd2}
end tellThe following script uses a handler that will set a custom icon to a file item. In this example, you are prompted for the icon file and the file item to set to the icon, but you can just pass the desired image and folder paths directly to the handler.
<pre style="
font-family: Monaco, 'Courier New', Courier, monospace;
font-size: 10px;
font-weight: normal;
margin: 0px;
padding: 5px;
border: 1px solid #000000;
width: 720px; height: 340px;
color: #000000;
background-color: #FFD891;
overflow: auto;"
title="this text can be pasted into the AppleScript Editor">
-- assign an icon to a folder or file (requires Developer Tools)
-- any image file can be used for the icon
property startingDirectory : (path to home folder) -- a place for the file choice dialogs to start from
on run -- example
try -- check for tools
get "/Developer/Tools/" as POSIX file as alias
on error
error "Developer Tools not installed"
end try
set iconFile to (choose file with prompt "Choose an image file for the icon:" default location startingDirectory)
if (do shell script "/usr/bin/file " & quoted form of POSIX path of iconFile) does not contain "image" then -- check image file
error "The icon file is not an image"
end if
tell application "Automator Runner" to tell open panel -- using this panel allows the choice of a file or folder
set floating to true
set can choose directories to true
set can choose files to true
set allows multiple selection to false
call method "setShowsHiddenFiles:" of it with parameters {false}
set title to "Select an item to set to the custom icon:"
set prompt to "Set Icon" -- this is actually the button text
activate
if (display it in directory startingDirectory) is 0 then -- cancel button
error number -128
else
my (setCustomIcon from iconFile to (it's path names as text)) -- just one item
end if
end tell
end run
to setCustomIcon from imageFile to destination
Set the icon of a destination file item to the image contained in imageFile
parameters - imageFile [various]: an imagefile for the icon (Finder alias or POSIX text)
destination [various]: a destination item to set to the icon (Finder alias or POSIX text)
returns [boolean]: true if icon is set, false otherwise
set imageFile to imageFile as text
if imageFile starts with "/" then -- check for POSIX file
set imageFile to imageFile as POSIX file as alias
else
set imageFile to imageFile as alias
end if
set destination to destination as text
if destination does not start with "/" then -- check for POSIX file
set destination to POSIX path of destination
end if
try
tell application "Finder" -- copy the icon image to a temporary file
(duplicate imageFile to (path to temporary items) with replacing) as alias
set tempImage to quoted form of POSIX path of the result
end tell
set tempResource to quoted form of (POSIX path of (((path to temporary items) as text) & "TempResource"))
do shell script "/usr/bin/sips -i " & tempImage -- add a Finder icon to the image
do shell script "/Developer/Tools/DeRez -only icns " & tempImage & " > " & tempResource -- get the icon resource
do shell script "/usr/bin/file " & quoted form of destination -- determine the destination file type
if the result contains "directory" then -- folder
set theTarget to quoted form of (destination & "/Icon" & return) -- create Icon\r file
set Command to "rm " & theTarget & "; " -- remove any existing custom icon
set Command to Command & "/Developer/Tools/Rez -a " & tempResource & " -o " & theTarget & "; " -- add resource file to a folder
set Command to Command & "/Developer/Tools/SetFile -a V " & theTarget & "; " -- make it invisible
else -- file
set Command to "/Developer/Tools/Rez -a " & tempResource & " -o " & quoted form of destination & "; " -- add resource to a file
end if
set Command to Command & "/Developer/Tools/SetFile -a C " & quoted form of destination -- set custom icon attribute
do shell script Command -- do it
on error errmess number errnum -- oops
log errmess
-- display alert "Error " & errnum message errmess buttons {"OK"}
return false
end try
try -- remove temporary files
do shell script "rm " & tempImage & space & tempResource
end try
tell application "Finder" to update (destination as POSIX file)
return true
end setCustomIcon
</pre> -
How to assign file extension and custom icon to executable?
Hi all,
I was reading an old thread about this issue:
http://forums.ni.com/ni/board/message?board.id=170&thread.id=116925
I need to try to do this. My application uses a custom file extension (i.e. .abc). Upon installation I would like to:
1. Assign My App and custom icon to the file class (extension .abc).
This could be done by manipluting the registry (http://msdn.microsoft.com/en-us/library/bb776856(VS.85).aspx)? This could be a problem with Vista s unless registry operations occur during installation any changes are placed in a VirtualStore, correct?
2. Enable the double-clicking of .abc file type to pass the data in the file to my VI (exe).
According to the File Handling Guidelines of Jean-Pierre Drolet (http://www.openg.org/tiki/tiki-index.php?page=File+Handling+Guidelines) the best way to do this may be using LabVIEW as an ActiveX server.
I know that when I build an executable (or installer?) there is the option to enable LabVIEW to act as an ActiveX server. This much I know I need to do.
I thought I would open this discussion again as others may be interested and there doesn't appear to be a completely clear solution available. Please do contribute where you can.
Cheers,
Battler.battler. wrote:
My application consists of Event Structure.
How to register for ommand line event so that when a user double-clicks on a .abc file I can handle the opening of it?
This needs to work (the files need to open) not only when the application is closed but also when it's already open.
Anyone have ideas?
The solution to that is to implement a DDE server in your application (and add DDE entries to the registry on installation). There are still DDE functions in LabVIEW vi.lib\Platform\dde.llb but they are considered depreciated and have been removed from the palette, also because Microsoft is trying to tell everyone that DDE is depreciated and sort of unsupported too. But it is still the mechanisme to pass actions from the shell to running applications.
I hesitate to send you over to lavag.org where there have been some discussions about this years ago. If you go there you would do good to employ a friendly attitude. That board is run all by enthusiasts and idealists and they are all great folks but react not very friendly to people with an attitude.
Rolf Kalbermatter
Rolf Kalbermatter
CIT Engineering Netherlands
a division of Test & Measurement Solutions -
CFP2120 remote panel shows "downloading panel 0% of 0 bytes" but never loads the panel
body {margin:8px} .LW-yrriRe {font:normal x-small arial}Good morning,
I've been trying to run a remote panel with a cFP2120 upgraded to LabVIEW
2009 & fieldpoint 6.05 (it was on labview 8.5 with 6.01) to no avail, the
program runs ok in the project manager and runs on the fieldpoint but the remote
panel doesn't. I would like to know if anyone else runs remote panels with 2009
and cFP2120s and if so was there any tricks required?
Things I've tried:
Upgraded and installed latest labview Runtime.
Tried on PC's running XP/XP Home/VISTA.
Tried with both Mozilla and Internet Explorer
Tried using a different port
Disabled firewall.
Using full name for html file
check html source code.
New project with simple program (flashing LED A on cFP), this works
Tried on two different cfP2120's
tried reformatting and reinstalling the s/w on the cFP
The front panel works fine with LabView 8.5 and FieldPoint 6.0.2
thanks for any help.I believe that this may be a problem with the conversion from 8.5 or 8.6 to 2009. We recently ran into a problem that was similar to this. The steps that we performed to correct this were:
1.) Created a project (with only one VI called test_vi_851.vi) in LabVIEW 8.5.1
that I built into a real-time exe with a remote front panel and got all of that
working.
2.) Closed LabVIEW 8.5.1.
3.) Manually rebooted the cFP-2120
into Safe-Mode (by flipping the dipswitch on the front of the controller).
4.) From MAX, formatted the disk by right-clicking the controller under
Remote Systems and selecting Format Disk.
5.) After the controller rebooted,
reset my network configuration and name of the controller and hit Apply
(controller rebooted again to apply these settings).
6.) After the
controller rebooted (still in Safe-Mode), I added software to the controller
(FieldPoint 6.0.5 with LabVIEW 2009, controller rebooted again).
7.) After
the controller rebooted, I manually switch the Safe-Mode dipswitch back to off
and then rebooted the controller again from MAX.
8.) Launched LabVIEW 2009
and manually opened the VI (test_vi_851.vi, just the VI, not the project).
9.) I went to File»Save As... and selected the option Copy - create copy on
disk»Substitute copy for original.
10.) I then chose to name this copy
test_vi_2009.vi. Then I closed the VI, which brought me back to the LabVIEW 2009
Getting Started window.
11.) Selected Empty Project and then targetted the
cFP-2220.
12.) Enabled the Web Server by right-clicking the
target»Properties»Web Server»Enable Web Server. Then I deployed this setting to
the controller by right-clicking the target»Deploy.
13.) Returned to MAX and
rebooted the controller.
14.) After the controller rebooted, I manually
added test_vi_2009 by right-clicking the target»Add»File... .
15.) Opened
test_vi_2009 from the project and created a new html file (called mypage.html) using the Web Publishing Tool.
16.) FTPed mypage.html
to the appropriate folder on the controller.
17.) Returned to MAX and
rebooted the controller.
18.) After the controller rebooted, I ran the
test_vi_2009.vi from the project and was able to access the remote front panel
(http:///mypage.html).
Please give these steps a try, and let me know if you run into any further problems.
Nick Keel
Applications Engineering
National Instruments
Nick Keel
Product Manager - NI VeriStand and Model Interface Toolkit
National Instruments -
Opening a Remote Panel of the Top Level vi for an executable
Hello Everyone
I was wondering how you would open up a remote panel for the top-level vi in an executable?
I have created a LabVIEW application and have tested opening the remote panel when it is running in the full labview development suite - this all works fine. I simply go operate>connect to remote panel and enter the server address, the port (8000) and the vi name using the path "My Project.lvproh/My Computer/main.vi" format.
However, if I then build this application into an executable I do not seem to be able to open a remote panel - it might be that I am just entering the VI name incorrectly.
with VI name = "main.vi" or with VI name = "C:\builds\main.exe\main.vi" and the exe. running I get the error:
Connecting to remote panel server...
Requested VI is not loaded into memory on the server computer
However I am not sure how else I would enter it.
The main.ini has the following configuration:
server.app.propertiesEnabled=True
server.ole.enabled=True
server.tcp.acl="0800000008000000"
server.tcp.enabled=True
server.tcp.paranoid=True
server.tcp.port=6363
server.tcp.serviceName=""
server.vi.access=""
server.vi.callsEnabled=True
server.vi.propertiesEnabled=True
WebServer.Enabled=True
WebServer.TcpAccess="c+*"
WebServer.ViAccess="+*"
DebugServerEnabled=True
DebugServerWaitOnLaunch=False
Both machines have LabVIEW 2011 Profesional Development System SP1 on so I do not think it is a limited remote access licence issue.
Any suggestions as to where I am going wrong would be much appreciated.
Cheers
John
Solved!
Go to Solution.It appears that you can infact use remote panels within an executable.
The problem I had was that I had left the web server port for the remote panels the same as the LabVIEW development environment. That meant that the main LabVIEW web server was getting in the way of the web server that was associated with my built application.
With the application's web server on a different port and the VI in memory (and the file in a library/directory external to the exe if it is not the top level VI), you just need to specify the VI name such as main.vi .
Solved! -
Custom icon reverts to standard Pages document icon...
I'm having trouble with permanently assigning custom icons to Pages '08 documents.
Say I've got a document, I'll create an icon, set the icon via the info panel, everything is fine. The next time I click on the document with the new icon, the document opens and the custom icon disappears, reverting to the stock Pages icon.
This doesn't seem to be a problem with any other documents or folders from other programs, just Pages '08.
But I'm thinking this is more likely an OS issue than a Pages issue.
ThanksFor some reason, the custom icon is deleted. (Bet that comes as a shock.) I have an old version but it is apparently no different. Essentially a Pages document is a folder that Finder treats like a single file:
ls -a test.pages/
./ .typeAttributes.dict index.xml.gz
../ Contents/ thumbs/
When you add a custom icon, a file is added to the folder:
./ .typeAttributes.dict Icon? thumbs/
../ Contents/ index.xml.gz
When Pages backs up the document it includes the custom icon in the document:
ls -a Backup\ of\ test.pages/
./ .typeAttributes.dict Icon? thumbs/
../ Contents/ index.xml.gz
But it disappears from the original:
ls -a test.pages/
./ .typeAttributes.dict index.xml.gz
../ Contents/ thumbs/
(So next time, it disappears from the backup, too.)
It almost looks as though Pages renames the original document to create the backup and then creates a new "original" but this isn't correct because the filenode numbers stay the same on the original. So I don't know what causes it but it seems to be something peculiar to Pages so I'm not sure how it could be avoided except by not using Pages or not giving Pages documents custom icons.
- cfr
Maybe you are looking for
-
Error Message while Activating Integration Model for PDS
Hi, When we are trying to activate IM for SNP subcontracting PDS,it gives us an error message "No authorization to create Product ". All master data for that particular Product,plant and Subcontractor are in place in APO. Product is also extended to
-
Problem in factory method, how to pass arguments ?
Hello it's me again :) here's the code : package print; import java.util.*; import static print.Print.*; interface Fact<T> { T create(String n);; T create (); class PetColl { public String toString() { return getClass().getSimpleName();
-
Is it ok if I get rid of 06?
Guys, I have just installed Keynote 08 Trial and I'll test it for another 2 weeks before I buy my license. I've been checking folder with "WhatSize" and I could see that K06 is incledibly bigger than K08. On folder is 1.9GB big while the other doesn'
-
Feature Request: Ability to copy and paste development settings in LR Mobile
Please add the copy and paste feature for develop settings in LR Desktop to the Mobile version.
-
Read/write from OBIEE repository data using API
Hi, I need to create a my own application that could read/write from the repository data, the same as I can do using the BI Admin user interface (like creating dimensions, hierarchies, levels, etc.). Are there any API's to do that? I'm usually workin