LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Acquiring a 2-10 mV analog d.c signal in a LabVIEW cont. acq. to spread sheet file.vi?

I have replaced a hardware strip chart recorder using LabVIEW cont. acq. to spread sheet file.vi, the voltage I am acquiring is in the range of 3-10mV,The data being displayed on the PC screen is very different from what is displayed on the hardware strip chart recorder,I think it is because of noise, I want to know how can I filter out the noise,since I dont know the frequency of the noise component, what is thwe minimum voltage that can be read by a PCI 6024E card?
0 Kudos
Message 1 of 8
(4,026 Views)
Hello! I just posted an answer to your minimum voltage question. If at all possible (because the voltage is not very large), I would recommend setting your PCI card to a gain of 100. This will give you a range of +/- 50 mV. Then, I would do an averaged reading. You can accomplish this by setting your DAQ board to do a buffered acquisition at a scan rate of 1000 scans/second, and reading in 100 points (.1 seconds). Average out that reading, and that should help with the noise immensely.

Let me know if you need help in accomplishing this!

Mark
0 Kudos
Message 2 of 8
(4,026 Views)
Dear Mark.
Thanks a lot for your help.I think a Low Pass filter could also be used to filter out the line noise.Further I want to know from you that how do I synchronize the Hardware strip chart speed with the cont. acq (buffered).vi, What should be the SCAN RATE, NO. OF SCAN TO READ AT A TIME, BUFFER SIZE, ETC. The hardware strip chart recorder in our lab is identical to any common strip chart recorder in labs.It would be nice and kind of you if you could be descriptive.

Thanking you
Himanshu Mishra
0 Kudos
Message 4 of 8
(4,026 Views)
Sure, a low pass filter is always the best bet. I was trying to offer you something you could use with the hardware that you had, without adding anything additional.

I'm not quite sure I understand what you mean by synchronizing the chart speed with the acquisition. By definition, when you wire the output of your acquisition to the chart on your front panel, it is updated right then.

So, to reiterate this point, I'll describe what the inputs you asked about do, as well as what actual values would do.

The scan rate is how fast you would like your DAQ board to scan your data. Let's say I'm reading a temperature, so this doesn't need to happen fast. Therefore, I'll set it to 1, or 1 scan per second.

Next, the "no. of scans to read at a time" is how much data the VI should read from the buffer on every iteration. Keep in mind this data has to be available when the call is made, or the VI waits until it is ready. Therefore, if I wanted 5 scans (in this case would be 5 seconds of data, because of the 1 scan per second scan rate), I'd put in 5, but the data wouldn't appear for 5 seconds.

The buffer size is how much memory you want to set aside for the acquisition. This will depend on your scan rate and the number of scans you want to read at a time. In my example, if I was sampling at 1 scan per second and reading 5 samples per loop, that means my buffer would have to be a minimum of 5 scans, or just 5. Typically I take the number of scans to read at a time and multiply it by 2, and that's the MINIMUM buffer size I'd use. That allows for delays in your loop due to Windows. If the buffer isn't big enough, then you get overwrite errors, where the DAQ board is trying to write data into the buffer over data that you haven't read from the buffer yet, so data will be lost.

Lastly, a comment about a strip chart. You can update a strip chart one data point at a time, or as my example above, multiple points at a time. Where multiple points at a time would be most advantageous is when you have a signal you'd like to sample faster than, say, 10 samples per second. Since it takes time to update a graph or chart, you'd like to update it at one time, and if it isn't a problem, I'd just read 10 scans, or 1 second, of data and update the graph once a second with 10 data points. Got it?

So, in a nutshell, your chart "update speed" would be the number of scans to read at a time divided by the scan rate. That would be the number of times per second your chart would update.

Mark
0 Kudos
Message 6 of 8
(4,026 Views)
Dear Mark
Thanks a lot for you reply.I want to introduce my problem to you once again: I want to replace a hardware strip chart recorder in by lab by using LabVIEW cont acq (buffered).vi.We are acquiring a
signal from a photo multiplier tube and the photomultiplier tube(PMT) is kept at the EXIT port of the Monochromator.As and when the light of particular
wave-length falls on to the PMT and the strength of the signal is proportional to the amount of light falling on the PMT.When I connect the output of the PMT to the DAQ card then I get a lot of noise and I am unable to get the peaks in the spectrum as I get it in the hardware strip chart recorder. the voltage is in the range of millivolts (3-20mV).By synchronization I mean I want to have
a software strip chart system which is identical to the hardware strip chart.I want my VI to work at the same rate at which the hardware strip chart is working.Please send me a strip chart recorder vi if you have any, otherwise do tell me what I should do next?
0 Kudos
Message 7 of 8
(4,026 Views)
Dear Mark
Please note down my email address: hmishra@iitk.ac.in I work at Indian Institute of Technology, Kanpur India. I would like to keep in touch with you and keep the communication link alive.
Thanking you
Himanshu Mishra
0 Kudos
Message 8 of 8
(4,026 Views)
Dear Mark.
Thanks a lot for your help.I think a Low Pass filter could also be used to filter out the line noise.Further I want to know from you that how do I synchronize the Hardware strip chart speed with the cont. acq (buffered).vi I have decided to use cont acq. (buffered) .vi as a replacement for hardware strip chart recorder I want to know the NO. OF SCAN, BUFFER SIZE, NO OF SCANS TO READ AT A TIME, ETC. The hardware strip chart recorder in our lab is identical to any common strip chart recorder in labs.It would be nice and kind of you if you could be descriptive and if you could tell me the value of the above given parameters.

Thanking you
Himanshu Mishra
0 Kudos
Message 5 of 8
(4,026 Views)
Hello;

That's due to the 12 bits resolution that board has. You will need a 16 bit resolution DAQ board to work with such small voltage signals.
Hope this helps.
Filipe
0 Kudos
Message 3 of 8
(4,026 Views)