Unfortunately your question is impossible to answer, as it is presented. You see, an optocoupler is a component, which usually requires some more circuitry around to do anything specific.
Therefore, would you please tell a bit more what you want to achieve? Analog or digital interface? detecting current or voltage or having an isolated input or output? etc..... That would make it possible to look at your problem.