Encoder Speed with NI 9215 module and cDAQ-9172

I've a NI cDAQ-9172 with the NI9215 analog input module, and I want to estimate the speed with an optical encoder (OMRON E6A2-CW3C). My approach was, making a comparison with a point in the midle of the high of the signal, ie 4V, making this way a perfect square signal with 1of high. After that I use the Tone Measurements and the Timing and Transition Measurements modules to calculate the frequency of the wave form, and this way I'm able to calculate the RPM speed.
The problem with this solution, is that even with the engine at a constant speed of 746RPM, measured with a stroboscope, Labview give me a high variable values between 730RPM to 760RPM, and I can't solve this problem because I really need an accurate measurement.
Should I buy for example the NI 9401 module to make this measurement? If so, does any one knows how to build a VI to get the encoder speed?
In attach I send the VI that I'm using to calculate the speed.
Thank you for help.
Attachments:
Encoder Speed.vi ‏112 KB

Hi,
The best way to measure a speed through a quadrature encoder is to use the counters that are inside the cDAQ chassis.
With the 9172 chassis, you need a digital I/O module (9401) in order to access the counters.
With the new generation of chassis (9178), you don't need the 9401 because you can connect your encoder signals to the BNC.
Best regards,
Thomas B. | CLAD
National Instruments France
#adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
>> Inscrivez-vous gratuitement aux Journées Techniques : de l'acquisition de données au contrôle/com...

Similar Messages

  • Strain measurement using 9237 and cDAQ 9172

    I am trying to measure strain using a 9237 and cDAQ 9172.
    The strain gage is connected to 9945 (Red wire to EX+, White to IN+ and Black to QTR terminal also tried connected the white and black to IN+ terminal).
    The 9945 is connected to 9237 quarter bridge strain measurement module on a cDAQ 9172. I have two 9237 on the cDAQ 9172.
    The device passes the test in MAX.
    The problem is I cannot read the strain value.
    Can anyone help me please?
    Attachments:
    Strain measure.vi ‏19 KB

    Hi jujare,
    In the VI you attached, you don't have the bridge configuration set up. The default is full bridge I, so if you have a quarter or half bridge wired up, that is one reason you could be getting bad data. I'd suggest you take a look at "Cont Acq Strain Samples(With Calibration)-NI 9237.VI" in the Example Finder. It shows the configuration for bridge type and has some handy wiring diagrams. You could also add controls to your vi to set the bridge configuration if you'd prefer.
    If your strain gauge only has three wires, it's probably a half or quarter bridge. A full bridge needs at least four wires.
    I hope this helps!
    Regards,

  • W520 i7-2860QM with 2 memory modules and CPU-Z Reporting them as Slots 1 and 3?

    Is this normal for CPU-Z (1.59, 1.60, 1.61) to report a matched kit pair of properly populated memory modules as Slots 1 and 3 in "dual" mode?   One is under the keypad in the upper slot #0 while the other is in slot #1 under the chasis on the left closest to the DVD (with the black plastic frame).
    Slots 2 and 4 in CPU-Z are reported empty.
    I think this is okay and just the way CPU-Z is setup to report the SPD info but would like to double check out here with others using only 2 of their 4 memory slots.
    I'm running a fresh clean bloatware-free Win7 Pro SP1 installed to my Samsung 840 Pro 512GB SATA-III SSD and holding at BIOS 1.36.  I'm using 1600 speed 2x8GB Corsair Vengeance modules (a 2x8 kit with adjacent module serial numbers).  Optimus and the integrated graphics are both disabled in BIOS and the unit never leaves its 170W Series 3 Plus docking station w/ external monitor, keyboard and mouse ..... it runs with the lid closed nice and cool, plus quiet also.
    CPU-Z also reports I'm actually running at 1600 on the memory and I have thrown every torture test I know of at this configuration and have not had any issues yet over the last 6 weeks.   Benchmark programs are also all on the very high end of the ranges published for W520 units ..... probably with a lot of help from that 512GB SSD SATA-III Samsung 840 Pro.
    I never plan to ever use the on-board graphics, so I'm getting ready to install my other identical Corsair 2x8 kit next week and see if stability issues arise at 32GB using 4 modules ...... will hold at BIOS 1.36 unless things start happening at 32GB.
    Thanks in advance for any input about the way CPU-Z reports pairs of memory modules.
    Two (I used to have Five) - T61p 15.4" WS T9300 2.5Ghz units, August 08/08 Builds with FX570M Nvidia Graphics; ... One W520 i7-2860QM w/2000M Nvidia Graphics (most recent acquisition and stupidly fast); .... One - T42 4:3 15" Flexview 1.8GHz with ATI Graphics (still perfect for traveling); ... Two - T500 15.4" units both with ATI HD3650 Graphics.

    Quote
    Originally posted by Wonkanoby
    if it drops that low rms the psu
    Sorry for asking, but what's rms? I found nothing on google that seemed to fit in, but I guess you mean to get rid of the PSU and get a new (better) one.
    I also ran memtest86 for 3+ hours and it seemed that one of my memorysticks was heavily corrupted.  
    So I removed that one and ran memtest86 again for an hour without any problems, but the volt keep dropping anyway... and the freezing-problem persists.
    Hopefully I can purchase a PSU on approval and run some test.
    Thanks for the quick answers guys!
    edit: By the way, which brand do you recommend for the PSU? Right now I have Topower, cheapest one I could find when I bought my computer about a year ago (only bought the two extra memorysticks last week).

  • Encoding Speed with Media Encoder Issue?

    I have a 5 hour and 36 minute timeline in Premiere Pro CS5 which is composed of mixed assets- some at 29.97, some at 30 FPS, etc.  The timeline is exported to Media Encoder and set for Match Source Attributes Highest Quality  (Quality 5.0, VBR 2 pass, min 3.00, target 6.00, Max 7.00 MBPS).  NTSC 720 X 480 (0.9091), 29.97 FPS, PCM 48hz, 16 BIT stereo.  Format is MPEG2 DVD.
    Estimated file size is 18138 MB.  The file takes approximately 36 hours to encode.  Is this normal?
    Premiere Pro CS5
    Media Encoder CS5
    Windows 7 64 BIT
    2.4 GHZ
    Intel Quad 4
    700 GB free space on hard drive
    6 GB RAM

    Is this normal?
    Probably yes. Aside from the normal conversion with 2 pass VBR, which even under ideal conditions could require up to 3 times the duration of the footage (in your case this makes about 15 hours), you are causing additional operations to conform the frame rates on the Premiere level of things. Also, since this is handled as a Dynamic Link process, you may be a bit short on RAM, which may slow down things further. And then of course the usual with disk speed and file I/O etc.. So it more or less sounds normal, but you should not let the initial rough guesstimates discourage you. Many times these values will get much lower after a while of transcoding when the encoder has a much clearer picture and statistical data about how long it actualyl takes to encode so and so many frames...
    Mylenium

  • 802.11ac wifi speeds with the BCM4360 chip and broadcom-wl driver

    Hello,
    First, some preliminary information:
    I'm currently in need of a wireless adapter for my desktop computer. I recently got an Asus RT66U router, so I'm looking for a wireless adapter that supports the 802.11ac standard. The best candidate I've come across is the Asus PCE-AC68, and PCIe based adapter that uses Broadcom's BCM4360 chip, the same wifi chip used in the Late 2013 retina Macbook Pro. It is worth noting that every available 802.11ac compatible PCIe based wireless adapter seemingly uses this chip (I've heard of people having success with 802.11ac speeds using Qualcomm Atheros based wifi adapters and the ath10k driver, but there are no Atheros-based PCIe wireless adapters on the market, as far as I can tell).
    The Broadcom BCM4360 chip is not supported by the b43 driver, and I believe it also isn't supported by the brcmsmac driver, since it isn't listed here.
    This leaves me with the proprietary broadcom-wl driver, which is listed as supporting the BCM4360.
    What I'm interested in learning is how a wireless adapter based on the BCM4360 will perform using the broadcom-wl driver--I don't want to buy a wifi adapter that won't work at its full capacity, after all.
    I have found user reports here and here from April 2014 stating that the driver runs BCM4360 based adapters in 802.11a/b/g mode and doesn't allow 802.11n and 802.11ac connections to be made. On the other hand, this user (in a post from June) states that he managed to get ac speeds in Arch simply by changing his router settings. Unfortunately, he doesn't detail what changes he made.
    I'm hopeful that the driver was simply updated between April and June and that now BCM4360-based wifi adapters can run at 802.11ac speeds, but as it's closed source, I can't check the commits, and have not been able to find any discussion more recent than what I linked above.
    Has anyone had success getting 802.11ac speeds with BCM4360-based wifi adapters and the broadcom-wl driver?
    Last edited by aliwho (2014-07-18 22:02:40)

    I am currently using the BCM4360 (rev 03) in a MacBook Pro. You are correct in that it does not work with the b43 driver. It mostly works with the proprietary wl driver. I am using the broadcom-wl AUR package. I can confirm that 802.11n works. I am connected right now at 324Mbps (3 .11n spatial streams). I have not tried 802.11ac yet. I will soon, so I will report back.
    As for the caveats, it doesn't like 802.1X networks very much. To get it working using wpa_supplicant, I have to reload the wl module. Sometimes when I reload it, it comes back as wlan0 instead of wlp3s0. No idea why. Yet, when I tried it with Network Manager on an Ubuntu live environment, it worked fine. YMMV. It always works fine for me at home on a WPA2-PSK network. If I can pin down something with more consistency, I'll let you know.
    For reference:
    $ lspci -vnn | grep Network
    03:00.0 Network controller [0280]: Broadcom Corporation BCM4360 802.11ac Wireless Network Adapter [14e4:43a0] (rev 03)
    According to kernel.org, BCM4360 could be either 14e4:4360 or 14e4:43a0
    Last edited by jumperpunk (2014-07-30 17:09:43)

  • Problem With Auto Loading Modules And Nvidia

    Well I have old Nvidia card that seems to be giving me problems. The card is
    01:07.0 VGA compatible controller: nVidia Corporation NV34 [GeForce FX 5200] (rev a1)
    The problem is that if I allow modules to be autoloaded my system will crash at boot. And it differs from crashes that i am used to seeing. Rather than going thru the whole boot and ending up at the login screen, I get a bunch of junk of the screen saying kernel panic. But unlike regular kernel panic errors it spits out a lot of lines and is stuck there.
    Over six distros have failed to fully boot. Even the mighty knoppix couldnt get all the way thru. Debian and gentoo worked but for various reasons I dont want them for my system. Arch is my distro of choice. Why they work i dont know ? Maybe debian works due to they use old software. Gentoo well i have no clue, i used the installer to install cause i was lazy, but it installed w/ no problems??? Arch installed perfect as usually but upon boot fails.
    Can anyone explain what i must do to get modules to autoload?

    Ok fixed it FINALLY. Many many many many thanks go to stonecrest from #archlinux for the solution.
    he said to do
    hwdetect --show-modules
    and then go thru and modprobe them untill one crashes my system. This is what i got
    hwdetect --show-modules
    AGP : agpgart intel-agp
    IDE : ide-cd ide-core ide-disk generic piix
    SCSI : sd_mod
    USB : usb-storage usblp usbhid usbcore ehci-hcd uhci-hcd snd-usb-audio snd-usb-lib
    NET : ppp_generic slhc tulip
    SOUND : snd-mixer-oss snd-pcm-oss snd-seq-oss snd-seq-device snd-seq-midi-event snd-seq snd-hwdep snd-page-alloc snd-pcm snd-rawmidi snd-timer snd snd-ac97-bus snd-ac97-codec snd-ens1371 soundcore snd-usb-audio snd-usb-lib
    VIDEO : nvidia
    OTHER : cdrom hw_random lp ppdev rtc i2c-algo-bit i2c-i801 i2c-i810 i2c-core evdev gameport pcspkr serio_raw parport parport_pc pci_hotplug shpchp
    Luckly i didnt have to go thru all of themsince it was intel-agp that was causing all the pain. So now i have a better vid card than intergrated and Arch Linux!!!!

  • Too low(400Kbyte/sec) speed with USB MSI-6545 (and printer HP-1200, sc

    Hello!
    I Use motherboard MSI-6545(i850, with 3 USB 1.1 ports),  printer HP Laserjet-1200 and scanner HP scanjet-5400.  OS Windows Xp pro SP1.
    2 cables USB are length 3m.
    I have found that speed of downloading from scanner to PC and from PC to printer is about 400Kbytes/sec instead of 1500Kbytes/sec. Very very slow.  Why?
    The support of HP  X(  have forwarded me to you…
    Can you help me?
    Andrei Shakunov, President of BusinessLawyer inc., Russia

    1) 3 USB 1.1
    2)No
    3) Sorry? no
    Understanding why in Windows XP peripheral devices work in some times more slowly, than it is necessary, has encountered the strongest restriction of a bandwidth. That is USB allowed a maximum 400Кбайт/sec instead of 1.5Мбайт/sec. Especially it affects at scanning and a printing of the big graphic files.
    Bought expensive firm cabels (according to a kind support HP.ru), has spent a heap of time …
    At last, according to the friend has climbed in device manager in properties USB controllers (on mine i850 their two 2 sockets each). Also has been shocked by a phrase:
    “ The table below shoes you how much bandwidth each USB controller is using. Each USB controller has a fixed amount of bandwidth, which all attached drivers must show ”. On the first controller – 12 %, on the second-20 %. Also it is not known how to increase them.
    Who knows, how these values increase even up to 90 %?

  • Speed with iPhoto 6: Great and very slow.......

    Is it just me or does the new version take forever to update titles and keywords? The old one was much faster in this regard, but the opening and overall speed of iPhoto 6 is increadible. Great job Apple. I still don't know how to merge two libraries into one. Any help?? iPhoto Library Manager does not work as of today.

    Is it just me or does the new version take forever to update titles and keywords? The old one was much faster in this regard, but the opening and overall speed of iPhoto 6 is increadible. Great job Apple. I still don't know how to merge two libraries into one. Any help?? iPhoto Library Manager does not work as of today.

  • Windows 7 Compatability with Labview 8.0 and missing files while interfacing the FPGA with LV

    I am trying to use an FPGA (PCI-7830R) with Labview 8.0. The computer has Windows 7 OS. I installed LV 8.0 in the proper order with the FPGA Module and labview is able to see the FPGA when I open a .lvproj (the FPGA is in the tree) however there is a warning symbol next to the FPGA selection and when I try to open a .vi file that is used on the other stations in my lab (it works on all the other stations), labview is unable to find a whole bunch of files. There are some pictures.
    Missing File (there are a bunch more but this is the fist one).

    According to this LabVIEW Compatibility LabVIEW 8.0 is NOT compatible with Windows 7
    Visualize the Solution
    CLA
    LabVIEW, LabVIEW FPGA

  • Jwsc ant task WL 9.1 does not support module and jwsfileset?

    Hi!
    I am doing some work using the WL9.1 tools in order to build and deploy web services.I have successfully used the jws tasks though while I have several files that I want to compile automatically I went through the WL documentation and the use of
    jwsc ..with nested tags Module and jwsfileset
    Though when I try to invoke the Ant task I get
    'The <jwsc> type doesn't support the nested "module" element'
    Any idea? Is it because of my 9.1 installation?do i need 9.2?
    my task is something like
    <target name="build-service">
    <jwsc
    srcdir="src"
    destdir="output/TestEar" >
    <module contextPath="test" name="myJar" >
    <jwsfileset srcdir="src/examples/webservices/jwsc" >
    <include name="**/*.java" />
    </jwsfileset>
    </jwsc>
    </target>
    Thank you for your time!

    Ok the answer was easy I suppose!Check the documentation of 9.1 and 9.2 the ant tasks do not have the same specs!
    9.2 feature then

  • Encoder speed and orientation on NI 9401 in cDAQ-9172

    Hello, I've acquired a ni 9401 module for my cDAQ-9172 and it's now installed in slot five to connect a dual channel encoder. Channel A is connected to pin 14 and channel B to pin 17 and the encoder is powered by 5v dc.
    I want to mesure the speed and if possible the orientation of rotation.
    To do this I started with the VI in attach, that can count the total of pulses in the encoder.
    My question is, how can I change the DAQmx Create Channel to Frequency, and the DAQmx Read to Counter Pulse Freq 1 Chan 1 Samp, to calculate the actual encoder speed and orientation?
    Solved!
    Go to Solution.
    Attachments:
    encoder.vi ‏63 KB

    Hi Eric.
    Once again, thank you very much for the help.
    I think I finally did it. The Vi is reading the speed witch I think is right, but there's some oscilation.
    I've connected only the signal A from encoder to pin 14 on the NI-9401, and the pin 1 to ground. The signal B is not connected right now because I only have one NI-9401 on a cDAQ-9172, so only one counter.
    The VI you just send me, is calculating the speed (frequency), witch I divid by 200 because those are the pulses per revolution of the encoder, but I can see a little of oscillation on the speed measured (see picture in attachment).
    For now, my question is if is possible to improve the measurement, and how?
    Thank you.
    André Quintino.
    P.S. - Note that in the picture in attachment, the speed is the one measured by the VI you just send me. The encoder was running at 1524RPM witch are 25,4Hz. Since the speed in the graph is multiplied by 200 (the pulses per revolution of the encoder), this result in a measurement of 5080 witch is the average number by the graph.
    Attachments:
    Screen shot 2011-01-12 at 00.41.13.png ‏16 KB

  • Will cRIO-9215 modules work in a cDAQ-9172 chassis ?

    We have some cRIO-9215 and cRIO-9211 modules that I would like to use in a new system I am building that uses a cDAQ-9172 USB chassis/
    Will the cRIO-nnnn modules work in a cDAQ-9172 chassis ???
    Thanks !
    Paul 

    Hi Paul,
    Most of these modules are compatible with both cDAQ as well as cRIO.  Please look at this knowledgebase
    for modules supported by the cDAQ 9172 chassis. All of the C series
    modules in tis list are also supported by compactRIO. Both 9215 and
    92111 are in the list. hope that answers your question. 
     Ipshita C.
    National Instruments
    Applications Engineer

  • Photoshop elements 13 editor has stopped working EVERYTIME i try to use smart detail brus.windows 7 home edition with plent of memeory and speed. any ideas WHY

    photoshop elements 13 editor has stopped working EVERYTIME i try to use smart detail brus.windows 7 home edition with plent of memeory and speed. any ideas WHY

    The faulting module is photoshop. Report below.
    Source
    Adobe Photoshop CC 2014
    Summary
    Stopped working
    Date
    2/2/2015 4:54 PM
    Status
    Report sent
    Description
    Faulting Application Path: C:\Program Files\Adobe\Adobe Photoshop CC 2014\Photoshop.exe
    Problem signature
    Problem Event Name: APPCRASH
    Application Name: Photoshop.exe
    Application Version: 15.2.2.310
    Application Timestamp: 5480338c
    Fault Module Name: Photoshop.exe
    Fault Module Version: 15.2.2.310
    Fault Module Timestamp: 5480338c
    Exception Code: c000001d
    Exception Offset: 00000000049de322
    OS Version: 6.3.9600.2.0.0.768.101
    Locale ID: 1033
    Additional Information 1: 8db4
    Additional Information 2: 8db473619c10c0c8b85ce99afe676ed8
    Additional Information 3: f06d
    Additional Information 4: f06da704bdd5338df2a8d09bde2244bb
    Extra information about the problem
    Bucket ID: 1fe6d1d4e5765bd348843b981b8ec4d2 (85990875000)

  • Counter issues with cDAQ-9172 and 9401

    I'm trying to do a pulse count with a 9401 module in a cDAQ-9172 system. My problem is that the count always ends up in the 30 kHz range, when it should be in the range of 1 kHz - 5 kHz. Furthermore, the pulse count doesn't change even when the input pulse frequency is changing. I've used a multimeter to verify that the input signal is pulsing at the expected frequency. It seems like the system is counting the wrong thing (maybe defaulting to some sort of internal timing device?), but I can't figure out what it is or how to fix it.
    Any advice would be much appreciated.

    Thanks for the response. MAX basically confirms what I've been finding.
    Some more specifics:
    I have two counters set up, only one of which should be getting a signal at a time. When I connect a function generator sending a square wave to one of the counters, that counter reads the correct frequency and the other counter reads zero - exactly what should happen. When I connect the signal I'm trying to measure to an oscilloscope, it shows a square wave with the frequency I'm expecting. However, when I connect the signal to one of the counters, that counter reads the wrong frequency, and the other counter is counting pulses when it shouldn't be receiving anything at all. The only thing I can think of at this point is that somehow my signal is creating some kind of noise that causes incorrect measurements on both counters, but this doesn't make a whole lot of sense to me, as the oscilloscope shows a pretty solid square wave. In fact, the signal doesn't really look appreciably worse than the output of the function generator. Even if there were some noise, it would have to be pretty severe to affect the edge count, I believe.
    Essentially, I've been able to convince myself that the incoming signal signal is an acceptable square wave with the expected frequency, and that the DAQ system is capable of counting pulses on a similar square wave when it comes from a function generator. Somehow, when I try to combine the two it doesn't work, so I'm at a loss at this point.

  • Pulse count with a 9401 modules (cDAQ-9172 system)

    I'm trying to do a pulse counting by a 9401 module in a cDAQ-9172 system. I have three 9401 modules . One of them is working as a trigger (start-stop count) and the other two  (in slot 5 and 6) are for counting pulses from the 2 meters. It looks like a simple task but my problem is that I am counting always  3 to up to15 pulses less than my reference counter. everything points out to a task in my program is causing a delay. The question is where or what is causing such a wrong counting
    Attachments:
    COOMET Comparison DN80 short.vi ‏737 KB

    First for triggering with cdaq you must use the 9405 or 9406 (for analog triggering or 9401 for digital triggering) module in slot 5 and 6 - look in following link. Signals are routed with the chassis PFI Lines and only available at Slot 5 and 6.
    http://digital.ni.com/public.nsf/allkb/851828B06A20E01B862571DA0005591A?OpenDocument
    http://digital.ni.com/public.nsf/websearch/EFD808DC883F095186257170005A634D?OpenDocument
    Then the other moduls in other slots can be configured with these pins for triggering. When you wants triggering on both edges you can look in following link:
    http://forums.ni.com/ni/board/message?board.id=170&message.id=248456&requireLogin=False
     Best Regards

Maybe you are looking for

  • Alv report with varying number of columns

    hi all, I am new to abap. I am writing this to get a brief idea of what i wanted to do in system. I have to do a report using alv.  The format of the report looks like this. acc no     acc. name     amt_sum_april   amt_sum_may   amt_sum_june. .......

  • How to know or check the type of a field when processing a dynamic table?

    Dear all,     When processing a dynamic table i have a short dump because of a convert_of_type incorrect, so i would like to check the type of field-symbol <f> before moving the data (type char) to this field-symbol <f>. Could you please help me how

  • General Computer Question

    Hello,  I am about to buy a "bare-bones" new computer, and would like recommendations on what hardware to fit it with.  I will be using it 90% of the time to burn DVDs from Prem. Pro.CS 3 and Encore CS 3.  What I would like to know is 1.) Processor,

  • Get records number from internal table with condition.

    Internal table itab got more than 1000 records,now i need to get the number of records with condition that itab-field1 = 'XXXX'. actully, i got an inefficient logic to count the number in a loop statement. is there better way to implement it?

  • Short dump will happen because duration time unit is wrong.

    Hello, I maintained breakdown duration time unit as "TST" which is created in CUNI. System can not convert it to "S", so system will dump when I tried to access this maintenance order. So I want to change this time unit "TST" to "S" or "h". I tried t