Digital port indicate

Hi,
I'm a newbie in Labview and I'd like to know how to use digital port
1 or other
to indicate when there's giving pulse out..?
For example what should I add to the example of Cont Pulse Train-Easy
(DAQ-STC) VI..?

What do you mean it has a pattern number 80 & 90? The vi that you included has a port width of 8 and a pattern of 9. What do you mean you want to change it to A & B? If you mean hexidecimal then "right click" on your constants, select "Format and Precision" and change them from their current floating point to hexidecimal.
P.M.
Putnam
Certified LabVIEW Developer
Senior Test Engineer
Currently using LV 6.1-LabVIEW 2012, RT8.5
LabVIEW Champion

Similar Messages

  • Single virtual channel with multiple digital ports

    Hi all,
    I have created a program that creates a task to read continuously from 3 digital port lines from the same device (PXI-6133). I am trying to figure out how I can retrieve the data from each port line to put into a waveform graph. Currently, I am using the DAQmx Read instance with "1 Channel N Samples" but I get a waveform with all values at the same time or a waveform graph with all three lines transposed.
    I am using Windows XP and LabVIEW 8.6.
    Appreciate any help!
    Solved!
    Go to Solution.

    Hi Matt,
    Thanks for your reply. Unfortunately thats not quite I am looking for. I am sending the DAQmx task the 3 port lines that I want therefore as I have read it bundles them all into one channel by default. What I want to do is take that one channel and parse out the data of each of the 3 port lines to create 3 new waveforms to work with individually.
    After fumbling around a little bit, I was able to sort of get what I wanted. I've attached a screen shot of that portion of the program. The red circle in the bottom right hand corner is how I want to end up. I only did it for one of the pieces of data just to try it out and the conversion to string is just for me to print out what I'm working with. Unfortunately, when I look at the waveform it seems like maybe some extra 0's are being thrown in because its not the same graph that appears from the beginning (when all 3 pieces of data are transposed on each other). Let me know what you think.
    Thanks,
    julissa
    Attachments:
    LabVIEW-ss1.JPG ‏57 KB

  • Write to serial port and digital port at the same time

    hello,
    I need to write to the digital port and the serial port at the same time. Right now I have the two vi's (to write to the serial port, write to the digital port) in the sequence structure. First I write the digital port, then write the serial port. Using the oscilloscope, the interval between these two executions is 10 ms; and I need to reduce this interval to as small as possible. I would appreciate help in any way. Thank you.

    Hello;
    This is a little tricky. Since the transition from one sequence to another is completely Software timed, and windows manages all tasks that are running at one given time, there isn't a method to reduce that transition time.
    The most you can do is try to optimize your code so all the time expent on the transition is due only to the task management.
    Hope this helps.
    Filipe A.
    Applications Engineer
    National Instruments

  • I write digital port by 'DAQmx Configure Logging.vi​' and receive TDMS file with 8 boolean channels. How can I write to 1 integer channel?

    Hello!
    I want to write 1 digital port from PXI-6536 with streaming to TDMS file.
    I'm writing by 'DAQmx Configure Logging.vi' and become TDMS file with 8 boolean channels.
    How can I write to 1integer channel?
    Attachments:
    1.JPG ‏27 KB

    Hey Atrina,
    The actual data stored on disk is just the raw data (that is, a byte per sample in your case).  It's really just a matter of how that data is being represented in LabVIEW whenever you read back the TDMS file.
    I'm not sure if there is a better way to do this, but here is a way to accomplish what you're wanting:
    Read back the TDMS file as a digital waveform.  Then there's a conversion function in LabVIEW called DWDT Digital to Binary.  This function will convert that set of digital channels into the "port format" that you're wanting.  I've attached an example of what I mean.
    Note: When looking at this VI, there are a few things that the downgrade process did to the VI that I would not recommend for these TDMS files.  It added a 1.0 constant on the TDMS Open function, and it set "disable buffering" on the TDMS Open function to false; you can get rid of both of those constants.
    Message Edited by AndrewMc on 01-27-2010 11:21 AM
    Thanks,
    Andy McRorie
    NI R&D
    Attachments:
    digitalconvert.vi ‏13 KB

  • How to avoid dependance between output digital port with a PCI 1200 daq card?

    Hello,
    I don't manage to fix the state of a line on one port (PA0 for ex) without change the state of another line of another digital port (PB0 for ex)
    I use a PCI 1200 Daq card with Labview 5.0.1 (under Windows 98)
    How to configure a robust state (high logic level) on a line of a port??
    Does anybody have an idea on this problem?
    Thanks a lot in advance and happy new year to the community
    JF LAVEZARD

    jflab a écrit:
    Hello,
    I don't manage to fix the state of a line on one port (PA0 for ex) without change the state of another line of another digital port (PB0 for ex)
    I use a PCI 1200 Daq card with Labview 5.0.1 (under Windows 98)
    How to configure a robust state (high logic level) on a line of a port??
    Does anybody have an idea on this problem?
    Thanks a lot in advance and happy new year to the community
    JF LAVEZARD
    Hello,
    I've found the problem
    The PCI1200 has a chip 8255 for Digital I/O
    If I use the bad VI, it reconfigures the port and all the lines go in a low logic state
    so I'd to write only on the port or the line without reconfigure the port
    So the good VI in the palett is: Port Write and not Digital Port write!
    See attached file..
    Thanks
    Best Regards
    Attachments:
    port_dio.jpg ‏771 KB

  • Trouble writing to all three digital ports

    I am controlling three motors with 24 digital lines, 8 for each. The code is attached. Two of the motors will run but the third always crashes (vibrates and trips). When I swap the ports on the three port configurations I can get ANY two motors to run smoothly, but never the third. The problem seems to be isolated to the bottom (see attached code) port configuration and write. I have deleted and reinserted fresh vi's, but no luck.
    I am running a LabPC 1200 board and have tried this with the same error on a LabPC+.
    Is there a better way to write bytes of data to ports?
    Thanks a lot!!!
    -Kyle
    Attachments:
    3motor_test.vi ‏122 KB

    Thanks for contacting National Instruments. After taking a look at your code, I can see that there are a couple of issues here.
    The first is that you are configuring the ports during every iteration of the loop. You should move the port config VIs out of the loop. Having them inside is bad because you really only need to configure the ports once, before you start writing to them. Doing this every iteration adds a lot of overhead, and it also amplifies the effects of the second problem.
    The second problem is that your boards are resetting all the ports every time you configure any port. All National Instruments products that have an 8255 or 82C55 digital chip, including the Lab-PC, will exhibit this behavior. When you change the configuration
    of one digital port on an 8255, the digital lines on ALL of the ports are reset. This is the way the 8255 chip works. The 8255 consists of three ports, each containing 8 digital lines (24 total). To properly use the chip, all configuring needs to be done prior to setting the output states of the lines.
    For more information on this issue, see the linked KnowledgeBase:
    http://digital.ni.com/public.nsf/websearch/3E25A9780F2C48B986256120005AF098?OpenDocument
    So you can see that moving the config VIs outside of the loop should address both problems. This should do it, but if it doesn�t, please let me know.
    -Mike

  • TS1574 optic digital port can't be shut off and the sound of speakers not working! what to do?

    optic digital port can't be shut off and the sound of speakers not working! what to do?
    this happened after taking out the head-phones. Now even after pressing CMD+ALT+P+R when booting - the sound of booting appeares BUT after the desktop is ready the sound doesn't work and sound buttons show the sign "circle with crossed line"

    If there is a red light visible in the audio output port, the switch id stuck.  Insert the earphone jack a few times.  If that fails to trip the switch, try a toothpick or similar device and jiggle it inside the port.  If that fails, try a shot or two of compressed air.  If still no success, go to a repair facility.
    Ciao.

  • My daq card PCI6025e' digital ports PA,PB,PC are in high state and cannot be changed even in MAX 2.1 testing panel and continuously output 5 volts even set for output.

    my digital ports PA,PB,PC are in high state and cannot be set low even if it is set for outputs.
    Thanks

    The MAX utility is the closest to the driver level and will eliminate software configuration as a possible issue. Please disconnect anything that you have connected to the DIO lines.
    Use the MAX test panel for your DIO lines, configure them as outputs, and set them to a low state. Use a multimeter (DMM) to observe the line state. If it is still high then you may have a problem with your hardware. If this is the case, I advise calling National Instruments support and investigate a possible RMA (repair).
    Best Regards,
    Justin Britten
    Applications Engineer
    National Instruments

  • Assigning digital port to control stepping motor

    Hi
    I want to control optical encoder, DC motor, Digital camera, Stepping motor, Electric lamp using LabVIEW and Data aquisition card. I am
    facing problem in interfacing stepping motor to DAQ device and configuring the digital output port using measurement and automation explorer.
    I am attaching the document showing configuration of measurment and automation explorer. I want to assign four line digital port for controling
    stepping motor. I want to assign DIO0,DIO1,DIO2,DIO3 for stepping motor. But the signal is going to other ports as well. Please somebody help me
    out of this problem.
    Jayaprakash.
    Attachments:
    Measurment and automation explorer.doc ‏99 KB

    Answered on your other post.

  • Connecting inductif approximation sensor to digital port

    Hi,
    As I have little experience in electronics I was wondering how I could
    connect a inductif approximation sensor to one of my digital ports of a
    PCI-MIO DAQ card. This card has 8 digital ports which can be configured as
    either digital in or out.
    The sensor is driven by 24 volts DC, three wires, and is of PNP type.
    Anyone?
    thanks
    I'd like to use this sensor to monitor the speed of a slow rotating machine.
    Ron@ld

    Ronald
    If the signal from the signal is withen TTL specs, you can use it with one of the digital ports on the E-Series boards. TTL specs are 0 - 0.8V for low and 2-5V for high. The rise and fall times will also have to be within TTL specs.
    Brian

  • Connect Digital port PFI2 to RTSI3

    i have a question about connecting a digital port (e.g. PFI2) to RTSI port (e.g. RTSI3).
    My device: PCI6731
    i have already sucessfully connected 'Ctr0InternalOutput' to RTSI0.
    Now I need a digital input to another RTSI. But I failed to do that and got the prompt message: 'Specified route cannot be satisfied, because it requires resources that are currently in use by another route.'
    Please tell me how to connect a digital input to a RTSI?
    Thank you!

    Greetings lyonco.
    This is a great question and can be somewhat of a tricky task at times.  For advice on how best to proceed, please refer to the following KnowledgeBase article. 
    Why Do I Get Error 89137 "Specified route cannot be satisfied..." When Routing PFI Lines Over RTSI?
    In the case of the PCI-6731, it appears from the routing table that Counter0 is used as a subsystem when routing from any of the PFI lines to RTSI0-6.  I hope this information helps get you on the right track. 
    Regards,
    Michael G.
    Michael G.
    Applications Engineer
    National Instruments
    Self-realization: I was thinking of the immortal words of Socrates, who said, "... I drank what?"

  • How to write a driver for custom hardware on a digital port

    Hi,
    I am a complete newbie to LabView and so I hope that someone can hint me to the information I need.
    At the moment, I am completely lost.
    I have the CVS-1454 which has a digital I/O port.
    Now I want to plug a custom made converter on this port to convert the digital port into 4 RS232 ports.
    The hardware is not the problem, but how do I write a driver for my box?
    Is there some kind of tutorial on writing drivers available?
    All I found in the official documentation was that you can write your own drivers, but the link to the page which should give more information was invalid :-(
    Thank you for reading and have a nice day,
    FReAK

    Frankly, what you're attempting to do may be beyond the capability of both LabVIEW and the digital I/O. At the very least, it's going to take quite a bit of work. On the transmit side, you're going to have break down characters into binary and then transmit them at a pretty precise rate. I'm not familiar with the CVS-1454 but a lot of digital I/O on NI devices is not hardware timed. Using software timing is going to be risky. You have the same issue on the receive end - just in reverse. I think that if I was forced to convert some digital I/O to serial, I'd try to use commerical parallel to serial converters. The digital I/O is similar to a parallel port and the converters handle all of the conversion, timing, and handshaking for you.

  • How do I tell LabVIEW to send a logic high to a digital port when an ICTR Control Counter reaches a specific value?

    I am using a DAQ-1200 lab card (8253/54) to run a micro-stepping motor for a NASA research project. I need to tell LabVIEW to send a logic high (+5V) to one of the digital ports when my counter (ICTR Control) reaches a specific value. The logic high trips a relay which changes the direction of the motor, but I cannot figure out how to trigger it. Thanks!

    Wire your counter T/F condition to a Case statement, and when T, have the 'Write to Digital Line.VI' output the logic high or low as appropriate. That VI is in the Functions>Data Acquisition>Digital I/O palette. This should work. Good Luck - Doug

  • Audio in/optical digital port

    I just traded out my G4 PowerPC Tower for a 17" MacBook Pro. I kept my original accessories (cinema display, mouse, keyboard) and the round, clear Apple speakers that came with it. I'd like to use the speakers but there's no applicable port. Is there a convertor or external female-male plug available to connect my audio in/digital port on the MacBook to my mini jack on the speakers? JL

    I never expected APPLE wouldn't make a mac that didn't have a proper mic jack?
    It has a proper one, a good one, a professional one, not the toy that comes with most PCs. Apple has used line level analog audio input for years.
    From Wikipedia;Line level is a term used to denote the strength of an audio signal used to transmit analog sound information between audio components such as CD and DVD players, TVs, audio amplifiers, and mixing consoles.
    In contrast to line level, there are weaker audio signals, such as those from microphones and instrument pickups, and stronger signals, such as those used to drive headphones and loudspeakers. The strength of the various signals does not necessarily correlate with the output voltage of a device; it also depends on the source's output impedance, or the amount of current available to drive different loads.

  • Dumb question: Difference between Digital Port versus a Digital Line?!

    Hello All,
    PLEASE excuse my numbskull question, but I can't find an answer to this question. What is the difference between a digital port and a digital line? I need to control some relay modules in our 2345 box. This works with digital line output, but I can also trip the relays using a Port write.
    Any recommendations?
    Thanks for all your input.
    Max

    Hello,
    There are a few different ways that you can control your digital lines.  You can use the DAQ Assistant or you can program by using the DAQmx VIs that the DAQ Assistant uses to generate its code.
    Either way you will need to write to a digital line so your lines will need to be configured as digital outputs.  There are a few good examples that you can use that are installed with LabVIEW.  You can find these examples by opening up the Example Finder (Help>>Find Examples) and then browsing to Hardware Input and Output>>DAQmx>>Digital Generation.>>Write Dig Chan.vi.  This example shows how to write the different lines on a port.  You can also choose to write just one sample instead of N Samples.  Depending on your situation you can change the polymorphic instance of the DAQmx Write VI and also change the line grouping constant from "one channel for all lines" to "one channel for each line" if you want to write in a different way.  But you can at least start with this example and make any changes you like down the road.
    Have a good day,
    Brian P.
    Applications Engineer

Maybe you are looking for