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

Tags: NI Hardware

Similar Questions

  • 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.

  • 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/.

  • 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.

  • 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.

  • 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

  • Initialization of the CDAQ

    Hello

    I use cdaq-9188 system. It was connected by ethernet to the PC. before starting my application, I need to check my cdaq hardware initialization.

    I mean wheather all IO models are connected properly and works fine

    you will need to check that the cdaq controller is busy or no status.

    need to check is to reserve or cancel the hardware or not.

    If the condition is pass, and then must start my application or by message.

    which is the best way to identify these task. ?

    There are three cases:

    1. the cDAQ-9188 is reserved per person.

    2. the cDAQ-9188 is reserved by the host.

    3. the cDAQ-9188 is reserved by another host.

    There is no direct way to query the status of booking, but you can deduce from the Self Test, which will return an error:

    1. you get an error. (- 201388 ' network device is not reserved for this host. ")

    2 self-test will work normally.

    3. you get an error. (- 201288 "network device is not reserved for this host.")

    This may be sufficient for your needs. If you want great between cases #1 and #3 case, then network DAQmx device reserve with the 'override' argument set to false reservation has different side effects:

    1. the cDAQ-9188 gets booked by the host.

    2. the cDAQ-9188 continues to be reserved by the host. (no change)

    3. you get an error. (-201420 "the network device is currently reserved by another host.)

  • 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.

  • Run an application of LabVIEW 8.6 in win 7 (using the cDAQ-9172, 9219, 9422)

    Hello.

    I did a LabVIEW application for a few years. At that time, I used windows XP and labview 8.6. The material used is the cDAQ-9172, with NEITHER-9219 (reading of four strain gage sensors) and a NOR-9422 (using only a single input frequency).

    First of all, can I install my old version of labview 8.6 in my 64-bit computer to windows 7? I got an error message when I tried...

    Second, how much should I install? My old computer was slower after you install labview with its pilots. Perhaps I installed too much? Do I have to install 1, 5 GB DAQmx drivers?

    If I need a new version of labview for win 7, how much is an update?

    Thank you!

    Hello

    First version of LabVIEW which is supported on Windows 7 is LabVIEW 2009 SP1.

    Regarding the drivers, if you want to develop or run VI:s in LabVIEW with the DAQmx API, then you must install the full DAQmx driver.

    If you only meet built executable in the LabVIEW environment to run, then you just DAQmx Base Runtime.

    If you also want to be able to configure the data acquisition equipment (to the MAX) in a runtime environment, you should also Configuration DAQmx execution.

    For upgrades of licenses if please contact the local office of National Instruments or follow this link:

    http://ohm.NI.com/advisors/UA/pages/UA/intro.XHTML

    Best regards

    Klas Andersson

    OR Sweden

  • Suggest the cDAQ chassis applicable

    Hello

    In my application I will use a NI 9476, 9264 One, One two 9485, two 9265 9435 IO modules offer me please the appropriate chassis that I can use these modules.

    Thank you

    Prashant

    Hi, UPRR. You'll use 7 modules of data acquisition for your application, correct?

    In this case I recommend you to get either:

    1 NOR cDAQ-9188 - http://sine.ni.com/nips/cds/view/p/lang/en/nid/208990 - Ethernet connectivity

    2 NEITHER cDAQ-9178 -http://sine.ni.com/nips/cds/view/p/lang/en/nid/207534- USB connectivity, BNC connections for external clocks and 32-bit counters built into the chassis.

  • 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.

  • Difference between the cDAQ-9174 and cDAQ-9178

    I have several cRIO-9081.  Each cRIO-9081 running NOR-DAQmx 15.5.  On four of the cRIO-9018 we show you cDAQ - 9178 with 8 modules.  Everything just worked.  On the fifth cRIO-9018, we tried to connect a cDAQ-9174.  The aircraft appeared in the Windows Device Manager and MAX, but MAX has indicated that the aircraft was missing (error-88705) and that Windows can't find a driver for the instrument.

    We then plugged a cDAQ-9178 in the fifth cRIO and everything just worked.

    What is the difference between a cDAQ-9174 and cDAQ-9178 other than the number of the module support?

    Paul

    Hi Paul,.

    It seems it could be a driver problem! What DAQmx version you have installed on two computers? Reinstall the latest version may be worth it because it looks like there may be corruption. You can find the latest version here: http://www.ni.com/download/ni-daqmx-15.5/5901/en/

    You can manually associate the device driver, here: http://digital.ni.com/public.nsf/allkb/5B80CAAA64413B4C86256C5E0000C1A7

    There are modules connected to the cDAQ chassis?

    Also, sometimes, this can happen if you do not restart your computer after the installation of the NOR-DAQmx driver. Restart your computer after the driver installation will allow you to reserve the device successfully. Here are a few others not to try:

    • Check the charger to device OR to see if it is running

    • Reset the service OR charger

    • Reset the MAX Configuration database

    • The system power cycle

  • SignalExpress frequency control?

    I have a PXI-6713, and I try to use SignalExpress to generate and get out an analog waveform with frequency controlled by the user.  I think it's a simple task; I want just one button on my front panel that will allow me to select the frequency of the output wave.

    I have a block 'create the form to analog wave' and a block "DAQmx generate the waveform", so I am able to output a fixed waveform.  It's that I get, if.  It doesn't seem to be an option to add the frequency command directly to the waveform to create step.   I also tried to use a block "making the scale and conversion" to treat the waveform after creation, but it doesn't seem to be a direct way to change the frequency.

    Am I missing something obvious?  Asking too much SignalExpress?  I do this in a regular VI instead?

    Hello VTChris,

    Thanks for posting on the forums!  You're not too ask for SignalExpress, it's just that your application requires a feature of SignalExpress which is not commonly used.  First of all, you have at least SignalExpress 3.0 is installed?  With the release of SignalExpress 3.0, we added the functionality of the operator Interface.

    LabView SignalExpress Help: Operator Interface

    Operator interface select view"in the menu bar.  The Toolbox with available controls should appear in the upper left corner.  Place a button control to the bottom and click on the arrow icon to configure the properties of the control.  You want to change the related settings for link control for the frequency step setting create an analog Signal.

    Be sure to enable the operator Mode when you have finished configuring the button control.  Let me know if you encounter any problems with this.

  • Cannot delete the cDaq MAX devices

    I got a new device cDaq today and plugged into pc.

    It appears in MAX as cDAQ4 as I have already had 3 more before all shipped to a customer.

    The question is how can I delete the old ones on MAX.

    If I choose to remove by a right click or button on a panel of MAX, he asked me if I would like to remove it but nothing happened after that.

    I could remove devices in a chassis in this way, but not the frame itself.

    I tried to restart MAX after that and the devoces are still there. Did not attempt to restart the PC again, but don't think it would help.

    What is the solution of this problem.

    Hi Sergey,

    Is - this never happened to you before? What version of MAX, DAQmx and which OS are you using? If it's Windows XP, have you recently installed a Service Pack? Here are a few steps you can try:

    (1) open the Task Manager and ensure that there are no running LabVIEW or VI applications, that is sure to try to communicate with the device (although you would your cDAQ unplugged from your PC in any case)

    2) go to add/remove programs in the Control Panel, down to National Instruments software, click on edit, select the DAQmx driver and click on repair.

    (3) then try to remove the cDAQ, it can work.

    Otherwise, it could be a corrupted Max database, in this case you can follow the steps described in the following KB that you will guide them in creating a database MAX: How can I clean corrupted MAX Database and start with a new One?

    Please let me know if one of these help to solve the problem.

  • IOS10 - cannot get the control center by dragging to the top.  Nothing happens in any screen by sliding upwards

    I have an iphone 6. I've updated to ios10.  Everything seems to work fine except that I am unable to drag upward to get the control center.  What can I do to make this work?

    Hello

    The following steps may help:

    • Go to settings > Control Center:
      • Check that the options on the lock screen and access in applications are turned on.

Maybe you are looking for