County of gated cDAQ-9188 edges with NOR-9402

Hello! This discussion is a branch of it.

Shortly, I want to count the random impulses of a meter of photons, which emits pulses that when her door is activated (and this should be done in a manner expected by HW), only when the door is active.

I separated this task in two: in timing HW emit pulses of door and to count the edges when the door is active. For the second task, I created a VI:

those who are more experienced could please tell me, if I do it in a right way? I'm a little confused on how to connect my device: random TTL of the photon counter should go to ctr0 PFI0 (in NOR-9402 this is the PIN 0) and what I generte of the first task (in fact, pulse clocked by HW) door and then must be connected to the terminal of the door of my meter (left unwired above) both at the entrance of the gate of the photon counter... There must be a mistake in the present, I guess that (otherwise I have to divide a wire giving my first task output and connect it to the PFI1 and at the counter of photons of entry door).

In your implementation of the second example, you have selected Ctr2Source as the sample clock, instead, you must use Ctr2InternalOutput.

The way I read your initial post, it sounded as if you wanted to limit the count while the low door signal.  However, if the photon counter does not export the pulses during this time, it would be unnecessary to set up the break.  Indeed, as you said it would be undesirable to do so.

To change the examples I posted to count regardless of the State of the portal, you can do the following modificaitons:

Example 1: Change the task to a task period pulse width (and the corresponding property node).

Example 2: Remove the break.  Change the sample clock to sample on the shores of the Levant.

So now you will be pointing the samples on each rising edge of the gate signal.  The count represents the number of photons during the previous impulse of the door.  The returned data will be slightly different depending on the approach you take - sample-clocked version will return a sample on the first rising edge (which should read a counter to '0') where the period version will not return this example.

Best regards

Tags: NI Hardware

Similar Questions

  • Module AO trigger using PFI on the cDAQ-9188

    I use a cDAQ-9188 chassis with an AO (NOR-9264) module.  Is it possible to configure a PFI (channel on the frame) as an input signal to synchronize an AO channel with the trigger?  Here's what I'm trying to do.  I need a channel on the AO module to switch voltages in sync with the trigger when the user "push a button".  So once the button is pressed, the channel of the AO will not change until the next trigger pulse.

    Thanks for your help

    Ben

    Hello Ben

    I hope you are well.  The consensus is that it is possible.  Have you tried this yet?  If so, can you tell me what you have tried and how you made a lot of progress?  I recommend the following VI example: Cont Gen tension Wfm - Ext Clk.vi.  Are you able to get all the functionality you are looking for this VI.  It was recommended that I'm showing you this.  We find this VI under help--> find examples and then material input output &--> DAQmx-->--> voltage analog generation.

    Please let me know how you are progressing and if you have need of all aspects of this example explained.  Thanks for choosing National instruments!

    Sincerely,

    Greg S.

  • buffer size and sync with the cDAQ 9188 problems and Visual Basic

    Hi all, I have a cDAQ-9188 with 9235 for quarter bridge straing caliber acquisition module.

    I would appreciate help to understand how synchronization and buffer.

    I do not use LabView: I'm developing in Visual Basic, Visual Studio 2010.

    I developed my app of the NI AcqStrainSample example. What I found in the order is:

    -CreateStrainGageChannel

    -ConfigureSampleClock

    -create an AnalogMultiChannelReader

    and

    -Start the task

    There is a timer in the VB application, once the task begun, that triggers the playback feature. This function uses:

    -AnalogMultiChannelReader.ReadWaveform (- 1).

    I have no problem with CreateStrainGageChannel, I put 8 channels and other settings.

    Regarding the ConfigureSampleClock, I have some doubts. I want a continuous acquisition, then I put the internal rate, signal source 1000, continuous sample mode, I set the size buffer using the parameter "sampled by channel.

    What I wonder is:

    (1) can I put any kind of buffer size? That the limited hardware of the module (9235) or DAQ (9188)?

    (2) can I read the buffer, let's say, once per second and read all samples stored in it?

    (3) do I have to implement my own buffer for playback of data acquisition, or it is not necessary?

    (4) because I don't want to lose packets: y at - it a timestamp index or a package, I can use to check for this?

    Thank you very much for the help

    Hi Roberto-

    I will address each of your questions:

    (1) can I put any kind of buffer size? That the limited hardware of the module (9235) or DAQ (9188)?

    The samplesPerChannel parameter has different features according to the synchronization mode, you choose.  If you choose finished samples the parameter samplesPerChannel determines how many sample clocks to generate and also determines the exact size to use.  But if you use streaming samples, the samplesPerChannel and speed settings are used together to determine the size of the buffer, according to this excerpt from the reference help C DAQmx:

    Note that this buffer is a buffer software host-side.  There can be no impact on the material available on the cDAQ-9188 or NI 9235 buffers.  These devices each have relatively small equipment pads and their firmware and the Driver NOR-DAQmx driver software transfer data device to automatically host and the most effective way possible.  The buffer on the host side then holds the data until you call DAQmx Read or otherwise the input stream of service.

    (2) can I read the buffer, let's say, once per second and read all samples stored in it?

    Yes.  You would achieve this by choosing a DAQmx Read size equal to the inverse of the sampling frequency (during 1 second data) or a multiple of that of the other playback times.

    (3) do I have to implement my own buffer for playback of data acquisition, or it is not necessary?

    No, you should not need to implement your own stamp.  The DAQmx buffer on the host side will contain the data until you call the DAQmx Read function.  If you want to read from this buffer less frequently you should consider increasing its size to avoid the overflow of this buffer.  Which brings me to your next question...

    (4) because I don't want to lose packets: y at - it a timestamp index or a package, I can use to check for this?

    DAQmx will meet you if all packets are lost.  The default behavior is to stop the flow of data and present an error if the buffer of the side host DAQmx overflows (if, for example, your application does not pick up samples of this buffer at a rate equal or faster than they are acquired, on average).

    If, for any reason, you want to let DAQmx to ignore the conditions of saturation (perhaps, for example, if you want to sample continuously at a high rate but want only interested in retrieving the most recent subset of samples), you can use the DAQmxSetReadOverWrite property and set it to DAQmx_Val_OverwriteUnreadSamps.

    I hope this helps.

  • Frequency control of NOR-9476 on the cDAQ-9188

    I am using a cDAQ-9188 with a NI 9476 module, and I would like to control the frequency of the digital signals that the module was released. I tried to use the example of Pulse Train digital continuous with control of the frequency, but impossible to select the 9476 since there is no internal counter, and when I change the 'Digital output' task, the frequency control disappears. Is it possible to use the internal counter of frame to control the output frequency of the 9476? I need to get out a range of 0 to 1 kHz.

    Most of my program would output a digital signal of a certain frequency every second in real time from a given table. For example, if I have an array of [10, 20, 15, 100,...], it generates a model of up/down of 10 cycles per second for a second, followed by 20 cycles (with a shorter period) for a second, then 15 cycles per second for a second, and 100 cycles per second for a second.

    I tried to use avoiding to do, but it was very slow, with a delay of 63 ms between each cycle, when I wanted a 1 ms delay.

    CDAQ-9188 has 4 counters built in, but you cannot access it by using the NI 9476-, but the NI 9401 module can access the built-in meters.

    The good news is that you can always generate your pulse train, using counters, it generate on the PFI lines on the chassis itself and not through your module.  If you need to generate more than a pulse train, or use all four counters, you will need the module NOR-9401/9402.

    In order to get the speed, you will need to use the capabilities of hardware counters timing.

    I hope this helps!

    For more information:

    https://decibel.NI.com/content/docs/doc-12161

    http://www.NI.com/white-paper/9384/en

  • Using instrumented hammer model PCB 086D 50 with the NI9234 module and chassis OR cDAQ 9188

    Hi all

    I need to try to shock with a PCB 086D 50 instrumented hammer hammer. I use the chassis OR cDAQ-9188 with the NI9205 and NI9234 modules. The hammer is connected to the NI9234 and accelerometers are connected to NI9205.

    When I test the modules in SignalExpress I get very good results for the dog, but the accelerometers are ok. Also, if I am controlled the hammer OR Max where I have the option to activate the IEPE the result is ok. In SignalExpress, I couldn't find the option to activate IEPE.

    I have no experience using software, but I started to learn. Does that mean that I need to program the system for my setup in LabVIEW? Also, the installer of the equipment makes sense, the modules that I plugged on the cDAQ can be used simultaneously? Should I have the additional device in order to use the hammer with cDAQ 9188?

    Thank you very much

    Emina

    You can enable IEPE in SignalExpress. Here is a configuration for a single power hammer and three accelerometers a 9234-related.

    You don't mention the model for accelerometers. They are also the IEPE sensors? If so, have what conditioning of signals you added before the 9205?

    The Assistant Sound and Vibration (built on SignalExpress) contains an example of Impact Test. The Sound and Vibration Toolkit comes with a sample project for the impact test. With free evaluation period, go ahead and look at how one of these examples is implementing the configuration and the triggered acquisition.

  • How many quadrature encoders may be read together with the cDAQ-9188 chassis?

    We will record position periodically 8 engines (at the same time as we are to the corresponding samples entered analog).  It seems that the 4 built-in counters limited chassis to 4 encoders.  Is this correct?  I am familiar with modules of counter PLC which manage high-speed counting, and then the CPU posts periodically to update the total values.  This is how the NI 9401 card would work?

    Hi jtrout,

    You are right the 4 built-in counters than the cDAQ-9188 chassis 4 encoders.  The following article deals with the use of the NI 9401 card for encoder measures: http://www.ni.com/tutorial/7109/en/.

  • LabVIEW 2010 with CDAQ-9188 and NI9205

    Hello

    I use the NI CDAQ 9188 with the Analog Input Module NI 9205. The specification of the NI 9205 module shows that there

    16 channel differential channel, or simple 32 took end. I use the 'DAQ Assistance' in Labview to configure the

    Module OR 9205. But it only allows me to select 8 differential channels. After I put the 8 channel, then the

    Terminal configuration allows no differential inputs. It allows only to CSR or NRSE entered.

    I'm doing something wrong? I just bought the camera to use for 16-channel differential reading.

    Thank you

    Bobby

    Hello

    It worked.

    Thank you

    Bobby

  • How to speed up loop DAQ triggered using NOR cDAQ-9174 with NOR-9215 and NOR-9402

    Hello

    I use LV2010 and NOR-DAQmx 9.2.2. I have a NOR cDAQ-9174 with a NEITHER-9215 4 channel 100 k simultaneous ADC and NOR-9402 4 channel DIO module trigger and reset.

    We run WinXP sp3 on a Dell M4400 core 2 duo @2. 26 Ghz.

    I used the code example NI DAQmx for acquisition of tension with trigger HW. My goal is to try all 4 channels on the 9215 simultaneously when a trigger is received on channel 0 of the 9402, after data is read, I use channel 1 on the 9402 to reset the trigger of the target material.  I have a version of this work, however the maximum event rate is ~ 16/second. I have the Setup 9215 for finite samples / 10 samples per channel which is ~ 400uSec of conversion time and I realize he is above in the appeal of vi, but ~ 50mSeconds worth?

    The target detector can put out up to 1 k / event triggers / seconds.  Only, I received a rate of 8 per second and I added the NOR-DAQmx control vi driver and chose "commit" this did double the rate.

    My question is what is the maximum rate of loop for these devices (trigger/conversion/reading device / reset) and start over? I noticed that just let free the 9215, carried out using the 'Acq & chart internal strain Clk' raised only the rate of events up to 20 Hz.

    Thank you

    normbo663

    Hi normbo663,

    You can get this works far better assuming you have an available counter (there are 4 on the backplane of the 9174).

    DAQ Compact supports the tasks of meter output "redeclenchables" that can be used to generate a finite pulse train.  You can set a task of finished meter redeclenchables output to be used as sample for your task of analog clock.  The task of the meter output will be re-Army (less than 12, 5-25 ns) as soon as it's finished out the last pulse.  The task of analog input would be configured to run continuously, but it would only sample based on the output of the meter triggered.  For an example, see here.

    You can reference the internal counters on the cDAQ without signals through a routing module using: cDAQ1/_ctr0 (right click on the chain counter control, then select i/o name of filtering and check channels internal to add these options to the drop down).

    Thus, with the tips above, you should be able to immediately re - arming your analog acquisition on the 9215 using one background basket counters.  It seems that the second half of the application is to use a second channel on the 9402 to reset the trigger of your DUT.  You can deterministically generate this signal so by configuring a 2nd redeclenchables meter out task (single pulse, but this time).  All you need to do is the initial delay on the appropriate value for your analog acquisition.  Trigger this counter on the same PFI line that trigger you your analog task from.

    Using counters to generate the signals you need in a deterministic way, the loop becomes is no longer a problem (as long as your input buffer does not overflow).  You may need to re-read several triggers at the same time for the loop to keep (for example to read 1000 samples each, which would correspond to 100 triggers 10 samples).

    Best regards

  • Networking the cDAQ-9188 - no 'network devices' Max

    Hi all:

    I have problems connecting my NI 9188 cDAQ via ethernet to my computer. MAX does not display it in his repertoire, or it displays "network devices". Based on the guide NOR offer, I don't know what else to do (I can't access the modules in a LabVIEW project which is my problem).

    I used the tool online browser that seems to be the equivalent of MAX and works very well - I can see the IP address of the controller and it shows what chassis slots are used by what the map.

    I tried manually inputing this IP in a remote system to the MAX, but that hasn't worked.

    Any ideas on how I can networks controller on my computer so I can actually use in a LabVIEW project.

    I have LabVIEW 2012 32 Bit. Would a student version be the cause of the problem?

    Thank you very much.

    cuaerospace wrote:

    I am familiar with the method you describe, but I agree with all the power cycling to get some of these products to work. I had to do this several times with the cRIO. Any chance you could give a little more than a description step by step explcit of your approach? Thank you!

    Good so here's what I did to try to reproduce and to have a step by step of what I had to do.

    Firstly I have reset my cDAQ so that it would be if all goes well in the mode that yours is.  To do this, I pressed the button to reset for 5 seconds then.  I have also all my network devices defined to "Obtain an IP address automatically" in the IPv4 settings in my network connections.

    After that, I start MAX.

    Go to devices and Interfaces > network devices, then I right click and choose Find devices.  It took a lot of time and the list was empty, but then I noticed that while he was always looking in this window, the MAX window showed my cDAQ-9188, who was a white device.  There, he registered the IP address as 169.254.93.149.  At this point if I went to the device to the MAX I saw where he sometimes States under network settings that no network adapters found.

    So I closed MAX and open my "view network connections" in Windows, I just searched that term in the start menu.  Then for my device properties, went to the IPv4 properties, set the IP address of 169.254.93.0 with 255.255.0.0 default gateway.  It is, so I'm on the same subnet as the appliance.

    I then restarted MAX now when I go to the device under devices, network and network settings I can set static IP and subnet is 255.255.0.0 10.10.10.100 then save.  Then closed MAX.

    Then I went back to my view network connections, the static value of what I really wanted is 10.10.10.0

    MAX then launched.  Find my device that is always white, click Add the device.  And then all is good.  I don't know if all these steps are necessary, and I don't know if there is an easier way, but it worked for me.

  • Sync module NI 9205 with NOR-9234

    Hello

    I have a cDAQ-9178 chassis with 4 x accelerometers IEPE PCB 16 absorbent of NOR-9234 (DSA). I have a NOR-9205 I intend to use to acquire the power of 4 problems. The NI - 9234 s are synchronized through their extensions in a single task. I would add the NOR-9205 to the chassis and synchronize it with the NOR - 9234 s. I have the following questions:

    1. Calendar synchronization

    How to properly START and the NOR-9205 CLOCK synchronization with the NOR - 9234 s? PXI I export the master St DSA. WHICH device (OR-9234 or NOR-9205) should export WHICH signals to WHOM?

    2. even or parallel task

    Since I produce a TDMS file in its task of NOR - 9234, it would be nice if I could simply to ADD the OR-9205 to this task to develop this unique TDMS with extra 4 channels of the NOR-9205 file. Is this possible?

    Thanks in advance,

    Hi golubovski,

    > Are you saying my task of canal expansion can fire them OR - s and NEITHER-9205 9234 with its 32 channels of multuplexed HAVE? How to recognize which modules can be combined in this way convinient?

    Yes. With the cDAQ-9178, any set of AI modules can be included in the same task and in most cases that apply to the AO and DIO as well, but you cannot mix a, AO and DIO in the same spot. The NOR cDAQ-917 x manual goes into more details on what combinations of modules, the types of channels and the tasks are possible.

    > I am aware since I worked so far with the PXI - 4472 DSAS. How well can correlate between the NI 9234 - and the NI9205?

    Well, I wanted to make sure that you did not know that it is something that you'll probably need to take into account. On the top of my head, I don't know the answer to this question.

    > As far as I know, in which case I use dummy DAQ with the NOR - 9234 to offset 40 clock cycles I guess I'll need to separate the tasks - how to integrate viewers into a single stream of TDMS?

    If you use two separate tasks and you are using the built-in support of DAQmx for TDMS logging, then you will get flow TDMS separated for each task. Note that a dummy read will still record to the PDM file, then maybe it will not work in your case.

    If you use the TDMS API to write to the PDM file, you can do the preliminary processing of data before it is written in a single stream, but there is some trade-off between ease of use and efficiency: either you write data point floating in the file (easier but less effective), or you have to deal with scaling (most effective raw data (, but harder to do).

    Another approach is to put all the modules in the same task and compensate for the delay of the filter after reading the data from the PDM file.

    > Also, for fixed 3.2 µs I have to calculate how many cycles given the actual sampling frequency or is there another method?

    If you filter delay compensation by removing a whole number of data samples, then Yes. However, there are other methods of data processing that can compensate for a number that is not part of the sample clock periods. I don't have a recommendation, but maybe someone else does?

    Brad

  • the cDAQ-9188 discovery method?

    I have a cDAQ-9188 I prepare for use by customers in the area.  These customers tend to forget IP addresses, and I would like to add something to my request to help.  Something installed "NI Network Browser" on my development machine.  I suspect it was DAQmx 9.2.2.  This browser appears to be a shortcut to a web page of Silverlight being served off port 59648.  The browser does a good job to list the chassis on the network, and I would like to know if there is a way to make this work in LabVIEW.  It uses UDP or something?

    I know that the standard method would be to ask clients to use the network browser, but I'll try match the SCXI-1600 user experience where you just plug in and it appears.  I try to avoid making them run MAX or a browser or anything but my request.  I know that I can avoid the MAC with the VI DAQmx step add network device, but he wants an IP address for an entry.

    Thank you

    Dan

    Hi Dan,.

    The API for the system setup OR was released earlier this year and aims to provide developers the ability to integrate MAX features into their distributed LabVIEW applications.  The following code uses the API and should be a good starting point for what you need to do:

    If you have any questions or encounter any problems do not hesitate to post back!

    Best regards

  • Multifrequency 9223 9215 sync and 9213 in cdaq 9188

    Hello

    I'm trying to synchronize three different modules (NI 9223 and NI 9215 NI9213) every acquisition given to various higher sampling frequencies (e.g. 9223 = 1000 hz, 9215 = 100 Hz and 9215 = 2 hz) and write files to separate data for my task. I am using a cDAQ-9188 ethernet and all modules are in the same chassis. There is an external trigger (which comes from an external source) to start acquiring data which are wired connected to the PFI0 channel in the chassis. What I want to do is: whenever the trigger is high, acquire 10seconds of data according to different sampling frequencies high above and write in separate data files. I followed the procedure referred to in the http://www.ni.com/tutorial/5376/en/

    Here's a snapshot of the block diagram

    Now, the problem I am facing is the 'average frequency (NI 9215) data' and 'data of Thermocouple (NI 9213)' are acquired and written immediately after that I have start the labview program. Fast speed data (NI 9223) are not written, and wait for the trigger signal. And then it throws an error 200284. If I do just a finished sample rate on NI 9223 alone (without adding/attempt at sync with other modules) with expectation of release it works without any problem.

    LabVIEW files are attached.

    Suggestions very much appreciated and you wish all happy new year.

    Thank you

    Roy

    Hi Roy,

    'average frequency data (NI 9215)' and '(NI 9213) Thermocouple data' is acquired and written immediately after that I have start the labview program.

    Yes.

    You forgot to set a trigger to start these DAQmx tasks!

    And then it throws an error 200284.

    The description of the error says something like "use a higher timeout value. Have you tried that?

  • cDAQ-9188 Ethernet connection problem

    We bought 2 cDAQ-9188 and I can't get them to connect to the computer via the Ethernet connection. I can make them work if I use a short cable (10 ft), but the location that I need them is about 180 feet away. When I do right click on network devices and select Find devices that it returns Nothing found. Is there any suggestions on what I might be wrong or what I should do to make them work? I'm running LabView 2010 SP1 and the drivers provided with the units of the cDAQ-9188.

    Of course, the PC Ethernet card we use is low. I have them connected to a router and placed near the PC router, and now, they work very well.

  • Support for alarms diagnosis field according to FF - 912 with NOR-FBUS Configurator 3.2.3

    I tried to control the utility alarm monitor and diagnosis field according to FF-912 alarms since a FF camera H1 with NOR-FBUS Configurator 3.2.3.

    Alarms standard block for example in the case of a change of parameter are monitored in the alarm monitor.

    Field diagnosis according to FF - 912 alarms are not controlled.

    Are field alarms diagnosis according to FF - 912 took supported by the NOR-FBUS 3.2.3 Configurator. or something special to do to activate the analysis.

    If not, what tools or host systems are available for monitoring these alarms?

    Alarm in the software OR-FBUS monitor doesn't have a field of diagnostics alarms. You can try to use NOR-FBUS C API nifWaitAlert2 to monitor this alarm. We will find the detailed description of the API OR FBUS Hardware and Software User Manual Chapter 6.

  • Encoder interfaced with NOR-9401

    I bought a coder who has open collector and resistance to pull-up 3.3 kohm (TTL) logic output.

    The encoder comes with four sons: power + 5V, GND, channel A and channel B. channel A and B are logic output.

    Channel A and B are connected to the OID of NOR-9401 which is mounted on the cRIO.

    A standard VI for encoder counting is used and compiled under the FPGA environment.

    During the measurement, I have observed that there are number of significant loss in both directions encoder.

    I don't think that there is a problem with VI like I used it several times on the encoders with output RS422.

    Is there a problem with my current encoder with respect to its electrical interface with NOR-9401?

    Thank you.

    I don't think that there is a problem with pull-up resistance. Even if the digital IO ports have their own resistance to pull-up (usually of the order of 4.7kOhm - should be included in the manual), the power to be handled by the circuit of encoder output transistor is about 2mA. -Check your configuration for a correct connection GND. You must connect the encoder directly power GND to DGND to the printed circuit board Terminal.

Maybe you are looking for

  • upgrade to OS 10.6.8

    I have the 10.6.8 OS on my Macbook (2.4 ghz intel core 2 duo with 4 gb 1067 MHZ DDR3 memory.) The model Macbook identifier 7.1) and I would like to upgrade but not sure where to go from here. A link to my next logical update would be greatly apprecia

  • Iphone6 erasure

    Prepare a damaged for insurance replacement - iPhone its not working but shows up on find my phone - should I erase phone or en activate first find my phone? In addition, clear will remove Apple's Pay cards? I can't access applications on the phone r

  • Download from a digital video camera on ipad

    I have a Sony DCR-PC5E with Ctrl - L (LANC), IEEE 1394 (FireWire/I.Link), output S-Video, and composite outputs video/audio. Is it possible to download my videos on my iPad?  And what connectors and software do I need?

  • Replacement card mother HPE - 180 t

    During a powersurge. my onboard LAN is fried. The motherboard is an Asus Truckee 1.04E01; trying to find a new or a model that can replace the current in the same form factor for the HPE-180 t. Suggestions appreciated...

  • I recently had my hotmail account blocked.

    I clicked on the menus of the various media and was in a hot mail page when I received an IM message and then very quickly I had someone take control away from my computer. I was told they were techincial in favor of microsoft. As they were cleaning