Hi guys,
SR245 is said to have the ability to independently read the input ports (i.e., 1 and 2) and store a series of data point using scan command (see manual page 44), which can acquire data up to 2.1 kHz. I'm trying to control SR245 to scan input ports 1 for 50 - 500 trigger event (trigger rate at 20 Hz). I wrote a test VI (attached) to send scan command and read the stored data. The program works for the first run, but rerunning the program generates the same output, e.g., I changed the scan command from SC1:50 to SC1:20 or SC1:100 and reran it, and still got the same data output (50 data points instead of 20 or 100). The program seems only work once every time I reboot the SR245, which is very odd. I'm clearly missing something, but what's the problem?
I'm looking forward for your help. Appreciate it!!!
PS. The manual can be found at https://www.thinksrs.com/downloads/pdfs/manuals/Boxcarm.pdf
The LabView driver - 'SR245250.lvpoj'- is available on NI website http://sine.ni.com/apps/utf8/niid_web_display.model_page?p_model_id=1282
Somehow my SR245 cannot work with GPIB, so I have to use RS232. Unfortunately, the driver that support serial port doesn't have the scan function with external trigger.