Nick wrote the following tip as a blog entry a while back, but Mary and I felt that would be more logical to have it as a forum entry.
That way, if you have any PAC Sim tips and tricks you can add them on here and we can build up a nice ‘goto’ source of simulator tips in the once place (along with all your other Opto 22 tips and tricks).
Take it away Nick…
[B] PAC SIM file storage [[IMG]http://www.opto22.com/community/images/cms/edit_small.png[/IMG]](http://www.opto22.com/community/blog_post.php?do=editblog&b=21) [/B] [[B]nick stephens[/B]](http://www.opto22.com/community/member.php?722-nick-stephens)
on February 9th, 2011 at 01:16 PM (1128 Views)
Here is something that i only recently discovered. It may be documented somewhere, but i haven’t tried to find it. I sometimes use pac sim to ‘rough out’ a program to ensure that it works ok. I had a program that was logging data from a remote port. anyway the program needed to store data in a file so i just wrote it as if it was on the controller. Later i thought about if it actually wrote the file somewhere and after a search I found the file located in c:\windows\system32\optocom. i tried reading in files and it worked too.
So if you are doing any PAC SIM work that requires reading and writing of files, put them in the optocom directory and you’ll be sweet!! [/INDENT]