09-01-2011 12:52 PM
I am currently using Windows 7 with Labview 2010. I am trying to execute opening a website from the system exec.vi. When I run the VI I get error 2 saying the memory is full. I ran this same VI in Windows XP with Labview 2010 and it worked fine. I have tried increasing the expected output size memory for the system exec.vi as high as possible. It appears Windows 7 handles this differently than Windows XP. Anyone have any suggestions?
Thanks
Mike
Solved! Go to Solution.
09-06-2011 08:24 AM
Hello Mike,
This is Andrew Brown, an Applications Engineer from National Instruments. After researching your issue, I found an article called Error 2 (Memory Full) When Using the System Exec VI that points to a possible solution. With your application, the issue is probably related to syntax more than memory usage. Some general background on using the System Exec VI can be found at the LabVIEW 2011 help page and How do I Execute a Windows Command in LabVIEW.
Please let me know if you have additional questions about these resources. Thanks, and have a great day!
Regards,
Andrew Brown
09-06-2011 08:42 AM
Why not just use the "Open URL in Default Browser" VI that ships with LabVIEW?
09-06-2011 08:44 AM
If you are running Win7 64 bit, this may be your issue:
http://forums.ni.com/t5/user/viewprofilepage/user-id/176706
09-06-2011 08:46 AM
Hi Andrew,
Thanks for the response. I guess I should explain my problem in more detail. I am trying to execute SVN Turtoise commands in labview. I have the VI point to the SVN repository URL and gather the information about the files. When it finds the files it then updates them locally on my computer. Attached is a picture of the VI that I am currently using. The VI fails when the system exec.vi is run saying Error 2: Memory is full. I have run this VI on a separate computer running windows xp and it exectues perfectly. Let me know if this helps claify the problem or if you have additional solutions. Thanks
Mike
09-06-2011 08:47 AM
Nope, running Windows 7 - 32 Bit but thanks.
09-06-2011 08:48 AM
@Matthew Kelton wrote:
If you are running Win7 64 bit, this may be your issue:
http://forums.ni.com/t5/user/viewprofilepage/user-id/176706
Ah, so it's all Chris' fault! We should have known!!
09-06-2011 08:51 AM
Mike@SensorSwitch wrote:
Hi Andrew,
Thanks for the response. I guess I should explain my problem in more detail.
Yeah, that usually helps.
Your most likely issue is a path issue. The System Exec command is equivalent to you doing a Start -> Run and entering a command there. If it doesn't work there, it won't work with System Exec. System Exec does not run in a command shell. Hence, sometimes commands need to be preceded with "cmd /c" or "cmd /k", depending on the behavior that you want. You should verify that "svn" is actually in your PATH. If not, then the command won't work via Start -> Run, and thus will not work with System Exec.
P.S. You may wish to look at JKI's TortoiseSVN Toolkit, though I don't know if you're using TortoiseSVN.
09-06-2011 08:53 AM
Thanks,
clicked on the user instead of the message:
09-06-2011 08:55 AM
Why would it work on the Windows XP computer and not the Windows 7?