Jump to content

Sharon_

Members
  • Posts

    104
  • Joined

  • Last visited

Posts posted by Sharon_

  1. Perhaps this is what you need ...

    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. biggrin.gif 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

  2. 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 worshippy.gif. 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 thumbup1.gif

    -Sharon wacko.gif

  3. 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?

    post-16569-0-00024200-1302239076_thumb.p

    For e.g:

    My main VI is designed to give 'AFUN1' as input and expects an output from the subVI. rolleyes.gif

    Thanks for your time..!!! worshippy.gif

    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.frusty.gif

  4. 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?rolleyes.gif

    post-16569-0-02964200-1301540744_thumb.j

    Thanks for your time..!!!

    worshippy.gif

    -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?rolleyes.gif

    post-16569-0-02964200-1301540744_thumb.j

    Thanks for your time..!!!

    worshippy.gif

    -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. wacko.giffrusty.gif

    -Sharon

  5. 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..!!! thumbup1.gif

    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..!!! thumbup1.gif

    Regards,

    Sharon

  6. 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. rolleyes.gif

    I can change my webpage parameters and do everything thumbup1.gif what I want but I dont know how to click this 'Ok' because the function is something like this:frusty.gif

    if(!confirm( "Are you sure")) return;

    And I dont know how to bypass it.

    Thanks, worshippy.gif

    Sharon

  7. 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.. wacko.gif.I think I need a lot of time to understand how things work..uff unsure.gif

    I found some posts related to AJAX in LabVIEW - but not very useful.. oops.gif

    Sharon

  8. 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? rolleyes.gif

    Or Am I looking at the wrong data? Isn't it source code? oops.gif

    For instance:

    post-16569-0-49709900-1299735351_thumb.j

    For this case, the source code is :

    primary.html

    For this :

    post-16569-0-56088700-1299735420_thumb.j

    Source code:

    standby.html

    There is absolutely no difference between these two files..lightbulb.gif

    And I have no idea about web page technologies.. Please help..!!!blink.gif

    Thanks for your time..!!!worshippy.gif

    Sharon

  9. 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..!!! worshippy.gif

    -Sharon

  10. 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..thumbup1.gif Yes it does. Thank you very much... worshippy.gif

    -Sharon biggrin.gif

    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.oops.gifbiggrin.gif

  11. 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?

    post-16569-0-20863100-1298528149_thumb.j

    Thanks,

    Sharon

  12. 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

  13. 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...!!!? worshippy.gif

    Thanks for your time..!!!yes.gif

    Sharon.blink.gif

  14. 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. unsure.gif

    Thanks for your time..!!!

    Sharon.

  15. 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.

    post-549-0-21084900-1296143335_thumb.png

    post-549-0-41775000-1296143370_thumb.png

    post-549-0-61816200-1296143379_thumb.png

    post-549-0-20064300-1296143389_thumb.png

    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.worshippy.gif

    -Sharon

  16. 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.blink.gif

    65 |

    64 |

    2 |

    1 |

    ________________________(x --->)

    I browsed thru' all the examples given and tried some property values. Nothing worked. oops.gif

  17. 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 ? rolleyes.gif My indicators get updated only after the delay- no matter what timer function I use. frusty.gif

    Is there another way to implement this? Delay with elapsed time feature. Because I want to know how much I have to wait .wacko.gif

    Sharon

  18. 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..!!!

    LAVAG.zip

    Sharon

  19. 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..!!!worshippy.gif

    Sharon

  20. 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.frusty.gif

    I checked the VI server and the settings seem to be ok. throwpc.gif

    Could you please help me??

    Thanks for your time..!!! worshippy.gif

    post-16569-0-30918100-1295414250_thumb.p

    Sharon

×
×
  • Create New...

Important Information

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