Jump to content

Variant

Members
  • Posts

    21
  • Joined

  • Last visited

    Never

Posts posted by Variant

  1. QUOTE (Ton @ Jan 15 2009, 06:22 AM)

    I have the following questions:

    1 Which means using open application reference I will be able to communicate with my exe and this communication is done through VI server. So VI server manges different application with TCP server enabled.

    2 "Only VI server connections" Will I not be able to communicate with any other application other than labVIEW. if this is wrong what do you mean by only VI server connections.

    3 Lets say i have two exes running with different ports TCP server enabled. How does it work?

    Can you give me the levels of hierarchy of this communication. like How this whole flow works( Machine name--> ..-->Port--> Application). please explain this I want to understand clearly and 100%

  2. QUOTE (Ton @ Jan 15 2009, 06:22 AM)

    I have the following questions:

    1 Which means using open application reference I will be able to communicate with my exe and this communication is done through VI server. So VI server manges different application with TCP server enabled.

    2 "Only VI server connections" Will I not be able to communicate with any other application other than labVIEW. if this is wrong what do you mean by only VI server connections.

    3 Lets say i have two exes running with different ports TCP server enabled. How does it work?

    Can you give me the levels of hierarchy of this communication. like How this whole flow works( Machine name--> ..-->Port--> Application). please explain this I want to understand clearly and 100%

  3. QUOTE (jdunham @ Jan 14 2009, 05:21 PM)

    If you build a separate EXE, you would have to enable VI Server for that application in its own INI file in order for that to be exposed or vulnerable.

    If that wasn't the thrust of your question, then you could try again.

    Ok this is what I wanted, When I build an LabVIEW exe. In that exe ini i enable the server.tcp.enabled = True and assign it with some other port 5346. (Please correct me if my understanding is wrong). Doing this will actually make my exe as server and listens for clients to connect.

  4. QUOTE (jdunham @ Jan 14 2009, 05:21 PM)

    If you build a separate EXE, you would have to enable VI Server for that application in its own INI file in order for that to be exposed or vulnerable.

    If that wasn't the thrust of your question, then you could try again.

    Ok this is what I wanted, When I build an LabVIEW exe. In that exe ini i enable the server.tcp.enabled = True and assign it with some other port 5346. (Please correct me if my understanding is wrong). Doing this will actually make my exe as server and listens for clients to connect.

  5. QUOTE (rolfk @ Dec 29 2008, 02:00 PM)

    What is inefficient about that? It's exactly how the Substitute copy for Original is implemented only without the delete afterwards as the original file remains on disk.

    You do need to think about feelings you have. Just because something does feel inefficient does not mean it has to be so. If it works and does what you want, why going to try to make a supergalactic solution instead? Not even a NASA budget could help you there :rolleyes:

    Rolf Kalbermatter

    The advantage of substitute fir orginal copy is, I will get relinked in all the instances that are there in memory so, He just has to open the top level and Save all the VIs in memory or else he need to play with the VI Refnum and relink @ every instance

  6. QUOTE (harika @ Dec 1 2008, 07:46 AM)

    hi

    i tried as u suggested,but i didn't get the plot.i attached my plot.so,whenever the phase diff is less than -90 deg the plot should be continued and other than that plot should be stopped.plz help me out.

    thanks.

    harika.

    Send me the screen shot of the code. I dont have 8.5

  7. QUOTE (harika @ Nov 27 2008, 11:15 AM)

    hi

    i am trying to compare the varying phase against a constant value and whenever the varying phase is greater or equal to that constant,the plot should be stopped.if it is less than that constant plot should be continues.the plot is freq along x-axis and phase is along y-axis.i am using comparison function in case structure but i don't know how to plot whenever phase is less than the value.i am getting white tunnels at the out side.

    thanks.

    Harika.

    Try this

  8. I am Trying to save a VI to different Location Programatically. I am getting this Error.

    LabVIEW: A LabVIEW file from that path already exists in memory.

    Method Name: Save:Instrument

    I used find all VIs is memory after the Error. I doesnt show up the in that List. Wat could be the reason. How to force fully remove it from memory. one thing is if I stop the execution once and rerun it its working fine. i know there is memory leak. I also tried opening VI reference after Save and Closed it force fully again still it throws up the error.

  9. QUOTE (jdunham @ Nov 4 2008, 08:21 AM)

    I don't think it's safe to assume that the base file name doesn't have any numbers in it, so I think you need a more sophisticated regexp than [0-9]+

    If you use

    \s[0-9]+(?=\.vi$)

    then it will find the number right before the extension, including the leading space. This only works with the Match Regular Expression function, not the older and simpler Match Pattern function.

    However, I gotta ask what you are trying to do? Cloning VIs is way easier than making your own copies of templates. Thats how we spawn off multiple processes and multiple instances of a pop-up GUI. You can search LAVA for more details (that's how I learned about them).

    No this is different. This is to reduce the job of repeated work. How do you guys know these regular expression. How do we construct this regular expression is there any way of doing it or approaching it. Please help i need to learn that.

  10. QUOTE (Minh Pham @ Nov 4 2008, 03:19 AM)

    You have two ways to achieve this: Scan From String or Match Pattern, just look at the 'detail help' for these 2 functions, they are so powerful !!

    Here is an example on how you can do this in both methods:

    Have fun playing with String data type :yes:

    thanks for the Example

  11. QUOTE (Tomi Maila @ Nov 3 2008, 10:34 PM)

    I would do it with Match Regular Expression that you can find in the String menu. Make a regular expression that matches only the number there that you need to remove and then form the new file name from the before match and after match strings.

    Tomi

    Can you please give me an Example of Regular expression that find out the Number For this "This is Red apple 345673.vi" ...I guess the out put will be 345673 right ?

  12. I need to know the best way to do this.

    Let us say I have a template called Apple.vit . Everytime I open It it Open with a Count appended to it Like Apple 1.vi, Apple 2.vi......I am programmatically trying to save these instances of template different name. I need to remove the decimal number from the template instance..i.e I need to remove the "1" from apple 1.vi and "2" from apple 2.vi. Can anyone tell me which is the best method of doing it. Somtimes it might not be a template it can be a sub.vi which does not have this number. Scan from string throws an error for this reason....I am now doing it in round about way. I just wanted to check the Best way of doing it.

×
×
  • Create New...

Important Information

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