Jump to content

Sharon_

Members
  • Posts

    104
  • Joined

  • Last visited

Posts posted by Sharon_

  1. Hi all,

    I have a small problem here with my labview. There is an event structure in my vi which is placed inside a statemachine. If there is an event- the event struct responds only when the current state is equal to the 'even struct' state. Can I make my VI to respond to the events, anytime regardless of the current state ? :lightbulb:

    I dont think it is possible without adding some codes (like passing to the event structure state before moving to the next state) right?:wacko:

    Exp.vi

    Thanks,

    Sharon

  2. Well. The easiest way (If using windows) is probably to load an active X or .net browser into a labview container and when a DocumentComplete event occurs; scrape the page for the info you want.

    Hi Shaun,

    Do I need to use labview internet tool kit for this? I dont know what you mean by 'DocumentComplete event'. I am sorry. Could you please give me more hints on that?

    Thanks for your time..!!!:worshippy:

    Sharon :unsure:

  3. Hi friends,

    I've got an interesting project( atleast for me :thumbup1: ).

    I have a set of of equipents which are controlled by a webpage(html with button and slide bars..etc). We can also control the devices using modbus- I am using my labview code here.

    And we can read back the status of the device (in labview or any other modbus software) registers even if the devices are controlled from web page controls.

    What I would like to know is that, Is it possible for us to load the webpage in labview and push the webpage button from labview(automatically or manually) and read back the status registers? :wacko: Interesting? :oops:

    I did browse thru' NI website but I couldnot find anything related to that.:frusty:

    Please help me...!!!! :worshippy:

    Regards,

    Sharon

  4. Make a batch file and call it from your LabVIEW code. There's no way this will work; have you tried doing the same thing by opening a command line and pasting in the exact same line that you're calling from LabVIEW? With a batch file, the interpreter gets a chance to parse the entire file and find the destination of the jump. When you enter it all on one line like that, the interpreter handles each line one at a time. It sees the goto command but it hasn't yet seen the target of the goto so it fails.

    Hi Ned,

    The same Vi will be run in several machines. Is it possible to 'add' my batch file in the VI in stead of calling it from a location? :lightbulb:

    Thanks for your time..!!! :yes:

    Sharon

  5. Do not know why, but this seemed a fun thing to try

    So I have been playing this this off and on. I now have a VI that toggles the sound mute button, it works fine in edit highlight mode but is a little unpredictable when not highlighted, would need to play around and put a few waits in place. I am sure some LabVIEW purists will come up with a better solution

    post-7256-073589300 1281012911_thumb.png

    sound_mute_toggle.vi

    Thank you very much Danny. :worshippy:

    I just learned how to write shell scripting in VI.

    -Sharon

  6. Hi friends,:thumbup1:

    I am trying to execute batch file commands in Labview thru' System Exec.vi..

    I could run the commands if there is no 'jumping'. I wrote the following script to hide some folders on a machine, if the computer name matches to some value.

    @echo off

    IF %COMPUTERNAME% ==MyMachine goto MyMch ELSE

    attrib C:\KK -s -h

    exit

    :MyMch

    attrib C:\KK +s +h

    exit

    If I run the above as a .bat file everything is fine. But the same code added in my Vi but it is not working.:frusty:mY2.vi

    Please help..!!! attached is my vi.

    Thanks for your time...!!! :worshippy:

    sharon

    P.S

    The following VI(mY1.vi) with multiple dos commnads is okie...mY1.vi

  7. Hi friends :wub:,

    Could anyone please tell me how to add filters in an excel sheet using Labview...? :wacko:

    I dont how to use property node for this. Nothing is happening.

    Thanks for your time..!!!

    :worshippy:

    Sharon

    Hi friends,

    I found the following post in ni forum. But there is a problem- the autofilter LED is always OFF.:oops:

    Is it related to any version problem..? I thought I could rewrite the code to set the AutoFilter :blink:

    Ni Labview Excel

    Sharon :ph34r:

  8. Hello, I posted a topic to get help with a simple pass/fail counter. That helped me a lot with my application.

    Now I want to count the failure type, I'd like to use a boolean array as the input.

    I hope you can help.

    I'm attaching the original counter, and the idea I want to implement...

    Hi,

    Here is the solution to the problem.

    post-16569-126146950831_thumb.jpg

    -Sharon

  9. Hi Sharon

    One way to do this is to use the Description and Tip of a control.

    When the VI is running and the user hovers the mouse over the control the Tip Strip will appear. When the user open the Context Help and hovers over the control the Description will be updated.

    No need for events, as it all handled internally.

    post-10325-125955114719_thumb.png

    Thanks for the reply jgcode. That's exactly what I want. It is so simple...uff I'm sorry...:D

  10. Hi friends :wub:,

    I am creating a VI where I have a lot of options to be used by the users. So, I want to use some kind of help menu - e.g when we move the mouse pointer over the controls , Labview automatically shows some hint -for t seconds and disappears or it should disappear when the mouse is moved from the object . :ph34r:(in the event structure(Mouse Move)?!)

    It is not a pop up menu, where the user needs to click something to close the menu..

    Now the question is - how to create/show 'hint' messages? :wacko:

    Thanks for your time....:worshippy:

    Sharon

  11. Hi Sharon,

    Well that was fun, I have a solution for you, I am sure others will give you a better one.

    Basically your VI object Class needs to be a ControlTerminal in this case and not Numberic, note the attached file picks up Diva.vi from C: not D:

    Though this change works I think you need to be a little more generic in your code. The Diagrams[] returns an entry for each case in your case structure, I would make it loop round for each case, and then use a Diag - AllObjs[] on each of these Diagram, you then need to go through all the objects in that Diagram.

    An alternative way of going about this especially if you want to make this a more generic tools is to use the TRef Traverse for References.vi as you starting point.

    01Case.vi

    Thank you Danny and Ben :worshippy:...

    Definitely I wouldn't have selected 'control' terminal...:yes: coz' juniors like us think the object is a numeric and add 'numeric' terminal.

    Actually I tried to change the label without placing inside the case structure and it was ok.Inside cluster-didn't work. That's why I wanted to ask masters like you and I got the answer..

    Thank you very much..!!!! :thumbup1:

  12. Hi friends :worshippy:,

    I am back again..:wacko:

    I am getting the following error when I am trying to change the label of a numeric indicator placed inside a cluster.

    Error 1057 occurred at Open VI Object Reference in 01Case_Cluster.vi

    Possible reason(s):

    LabVIEW: Type mismatch: Object cannot be type casted to the specified type.

    I dont why.. I have been trying to fix this problem for an hour but couldn't.:throwpc:

    :ph34r:

    I have attached the VI along with this post for your reference... please help..

    Thanks for your time..!!!

    Sharon

    01Case.vi

    Diva.vi

  13. Hi friends,

    I would like to whether we can group some mathematical elements like something shown in the picture.

    The local variables and the number of local variables are project dependent. So I want to create these things programatically in VI scripting.

    first I want to combine elements and place them repeatedly...is it possible or Should I use SubVis to implement this..?

    Thanks in advance..!!!

    Sharon

    post-16569-125715246196_thumb.jpg

  14. To create a case for every value you can:

    1) remove empty cases (you now have one case)

    2) use the (size of the enum strings - 1) to determine how many new frame to add.

    Note: I changed the example to create a new VI instead of open an existing one since I don't know the context of your use case.

    hope this helps

    Thank you very much Dan, rolfk and Shaun . :rolleyes: You people are really great and this forum really rocks..!!! :wub::yes:

  15. Cross post.

    Sharon, you should not cross post the same message to different places unless you don't get an answer. Even if you do, you should include a link to the other discussion, so that people can look and see that it was answered there.

    Hi Yair,

    I am really sorry..!:wacko:

    I thought LAVA was an independent community like NI-Forum.

    This will not be repeated again...:yes:

  16. A ring control only is a number. Its datatype does not contain any information as to how many elements the Ring Control contains, since that can be changed at runtime through one of its properties, while datatype information has to be defined at compile time. So there is no automatic way to have a case structure adapt to a Ring Control since there is nothing to adapt to, in comparison when you do the same with an enum.

    The scripting interface of the case structure should have a property that is an array of strings and that should allow to define the number of cases and their values.

    Hi,

    Manually it is okie . I can see the 'Add case for every value'. But while writing VI scripts I dont find any options like that.

    I have attached my VI along with this post for your ref.

    Could you pls tell me what is wrong with my VI..?

    Thanks for your time..!!!

    Sharoncase_enum.vi

  17. Hi,

    When we connect enum or ring(with items 0,1,2,3,4,5..) with case structure, the case structure shows only 2 cases - default value and one more.

    Is it possible to display all the cases, when the cases are connected to the structure.

    The problem is, I want to do this programatically using VI scripting and I dont know which property to change..

    Please help..!!!!

    Thanks in advance....!!!!

    -Sharon

    case.vi

×
×
  • Create New...

Important Information

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