From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
07-23-2013 01:19 AM
Yes, I have searched the similar topic before posting this topic.
I understand we can use standard input for parameters input of system exec.vi, but still can't find any answer about "how to get the text on DOS screen".
1. Attached sw500912_2701test.exe is the based-dos exe file, (change .tar to rar)
2. Double click .exe, run this file. The first parameter is band rate, default is 9600.
3. Setting the COM #
3.
Home--colinzhang.net: My Blog
Solved! Go to Solution.
07-23-2013 02:15 AM
to get the output text set wait till completion to truew (default i think) then wire the standard output. It returns a multiline string of the output
Hope it helps
07-23-2013 02:22 AM
Thanks for your reply. I thought so as well before, but it seems failed to receive the data from standard output.
Home--colinzhang.net: My Blog
07-23-2013 02:29 AM
May be worth checking the command is actually running. when the dos window pops up is there any text?
try cmd /c "<insert command>"
07-23-2013 03:59 AM
Thanks, i understand a little. Because didn't complete the DOS .exe file implement, maybe the text data can't pass to the front panel.
Home--colinzhang.net: My Blog
07-23-2013 09:32 PM
Cant you add the parameters of the com-port to the command call? Similar to "TarToRar -c 1 -b 9600 -f file.tar -o file.rar"?
/Y
07-24-2013 12:27 AM
Yes, I can. I find the reason that why no output.
Because it fail to jump out of loop of DOS .exe, can't output the text of screen. Thanks for your reply.
Home--colinzhang.net: My Blog