03-11-2019 03:12 AM
HI,
i would like to execute command (Ex:-"ipconfig " ) from labview without using systemexec.vi,and i would like to read the every update or output of command while executing in a string indicator.
Does it possible....?
Can anyone help me..... ?
03-11-2019 03:42 AM
Hi sridhar,
so you want to execute a system commmand - without using SysExec function???
Does it possible....?
It doesn't make any sense to replace the SysExec function by something else!
But maybe you can use some DotNET functions instead? They most probably also provide some "ipconfig" replacement functions…
03-11-2019 04:19 AM
03-11-2019 10:15 AM
OP likely doesn't want to have to wait until the command is done being executed to get a response. If they do something like a robocopy you get the progress of the copy pushed to the command line periodically. If it takes 1 hour to copy a file, then the system exec won't respond for 1 hour and then you'll get a huge string of all the updates it sent since the command was executed.
What you likely want is something like Pipes and there is an OpenG library for it. Here is a library I updated to show it in action.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
03-11-2019 10:36 AM
I followed this link once to see the output in real time. Uses .NET.
03-11-2019 11:57 AM - edited 03-11-2019 11:58 AM
Exactly what information are you after from ipconfig? There my be better ways to get that then using ipconfig.
I can't think of anything that ipconfig shows that changes very much besides the IP address. During boot up the IP address does change like three times as Windows Networking gets itself together and requests and receives IP address from the DHCP server.