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.

Tags: NI Software

Similar Questions

  • 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

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

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

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

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

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

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

  • 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

  • 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 get the characters setting out and lower text to display in the bookmarks?

    All instances appear as regular text.

    The bookmark names do not support the formatting of characters. The ISO standard allows that a global model - one color and the bold or italic style for the name - nothing else is allowed.

  • How to find the Web sites of high quality backlinks?

    Original title: how to find quality backlinks?

    Updates on the algorithms research of new google forward a site spammy that build a bad backlinks. But how to find the Web sites of high quality backlinks? Could we must spend a lot of money to get their links?
    Please help me.

    I want to increase backlinks to my site

    Hello

    I recommend you contact Google support for assistance:

    http://support.Google.com/bin/static.py?hl=en&page=portal_groups.cs

    Hope the helps of information.

  • The drafting of emails is small (like this) how do I expand while it remains high (the default value)?

    How to enlarge type size ansd save as default (e-mail)

    The drafting of emails is small (like this) how do I expand while it remains high (the default value)?

    I use gmail.  Browser is Firefox.

    Is not a Microsoft program, I did some work for you leg.
    http://lmgtfy.com/?q=http%3A%2f%2Femail.about.com%2Fod%2Fgmailtips%2Fqt%2Fet_font_size.htm&l=1

  • I need help on how to audio output when I go. I ticked the box at the bottom, but when I go to view my video on quicktime, it does not play audio.

    I need help on how to audio output when I go. I ticked the box at the bottom, but when I go to view my video on quicktime, it does not play audio.

    GUYS, I GOT IT. AND THE SOLUTION IS WAYYYYY WITH JUST A RENDERING. So after countless time I spent trying to make it, I found a way that me really happy that my old rendering has not worked. All you have to do is download adobe media encoder and BAM your gold. I make it in h.264 that i couldt using the old rendering and now it works fine.

  • I have a laptop on screen high resolution (3200 x 1800), how can I increase the size of text and the tool bar in the workspace of Photoshop?

    I have a laptop on screen high resolution (3200 x 1800), how can I increase the size of text and the tool bar in the workspace of Photoshop?

    If you have CC2014 you can try the experimental 200% upscaling setting in preferences:

Maybe you are looking for