LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to execute commands with out system exec.vi in labview

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

0 Kudos
Message 1 of 6
(3,333 Views)

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…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 6
(3,316 Views)

The requirements you described are met by SysExec. Why replace it?

Certified LabVIEW Architect
0 Kudos
Message 3 of 6
(3,303 Views)

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.

0 Kudos
Message 4 of 6
(3,278 Views)

I followed this link once to see the output in real time.   Uses .NET.

Message 5 of 6
(3,268 Views)

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.

 

 

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 6 of 6
(3,249 Views)