08-23-2006 04:53 AM
08-23-2006 06:01 AM - edited 08-23-2006 06:01 AM
Message Edited by unclebump on 08-23-2006 06:03 AM
Message Edited by unclebump on 08-23-2006 06:05 AM
08-23-2006 06:03 AM
hi there
you can use the netsh environment on the command line. for example
netsh set address name="LAN-Verbindung" source=static addr=10.0.5.99 mask=255.255.255.0 gateway=10.0.5.1
see windows help for more information.
08-25-2010 07:47 AM
Hi, its a really interesting stuff to read. Did anyone try doing it ?
One thing that I wanted to know was: How long does it take to do this ? Since Im using a time critical application, can this entire operation happen in 100 milli seconds ?
Will be glad to hear from you.
Regards
Sreedhar
08-25-2010 08:11 AM
@Sreedhar T wrote:
Hi, its a really interesting stuff to read. Did anyone try doing it ?
One thing that I wanted to know was: How long does it take to do this ? Since Im using a time critical application, can this entire operation happen in 100 milli seconds ?
Will be glad to hear from you.
Regards
Sreedhar
I have used this for a program that needs to have a host IP address for High sped cameras. I have it change the IP address to the required address and change it back when I am done. Here is a very simple Labview version of this code with out the switch back.
08-25-2010 09:52 AM
@Sreedhar T wrote:
Hi, its a really interesting stuff to read. Did anyone try doing it ?
One thing that I wanted to know was: How long does it take to do this ? Since Im using a time critical application, can this entire operation happen in 100 milli seconds ?
Will be glad to hear from you.
Regards
Sreedhar
If you want to know how long it takes, run it yourself. You certainly do not need LabVIEW to run a DOS command. If I recall, it's going to be pretty dependent on your OS and pc. I also don't recall ever coming close to 100 msec but it's been a few years since I've done it and the timing was not at all critical for me.
08-25-2010 10:02 AM
You can set the system exec not to "wiat until complete". This will return an error code and you can react to that.
08-30-2010 04:49 AM
Hi,
Could you please explain me: "set the system exec not to "wiat until complete"."
Is it done in LabVIEW ? if yes, how and where.
I tried running this batch file on my PXI-8109, but it is taking some 3-4 sec. Any help to improve this will be highly appreciated. I need to complete the entire operation with-in 100ms.
Regds
Sreedhar
08-30-2010 06:55 AM
In the code that I sent the system exec is the VI that looks like this.
The boolean that is on top is the wait until complete boolean. Set this to true and look for the return code.
08-30-2010 07:08 AM
Sorry for the trouble. After I checked your code, I was pretty clear what you meant.
But, I'm still facing the timing issue, it is taking almost 2-3 seconds for its completion. By making the "Wait till Completion" as false, I am only releasing the CPU for my internal operations, but I cannot use the new IP address untill it is actually changed.
Thinking to implement virtual ip concept, will keep posting
thanks.