What method are you trying now? I usually do it like this: Starting with a grayscale image, I first run Image > Adjustments > Curves to flatten the contrast of the mid-tones. Then I scale up the image to a high resolution, like 2400 ppi, with resampling checked. I then convert to Bitmap mode, with the resolution set to the same as what I had scaled it to, using Halftone Screen with the Line option, using a low lines per inch value, like 8. Finally, I convert back to grayscale mode.
It looks like this (at 100%)
The problem is the image is now very large. I don't know how well it might work in Image Trace in Illustrator. You might want to try asking in the Illustrator Scripting Forum, Illustrator Scripting.
A couple of other possibilities are this site, HalftonePro - Vector Halftone Pattern Generator , which say it will output .SVG files (I haven't tried it), or Scriptographer, https://scriptographer.org/ which is a plugin for Illustrator, but unfortunately, development stopped after CS5, but if you have an older version of Illustrator available, it looks like it would do the job.