Pulse measurement for 500hhz signal
I am using USB 6251 daq card. I need to measure the number of pulses arrived with in some start time and end time. the saignal can vary upto 500k hz.Also i need the pulse arrival time for all pulses.
if i configure task for pulse width mesaurement in daqmx can i be able to measure the pulse count and pulse arrival time (upto 500khz)
Solved!
Go to Solution.
I suppose what you are reffering to is the timestamp. when you use the low level VI's of DAQmx you can obtain the signals as waveform data type, which has the initial sample time t0, the sampling intervals dt as well the sample values array Y. You can do the rest by obtaining each of the parameters in waveform pallette.
Hope this helps!
Shreyas Hebbare
Shreyas Technologies
India
Similar Messages
-
Amplitude and level measurements for stereo signal
Hi,
If I input my attached stereo file into Express Amplitude and level measurement (blue icon) it does not give me output value as an array. I want to measure peak to peak value for both left and right channels. I get only left channel value. (No array)
But if I use amplitude and levels.vi I get array as an output for both channels. So i have what I need but I thought I would just post here anyways.
I have attached my audio file.
Sheetal
Thanks.
CVI 2010
LabVIEW 2011 SP1
Vision Builder AI 2011 SP1
Attachments:
AUX_HP1_RSA_OFF.zip 13 KBSheetal,
The output of that express vis is of dynamic data type. You need to convert it to a waveform (use the "from ddt.vi") which will then give you the waveform data type. You can then use the "Get Waveform components" to access the "Y" array data.
Post to let us know if this helped out.
Chris C
Chris Cilino
National Instruments
LabVIEW Product Marketing Manager
Certified LabVIEW Architect -
Quick Question On Pulse Measurements
I was wondering what the percents are the percent of on the Pulse measurments.vi Default (10,50,90)%
I understand the low,mid, and high part of the vi. But what are the percents referencing? It it simply % of your largest pulse?
I know it isn't very clear what I am asking but Im not sure how to ask it more clearly.
Link to help docjohnsold wrote:
Nate...,
Typically the Pulse Measurement VI used on something which looks like a rectangular pulse with a little noise, overshooot, ringing, ... Your signal is not what one would normally call a pulse by that definition.
In the first image you posted how many pulses do you count? 11? The little spikes (amplitude about 0.1 at 3.318, 3.331, 3.341, and others): Are they to be counted or rejected? Do they alwyas occur before a big spike? Some little ones are not followed by big ones but all the bigones seem to be preceeded by a small one. Is there a minimum dleay between successive pulses? Analyzing data like this can be challenging. Use all the knowledge you have about the process which generates the data to help.
Lynn
Hmm, all I had seen was sine waves before with the pulse. But, you seem to be right, rectangular pulses make a lot more sense.
Yes, I am just counting each period. I just was planning on using the pulse vi to measure the giant spikes to count how many of those occur each second. That first graph is a sound wave of a weld shorting. I want to know how often it shorts a second. I currently just have it detecting an absolute value (looking for that giant spike) and however many times it detects that I average and turn into total shorts and average shorts.
It works but it is not very elegant.
And you are correct about some of the small spikes not being followed by a big spike. That is molten slag splashing about. This short one right before the sharp spike is the sound of the arc igniting (300 Amps worth).
Can you think of any more elegant solutions to detecting the pulse? I am going to do some digging around..
Thanks Lynn! -
Buffered freq/pulse measurement that can tolerate oversampling
I would like to synchronize a buffered freq or pulse measurement to a continuous AI task using the shared ai scan clock.
The problem is that there maybe times were there are slow to no pulses to measure and the DAQmx driver will throw an error
indicating that multiple samples clocks were received before any pulse measurements could be made. What I would like is to have
the sample clock default to a measurement of 0 and this value would be placed into the task buffer so that it will always be sync'd
to the other tasks.Duplicate count prevention is a pretty interesting (and probably poorly named) property. With duplicate count prevention disabled, the sample is latched in on the rising edge of the source. If the gate is faster than the source, you could miss the samples that you might expect to read 0 (i.e. imlpicitly-timed buffered period measurement).
This isn't exactly what's happening on the X Series (Duplicate Count Prevention is always "True" for frequency measurements on X Series). The problem is that there is no sample available in the counter FIFO on the edge of the sample clock. I believe the error is thrown by the hardware and there isn't much that NI could change in the driver to correct for it, but I'll investigate a bit more just in case.
In the meantime, you might have to resort to counting edges of your external signal sampled from the AI Sample Clock. If your external signal is high frequency, this would be suitable, but I think it's probably more likely that your external signal is relatively slow so doing this would introduce a very large error. I'll think about this some more and post back if I think of a workaround.
Best Regards,
John Passiak -
Can pulse measurement.vi measures 2M points with 10ns time interval?
Hi,
I used pulse measurement.vi to measure the pulse duration of waveforms when the waveforms exceed certain threshold level. The data file has 2 millions data points with 10ns time interval. But I got error message saying that
"The waveform did not cross the mid reference level enough time to perform this measurement. Check the signal length, mid reference level, and reference level unit."
I was wondering if pulse measurement.vi is capable of handling such large file or it was due to my paramenter errors.
Thank you for your help in advance.I realized that I can't really modify the percent level settings or specfication of the pulse measurement.vi. For instance, I changed the percent level setting to peak instead of the default auto select. After running the VI unsuccessfully and I reopened the pulse measurement.vi, I saw the percent level setting was set to auto select again instead of peak method. I have attached the image of the block digram and a very small part of the waveform data. I hope you can open both.
Thank you.
Attachments:
pulse measurement.doc 45 KB
example.txt 2 KB -
Is my idea feasible?(pulse measurements.vi)
Dear All,
I am using the "Pulse measurements.vi" to analyse the waveform get by DAQ card. And it need at least 1.5 periods of
waveform data. Due to the unknown frequency of the signal, I don't know how to set the sample rate which is too fast
that one time of N sample acquisition won't obtain the enough period for the vi, while too slow that the high
frequency signal will not be get.
So I am wondering that if the sample rate can be adjust dynamic. For example, at beginning a high sample rate is
initialed while if the pulse measurements.vi give error that "the waveform did not cross the mid reference level
enough times to perform the measurement", a lower sample rate will be adjust until the error is not absent.
I don't know if it is feasible or someone have done some experience of this.
If some example vi is absent, would you please attach it? Or if there is some other good way to solve it?
Thank you very much.
HugoLynn,
Thank you!
I have modified your vi which runs better
In the zero case of the inner shift register I wired the new data to it which can measure the waveform dynamicly when I change the frequency during it running
Thank you for your help!
Hugo
Attachments:
frequency2.2.vi 31 KB -
Last pulse high for longer period of time
Hi guys
Me again with another problem.
I am attaching the VI with the post. Now the VI generating pulses of 100 Hz frequency(clock, which is connected to signal generation block). Now all the 63 pulses are coming correctly but last pulse high for almost 30 mSec. I could not find a solution. Could DAQ task is not be clearing properly??? I am at lost...Any help???? Thanks in advance.....
Attachments:
telecommand_1.vi 62 KBYou have to change the numeric constant (connected to the "Eaqual to")from 63 to 62 in your for loop. Remember that "i" starts with the value 0. Since the for loop runs 63 times you will never get 63 as value for "i".
Regards,
Even
Certified LabVIEW Associate Developer
Automated Test Developer
Topro AS
Norway -
NI 9239, can a /-10V data acquisition card be used to measure 0-20V signal?
Hello everyone,
I have NI9239 daq card, which has input range of +/-10V. Is it possible to measure 0-20V signal on same daq? if yes what would be the best approach?
Thanks!
Kudos are (always) welcome for the good post. :-)You'd need to level-shift your 20V signal down 10 Volts. Then you can compensate for it in software.
-
Can I use NI Measure for Excel for stimulus response sequence?
it seems the NI software 'Measure' for Excel allows for simple AI or AO but
not sequential AO/AI, e.g. stim AO measure AI repeat for N rows of data.
I can do one or the other but cannot see how to setup a button to
do such a sequence. It is amazing to me that such basic functionality
is not available out-of-the box, or am I missing something?
Are there any more detailed VBA examples available online other
than the extremely rudimentary ones provided on the CD?
Apparently, this 'Measure' product hasnt been updated since 1998?
Does this lack of development indicate there is a better alternative
for doing Excel-based data acquisition?
tiaI have see this KB before.
But I don't understand the simultaneous sampling.
"E-Series Data Acquisition Cards multiplex all acquired signals to a single A/D converter. This introduces a slight phase delay between the acquired signals. In the case of the Lock-In Amplifier, the signal to be analyzed would then be phased relative to the acquired reference signal. That phase delay would adversely affect the phase accuracy of the Lock-In Amplifier."
It mean I still can use E-series DAQ card, but the phase maybe not the real phase?
If I can use the E-series DAQ card for a Lock-in Amplifier, what should I change the Lock-in amplifier start-up kit?
Thanks -
I hope this is not painfully simple to most of the people on this forum but I have an application where I set up a test bench to do testing on a component that have varying reponse piece-to-piece. For example, one component might have a voltage of 0.6 to 3.75 for the desired range while another can be 0.5 to 3.9.
Being a noobie, I heavily rely on DAQ Assist and this is not an option (user-input slope, etc.) Do you know the best way to go about this? I looked at creating a virtual channel through daqmx but it seems that it will only take a predefined scale you set up as opposed to allowing the user to define that scale.
Please help!
Thanks
KMYou seem to be mixing up some terms. It seems you are talking about range of the signal that you are measuring and not the scaling.
If it really is the range, then based on your example, you probably don't need to change anything. When you provide the range values, what you are telling the DAQmx driver is what actual range of the daq device to use to best measure the signal. For example, if the device has actual ranges of +/- .1V, +/- 1V, +/- 5V, and +/- 10V, then it will use the +/- 5V range as the best fit for the signal you anticipate. So, in your example, the actual range used by the DAQ device is going to be the same. You can check the manual for the DAQ device to see what ranges are supported. If you actually do need to switch ranges, then the best thing to do is use the lower level DAQmx functions. The DAQmc Create Channel has inputs for min and max. -
My scxi 1122 produces noise when I try to measure a termocuple signal, Is it right?
I'm using module scxi 1122 connected to Lab-PC-1200/AI, and a terminal block 1322.
The jumper W1 is in position 2 "B A R0", in the lab-Pc I'm using the RSE input configuration.
I'm measuring with SCXI Temperature ScanYou will want to use the best measurement system to take your thermocouple measurements. The following Knowledge Base article covers our recommended hardware to perform thermocouple measurements.
What is the Recommended NI Hardware for Thermocouple Measurements?
http://digital.ni.com/public.nsf/websearch/F0196F5B6CD8F60286256D4B00728B78?OpenDocument
While the SCXI-1122 is not mentioned in this article, you may still use it to perform thermocouple measurements. You may want to consider using the differential input mode instead of RSE. Differential mode is the best method when acquiring from a floating signal source such as a thermocouple. DIFF mode does the best job of reducing noise and rejecting unwanted common-mode voltage.
Additionally, there is a
n excellent Application Note available on our website which covers approaches to noise reduction and elimination.
Field Wiring and Noise Considerations for Analog Signals
http://zone.ni.com/devzone/conceptd.nsf/2d17d611efb58b22862567a9006ffe76/01f147e156a1be15862568650057df15?OpenDocument
Regards,
Justin Britten
Applications Engineer
National Instruments -
Pulse out for every Nth pulse in using 6024E counter?
Is it possible to get (continuously)a pulse out of the 6024E counters for every Nth pulse of an external signal going to the source pin? A VI and the description of the connections will be appreciated.appreciated
Scientia est potentia!Hi magvar,
Depending on your application development environment (ADE) API (LabVIEW, CVI, VC++ etc.) you will want to configure the counter for continuous pulse generation. There are two pulse specs that you have to configue. The first configures the delay in number of edges of your source and the second configures the width of your pulse. Therefore if you set pulse spec (ND_COUNT in C code) 'A' to N/2 and pulse spec 'B' to N/2 then your pulse train will output a pulse every Nth pulse on the source.
Each ADE will have a shipping example that demonstrates this configuration. These examples ship with NI-DAQ and can be found in the NI-DAQ folder of National Instruments unless it is LabVIEW or CVI in which case it should be in their respective direc
tories. Hope that helps. Have a good day.
Ron
Attachments:
TIOgenSquareWave.C 6 KB -
I used the Pulse measurement 1 Chan VI in my project and could see that the VI pops up an error in few cases (Error -20308 occurred at "NI_MAPro.lvlib:ma_ptmFetch.vi:2" when called from "NI_MAPro.lvlibulse Measurements 1 chan.vi:1").
I have attached the data cluster of a failed case. Please let me know, wat is going wrong?
Attachments:
Pulse Measurement.vi 16 KBHI
The data you are passing to pulse measurement vi is very small because of that it is giving the error.
Please find attached image for more detail. I have just appended the same siganl four times
Hope this helps
Regards
Santosh
Attachments:
data.JPG 232 KB -
I am using the Order Analysis Toolkit and want to get more information about the compensation for "Reference Signal Processing", which is scarce in the manuals, the website and the examples installed with the toolkit.
In particular, I am analyzing the example "Even Angle Reference Signal Processing (Digital Tacho, DAQmx).vi", whose documentation I am reproducing in the following:
<B>DESCRIPTIONS</B>:
This VI demonstrates how to extract even angle reference signals and remove the slow-roll errors. It uses DAQmx VIs to acquire sound or vibration signals and a digital tachometer signal. This VI includes a two-step process: acquire data at low rotational speed to extract even angle reference; use the even angle reference to remove the errors in the vibration signal acquired at normal operation.
<B>INSTRUCTIONS</B>:
1. Run the VI.
2. On the <B>DAQ Configurations</B> tab, specify the <B>sample rate</B>, <B>samples per channel</B>, device and channel configurations, and tachometer channel information.
<B>NOTE</B>: You need to use DSA PXI-447x/PXI-446x and PXI TIO device in a PXI chassis to run this example. The DSA device must be in slot 2 of the PXI chassis.
3. Switch to <B>Extract Even Angle Reference</B> tab. Specify the <B>number of samples to acquire</B> and the <B># of revs in reference</B> which determines the number of samples in even angle reference. Click <B>Start</B> to take a one-shot data acquisition of the vibration and tachometer signals. After the acquisition, you can see the extracted even angle references in <B>Even Angle Reference</B>.
4. Switch to the <B>Remove Slow-roll Errors</B> tab. Click <B>Start</B> to acquire data continuously and view the compensate results. Click <B>Stop</B> in this tab to stop the acquisition.
<B>ORDER ANALYSIS VIs USED IN THIS EXAMPLE</B>:
1. SVL Scale Voltage to EU.vi
2. OAT Digital Tacho Process.vi
3. OAT Get Even Angle Reference.vi
4. OAT Convert to Even Angle Signal.vi
5. OAT Compensate Even Angle Signal.vi
My question is: How is the synchronization produced at the time of the compensation ? How is it possible to eliminate the errors in a synchronized fashion with respect to the surface of the shaft bearing in mind that I am acquired data at a low rotation speed in order to get the "even angle reference" and then I use it to remove the errors in the vibration signal acquired at normal operation. In this application both operations are made in different acquisitions, therefore the reference of the correction signal is lost. Is it simply compensated without synchronizing ?
Our application is based on FPGA and we need to clarity those aspects before implementing the procedure.
Solved!
Go to Solution.Hi CracKatoA.
Take a look at the link bellow:
http://forums.ni.com/ni/board/message?board.id=170&message.id=255126&requireLogin=False
Regards,
Filipe Silva -
Report for Units of measurement for Material
Hi
Is there any report to extract the alterante unit of measurements for materials in a plant.
ThanksHi,
Please use the below table,
Related to Materials:
MARA - Material Master: General data
MAKT - Material Master: Description
*MARM - Material Master: Unit of Measure*
MAPE - Material master: Export control file
MARC - Material master: Plant data
MARD - Material master: Storage location
MAST - Material link to BOM
MBEW - Material valuation
MLGN u2013 Material Master: WM Inventory
MLGT u2013 Material Master: WM Inventory type
MDIP - Material: MRP profiles (field contents)
MKOP - Consignment price segment (old versions of SAP)
EBEW - Valuation of sales order stock
QBEW - Valuation of project stock
MVER u2013 Material Master: Consumption <Plant>
DVER u2013 Material Master: Consumption <MRP Area>
MVKE u2013 Material Master: Sales <Sales Org, Distr Ch>
MLAN - Material Master: Tax indicator
MARC - Material Master: Plant data
MAPR u2013 Material Master: Forecast
MARD u2013 Material Master: Storage Location
MCH1 u2013 Material Master: X Plant Batches
MCHA u2013 Material Master: Batches
MCHB u2013 Material Master: Batch Stock
MDMA - MRP Area data
DBVM - MRP Planning File Entry: MRP Area
MOFF - Outstanding Material Master Records (Maintenance status)
MARCH - Material Master C Segment: History
MARDH - Material Master Storage Location Segment: History
MBEWH - Material Valuation: History
MCHBH - Batch Stocks: History
MKOLH - Special Stocks from Vendor: History
MSCAH - Sales Order Stock at Vendor: History
MSKAH - Sales Order Stock: History
MSKUH - Special Stocks at Customer: History
MSLBH - Special Stocks at Vendor: History
MSPRH - Project Stock: History
MSSAH - Total Sales Order Stocks: History
MSSQH - Total Project Stocks: History
Regards,
Mohd Ali.
Maybe you are looking for
-
What are the different types of exits available?
hi all, Can any explain different types of exits ? user exit ? menu exit etc? can anyone explain me each exit with an real time scenario regds hari
-
Greetings I normally take photos at the highest resolution, making for some large file sizes. I was wondering how or if its possible to email pictures taken from the camera as a smaller file size, without having to convert/crop/manipulate the picture
-
I want to have icons on my menu. I am using the Windows look and feel. On most native windows menus the icons appear in a separate column on the left. When I use icons in java menus they appear much too far to the right and the text doesn't align pro
-
LabVIEW changes colors in different machines
Hello! I'm having a problem with some VIs and I hope somebody can help me. A friend developed some VIs in one PC, and set the colors for the front panels, controls, and indicators. Then he gave me those VIs and ...surprise!, when I open them in my PC
-
Where do the iPhoto Journals go?
I got a journal to upload to iCloud and the iPhoto app took me right to it in Safari. But where is it? I went to icloud.com on my Mac later and logged in but I didn't see any type of access to this journal I uploaded earlier. How do we share our jour