Limit high and low AI in DAQmx

What is the way easiest to measure an analogy of entry line in DAQmx while placing a threshold up and down for the input and output a Boolean value if the value is not within the limits?

You need to do a comparison of the table read you and see if the value of MAX exceeds your limit. This will generate a Boolean result. The DAQmx Read by itself does not do anything except the signal s cut if the signal exceeds the range that you set.

Tags: NI Hardware

Similar Questions

  • Control the time times of high and low of trains of pulses in C++

    Dear team of support of National Instruments,

    Here's what I have so far:

    I was able to generate the number of pulses (a pulse = a rising edge and front descending one) that the user has indicated via the GUI I created in Visual C++ 2008.

    I use DAQmx 8.6.

    I use the DigitalSingleChanWriter (hopefully, that's what it's called).

    I use for the synchronization of the sample, on request.  I tried to use all other types of calendar but I always get a DAQException run the error that says I can use only OnDemand calendar.

    OK, so here's the problem:

    I have a USB-6008-6009 card connected to an oscilloscope.  I know that the connection is correct, otherwise nothing would appear.  However, if I send say... 6 impulses, the delay between the first rising edge and the first falling edge is dramatically different and then the second and the third.  If I return my samples, I get an assortment of new and totally random times.  So finally, my question is "Is there a way to control the time of a great time and a bit of time?"

    I use a Compaq 2003 lap top, what is worthy of the rubbish heap.  I'm not to blame on this right away as problems that will not solve the problem at hand.  Although I understand if it's actually the problem for random times, but I would still have no way to control the time themselves.

    I hope that I don't have drug it too long, but I decided that distribute information on would be better then just a few tid bits.

    Thank you for support, that you can offer,

    Daniel

    OK, so I just returned from the lab, and this is what I got:

    I was able to control the time at the time of the high and low by using the "WriteSingleSamplePort" of the DigitalSingleChanWriter method.

    I put it in a loop that repeated many times that the user wanted impulses.

    At the beginning of the loop, I used a delay function that I wrote and delayed for a time given and then a pulse with a value of 255 and then delayed again and a pulse with a value of 0. And then restarted the loop.

    In the end, it works.

    Of course, I have another question.  I kept reducing the amount of time between two pulses (1 s, .5s, .2us and so on).  However, once I have diminished the time of secondes.01 or a millisecond, the pulses on the arrested oscilliscope becomes smaller.  It seems that past 1 millisecond Board USB-6008/6009 is unable to deal with the exigencies of the moment.  Or else the computer trash part on that I cannot deal with the exigencies of the moment.  But I believe that the Council is not at fault because it was designed for this exact sort of thing, could you tell me if there is no limitation to the Commission which prevent production of pulses in or within a period of 1 millisecond.  Thank you very much.

    Thanks for all the help,

    Daniel

    P.S. I'll stop you buggin with big messages that I promise you.

    P.P.S.  If someone wants to see my source code for their own project, I'd be more than willing to share.  Please email me or leave a message here.

  • How do I output up to 8 high and low?

    Hello

    I'm still new to Labview, and I can't seem to find a way to do something fairly simple.

    I have a device that has 8 entries, and each entry is "lit" by providing a high signal (5V).  I would like to use Labview to provide that these high and low signals to these 8 output pins.  An additional intracacy is that each channel will have to be activated or deactivated by pressing a button of Labview.  What commands/functions labview I should use to provide this feature?  Are there related examples in Labview or online?  Thank you very much.

    I use a NI 9401 to provide these 8 output channels.  http://sine.NI.com/NIPs/CDs/view/p/lang/en/NID/208809

    John

    You can search for examples on how to produce digital signals.  Go to help - find examples and numeric type and get labeled examples "write dig Chan".  There is an example that will run on the 9401.  Then, you can adapt it for your use.

  • Convert a single number to a hexadecimal string of 32-bit and exchange the high and low bytes

    I need to convert a number single precision floating decimal to hexadecimal format of 32 bits, share the high and low bytes and that convert a hexadecimal string.  I tried to use the 'Word of Swap' function but it seems to have no effect on the unique number.

    Then

    A single decimal number of entry: 100

    Convert 32 bit hexadecimal string with the low byte first: 0000 42 8

    Anyone have any ideas?

    Thank you

    Slightly lighter, try to cast U32 and exchange words. Same difference.

    (apparently, exchanging words is a NOOP for SGL, but still accepts SGL without constraint. Interesting...)

  • What is the difference between ram high and low density?

    I have an ibm x 3455 7984. high density RAM will it work? If so, it will affect the speed for virtual machines?

    Hello

    If your system is designed to accept briefs DDR (Double Data Rate) DIMM 184pin (usually for desktop computers) or (usually laptops) SODIMM 200pin built for your system to recognize fully the capacity of 1 GB per slot of memory, you must use "Low Density - 64Mx8 config" module of 1 GB. If you use ' high-density - 128Mx4 config' 1 GB module, your PC can only recognize that it is HALF the size to 512 MB or most of the time it won't work.

    In summary: -.

    • The LOW DENSITY modules have 100% compatibility with all systems and all chipsets as it is entirely due to the JEDEC guidelines.
    • HIGH DENSITY modules only have 10% of compatibility and are VERY RIVER because it breaks any guidance Council JEDEC (Joint Electron devices Engineering)

    I also suggest you to contact the IBM support center and check.

    http://www-947.IBM.com/support/entry/portal/overview/software/WebSphere/WebSphere_Application_Server?lnk=mhsd00

    http://www.IBM.com/us/en/

  • How can I leave an inch of 1/2 for high and low resident only?

    Hello

    I'm a bit new with Illustrator, but I created a picture for a contest. It should be 11 "and 22" wide. I have already created the chart, but later, I got the score I have to leave one inch half-space to the top and bottom only. What is the best way to do it without compromising the graphics?

    Thank you very much!

    a little advice

    Go to the window-> Transfrom

    in the height field, make sure that the reference Point is in the middle and Type:-1

    where-1 decrease the height of 1/2 inch of the top and bottom

    See the image below,

    hope this will help.

  • To get high and low number in a string

    Hello

    I have the following

    < cfset question = "1,5,8,11,22,76,6,143,147" >

    How can I get the number maximum and minimum of this string?

    Thanking you in advance for your help!

    Concerning

    Delon

    Use the very aptly named ListToArray() function... and without a doubt to bookmark the documentation online ;-)  The functions of the display of the categories is invaluable.

    http://livedocs.Adobe.com/ColdFusion/8/functions-pt0_13.html

  • Bad high and low value with the varchar2 data type

    Hello

    It is an application on e - biz on database 9205, with inventory module.

    In one of the mtl_txn_request_headers of the table, the data for the number of application type is varchar2 (30). When I checked the low_value & high_value in dab_tab_columns, I see that the low_value is 100001 (6 digits) and high_value is 99999 (5 digits).

    I used the utl_raw.cast_to_varchar2 (low_value) to convert the value.

    In our case, we save a large part of the value in incremental number and some of our query will be in the predicate of the range (between).

    How should I handle this kind of situation and which option do I?

    Appreciate any help. Thank you.

    Accepted this looks like a classic bad-data type problem, but as this picture seems be part of Oracle E-Business Suite the OP should probably talk first Oracle.

  • Restart computer suddenly (at time of high and low), no BSOD?

    This has happened quite a bit recently.

    I was wondering if anyone has an idea as to what is causing that?

    (Dxdiag if necessary)

    ------------------
    Information System
    ------------------
    Operating system: Windows 7 Home Premium 64 - bit (6.1, Build 7601) Service Pack 1 (7601.win7sp1_gdr.141211) - 1742
    Language: English (regional setting: English)
    System manufacturer: Micro-Star International Co., Ltd.
    System model: GX780R, GT780R, GT780DXR, GT783R
    BIOS: MSI GT780DXR E1761IMS Ver: 3.0: 18/11/2011-computer laptop MSI
    Processor: Intel Core i7-2670QM CPU @ 2.20 GHz (8 CPUs), ~2.2GHz
    Memory: RAM 16384MB
    Available OS memory: 16362MB RAM
    Page file: 6169MB used, 26551 MB of available space
    Windows Dir: C:\windows
    DirectX version: DirectX 11
    DX setup parameters: not found
    DPI setting: Using System DPI
    System DPI setting: 120 DPI (125%)
    DWM DPI Scaling: unknown
    DxDiag Version: 6.01.7601.17514 32 bit Unicode

    ---------------
    Display devices
    ---------------
    Card name: NVIDIA GeForce GTX 570 M
    Manufacturer: NVIDIA
    Track type: GeForce GTX 570 M
    DAC type: Integrated RAMDAC
    Memory display: 4048 MB
    Dedicated memory: 1488 MB
    Shared memory: 2559 MB
    Current mode: 1920 x 1080 (32 bit) (60 Hz)
    Name of the monitor: generic PnP monitor

    What surfaces does not have the rest of the laptop on? You can buy a cooler stand to help with good ventilation under the computer.

    Removal of the dust bunnies should reduce the noise that makes your computer. It can also reduce overheating, which can lead to unexpected stops.

    http://support.Dell.com/support/topics/global.aspx/support/KCS/document?docid=279891

  • How can I put an upper limit and lower limit on the chart inside a while loop?

    Need some help here. I'm working on a project, I collected data thru OR myDAQ, draw a waveform graph, is possible to add a limit upper and lower the table on waveform? I tried ways but can't seem to work. Any help is appreciated thank you.


  • take the digital output USB-6001 always high or low in c

    Hi all

    I am new to the NI DAQ interface. I have a USB-6001 and I am trying to use this device to control some flowchart in C. What I want to do is:

    * set digital output lines with high and low intensity and change their status as needed (in C).

    I tested the device NEITHER Max--> Test panels and found that the device is capable to do that. Then I try to do in C. I have checked hace examples and function I use is one called "DAQmxWriteDigitalU32". I have problem in the understanding of its input parameters. I tried something with my own knowledge, but it does not work as I expected. Here is a test I did:

    data uInt32 = 1;

    Int32 wrote;

    TaskHandle taskHandle = 0;

    DAQmxErrChk (DAQmxCreateTask("",&taskHandle));
    DAQmxErrChk (DAQmxCreateDOChan (taskHandle, "Dev1/port0/line7", "", DAQmx_Val_ChanForAllLines));
    DAQmxErrChk (DAQmxStartTask (taskHandle));
    DAQmxErrChk (DAQmxWriteDigitalU32(taskHandle,1,1,10.0,DAQmx_Val_GroupByChannel,&data,&written,));

    taskHandle = 0;
    DAQmxErrChk (DAQmxCreateTask("",&taskHandle));
    DAQmxErrChk (DAQmxCreateDOChan (taskHandle, "Dev1/port0/$line0", "", DAQmx_Val_ChanForAllLines));
    DAQmxErrChk (DAQmxStartTask (taskHandle));
    DAQmxErrChk (DAQmxWriteDigitalU32(taskHandle,1,1,10.0,DAQmx_Val_GroupByChannel,&data,&written,));

    I just want to set ' Dev1/port0/line7' and ' Dev1/port0/$line0"at a high level, but only ' Dev1/port0/$line0' answer me. The second parameter of the DAQmxWriteDigitalU32 function is numSampsPerChan. If I replace (currently 1) with a higher value, such as 100, I see that "Dev1/port0/line7" sends a number of 1 output, then back to 0. So I guess that the problem is just that I understand not all parameters for the DAQmxWriteDigitalU32 function. Is someone can you please tell me how I can set up a line of digital output 1 or 0?

    Thank you!

    Hongkun

    Hello

    I finally find a way to do it! The feature works very well, and my problem was not set the data value to write correctly. It seems that if I want to write a 1 to the port0/line1, I put "data = 2 ^ 1" rather than "data = 1", because by default it is the second bit of the port.» Similarly, "data = 2 ^ 7 ' high level to port0/line7. I find that this setting is surprising when you want to control an individual line. It seems more reasonable when you control the whole port. In any case, is to solve the problem!

    Thanks anyway!

    Hongkun

  • trying to set up the printer to print files with a half higher or lower from standard paper size.

    Try to configure the printer to print images or files size (5 x 8) on half higher or lower standard paper of 8 1/2 "x 11".  Need to rotate 90 degrees.

    Thanks in advance for any ideas.

    Hello Michael,

    Thanks for posting your concern in the Microsoft Community. Let me help you.

    To be able to provide you with a better idea on how to change the print size, tell us a little more details on money issues.

    • How you want to print? Is it through any program or application or any web browser in Windows?
    • What is the brand and model of the printer that you are using?

    As a recommendation, I suggest to try the options in printing preferences in Windows and check if it helps. Follow the steps below.

    1. Open devices and printers.
    2. Right-click the printer you want to use, and then click Printing Preferences.

    3. Make the appropriate choice for the paper or paper size option

    Ref: choose printing options

    Write to us again for assistance.

    Thank you.

  • Volume down lower and lower

    WWhy is my volume go lower and lower while watching something on my apple tv

    Is what version of ATV?

    If you've programmed the remote to control the TV volume, maybe it's mad crazy go on low voltage. Try reloading, or new batteries, in function.

    Try turning off the "reduce loud sounds" ATV audio mode, if they are available. He might try to save your hearing...

  • Portege R700 - 11G - high and annoying fan noise

    Dear friends:

    I have a Portege R700 - 11G, I bought only two weeks ago.

    The computer works fine, except for the high and annoying fan noise.

    Even do nothing, only to start and sometimes in the bios Setup, the fan is always turn with a temperature of 40 ° or 50.

    I've updated the BIOS and I don't know what to do.

    Can someone help me please?
    Thank you very much.

    Hi mate

    Please check the settings in the Windows 7 power management!

    There you can optimize the CPU and cooling performance module this should help reduce heat dissipation and fan speed.

    In addition I recommend upgrading the Toshiba Fingerprint Software immediately to the version V1.0.2.32 or higher. In addition, turn off the power save option of fingerprint device in Device Manager.

    Device Manager->-> authentic Tec Inc AES1610-> the power management of biometric devices

    Here, you will have to remove the mark next to the option called allow the computer to turn off this device to save power.
    Disable the power saving mode will reduce the life of the battery, so you can check whether or not it helps reduce noise.

  • Satellite A45 - the CPU usage is high and slow applications

    Hi all

    I'm trying to debug a hardware problem on my Toshiba Satellite A45. I am running Ubuntu 10.04, but I don't think that it's operating system or related software.

    THE PROBLEM: The CPU usage is high and applications slowly to a crawl after using an intensive application of memory for a few minutes, i.e. to watch a video or a game. Basically, anything that could use the screen much. If instead, I work only from a prompt, even when the application could do a lot of work, I do not encounter this problem. After stopping all applications, the CPU usage is always higher than normal (90% idle, should normally be slowed down to about 99%).

    Xorg now typically showing about 6% (normally use< 2%).="" if="" i="" at="" any="" time="" after="" this="" try="" to="" work="" in="" any="" application,="" usage="" is="" still="" bogged="" down.="" only="" a="" reset="" gets="" me="" back="" to="">

    Note: My system has always worked very well and I did not made the installation of the software or changes when it started to happen.
    However, the laptop is a 800 miles round trip at the rear of the car in a padded bag.

    DEBUG: This doesn't seem to be the RAM that I replaced the RAM and reinstall the RAM, and the problem persists. This doesn't seem to be the hard drive that I can try to run it from a Live CD (without use of HARD drive) and yet everything slows to a crawl.

    HELP: I don't know how to debug from here.
    I don't have extra pieces of hardware to make swaps.

    Any ideas more how to debug this?

    Thank you
    Grommit

    Hello

    > I am running Ubuntu 10.04, but I don't think that it's operating system or related software.
    It s interesting why you think that this may be software related issue

    I think that it is a typical software problem because the RAM and the HARD drive has been verified you have reported this in the message

    So what to say maybe some virus or malware likely to obstruct the CPU and the memory usage
    Or there is some process in the background that are not properly

    I recommend you to reinstall the Windows operating system or another distribution of Linux that runs NO Live CD, but which is installed on the HARD drive
    I m sure that s kind of the process that is disabled and crashes somewhere in the background

Maybe you are looking for

  • Google to Yahoo search changes

    I have always used Google as my search engine, but this last few weeks that yahoo has replaced him.  I checked the preferences and Google is my default search engine.

  • 5205 - update of the BIOS and the system locked up satellite

    I have a Toshiba Satellite 5205, I updated the BIOS to 1.5 (I think it was.) And the laptop locked up it seemed all in the bios flashing. The reason why I say shut upis because windows never stop after the flash and windows was totally locked up. Now

  • Could not load the Lego software using a student connection

    Hello all, I tried to get the Lego factory software shipped to work on our network (we are a school and use s RM CC3 network). I was able to get the package to work correctly for a user admin (full access to the local computer), but to us this softwa

  • mixed number a string does not properly

    I am in a position some parameters of oscillsocpe. I need to write these values in text file which I use write to the spreadsheet, but what happens is that it is always written zero value to the file, debugging I found that converting the number to a

  • Update of security for Microsoft Office 2007

    I have Microsoft Office 2003. Windows Update recommend upgrades security for Microsoft Office 2007. Is this something for me? Best regards / Hans