Create an executive file from hoc file
Create an executive file from hoc file
Hello, Can I create an executive file (.exe or .bat) from hoc file?
I want use the result of my simulation in my power point presentation. If I try to use directly the .hoc file that call Neuron (and if in the .hoc file there is an instruction that recall another file) does not work!!
Excuse for my bad english!!
I want use the result of my simulation in my power point presentation. If I try to use directly the .hoc file that call Neuron (and if in the .hoc file there is an instruction that recall another file) does not work!!
Excuse for my bad english!!
-
- Site Admin
- Posts: 6384
- Joined: Wed May 18, 2005 4:50 pm
- Location: Yale University School of Medicine
- Contact:
Re: Create an executive file from hoc file
No, and that's not the way to do this anyway.Snake Eater wrote:Can I create an executive file (.exe or .bat) from hoc file?
It is easiest to just grab a bitmap image. There are lots of ways to do thisI want use the result of my simulation in my power point presentation.
under MSWin. I like a program called Hypersnap, but there are many others.
Do you want to be able to click on something in your PowerPoint presentation,If I try to use directly the .hoc file that call Neuron (and if in the .hoc file there is an instruction that recall another file) does not work!!
and have that launch a live simulation?
Re: Create an executive file from hoc file
Exactly. If I simple link an object (in my power point presentation) to .hoc file, Neuron is not able to load geometry fileted wrote: Do you want to be able to click on something in your PowerPoint presentation,and have that launch a live simulation?
Code: Select all
xopen("geometry.hoc")
You can start neuron from a windows batch file myDemo.bat with the hoc-file of choice as an argument. Make a hyperlink point from powerpoint to this batch file and you are in business:
myDemo.bat:
myDemo.bat:
Code: Select all
@echo off
cd "myFullHocPath"
C:\ProgramFiles\nrn58\bin\neuron.exe myHoc.hoc
Code: Select all
@echo off
cd "myFullHocPath"
C:\nrn58\bin\neuron.exe myHoc.hoc
Now It's all ok! This is not the first time that yo save me.
Bye :)
-
- Site Admin
- Posts: 6384
- Joined: Wed May 18, 2005 4:50 pm
- Location: Yale University School of Medicine
- Contact:
Excellent. I have just taken the liberty of adding it to the list of Hot tips
https://www.neuron.yale.edu/phpBB2/view ... =1359#1359
Thanks again, Raj!
https://www.neuron.yale.edu/phpBB2/view ... =1359#1359
Thanks again, Raj!
Hey Ted, the default path of Neuron is
not
Code: Select all
C:\nrn58\bin\....
Code: Select all
C:\ProgramFiles\nrn58\bin\..