Execute Shell Command in WebVI

Updated Sep 20, 2021

Reported In

Software

  • G Web Development Software
  • LabVIEW NXG Web Module

Issue Details

In LabVIEW, we can execute the shell command by using System Exec VI. May I know how can I do the same in webVI development by using LabVIEW NXG Web Module or G Web Development Software?

Solution

LabVIEW NXG Web Module and G Web Development Software do not have functions similar to System Exec VI. To accomplish functions like System Exec VI, you need at least to utilize server-side language to accomplish. Under NI software environment, this can be achieved by using LabVIEW NXG Web Module or G Web Development Software with LabVIEW Web Service.

Additional Information

You should be careful on this implementation because without setting up proper security with correct algorithm, you might be open for a Denial-of-Service (DoS) attack.