‎01-09-2008 09:54 PM
Hi
all !
I have a compiled program running on a cFP, I access this program through a web
page hosted in the controller, all is running without problem since a long time
recently I added local variables from some numeric indicators on the front panel to uses those
values to compute a simple calculus, I used local variable essentialy to
simplify wiring, all those items are in the same real time loop
since this modification the 4 indicators indicates 0.0 but the result of the
calculus is correct
so the value is present but the reading disappears
I tried with property nodes to read the values and the problem is the same except that the value isn't 0.0 but another number that is not the right one !
any idea ?
of course this isn’t critical, I can put wires and the problem is solved
but I'd like to understand why
and
it's not esthetic 😜
regards
‎01-10-2008 01:36 AM
‎01-10-2008 07:32 PM
well I know that the calculus is correct because I know what
values are used even if they aren’t printed on the front panel
I was most asking if this is a specific problem of the platform or the webpage
interface because I never experienced this kind of problem with local variable
on a classic front panel interface, if they are well employed of course.
thank you for your answer
‎01-10-2008 10:42 PM
You say you are running a "compiled" program on the cFP. Does that mean you turned it into an .exe? How are you viewing the front panel?
I may be mistaken, but I thought that the front panel of a compiled program on a cFP is not updated since a cFP is designed to be a headless system without a User interface. I did a search on the forums and came across this link.
‎01-11-2008 02:47 PM
excuse me I don't really compile, I made a build and then I access
the startup vi trough the web server.
the interface is not as good as a standard vi front panel, I think the refresh
rate of the page is a bit too slow, but it's a really easy way to access
indicators and controls of the program on the RT target, you can find more
information here
‎01-14-2008 07:54 AM
Hello!
It is expected to work like that and is described in more detail here:
http://digital.ni.com/public.nsf/allkb/FC5024A5DD6344C886256C8C0054689B?OpenDocument
Hope this helps!
‎01-14-2008 08:30 PM
‎02-21-2008 08:06 AM - edited ‎02-21-2008 08:09 AM
‎02-21-2008 08:32 AM
Hello Rodnebb!
You can check if a user is logged into your webserver through remote panels programmtically using the method called 'Remote Panel:Client Connections'. It will return an array of clusters containing connection information about the clients viewing or controlling the VI.
So when a user requests to view it from a web browser you will get info such as the IP address of the machine accessing it.
Look at the example called 'RemotePanelMethods-Server VI' in the labview\examples\remotepanel directory where this method is used. Hopes this helps!
‎02-21-2008 08:51 AM