activate the external clock

Alrighty, I'm a total noob to LabView and others. I'm at the point where I don't even know if I know is relevant, so forgive if I give too much information and probably not enough.

I've got:

cDAQ-9174 chassis

9422 module into the connector #2

This 9422 module will be connected to a meter that will send a square wave. What I need is the frequency of the square wave. Problem is, I don't have any idea how to get it.

I open a new .vi and use the DAQassist. From there I select entry counter and then I tried the frequencies and Edge Count.

At the end of the day, either it usually gets me the following error message:

Error-200284 occurred to...

Possible reasons:
Some or all of the requested samples are not yet acquired.

I guess that one I did most of the research is the counting of edge. It is continuous samples because I need to monitor the flow rate at the time rather than only to count the edges of time 0 until I stop the VI. So there are different ways to treat this error include changing the timeout value, something to do with 'samples to read' and 'sample rate', and then that it seems to me that I have to do: since the buffered continuous one requires an external clock, which is specified in the tab "Advanced Timing" of the menu properties DAQassist I have a lot of things to choose from. It seems/I/SampleClock or/ao/SampleClock is the thing to choose, but then several Web pages continue to say to make sure that the external clock is actually "run", or any word in this sense. So I tell myself, my external clock isn't doing anything and that's why reading isn't acquire samples. But really, I'm just lost. Then...

Question 1:

Is what I'm working on the best/right way to go about doing this?

Question 2:

How can ensure me that this external clock done everything what it is supposed to do so that I can get samples still for edge counting?

Well, my ignorance is exposed, please fire away. I have attached the .vi, although I don't think it will tell you anything other than I know how to click the mouse button when running LabView.

County Board is time since you don't have a sample clock.  You can provide one from many sources, but in your case I suggest sticking to a task of frequency measurement I won't go into it now.

The frequency could be time for a number of possible reasons:

1. the external signal is not connected to the right Terminal (the default IS terminal your meter chosen if you not him have not overridden with a property DAQmx node which is not possible in the DAQ Assistant).  For the 9422:

2. the signal may be connected to the right Terminal, but perhaps, it does not meet the specifications of the 9422 to be detected)<5V low,="" 11-60v="" high).=""  you="" can="" verify="" whether="" or="" not="" the="" signal="" is="" being="" detected="" using="" a="" test="" panel="" (counter="" edge="" counting="" to="" determine="" if="" the="" signal="" is="" present)="" in="" measurement="" and="" automation="">

3 tasks of frequency are sampled off the input signal - so if the input signal does not switch when you start the program or if there is a long break (longer), you will receive the time-out error when the reading function blocks for more than your specified time-out.  You should be able to just 'manage' the time-out error so that if it happens you can report a frequency of 0, ignore the error and try to read it again.  There are also other approaches such as using events DAQmx or samples available to read to vote, but none of them are available through the DAQ Assistant (the idea is that you avoid making DAQmx Read blocking call until you know there are samples to read).

Configure a task of frequency is a better option for you, because it will give more precise (although you can set a task of County of edge to behave similarly to a frequency measurement task, this is trickier and you can also use the DAQ assistant).  You can start out by setting 1 sample (on request) for the synchronization mode - this will return a single sample as soon as it is available.  If you put the DAQ Assistant, in a loop, you will get a new sample at each iteration (or if your input signal goes, the samples will stop coming in and you'll get time-out errors instead).  The downside is that you will not receive a sample on each side - entry task is reset by software and during this downtime between the samples will take no new data.  This should be good for the case of the use you described (the frequency of a continuous square wave periodically monitoring).

So, make sure that the external signal conforms to the specifications of the 9422, and it is connected to the correct terminal (the PFI line which is equivalent to the DOOR of your meter by default).  If your external signal is less than 0.2 Hz (1 sample every 5 seconds) you will need to move away from the DAQ assistant, as it seems that it is not possible to set the timeout of read using the DAQ Assistant (surprisingly).  You might want to look in the API of DAQmx lower level anyway - here is a simple example to help you get started in the affirmative.  It's really not too complicated and once you get used to it will be less heavy than using the DAQ Assistant.

Best regards

Tags: NI Hardware

Similar Questions

  • HSDIO 6556 loses the lock on the external clock

    Hello

    I'm encountring a strange problem. I use my 6556 HSDIO to generate some model using and external clock (around 20 MHz and 50 ohms impedance). This clock is provided by an MCU and the entire application does not work well. However, when I tried to cool the MCU (up to-10 °) the HSDIO loses the lock and tries to re - lock again (the Red turned led active). When this happens, I can see a new phase shift between the data generated and the external clock, within the scope that is fatal for my application. L ' other, I inspected the data generated looking for a glitch or gigue appearing at low temperatures... Notice anything special... I tried to heat the MCU upward at 100 °, HSDIO does not lock...

    What can I do? 6556 HSDIO is apparently too sensitive...

    Mar1

    Hi Mar1,

    Datasheet public for the chip used in the States of SMU - overclocking 6556 a typical tolerance of jitter of 20 000 ppm, with minimum of 5,000 ppm. For a 20 MHz clock, this corresponds to 1 ns of jitter typical and 250 ps in the worst case. That being said, we cannot guarantee the specifications that are not included in the specifications NEITHER SMU-6555/6556 document because it is not updated with the production trial.

    Best regards

  • Impossible to activate the external Microphone on my Satellite

    I try to install and a microphone outer helmet using the front catch, but the computer won't recognize it.
    I tried to enable it, but when I followed the instructions to activate the speakers only LINE IN coming.

    Hello

    Could you please after some info on your laptop model?
    What laptop Satellite you have exactly?

    With regard to the external microphone:
    Please connect the microphone to the mic jack on your laptop.
    Then go to control panel-> sound-> recording tab control

    Check here if the external microphone is available. If so, set as default device.

  • Terca M4: How to activate the external ports, DVI and analog?

    Please can someone please tell how to activate the two external ports. I would use two DVI and analog to the office. Currently if you activate a second screen machine sets up the flat screen and the other the DVI external display. Is this in any way about this?

    See you soon

    Hi Matthew

    As far as I know you can connect an external monitor or a TFT. For this you can use the VGA (15-pin) port or DVI - D video, supported by PortReplicator III (PA3314E).

    Sorry, but I don't understand why you need the two holes at the same time. How many external screens that you want to use? Sorry if I'm missing something but perhaps you can explain your wishes more precisely.

    Good bye

  • To use the external clock for SCTL myRIO

    Hi people,

    I'm trying to find a way to get a 2.5 PSM 16-bit ADC, TI ADS1602, to send data to the device myRIO. Ideally, I'd like to bit Records at 40 MHz in order to obtain the benefit of the PSM full 2.5. I know that I can create an 80 MHz SCTL on the FPGA to create a clock of 40 MHz, but when I checked the clock on an oscilloscope signal, it was obviously greatly degraded by bunch speed limits, so he looked more like a sine wave to a square wave. I doubt it would work for use as a clock signal to drive the ADC since ADC specifications say that eligible jitter is around 100ps.

    I can use an external oscillator to drive the ADC, but then I have to find a way to sync the clock with clock FPGA 40 MHz. is there any kind of PLL structure that would allow me to sync the clock FPGA myRIO to an external clock? Is there a way to do a loop simple timed cycle driven by an external clock? Or if I was able to customize the FPGA personality to accept a SPI signal up to 40 MHz (ten times her supported limit...), he would be allowed to use an FPGA to ~ 160 MHz and tell him to taste the SPI line each loop and proceed from there?

    Thank you!

    Hi 3.14159... ,

    The myRIO doesn't have the ability to import a clock to use on the FPGA block diagram for clock loops timed cycle unique (SCTLs). The sbRIO-9651 new coming out week OR (not shipping yet) is the only sbRIO who has the ability to import an external clock in LabVIEW. Many of our products FlexRIO also have this ability.

    Like you we have it, you can taste the signal at twice the frequency (or maybe more) to and wait an edge trigger to run a certain element of logic. "" "If you open the example Finder and navigate to hardware input and output" R series "FPGA Fundamentals ' triggers and guard dog" trigger detection, this gives a simple example to do this. Once again, since you are eager to taste 10 times the frequency of support, all bets are off, but it may be worth trying.

  • How to read multiple channels based on the external clock

    Hello

    Normal 0 false false false MicrosoftInternetExplorer4 / * Style Definitions * / table. MsoNormalTable {mso-style-name: "Table Normal" "; mso-knew-rowband-size: 0; mso-knew-colband-size: 0; mso-style - noshow:yes; mso-style-parent:" ";" mso-padding-alt: 0 to 5.4pt 0 to 5.4pt; mso-para-margin: 0; mso-para-margin-bottom: .0001pt; mso-pagination: widow-orphan; do-size: 10.0pt; do-family: "Times New Roman"; mso-ansi-language: #0400; mso-fareast-language: #0400; mso-bidi-language: #0400 ;} "}

    I use 6254 multifunction for playback of tension with VC ++ 6 as the development tool.

    Based on the documentation NOR I created tasks like this.

    DAQmxCreateTask (_T ("Voltagetask"), & taskHandle);

    DAQmxCreateAIVoltageChan(taskHandle,sChannels,,DAQmx_Val_NRSE,0,10,DAQmx_Val_Volts,);

    DAQmxCfgDigEdgeStartTrig (taskHandle, "PFI2", DAQmx_Val_Rising);

    DAQmxCfgSampClkTiming(taskHandle,"PFI2",303000,DAQmx_Val_Falling,DAQmx_Val_FiniteSamps,nSamples);

    DAQmxStartTask (taskHandle);

    After the generation of clock finished thanks to the DAQmxReadAnalogF64 function, I tried to read samples of each channel.

    DAQmxReadAnalogF64 (taskHandle, DAQmx_Val_Auto, 10, DAQmx_Val_GroupByScanNumber, read, m_nStates & sampsPerChanRead, NULL);

    Total number of samples (nSamples) available in the buffer when the task is created with a single channel and several channels are still to come as even. In several modes of channel returns total sample by channel, which is equal to the total number of samples divided by the number of channels at once.

    For example, if a total number of clock 8000

    With single channel, it reads all the 8000 samples (m_nStates = 8000, sampsPerChanRead = 8000)

    When two tracks he read 4000 samples per channel and so on. (m_nStates = 8000, sampsPerChanRead = 4000)

    If any body know, on every clock how to take samples of all of the configured channels.

    Thanks in advance,

    Renjith.

    Renjith,

    Please note that the behavior, I explained is in line with the provisions should only if you use your clock as I convert clock. You can find information about the different types of synchronization of the analog inputs using NOR-DAQmx; the element to search for is "clocks".

    Since you do not set the clock to convert MY (should be DAQmxSetAIConvSrc()), the fact that I mentioned above is only informative for you, but does not apply to your question.  Sorry for responding too quickly without looking in your code between quotes...

    In order to answer your question, we take a look at the approach to programming DAQmx:

    If you configure your task to be "finished", the task will stop running if the number of samples per channel is acquired. In the case of an external clock (not configured as I convert clock), served it in the sampling interval. The sample clock will automatically receive a sample for all channels with a single clock pulse. From this point of view, the installation program you have in your program seems correct.

    If you do not get the number of samples that await, the fault must be somewhere in your playback function. Do you get any error messages?

    DAQmxReadAnalogF64 (taskHandle, DAQmx_Val_Auto, 10, DAQmx_Val_GroupByScanNumber, read, m_nStates & sampsPerChanRead, NULL)

    If you set m_nStates set to 8000, it's here. You say the Read function to retrieve 8000 samples. None. So if you have two channels, DAQmx acquires 2 x 8000 samples, but read you only 8000 samples... Please change m_nStates to

    m_nStates = #channels x #samples by channel

    This should solve your problem.

    hope this helps,

    Norbert

  • Satellite P300 - screen is broken - how activate the external monitor

    My screen is completely broken.
    I hung on a desktop to the laptop monitor.
    I need to know to turn on the broken and the other external.

    I turn on and I am looking for an a little glowing screen and cracked and broken.
    I don't know this may be to do I don't know what buttons to push because I see a screen.
    IHIS, this is my first Forum ever thanks!

    Hi mate

    I recommend using the FN + F5 key combination
    You can use it to switch to output the external monitor or TV.
    This key combination supports several options:
    -screen internal + external display
    -external display only
    -TV out
    -etc...

    You have to press FN + F5 several times in order to get the right output.

  • Not possible to activate the external monitor on Satellite M40X-159

    Hallo, I have to drive a VGA monitor external in a notebook of SM40X-159, but without losing the display on built-in LCD.
    I am not able to do that!
    When I select external monitor LCD turn black!
    How can I solve this problem?

    Thank you for the answers.

    Hello Fabio

    With the combination FN + F5 keyboard shortcut, you can change views. As far as I know, you have the icon with two screens.

    Good bye

  • Inspiron 7559 refuses to activate the external microphone (speakers work well)

    Hello

    I have a new inspiron 7559 (about a month), 10 windows, updated everything, no conflicting antivirus, etc.

    Since the beginning, I was unable to use my external microphone. I have a headset with microphone, on one of these micro + combined speaker 3.5 mm plugs. When I plug it in, the sound system detects my headset very well and his career to it.

    It bugs a bit me that the system does not display the individual devices and windows to perform a control instead of the reports just one audio device, but okay fine, I can understand from a technical POV.

    However, the real problem is that no matter what I do, only the built-in microphone is used, never my external on the plug 3.5 mm taken. He appears as a device, there is no setting for it in the sound system, and the system is not automatically switch to it when it is plugged. I can not all the sounds of it (no, it is not broken).

    Any help would be appreciated, thanks.

    Faziri
    By "no adjustment for her", I meant that the driver is not exposing the detection or allow you to replace everything. All you get is the combined unit, and if it doesn't work, it's too bad.

    Many or most models computer Dell laptop with material Reatek'a have a Manager named application Audio Dell or just the Audio from Dell, which is a truncated version of the Audio Realtek Manager found on other brands of computers. I don't know if the 7559 is supposed to have or not, but if so it should be installed at the factory and also the part of the support of the notebook page download driver Realtek.

    Anyway, if you have the app it might give you a little more control.

    Faziri
    Any chance of dell step in and take care of an update?

    I can't speak for Dell, but I want to emphasize that its roadmap is not good about the audio problems are fixed.

  • 'Resources in use' error during the acquisition of the analog data on AI0 with external clock on PFI0 and beginning of slope trigger analog on AI1

    Hello

    I use the card PCI-6111.

    I am trying to acquire analog data on channels dev1/ai0 ai1/dev1 using pulses of external clock connected to the PFI0 channel. I also want to trigger the acquisition, when the channel dev1/ai1 signal reaches certain level. I send a triangle wave channel dev1/ai1, and I need the data only for the front.

    I have configured the task in the following ways:

    However, I get the error-89137 after function DAQmx Start Task:

    Specified route can not be satisfied, because it requires resources that are currently in use by another route.

    Source device: Dev1
    Terminal of source: PFI0InputLockOut
    Target unit: Dev1
    Destination terminal: AnalogComparisonEvent

    Resources in use by
    Task name: _unnamedTask
    Source device: Dev1
    Terminal of source: PFI0
    Target unit: Dev1
    Destination terminal: AI/SampleClock

    Task name: _unnamedTask

    If I change the internal clock external clock - switch works. If I pull the trigger, the external clock works, too. But these two tasks do not work together.

    Help? Advice? Thank you!

  • Tecra M5: How auto to activate the secondary monitor?

    Hello

    When I my Tecra M5 with full-screen dock and turn it on, I would like that it allows to automatically activate the secondary monitor and set it on the primary monitor. Currently, when home he doesn't - and I have to manually enable the second monitor and place it in the primary.

    Any ideas?

    Thank you
    Fraser

    Hi Fraser

    As far as I know it of not possible to set the external monitor as the main screen on startup.
    But what the graphics card is installed on your laptop?
    On the Toshiba site I found a new version of the Intel display driver.
    But is it possible to automatically activate the external display and set it to the main monitor without using the docking station?

  • external clock or wave pulse or sinusodial?

    Hello

    I'll plug an external clock to 6711 map source. But I wonder if the source should be trains of pulses (wave squre) or it might be vague sinusodial. When we say the frequency of the clock, it means the occurrence of the rising or falling on board but not the pulse, right? And what is the range of voltage for the clock signal?

    Hi dragondriver

    The external clock should be a pulse train, not a sine wave.

    When we talk about frequency, as you said that it: the appearance of rising or falling edges within a period determined.

    Voltage range must be from 0 to 5V.

    Concerning

  • FPGA and external clock Source

    By using a PXI-7854R, is it possible to run a process on an external clock source? As far as I know, you could potentially bringing the external clock to one of the triggering RTSI lines. Is this correct? Is it possible to route through one of the connectors on the PXI-7854R? If this isn't the case, I also have a PXI-6229. Can the external clock be routed to the RTSI through the PXI-6229 and then line for the PXI-7854R to run the process?

    Hello

    Unfortunately not, as noted hereand here. The best solution is just the external clock with DIO on a structure of case to door. While this will not have any type of phase synchronization and you may miss the clock cycles depending on how long and how fast your external clock is running (not really an option). I hope that answers your question.

  • External clocks for 7811R

    I recently bought a 7811R.  I have a need to synchronize the external clocks (requires 3 in fact).  How to set up external clocks for the 7811R in Labview FPGA modules.

    Emax,

    Unfortunately, not all FPGA target supports this feature. Currently, the R-series cards are not able to do. However, FlexRIO target supports using resources DIO as an external clock, including the following models: 7951R 7952R, 7953R and 7954R.

    What components you try to synchronize in your application and how fast your clock do you have to go?

  • Divide by 2 external clock?

    I have an external clock 20 MHz connected to APFI1, I want to use as a sample of 16 clock inputs digital. Unfortunately I wanted to divide this clock by 2 at the hardware level, but I forgot in the mad rush to get out the Board. Now I find myself with a problem! Map NIDAQ I use (NOR-6289) can enjoy digital inputs as soon as 10 MHz so just sampling and decimating in the software is not an option. In addition, it seems that counters cannot treat ticks is less than 2, so low, I can divide the external clock down by 4. The only option I see at this point is to use the external clock as a trigger for a free counter running on the clock of 80 MHz. The counter would then serve as clock for digital inputs. However, I want to retain the flexibility to change the external clock and not constrained by the software.

    I was encouraged at the beginning of this thread, but unfortunately it does not seem possible with digital inputs.

    http://forums.NI.com/T5/Multifunction-DAQ/analog-sample-clock-Division/m-p/1201687/highlight/false#M...

    Y at - it anyway to divide this by 2 clock and use it for digital inputs?

    Thank you

    Drew

    Hi Drew,

    I think you can probably find this works using an output meter task set to pulse Mode instead of toggle (default).  Here is an example that shows how to configure the meter in this way.  I have posted just the example, you may need to wait a few moments before the transfer is completed.

    Best regards

Maybe you are looking for