thanks for the reply, I really appreciate it, I found a way to communicate with MCA with TTL pulses! Thank God! ( some hardware work was needed but it is working now) 90% of my code is ready! I can send pulses -with the write pulse.vi you provided a few posts ago, thanks again- to the stepper motor and the MCA and I can trigger an action with an incoming TTL pulse,
I only have one last problem: After each acquisition/step I need to plot the data written by Maestro 32 (spectrum analyser) in a.chn file. The type of the file is binary and I am having a really hard time "reading" it. I have the complete structure of the .chn file from the manual (basically is a 32byte header and the data comes after that) but struggling with some readingbinary.vi 's hasn't got me anywhere. I also have 2 pieces of code, in FORTRAN and C which extract the information I want from the .chn files (provided in the manual). Basically the .chn file is a spectrum of counts divided in many energy channels, all I need is the sum of counts of all the channels. You have done too much already for me, but I would be thankful if you helped me once again.
Greetings