-
Posts
104 -
Joined
-
Last visited
Content Type
Profiles
Forums
Downloads
Gallery
Posts posted by Sharon_
-
-
hi,
I'm not sure I fully understand what you mean but maybe you could use variant attributes for that, I think it's pretty cool to associate a name (string) to set set of parameters.
See quick example attached in LV8.6.
Hope this helps
Antoine,
Thanks for the VI . My problem is, I dont want to create an array of Indicators I am using on the front panel. I want my VI to search for it automatically and output the value.
AFUN1(input)--->{SubVI contains a front panel element called AFUN1}--->(output) value of AFUN1
-Sharon
-
Hi all,
I have a subVI to which the input of its indicators name. The output of the subVI should be the value of the indicator. How do I search/match Label names and get the output?
For e.g:
My main VI is designed to give 'AFUN1' as input and expects an output from the subVI.
Thanks for your time..!!!
Sharon
The first line should be read as:
I have a subVI to which the input is one of its indicators name. Sorry for the typo.
-
Hi all,
I have a subVI to which the input of its indicators name. The output of the subVI should be the value of the indicator. How do I search/match Label names and get the output?
For e.g:
My main VI is designed to give 'AFUN1' as input and expects an output from the subVI.
Thanks for your time..!!!
Sharon
-
Hi all,
In my VI , I have a 'Tab Control' and if I press enter key ( e.g :Automatic Testing) - the control goes to some other page( Manual Control) in the Tab Control. But I want to stay on the same page. How do I configure it?
Thanks for your time..!!!
-Sharon
OKay..I found it. We just need to go to properties of the page control to configure it. I was looking for the options in 'VIEW' menu.
-Sharon
-
If it's your dialogue. Why not just bypass it completely or put a switch in to disable dialogues (maybe log it to a file instead).
If it's not your dialogue (i.e in another application) then there are some suggestions here.
Hi Shaun,
Thank you for the link. I am finishing my project..!!!
Regards,
Sharon
If it's your dialogue. Why not just bypass it completely or put a switch in to disable dialogues (maybe log it to a file instead).
If it's not your dialogue (i.e in another application) then there are some suggestions here.
Hi Shaun,
Thank you for the link. I am finishing my project..!!!
Regards,
Sharon
-
Hi all,
Those pop up menus are not generated from my labview application. I am loading a webpage into Labview for testing some buttons. I can call the button's call back function using labview+Javascript method. Since the test is to be carried out fully automatically I need to press Ok to go ahead.
I can change my webpage parameters and do everything what I want but I dont know how to click this 'Ok' because the function is something like this:
if(!confirm( "Are you sure")) return;
And I dont know how to bypass it.
Thanks,
Sharon
-
-
The top half of the files you posted contain functions that your web browser interprets to update the page based on values read from the server.
I don't think you will be able to use this method to check the status of the valves.
I went to the Rotork site and found a page that describes the Pakscan product listed in the AJAX code of your files.
http://www.rotork.co...canethernetdemo
According to the documentation, the device supports modbus. You should be able to communicate with the Pakscan this way.
If you are trying to write an application to test / validate the Pakscan UI, I don't think your current method for retrieving the device data will work.
Hi Phillip,
Yes you are right. But Is it possible to read AJAX strings in LabVIEW.? I am reading 'AJAX for the Absolute beginner' now aah.. .I think I need a lot of time to understand how things work..uff
I found some posts related to AJAX in LabVIEW - but not very useful..
Sharon
-
Hi friends,
I am developing a VI to test webpages.The webpage is just like our LabVIEW front panel with LED indicators and button/slider controls. I have simulators to see the changes on the pages.
But what happens is, there is no the change in html Source Code. If it is not changing then how am I going to parse the page and get the results?
Or Am I looking at the wrong data? Isn't it source code?
For instance:
For this case, the source code is :
For this :
Source code:
There is absolutely no difference between these two files..
And I have no idea about web page technologies.. Please help..!!!
Thanks for your time..!!!
Sharon
-
Hi all,
Is it possible to change values of front panel control while Dialog pop menu is active? I mean without clicking 'OK' button of the dialog menu and wait for it to disappear.
I am using 'One button Dialog' function.
I am developing automatic testing with dialog menus - sometimes I need to change to change my front panel values.
Thanks for your time..!!!
-Sharon
-
You can append a random variable to the URL. But first a quick primer on URLs:
- "http://" is the protocol
- "www.example.com" is the host name (the computer the web page is on)
- "/some/place.html" is the path
- "?random=SomeRandomValue" is the query string
The query string is a question mark (?) followed by a set of "variable=value"s, separated by ampersands (&). So if your URL is http://www.a.com/b.html you could make it http://www.a.com/b.html?rand=1234. If your original URL already had a query string (e.g. http://www.a.com/b.html?a=1) then you'd use http://www.a.com/b.h...?a=1&rand=1234. That will force the page to reload because the browser recognizes that could be a different page.. Just remember to use a different random each time.
That's a common problem in a number of programming situations not just limited to LabVIEW. The HTTP protocol has metadata saying how long to keep a cached copy around and also metadata to say if a file is newer than another copy. I'm not sure if your web server isn't sending that data, it's sending the wrong data, or LabVIEW isn't respecting that.
Hi Mike,
Yeah...it works.. Yes it does. Thank you very much...
-Sharon
P.S:
for other junior Labview developers. the '?' symbol could also be followed by ".html"-(for eg: http://abc.com/read.cgi?page=templates/admin_masterconfig.html&Sharon=12)
in that case we will use only '&' symbol like "&random=xxx" not one more '?random=xxx'- it will show an error.
-
Hi friends,
I am developing a LV application where I load webpages in Labview and I test the LED/Slider bars of the webpages. I can change the values of LEDs and other indicators thru' a simulator.
But the changes are not reflected in the webpage because my Labview browser is loading the previous page(from memory..?!). I tried 'Refresh' invoke property- didn't work.
Is there a way to clear memory and load the webpages?
Thanks,
Sharon
-
Hi all,
Yeah. It was some kind IT virus.. Everything seems to be okie today. I took half day leave because of this problem, yesterday..
Thank you all..!!!
-Sharon
-
Hi all,
I have been developing some applications in LV 2010. I have a lot of backup files on our server . Suddenly all my VIs have been rolled back to very old version(date) of my application. It is opening the same old- (' template' )VI again and again no matter which file I open. This problem is driving me crazy. It is LV or some kind of Virus? Is there a solution for this?
Please help...
Sharon
-
No. But you do need "Windows".
Here is a .NET example of what I mean.
Hi Shaun,
Your Vi is very useful in loading the webpages.My next step is to click the button shown on the webpage. I know that I need to use some events like 'OnClick'. But I dont know how to use it with the functions inclusded in the VI. If I simply add onclick event- my labview crashes.
Or does the functions mentioned in the attachment VI support only for browser related events(whatever we in the property window)?
Could somebody help me...!!!?
Thanks for your time..!!!
Sharon.
-
Hello,
It's possible, do things in that order :
1. set the graph property "Y Scale.Uniform Marker Spacing?" to false
2. set the graph property "Y Scale.Range.Maximum" to 65
3. set the graph property "Y Scale.Range.Minimum" to 1
4. set the graph property "Y Scale.Marker Values[]" to an array of DBL [1;2;64;65]
Hope this helps
Hi Antoine,
I tried but the scale is still 1 to 65, though the value are invisible. I would like to see if it possible to get the y axis values(1,2,64 and 65) with a uniform spacing.
Thanks for your time..!!!
Sharon.
-
Here's a potential hack to retry the connection if you get an error. If you create a LV2 style global / action engine to store your TCP/IP connection info, you can place that VI inside your MB query and reset the connection if you get an error 66 or 56 or whatever.
I can't compile it down to 7.1 but included in the zip file as 8.6 if someone else can down convert it.
Hi bbean,
Your VI just works great. Thank you very much for sharing it with us.
-Sharon
-
Hi ,
Is it possible to have discrete values on Y axis?
I mean the values like---- 1 2 63 64. .
I would like to have something like this.I am not interested in other values.
65 |
64 |
2 |
1 |
________________________(x --->)
I browsed thru' all the examples given and tried some property values. Nothing worked.
-
Something like this.
Thank you..!!!
-
Hi friends ,
I have a simple while loop with a 'Wait' function ( 20sec) placed in it. How do I read the elapsed time say every sec ? My indicators get updated only after the delay- no matter what timer function I use.
Is there another way to implement this? Delay with elapsed time feature. Because I want to know how much I have to wait .
Sharon
-
Hi all,
I am getting the same error if I wait for say t(approx 10 sec)> sec. But I checked the time out with 100s and 180 sec. There is no effect of the value settings. Attached VI if for your ref.
Apart from the VI I am using only 'TCP Open Connection' function. Do I need to change any network config of my PC?
Thanks for your time..!!!
Sharon
-
Hi friends,
Thank you very much for your replies. The problem was with the network card. I replaced the card with a brand new one and it worked. But I am still not sure how it affected my application. Anyway it is a lesson learnt.
Thank you..!!!
Sharon
-
Hi friends,
I am developing an application where I need to send modbus commands thru' TCP/IP, to a mastercontroller. But , sometimes I am getting the following error and I dont know how to figure it out. Because it happens sporadically.
I checked the VI server and the settings seem to be ok.
Could you please help me??
Thanks for your time..!!!
Sharon
-
Hi,
For other softwares it is no.of non-defective modules/total modules. How do we measure the quality of a labview application?. Is there a formula for this?
I am a little bit confused.
Thanks
Sharon
How to search object Label and read its value?
in LabVIEW General
Posted
Hi hugo_fr,
Thank you. This is what I want to do.
Hi Ben,
Your link was too much for a beginner like me to understand. But someday I will learn it.
AFUN1(input)--->{SubVI contains a front panel element called AFUN1}--->(output) value of AFUN1
Input_Label(Label_A)---> ----> Output_Value(Value of Label_A)
Thank you all..!!! Have a nice weekend..!!!
Sharon