LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

systemexec.vi input

Solved!
Go to solution
Dears,
 
C:\Documents and Settings\admin\Desktop\devcon\i386
 
Inside this folder devcon.exe was there.
if we give the command devcon find usb*  it will show all the usb devices attached in the system.
please give a screenshot of how to run this in systemexec.vi
 
Thanks & Regards,
Mathan


Message Edited by mathan on 05-28-2008 02:11 AM
0 Kudos
Message 1 of 11
(5,055 Views)
Solution
Accepted by topic author Mathan

Hi mathan,

this works. Smiley Happy

Mike



Message Edited by MikeS81 on 05-28-2008 09:28 AM
Message 2 of 11
(5,049 Views)

Nope mike,

it results in error 267.

[Edit: Hey now its working without any problem.]

Thanks



Message Edited by mathan on 05-28-2008 03:24 AM
0 Kudos
Message 3 of 11
(5,039 Views)
You will get error 267 if the "working directory" input to the System Exec VI is not a valid path to an existing directory. Please double-check your path entry, and also make sure there are no non-printable characters, like extra spaces or carriage returns in the path.
RayR
Message 4 of 11
(5,008 Views)

JoeLabView wrote:
Please double-check your path entry, and also make sure there are no non-printable characters, like extra spaces or carriage returns in the path.
RayR

Dear JLV,
 
Yes your suggestions are correct. The path entry i chosen was wrong and mike's example corrects it.
 
Thanks,
Mathan
 
Message 5 of 11
(4,999 Views)
Glad it works out for you 🙂
 
It's often the simple errors that we miss..  😉


Message Edited by JoeLabView on 05-28-2008 08:38 AM
Message 6 of 11
(4,994 Views)
" ... and also make sure there are no non-printable characters, like extra spaces or carriage returns in the path."
 
And my rookies look at me crazy when I harp on not using spaces in file specs. Sometimes you just have to protect them from themselves. Smiley Very Happy
 
Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 7 of 11
(4,987 Views)
Those invisible spaces can be nasty..   is there 1 or 2 spaces??  LOL!
Message 8 of 11
(4,980 Views)

Trailing spaces are the worst!

A - Trailing space in this constant

B- Results in creating folder without trailing space but returns original path WITH trailing space.

C- Archiving distrubutes the files in both version of the folder.

And just for bonus points, Windows will not let you delete a folder with a folder spec. You have to use a DOS command to fix this. Smiley Mad

Ben



Message Edited by Ben on 05-28-2008 08:44 AM
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 9 of 11
(4,970 Views)

Mike S81,

 

I just used your solution that you posted for devcon on this post and wanted to thank you for figuring this out.  You saved me some time.  -SS



Message 10 of 11
(4,807 Views)