Using Parallel Port with Outport.vi Problem

Hello,
I am trying to use my parallel port to control a relay network and have run into a problem. I am using the outport instead of visa because for some reason I get an error with visa and outport seems more simple. The problem I am having is that my program doesn't seem to be able to initially take control of the port. What I mean by this is that if I restart the computer and open/run my program, I get an incorrect output on the parallel port. However, if I run one of the example programs for controlling the paralle port using outport (attached) (I believe the one I use is called Reading and writing to parallel port using loops) I am able to control the output to the parallel port. Also, after the example has run, my program works correctly. However, if I restart my computer again and run my program first it can no longer control the port correctly. So the problem seems to be that my program isn't initializing the port correctly or assessing it right at the beginning of the program. However, looking at the example program I don't really see what they are doing that I am not. I have the correct port address. 
My program takes values from a text file and displays them on the port and that works correctly. 
Attachments:
CircuitTopModule.vi ‏26 KB
parallel port examples.llb ‏72 KB

Hi Jag213, I'm glad you were able to resolve the issues you discussed on the other forum related to this issue.
Now that you have it working, I would recommend a few things:
1. Just try modifying one of the existing examples and see what you can get away with removing in order to keep it working the first time.
2. Try modifying the timing on your example - 10 seconds is a long time to wait between each week, I wonder if you are getting a time out? Do the examples work when you insert that kind of timing delay?
3. Add the In Port.vi into your code - this may be related to getting your Out Port.vi to work correctly.
4. Your code controls 8-bits on the parallel port, while the examples control 32-bits. Do all 32 bits need to be initalized? Looking at the Parellel Port Read and Write Loop.vi Example, in the IO Connector Status, the 31st bit controls whether the target is initialized.
Play with these settings and see if you can get yours to work the first. If all else fails, build your program to run off of one of the examples. For example, have the while loop run once, and then call yours as a SubVI.
Good luck!
Joey S.
Software Product Manager
National Instruments

Similar Messages

  • How should I develop Level Controller using Parallel port(Printer port)

    I need to develop a level controller using parallel port of my computer with a third party Data Acquisition Device.  Is it possible to do it with In and out port vi in labView 7.1. Please guide me how can should I configure these Vis to write control data and then receive level transmitteed data through parallel Port(Printer port). My third party DAQ has two analog input channel and one analog output channel.  

    Dennis Knuston
    I have uploded the details of that  third party daq in another thread please see that and tell wether this type of daq requires driver software
    http://forums.ni.com/t5/Multifunction-DAQ/Parallel-port-based-daq-and-drivers/m-p/1819997

  • Is it possible to control the parallel port with Lookout 5.0

    I want a simple demo setup on a PC, so I can control the 8 data bits of the parallel port. Example, to use START p/b that would toggle bit 0 and data returned on bit 1.

    It is possible to send bytes to the parallel port using the ASCII object within Lookout. However, it is presently not possible to control the state of the individual bits on the parallel port with Lookout.
    If you need to control the individual bits on a parallel port, consider using LabVIEW. It is much more powerful when programming serial and parallel ports.

  • How can i write a vi in using parallel port for digital inputs

    Dear all,
    i am a beginner user of LabVIEW and i want to write a vi in using parallel port for digital I/O. After reading the article "Using the Parallel Port in LabVIEW
    " and download the parallel.zip, i know how to write the vi for output, but i still don't know how to write the input one.i've try to use a Inport.vi to test, but nothing change when i set pin2-9 to high. (my computer:win2K & LabVIEW 6.1)
    Can anybody teach me how to write it?
    Can anyone write the vi for me too?
    Thanks all!
    p.s.i've already install the "accessHW.exe"

    Are you using VISA or the accessHW VIs? You may need to goto the bios and set the parallel port to run in spp mode or standard mode. This is the simpliest configuration and where you should start.
    As far as writing the VI goes, just copy the diagram out of the tutorial you mentioned.

  • How to use thunderbolt port with disks and DVI-display

    Hello,
    today I use a 15" MacBookPro and have attached 1TB LaCie with FW800  (for time machine) and DVI-Display using Mini-port.
    Need to add more external disk space and look for Lacie 2 TB with thunderbolt connection (for storing mass of pictures in Raid1 version)
    Is it possible to connect the new disk, the other disk with an Thunderbolt->FW800 adapter and the DVI-Display to one thunderbolt port?
    What are the options I have, to get all three to work at the same time?

    No, or at least not without additional hardware. You have too many end-points for one Thunderbolt chain.
    You also have the problem that the Thunderbolt->FW800 adapter is not yet for sale.
    If the new disk you get has two Thunderbolt ports (which not all do), you could daisy-chain the Thunderbolt->FW800 adapter behind it, but that adapter has to be at the end of the chain. The Mini-port->DVI adapter likewise needs to be at the end of a chain.
    So, you can probably get all three connected at one time by connecting the "1TB LaCie with FW800  (for time machine)" to your FW800 port, while connecting the Thunderbolt->FW800 adapter (when available) to the second port of the new disk. I say "probably" because nobody has the TB-FW adapter yet to try it.
    As for doing it on one Thunderbolt port with additional hardware, you might look into third-party docking stations being released in the next few months. The announced prices are in the low-to-middle hundreds. I won't mention brand names, as this is an Apple forum, but they aren't too hard to find by web search.
    The highest-priced solution would be the Apple Thunderbolt Display, which gives you a FW800 port for your 1TB drive, a pass-thru Thunderbolt port for your new disk, and of course a 2560x1440 display (plus ethernet and usb2 ports you may not need). It's available now, in the uppermost hundreds. There are some refurbs in the online Apple Store at the moment at 15% off.

  • Aquerir from parallel port with labview

    I want to aquerir digital data from parallel port of the PC then representing them on a graph with labview.
    How can i do that ?
       finaly thnx.

    You can use the port in and port out VIs found in the Advanced>Port I/O palette.  For an example check out 'Parallel Port Read and Write Loop.vi'.
    Using LabVIEW: 7.1.1, 8.5.1 & 2013

  • Servo motor using parallel port

    Hello,
            I have a XY mirror scan Servo motor used for optical scanning experiment.
    The question I have is:
          I already have a program to control stepper motor via parallel port. Can I use the same to control servo motor ?
    Or is the SERVO motor concept different to that of a STEPPER motor ...
    Thank you
    Abhilash S Nair
    Research Assistant @ Photonic Devices and Systems lab
    [ LabView professional Development System - Version 11.0 - 32-bit ]
    LabView Gear:
    1. NI PXI-7951R & NI 5761
    2. The Imaging Source USB 3.0 monochrome camera with trigger : DMK 23UM021
    OPERATING SYSTEM - [ MS windows 7 Home Premium 64-bit SP-1 ]
    CPU - [Intel Core i7-2600 CPU @ 3.40Ghz ]
    MEMORY - [ 16.0 GB RAM ]
    GPU - [ NVIDIA GeForce GT 530 ]

    You will need a DAQ card that can generate the voltage needed to send a command signal to the 671.  The 671 will need to be tuned to the 6880 with whatever sized mirror is attached.  (If you bought the galvo and servo driver as a package it should already be tuned.)
    CTI systems take in an analog command from -10 to +10 Volts.  Almost all the NI DAQ cards (and many other brands) output +/- 10 Volts so that will be easy.
    Then you will need to decide how to scan your target.  A ramp pattern or triangle wave is the usual choice for scanning objects so you need to generate that in LabVIEW code along with the code that will read your sensor.  This should be done simultaneously but you really don't need a very expensive DAQ card to accomplish that.  Look on the NI website for options in your price range and do some research...
    Is your system one axis (one 6880 and one 671)?  If so you will scan a raster (ramp or triangle) to measure a single line of light intensity, move the stage a tiny distance and scan another line.  When you put all the lines together into a 2D image you will have a representation of one face of your object.  Many people use a rotary stage to spin the object while scanning to assemble a 3D model of the object.  This is a bit more complex of course.
    Using LabVIEW: 7.1.1, 8.5.1 & 2013

  • How to control a parallel port with labview

    Hi. I'm trying to control a dc motor with a parallel port using labview. the program has to be able to vary the out put voltage of the computer (0 - 5V) through the parallel port into a circuit which will step up the voltage for the motor. Any help would be greatly appreicated. garreth

    Do you want to output and varying signal from the parallel port pins? If so you can't do it, the port pins are digital and can only be high or low, not inbetween. You can control the individual lines high or low using the In/Out Port vis in Advanced>>Port I/O. For more help on doing this search the message archives (I know I've answered a few) and NI's site, there is some good info on it out there. Try some of these for starters:
    http://zone.ni.com/devzone/conceptd.nsf/2d17d611efb58b22862567a9006ffe76/0989d3d9dafae64e8625680400679736?OpenDocument
    http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/f4146c66990c46388625695f00726581?OpenDocument
    http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/f3c4ee6ee2c23ef386
    25646b007882c8?OpenDocument
    http://www.advmeas.com/goodies/parallelport.html
    I hope this helps get you started
    Brian

  • Using parallel port

    Hi, i will use labview for my thesis project and i plan to input my data via parallel port.
    My input data is 8 bits so i tried to use control and status lines of the parallel port.
    I used the method that is described at NI`s developer zone web page which shows using control and status lines.
    http://zone.ni.com/devzone/conceptd.nsf/webmain/72​c6fc6ce4ad4d1386256b1800794596?OpenDocument
    By using that method i achieved to input first 4 bits of my data over status lines while there were no change at those of control lines.
    Because my data that i want to input consists of 8 bits, i could only be able to manage half of it.
    what can i do for using control lines?
    Or as a second alternative, is there any way to input 8 bits over data register?
    Below i have attached the code that i had written to input by using control and status registers.
    Attachments:
    can1.vi ‏30 KB

    Well, I looked at your VI and it looks like you have everything setup right. The only thing I can think of is that you are not grounding the control lines when you want to set them low.
    As far as your second question is concerned some parallel ports can be bidirectional. The article that you provided explains how you can test if you parallel port is bidirectional, and gives an example on how you would read and write from the data bits.
    Also, you may want to try the two parallel port shipping examples in LabVIEW. There is one that uses the data bits, and one that uses the status and control registers. You can find these examples by going to Help>>Find Examples, then search for Parallel.
    Shawn B.
    National Instruments
    Use NI products on Linux? Come join the NI Linux Users Community

  • How counter and frecuency measuremen​t using parallel port?

    Estoy ingresando un tren de pulsos por una linea del
    puerto paralelo y necesito detectar los flancos para poder incrementar un contador por cada pulso de entrada.

    Dear, codeman2:
    I thank for infinitely its advice to him. But I must work with the parallel port because one is a didactic project and do not have average acquiring the acquisition boards. In addition to be in a stage of study and investigation all inverted time will bring futures benefits. Thank you very much by his interest and it excuses my ingles.

  • Is using COM ports with crossbridge possible on adobe air desktop?

    or is there any other way of accessing COM ports with adobe air?

    You should be able through the air native extension Native extensions for Adobe AIR | Adobe Developer Connection
    I doubt that what you need here is CrossBridge. If there is a way to do it from normal AS3 AIR though, you will be able to do it from Crossbridge too. Maybe not the same way you would too in normal C++, but since you can go back and forth from c++ to as3, that would work.
    Search for air instead of crossbridge and you might find something.
    I sees some posts about it on google, for example: Air serial port connection
    But personally, I would do it in C++ with the native extension if there is no library that already do it for you.

  • How to set up NAT for two servers using same port with ASDM ASA 5505

    Hi there,
    We have a new installation of a ASA 5505 and are trying to get some NAT issues straightened out. Here is the scenario: On our internal network, we have two servers running Filemaker Server, a relational database server that clients connect with using port 5003. Our goal is to be able to allow users from the outside to access either of these servers as needed. I know how to set up a simple static NAT rule and matching Access rule in ASDM which would be fine for a case in which only one server using a given port is running on a network, but for simple static rules I seem to be blocked from entering a different translated port number from the orginal port number, which becomes a problem when two servers we need to access from the outside are running software using the same port number.
    What is the simplest way to address this need? I am guessing that I need to set up a scenario like this, where port 5004 (or any arbitrarily choosen unused port, can be used to access the second server:
    Outside user enters   FQDN:5004  and this translates to Database server # 1 as   192.168.1.40:5003
    and
    Outside user enters   FQDN:5003  and this translates to Database server # 1 as   192.168.1.38:5003
    If so, what is the easist way to get this done? Or is there a better what to handle this scenario?
    Thanks in advance,
    James

    I would create two objects and use object NAT
    object network Obj_5004
    host 192.168.1.40
    object network Obj_5004
    nat (inside,outside) static service tcp 5003 5004
    object network Obj_5003
    host 192.168.1.38
    object network Obj_5003
    nat (inside,outside) static service tcp 5003 5003
    Of course you will need to open your outside interface for tcp ports 5003 and 5004 to make this happen

  • Call Manager register fxs port with voice gateway- problem

    I have a CUCM 6 and a Voice Gateway V224. I've configured the voice gateway's voice FXS ports as MGCP.
    I have a Voip connected and registered to the CUCM and a Pots phone connected to the Voice Gateway.
    If i dial from the Voip to the Pots phone it rings. The problem is that i cannot ring from the Pots to the Voip phone.
    I have no dial tone.
    If i write no shut down on the  voice port i have a tone. If i configure mgcp on the voice port i have a busy ringtone.
    I've entered no mgcp and mgcp commands and i've reset the voice gateway.
    How can i call from the pots to the voip phone?
    The ios version on the voice gateway is Version 12.4(22)T4.
    Here is an outghtput from the Voice gateway.
    ccm-manager mgcp
    ccm-manager fax protocol cisco
    ccm-manager music-on-hold
    ccm-manager config server 10.1.1.33
    ccm-manager config
    mgcp
    mgcp call-agent CCMIOSS 2427 service-type mgcp version 0.1
    mgcp rtp unreachable timeout 1000 action notify
    mgcp modem passthrough voip mode nse
    mgcp package-capability rtp-package
    mgcp package-capability sst-package
    no mgcp package-capability res-package
    no mgcp timer receive-rtcp
    mgcp sdp simple
    mgcp validate domain-name
    mgcp rtp payload-type g726r16 static
    mgcp profile default
    timeout tone busy 600
    timeout tone dial 600
    dial-peer voice 999223 pots
    service mgcpapp
    port 2/23
    dial-peer voice 999222 pots
    service mgcpapp
    port 2/22
    dial-peer voice 999888 pots
    service mgcpapp
    port 2/23
    The CUCM 6 is registered with the voice gateway.

    Is your campaign using CPA? If so, what's the behavior if CPA is not enabled? 
    I think the best thing to do is to run a trace...
    Call Manager > Cisco Unified Serviceability > Trace > Configurations
    Select a CUCM server - any subscriber would work. 
    Service Group - CM Services
    Cisco CallManager (Inactive)
    Enable SIP Stack Trace and apply to all nodes. Download and install RTMT
    Make a bunch of outbound tests and then open RTMT > Trace & Log Central > Collect Files > Check "All Servers" for Cisco CallManager > Next > Next > Relative Range if you made the test calls within the last X minutes, otherwise you can set a From and To datetime. Click Finish and go through your SDL logs and see what errors you find and post them here. 
    Also, make sure your phone is in the correct CSS in Call Manager

  • Using Parallelism, Cache with Oracle Applications Core Tables

    Hi all,
    I want to know if i can put some tables in parallel and some tables in cache in an Oracle Applications enviroment without any problem. The precedure to change these tables are equal to a single database? Just use command like "ALTER TABLE table_name PARALLEL......"
    Do i need to change anything at Applications Level after these changes that i will made on these tables?
    Tks,
    Paulo

    You can cache read-only PL/SQL stored procedures in the DB Cache. I'm not sure about db built-in packages, but if they are read-only, should be ok.
    All DB Cache management functionality is available from DBA Studio. You can also use the supplied dbms_icache PL/SQL package to manage the cache. Refer to the DB Cache Concepts & Admin Guide for details.
    DB Cache is strictly a cache for read-only queries. All updates are passed to the origin db.

  • Error 37 using serial port with an executable file

    Hi all,
    I have developed a VI that controls a setellite receiver using RS232
    serial port (LabVIEW 5.1.1).
    The VI program run properly, but when I compile it and try to run the
    executable file I receive an "Error 37, Device not found" error message.
    I have already put serpdrv and my_file.ini files in the same directory
    of my executable program my_file.exe, but I have not been able to solve
    the problem.
    Any help greatly appreciated.
    Regards
    Antonio
    Sent via Deja.com http://www.deja.com/
    Before you buy.

    [email protected] wrote:
    >
    > Hi all,
    > I have developed a VI that controls a setellite receiver using RS232
    > serial port (LabVIEW 5.1.1).
    > The VI program run properly, but when I compile it and try to run the
    > executable file I receive an "Error 37, Device not found" error message.
    > I have already put serpdrv and my_file.ini files in the same directory
    > of my executable program my_file.exe, but I have not been able to solve
    > the problem.
    > Any help greatly appreciated.
    >
    > Regards
    >
    > Antonio
    >
    > Sent via Deja.com http://www.deja.com/
    > Before you buy.
    Maybe you used the serpdrv from an older version of LV
    Regards, Roland
    Roland Lampka - Nortel Dasa - ESN 565-7257 - FAX 8160

Maybe you are looking for