Configurin​g 1126/1327 in DAQmx

Hi All,
I'm having some difficulty findin the right combination of settings, hardware and software, to configure an SCXI-1327 to work with a SCXI-1126 for making frequency measurements of a speed sensor signal. The sensor's signal is a high going low pulse, from 12V to 0V, 4 pulses per revolution, so it is normally high when at 0 RPM. The max RPM is about 6000, which gives us a max frequency of about 400Hz. I have not been able to find a combination of settings of threshold, hysteresis, low pass filter, etc., that gives me a reasonable reading. I'm also having difficulty with the 1327 in Max, where there are configuration settings for the attenuator. I have tried to set the physical attenuator to 1:1 in both the 1327 and its configuration in MAX, but everytime I go back into the configuration for the channel it is at the diffault setting of 100:1. We've tried to resolve this for a few days, without success, and need it running, so any suggestions are welcome.
LabVIEW 7.1.1, MAX 7.2.
Thanks,
Putnam Monroe
Putnam
Certified LabVIEW Developer
Senior Test Engineer
Currently using LV 6.1-LabVIEW 2012, RT8.5
LabVIEW Champion

Good Evening,
The set up has a number of other "modules" in the SCXI chassis. We are reading voltage, current and temperature on four units under test, and, for the most part getting good readings on those. I say for the most part because I was led to believe that the current and voltages were straight DC when in actuality they are pulsed DC (the system uses PWM). I've gotten by that with the addition of an RC integrator on each channel to give me the effective DC, dependent on the duty cycle of the pulses, but I can't find the magic numbers to set up the frequency measurements, and I have the question about configuring the 1327's attenuator in MAX. When I set it to 1:1 to match my the virtual channels' configuration and then go back in MAX to look at it the value has reverted to 100:1, so I don't know if it ever was 1:1. I'm also not sure what values of threshold, hysteresis, etc., would be appropriate for measuring a ~200 Hz signal that is a nice square wave, 12V going to 0V. As the motors will either be stopped or running at roughly full speed the band of interest of frequencies is probably in the 100 to 300 Hz range, so the 1126's lower limit of 15Hz is not a limiting factor. Our bad readings are across the frequency range, I haven't been successful getting it to properly trigger at any frequency.
WinXP Pro, LabVIEW 7.1.1, NI-Max 7.2
Putnam Monroe
Certified LabVIEW Developer
Senior Engineer
North Shore Technology, Inc.
Putnam
Certified LabVIEW Developer
Senior Test Engineer
Currently using LV 6.1-LabVIEW 2012, RT8.5
LabVIEW Champion

Similar Messages

  • Configuring the 1327 in MAX

    Hi All,
    I'm having some difficulty findin the right combination of settings, hardware and software, to configure an SCXI-1327 to work with a SCXI-1126 for making frequency measurements of a speed sensor signal. The sensor's signal is a low going pulse, from 12V to 0, 4 pulses per revolution, so it is normally high when there at 0 RPM. The max RPM is about 6000, which gives us a max frequency of about 400Hz. I have not been able to find a combination of settings of threshold, hysteresis, low pass filter, etc. I'm also having difficulty with the 1327 in Max, where there are configuration settings for the attenuator. I have tried to set the attenuator to 1:1 in box the 1327 and its configuration in MAX, but everytime I go back in the configuration for the channel it is at the diffault setting of 100:1. We've tried to resolve this for a few days, without success, and need it running, so any suggestions are welcome.
    LabVIEW 7.1.1, MAX 7.2.
    Thanks,
    Putnam Monroe
    Putnam
    Certified LabVIEW Developer
    Senior Test Engineer
    Currently using LV 6.1-LabVIEW 2012, RT8.5
    LabVIEW Champion

    Thanks for the response. My problem is that I am trying to set the triggering for the 1126/1327 combo and am having no luck getting it to read the signal. I wrote the code using DAQmx, partly to become more familiar with it, partly because my customer has taken the LV basic courses and that is what they would show them. I had seen the examples, but it isn't clarifying the issues that I have. The first is that when I configure the 1327 under NI-DAQ and set the attenuator to 1:1 (vs the default of 100:1) it doesn't have me save anything (like it does when creating or changing a DAQmx task for instance) and when I go back in to look at the attenuator setting it shows it at 100:1, leading me to wonder if I actually had changed it. The setting in NI-DAQ is supposed to match the actual physical attenuator setting in the 1327. I also have not been able to find any setting of the trigger or hysteresis that works, either in NI-DAQ test panels or my LabVIEW code. What I need is some guidance as to what values (filter cutoff, max frequency, level, hysteresis, etc.) are appropriate for a signal that consists of 12V going to 0V, square pulses, ranging from near 0Hz to 400Hz?
    Thanks,
    Putnam Monroe
    Certified LabVIEW Developer
    North Shore Technology, Inc. a National Instruments Alliance Member
    Putnam
    Certified LabVIEW Developer
    Senior Test Engineer
    Currently using LV 6.1-LabVIEW 2012, RT8.5
    LabVIEW Champion

  • I have an SCXI-1531,​1126,1120D (with 1327) connected to PCI-6052E. How can I measure an ICP force sensor with some/all of this?

    As I understand it, I may only need to use the 1531. Although it says it is used for accelerometers, it sounds like the techincal specifications of the card are adequate. I will be measuring in the range of 30 Hz with force sensors. The sensors are made by PCB Piezoelectronics, model 201B02. This equipment was somewhat inhereted, so I don't really know what of it I must use, or how. Any guidance would be appreciated.

    Dave,
    It appears that your force sensor is compatible with the SCXI-1531. This module supports all Integrated Electronic Piezoelectric (IEPE) sensors. Thus, it is not limited to accelerometers. I examined the data sheet for your sensor, and it indicates that a Constant Current Excitation of 2 to 20 mA is required. The SCXI-1531 provides a constant current excitation of 4 mA. In the same way, it appears that the other specifications of your sensor are compatible with the SCXI-1531.
    Good luck with your application.
    Spencer S.

  • How to Measure Frequency to RPM NI-DAQmx Tasks

    Hello,
    I am trying to measure frequency using NI DAQmx task and then convert this to an RPM if at all possible.
    I have the following hardware options at my disposal.
    I have SCXI 1126 Module along with a SCXI 1327 terminal, as well as a PXI 6289 Multifunction DAQ.
    I have wired in a mag sensor to ai7 on my 1126 and when I pass a metallic object I get a amplitude of 6  - 8  so I am able to read the mag sensor.
    What I am trying to do is to somehow convert this analog measurement into a RPM while only utilizing the NI DAQmx task.
    Any help would be appreciated.
    Tim
    Solved!
    Go to Solution.
    Attachments:
    Freq Set Up.jpg ‏2993 KB

    So I would select new in "Custom Scaling"
    Then would I select linear?
    Your calculations are simple but I am unsure if this would give me the desired result.  From my attachment I am seeing an input amplitude of 6 Hz for each pulse.  What I mean by this is that every time I bring a ferrous object near my mag pick up I get a pulse, this is what I was trying to illustrate in the attachment.  The analog pulse comes in a 6 Hz so I would simply multiple this pulse by 60 (assuming I get one pulse per rotation) to get RPM?
    How would this make sense if I only input one pulse for a long duration of time? 
    I have notice the amplitude of the pulse input increases with increased pulse frequency.  Does this mean the lowest RPM I can record is 360 RPM?  
    Tim

  • Scxi 1126 frequency measurement along with other scxi modules

    I want to measure frequency signal using sxci 1126. I have gone through the example code for sxci 1126. I am using NI-DAQ and Labview 7.1.
    The example code is applicable when am acquiring only from 1126. I have to acquire data also from 1102 102B along with 1126.
    In the example code along with AI config.vi and Ai Start.vi there are two additional vi's like AI paramete.vi and AI Trigger config.vi I understand that they are used for reading from 1126. My worry is how this is going to affect my acquisition from other scxi modules as all the modules are in multiplexed mode.

    Hi Bipin,
    Looking at your code, I see that you are still using Traditional DAQ. Since you have LV 7.1, you can take advantage of the new features of DAQmx.
    With DAQmx, you can create a virtual task that includes all of the different types of measurements you want to make. Once you set up the task in MAX, you can place it on the block diagram and automatically generate the code necessary to execute this.
    To do this, open up the Measurement and Automation Exlporer (MAX). Select "Data Neighborhood" from the tree on the left. Then click the button labeled "Create New." Create a DAQmx Virtual Channel. Follow the series of menus to set up your first type of acquisition (1126 frequency measurement). When you are
    done creating the task, you can add the second type of measurement to that same task. In the task config page, you will see a white box with the name of the channel you just created in it. Above the name you will see an "Add" button. Click on this button and follow the menus to set up your second measurement (1102 module).
    Once they are set up, save the task and open LabVIEW. Place the DAQmx Task Name constant on your block diagram found in All Functions >> Data Acquisition >> DAQmx... the task name constant is a purple colored box. Clicking on the box once its on the block diagram will expand a menu that will let you choose your task. Once selected, right click on the task name and choose Generate Code >> Example. This will automatically generate the code necessary to run the tasks. Simply hit the run button and enjoy!
    Thanks,
    Sal

  • NI DAQMX Driver performanc​e

    Hello all,
    I would like to build a SubVI to generate digital & analog output, but am concerned about possible performance issues.   In some extreme cases I will need to call this SubVI in rapid succession(50ms interval) hundreds of times.   It will contain the following 3 tasks to be executed in sequence:
    Task #1 - Set two bits high
    Task #2 - Analog Generation
    2.  Sychronize two NI-DAQmx PCI cards via a RTSI cable at 40khz sampling rate.
    3. Generate
    Task #3 - Set two bits low

    duplicate post. continue here

  • NO Disk error when DAQmx is referenced

    Referencing NationalInstruments.DAQmx causes a NO DISK error in Visual Studio (see attachment)
    I'm using Visual Studio 2012 and MS 2013
    The DAqmx version is 9.8.45.42
    Has anyone seen this before and is there a fix?
    Steve
    Attachments:
    DAQMX Error.JPG ‏22 KB

    See Top 25 Bugparade: # 4264750
    This is a SecurityManager - Problem and the java.io.File.
    eg.:
    System.setSecurityManager(new RMISecurityManager());
    File[] roots = File.listRoots();
    Then you will see the problem...
    I tried the following workaround:
    before you access disk. (or JFileChooser)
    SecurityManager sm = System.getSecurityManger();
    System.setSecurityManager(null);
    // disable the SecurityManger
    // this special disk access needs no SecurityManager..
    ... popup JFileChosser or make FileAccess..
    System.setSecurityManager(sm);
    // restore the old SecurityManger
    It's not the best solution but it works..
    hope this will help,
    Wolfgang
    EDI Organisation

  • USB 6009 DAQmx Deployment

    Hi.
       I have created a 4 channel differential data logging scope with a NI USB-6009. I would like to deploy this 'easily' to many of my colegues. I have app builder and the ability to build apps, but I would like to include the correct drivers for the 6009 in with the installer (although I have selected NI_DAQmx Core Runtime and NI_DAQmx MAX config support).
       For the running of the app, I have created a Task that consists of 4 channels. I would like it for my end user not to have to configure this. Does anyone know how I might acheive this? My experience of deployment is limited.
    Many thanks, Alec

    Hi Alec,
    It's also worth installing DAQmx MAX Configuration Support from the install builder if you still want to be able to modify the tasks from MAX as well.
    Best Regards,
    Chris
    National Instruments - Tech Support

  • USB 6009 and DAQmx Base Concerns

    Hello,
    I just received a USB-6009 multifunction DAQ device along with DAQmx Base for use on Windows XP with LabWindows/CVI ver 7.1.  Both the 6009 and DAQmxBase are successfully installed however I have several questions, I hope I am missing something obvious:
    1. The Task Configuration Utility is not needed for use with LabWindows/CVI?  I believe I read this in the Getting Started Guide.
    2. There is no function panel for the DAQmxBase functions?  I even searched the installation CD and found no .fp files.  So the only way to know what functions are available with DAQmxBase is to open the NIDAQmxBase.h file and search through the function prototypes?  Then, to know what a function does it is necessary to open the C Function Reference Manual via the Windows Start button and search for the function name of interest?
    3. When creating a digital input or output channel with DAQmxBaseCreateDIChan or DOChan is it only possible to setup a "channel" as an entire port?  Is it not possible to setup a channel as a single input or output line?  Similarly, once the channel is configured is it only possible to read or write an entire port with DAQmxBaseReadDigitalU8 or WriteDigitalU8?  I was expecting something similar to the DIG_out_line function used in Traditional NI-DAQ where a board number, port number, line number and state are passed so that a signal output line can be set on or off.
    Thanks in advance for the assistance,
    - Aaron

    Aaron T. wrote:
    Hello,   I just received a USB-6009 multifunction DAQ device along with DAQmx Base for use on Windows XP with LabWindows/CVI ver 7.1.  Both the 6009 and DAQmxBase are successfully installed however I have several questions, I hope I am missing something obvious:   1. The Task Configuration Utility is not needed for use with LabWindows/CVI?  I believe I read this in the Getting Started Guide.  
    **The Task Configuration Utility is not necessary, except that there is significant functionality missing from DAQmx Base but present in the utility. That includes a lot of what DAQmx calls "proerties", and includes things like the convert rate for AI scanning.
    2. There is no function panel for the DAQmxBase functions?  I even searched the installation CD and found no .fp files.  So the only way to know what functions are available with DAQmxBase is to open the NIDAQmxBase.h file and search through the function prototypes?  Then, to know what a function does it is necessary to open the C Function Reference Manual via the Windows Start button and search for the function name of interest?  
    **I don't use CVI so I don't know anything about this. It strikes me that even if you have such a panel reading the documentation is a good idea
    3. When creating a digital input or output channel with DAQmxBaseCreateDIChan or DOChan is it only possible to setup a "channel" as an entire port?  Is it not possible to setup a channel as a single input or output line?  Similarly, once the channel is configured is it only possible to read or write an entire port with DAQmxBaseReadDigitalU8 or WriteDigitalU8?  I was expecting something similar to the DIG_out_line function used in Traditional NI-DAQ where a board number, port number, line number and state are passed so that a signal output line can be set on or off.  
    **Well, the ReadMe file says that USB-6008/9 is supported with both Line I/O and Port I/O. On the other hand, the documentation for DAQmxBaseCreateDOChan and DAQmxBaseCreateDIChan say for the lineGrouping parameter, "Always pass DAQmx_Val_ChanForAllLines." So your question is a good one! Perhaps one of the NI engineers can comment on this.
    - Aaron
    Thanks in advance for the assistance,
    John Weeks
    WaveMetrics, Inc.
    Phone (503) 620-3001
    Fax (503) 620-6754
    www.wavemetrics.com

  • USB-6009 Daqmx Base 3.3 Cannot creat 2 or more channels on Windows mobile 6

    Hello,
    I have USB-6009, PDA iPAQ 214, WM6, Daqmx base 3.3, Labview 2009. In order to create new mobile project I use wizard and standart dynamic example: Cont Acq&Graph Voltage-Int Clk.vi. All works ok, but if I add more chanels in VI "Create Channels" or place new VI block and enter "Dev1/ai1", exe on my PDA cannot work correctly. Exception after RUN. I have no idea how build correct application with 3 channels without this exeption...  On PC all works. Whay right way to create channels? I attach VI which don't work, for examle. I read daqmxbase cannot support WM6, but 1 channel work ideal!
    Attachments:
    diagramm.jpg ‏113 KB

    Vital000,
    I forgot to mention that, yes, Windows Mobile 6 is not supported along side of DAQmx Base. That means you might be able to get some  of the same functionality(limited) that you would with Windows Mobile 5, but most likely not 100% functionality. This could explain why 1 channel works and multiple channels do not. I will try and help you out, but as this is not supported my ability to help is limited.
    Ben Sisney
    FlexRIO V&V Engineer
    National Instruments

  • Daqmx "Done" event not triggering event structure

    I would like the user to be able to abort my daqmx task by pressing a button.
    I am attempting to use the method in this VI:
    https://decibel.ni.com/content/docs/DOC-15815
    It utilizes an event structure with the daqmx Control Task VI to abort.
    The example VI above works for me, on my system with my USB-6356 device, as expected.
    When I attempt to incorporate the same method into my VI it does not--despite having an identical arrangement, so far as I can tell.
    I believe that my problem lies with the event structure, and the dynamic registration.  I am unfamiliar with this and must be using it incorrectly.
    I have attached my VI, though it is cumbersome.  The code which I am struggling with is in the "Acquire" case.  As far as I can tell, I am doing exactly the same this in this particular case as in the example mentioned.  Yet in the example, the event structure completes, or aborts, whatever you want to call it, right after the "Wait Until Done" VI executes.  In my own VI, the "Wait Until Done" and "Clear Task" VIs execute, but the event structure does not register it.
    Here are my specific questions: is there anything extra or special that one must do in order for the Task to properly trigger a "Done" event and pass through the event structure?  At what point is the daqmx task "Done"? 
    thanks,
    Matt
    Attachments:
    BoomTubeMain.vi ‏175 KB

    natasftw,
    My event structure is identical to theirs; what you are seeing are the two different cases that exist in the event structure.  In both the example and the VI, there is a <task out>: Done and a "Dynamic Event": Value Change.  In the dynamic event case, I have my abort button and relevant code--this I believe is the code you were referring to, which you thought I was missing...  Regarding my multiple event structures, they should operate completely independently as they respond to different events.

  • Difficulty downloding Adobe Reader and Error 1327. Invalid Drive H:\

    I am having a difficulty downloading Adobe reader on my laptop. For some reasons, I am getting error 1327. Invalid Drive H:\ notification. I have followed the tips on how to resolve this issue from Adobe's help and FAQ pages, but I am still not able to download Adobe reader. This issue begun short while after I installed a Tuneup software from AVG. I contacted this Tuneup company, and one of it's representative guided me through the steps on how to resolve the problem; unfortunately, the correction attempt did not make any difference. Adobe tech support team can fix my issue, but at a cost of $ 40. I do not want to pay it. Hence, I am trying to solve this problem myself. Could any one, who has the knowledge to deal with this issue, please respond to my request?
    Thank you in advance for your assistance. I look forward to hearing from you.
    Best regards,
    Peter VK Mayangi

    Have you tried both solutions on the link from the earlier poster?  Microsoft Fixit did not fixit?
    If so, you will have to search the registry manually for your invalid drive H:\
    Please post back if you are unsure what to do when you find that registry entry.
    P.S. please do not post your email address and other private data in this public forum!

  • How do I use daqmx to get encoder direction/count on M-series board?

    I have an incremental dual channel  encoder from Rotalink. I want to take angular postion and angular speed from this encoder. My NI DAQ card is PCI 6221 which belongs to M series. First, soft-timing was used to get anuglar postion and sampling rate is set at 1Hz. The vi program works well. However, it does not produce  good results when the sampling frequency is increased to 100Hz. So I turned to hardware-timing. The example, "Find example>> Hardware Input and Output>>DAQmx>>Counter Measurements>>Position>>Meas Angular Pos-buff ext Clk.vi" gets the readings. A function generator which can produce pulses at the frequency rang from 1Hz-1Mhz was wired to PFI9 in accordance with "
    You need to find your PFI pin numbers to know what to wire A,B and Z to on your m-series board, to do this go into max right click NI-DAQmx Tasks click Create New DAQmx Task >> Counter Input >>Position>>Linear, and setup the task for your measurement. It will tell you what the PFI lines are. You then need to look at the wiring diagram and connect it to the correct pins." as an external clock. The channel A and B were wired to PFI8 and PFI10 respectively. However, it still gives errors like 200284. Comments are grealy appreciated!

    Hi Zibin
    I have been trying to work out what is not working I need some more information
    What frequency is your function generator actually generating?
    What have you set your time out value to?
    What exact errors are you getting and when do you get the error?
    What would really be helpful is if you could send me your code because by the sound of it, it should just work the card is more then capable of doing what you want so chances are it is the code.
    Regards
    Tim M
    NI UK

  • How do I use a counter for time measurement with NI-DAQmx and C++?

    Hi,
    I need my C++ program to read time (number of elapsed ticks) using the counter on PCI-6229. I had this written and working for the non-MX driver, and now I need to re-write it for NI-DAQmx.
    Here are the steps that I want to accomplish:
    1. Route the 80MHz timebase to the input of "Dev1/ctr0"
    2. Start the counter and let it count the ticks.
    3. After a while, read the number of ticks from the counter.
    Here is how I am trying to do it now (without success):
               DAQmxCreateTask ( "" , &taskHandle ) ;
               DAQmxCreateCICountEdgesChan ( taskHandle , "Dev1/ctr0" , "" , DAQmx_Val_Rising, 0 , DAQmx_Val_CountUp ) ;
               DAQmxConnectTerms ( "/Dev1/80MHzTimebase" ,  "/Dev1/Ctr0Source" , DAQmx_Val_DoNotInvertPolarity ) ;
               DAQmxStartTask ( taskHandle ) ;
               then DAQmxReadCounterScalarU32 ( taskHandle , 0.25 , &curCount , NULL ) ;
               and DAQmxClearTask ( taskHandle ) ;
    No errors are generated, but I do not see the tick count being incremented when I repeatedly read the counter.
    Advice will be greatly appreciated!!

    Hi Peter,
    Welcome to the forums!   I just want to make sure I understand what you are trying to do.  You would like to count the rising edges of the 80 MHz clock using DAQmx in C++.  In order to route the timebase to the counter, you need to use the signal name (PFI8) instead of the counter (Ctr0Source) for the counter source input.  This name is found in Measurement Automation Explorer (MAX) by right-clicking on the device and choosing “Device Pinouts.”  This will physically put the 80 MHz clock on the PFI8 line, so make sure you reset the device or disconnect the terminals after you are done. 
    That being said, may I ask what you are trying to do by reading the number of elapsed ticks?  If you are trying to monitor a hardware timed pulse, it would be better to count the frequency or period of that pulse.  This would provide better accuracy, because you are not relying on how fast DAQmx Read can poll the hardware.  If you are simply looking for a software based timer, I would recommend taking a look at this MSDN forum post. 
    Using the GetTickCount function instead will free up your counter and provide comparable accuracy to counting the edges of the timebase.
    I hope that helps you out, let me know if you have any further questions about this. Good luck with your project.
    Rod T.

  • How to get I32 enum text out of a control (i/p terminal config, active edge of DAQmx vis)

    Hi,
     I am using DAQmx VIs create channel.vi and sample clock.vi, they have inputs (input terminal configuration) and (active edge) both are I32 and have enum looking drop down options. i want to use those text values to put into my excel file, but they give out numeric codes related to respective option. is it possible to get the text as it is.
    it is not an enum but I32 which looks like enum..
    plz help..
    Thanks
    Solved!
    Go to Solution.

    Note: This assumes that you have an actual control on the VI. If you have a
    block diagram constant, then that won't actually work. In this case to get the actual text you need to pick from list of text items. To further complicate things, the actual values that are generated are not sequential. You can use either a case structure or a 2-step lookup.
    Attachments:
    Example_VI.png ‏7 KB

Maybe you are looking for

  • Como config. impostos e sua contabiliz. p/  preços liq. de impostos?

    Meu cliente utiliza preço liquido, não fatorando-o na lista de preço com os impostos por dentro. Para resolver a questão dos impostos, eu fiz assim... na fórmula do imposto eu sigo o raciocínio da fórmula 8 - padrão do sistema para ICMS - Preço sem I

  • Frequent Kernel Panics on Macbook Pro Retina 15" late 2013

    Since a few weeks my Macbook Pro is suffering from frequent kernel panics. The logic board has already been replaced by the Apple but the panics keep occurring. Machine specs: Macbook Pro retina 15" late 2013, 2.6Ghz Core I7, 16GB Ram, 1TB SSD. This

  • E55 e-mail issues and solutions.

    The main problem of Nokia E55 e-mail (and AFAIK generic Nokia e-mail problems) is there are too much support for email but poorly documented. I just discovered everything I'll write here by my own trying to figure out the problems. This message is al

  • Purchase order smart forms

    i have copied the purchase order smart form and activated it and know i have the function moudule which need to be used in program but i am not shure how to do that can any one tell me how i need to write the coding for simple purchae order and then

  • Center aligned_table contrl field

    Hi....     How can we arrange a field in the table control as center aligned!!! Thank you, naveen