Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Gated data acquisition question...

Hi Paul,

I'm still looking through your questions over the course of the day, in the mean time here is the VI in 8.0 format.

All the best,

Applications Engineer
0 Kudos
Message 11 of 13
(1,002 Views)

I'm not sure its the neatest of methods, but I've finally got there... I've attached the code, but again, it includes laser control so it's not directly runnable.

The way I've solved it is as follows: I used the digital line from the laser as a "pause trigger" to pause a continuous analogue acquisition on channel AI0 when the digital signal is low (this is the firs daq task in the diagram). The 2nd daq task sets up a counter using the digital output from the laser and an internal clock (the AI sample clock) to produce a "time reference" for each AI sample. Finally, I used a second counter (again connected to the digital output from the laser) to count the cycles of the digital signal (i.e. the laser channels).

When run, this gives me two 1D arrays. One containing the AI samples and one containing the number of clock ticks since the start of the acquisition for each AI sample. I then use the fact that there's a gap in the reference time when the digital signal from the laser is low to "filter" the data (i.e. take the average of each subset of data corresponding to one "high" period on the laser's digital signal), ending up with a single array of data containing a single measurement for each laser wavelength!

As I said, I'm not sure if its the neatest or most efficient, but it does solve the problem! If you can see anywhere I can improve this then I'd be glad to hear it!

Thanks for your help and support!

Paul



Message Edited by psmorris on 06-04-2008 09:47 AM
0 Kudos
Message 12 of 13
(998 Views)

Hi Paul,

Apologies I wasn't much more help today sadly it's been somewhat hectic, I've had a look at your code again just and it all looks good - I can't personally see any areas to improve it (infact it looks like quite a good way of getting the data you require!). I'm glad you've got what you require from your Hardware and LabVIEW and wish you all the best with future applications.

Kind Regards,

Applications Engineer
0 Kudos
Message 13 of 13
(994 Views)