LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

acquiring and generating analog signals during continuous acquisition

Is there a way to write and acquire analog signals during while acquiring N samples at the same time? In the (3 of 4;4 of 5) acquisition step in the program I posted, I would like to read another analog in. It only needs to have a rep. rate of  ~2-5 Hz. Writing an analog out would also be nice but not immiediately necessary. I use the N samples because I need a fast and precise aquisition timing of 1kHz for the PMT array. I process the data with FFT after which is why that acquisition is so important. I tried separating the two programs but the analog in still fails. The analog in desired is the Current Monitor seen earlier in the program. And the analog out desired during the acquisition step is the HV out portion in the very beginning.

 

Suggestions? If I should elaborate let me know.

0 Kudos
Message 1 of 8
(3,001 Views)

Hey Adrian,

 

 

Can you expand on the devices that you are connecting to with this VI?  That will help in deciding what capabilities you have as far as reading and writing at the same time.  In several cases, you can read and write multiple channels, but some devices have limitations.

0 Kudos
Message 2 of 8
(2,982 Views)

All the connections are made to a NI PCI-6221. The N Samples acquired at 1000 Hz is a Photomultiplier Tube. The Analog in that I would like to add is just an on demand voltage measurement, and the analoge out is the remote adjust to a high voltage power supply.

 

Hope that helps

0 Kudos
Message 3 of 8
(2,962 Views)

I would suggest putting your two Analog Inputs into 2 parallel loops. I have attached a link to a devZone describing the benefits.

 

http://zone.ni.com/devzone/cda/tut/p/id/9393

 

Once you get this up and running, I can help you with the Analog output

Ben D.
Applications Engineer
National Instruments
0 Kudos
Message 4 of 8
(2,935 Views)

I am working with Lab View 8.5 and I don't believe parralell loops exist until 2009. Would that actually allow me to display my one analog in in the Front Panel while the other aquires 15k samples at 1k Hz into a buffer?

 

 

0 Kudos
Message 5 of 8
(2,924 Views)

Fair enough. I didn't realize you were using 8.5. Ok, so what seems to be preventing you from using this DAQ device to do what you need? Are you getting an error message, bad data, or no data?

Ben D.
Applications Engineer
National Instruments
0 Kudos
Message 6 of 8
(2,909 Views)

So my solution was to split the two other parts I wanted to add into a different program. The programs comunicate and keep track of each other via a global boolean. But the analog in gives me entirely wrong values while the buffered acquisition is running. I could post those both if it would help.

0 Kudos
Message 7 of 8
(2,906 Views)

Yes, please post your code. Also, please let me know what you mean by "entirely wrong".

Ben D.
Applications Engineer
National Instruments
0 Kudos
Message 8 of 8
(2,889 Views)