Sending out a signal via Parallel port in interrupt mode?

I am trying to send out a 5KHz TTL signal via parallel port. the CPU should be disturbed at most time. so we can't use loop structure. I guess I have to use interrupt mode to do this job.
In other languages, we might be able to programm 8253, which is a timer and counter chip on mother board. can we generate a 5KHz siganl via parallel port without disturbing CPU?
or can we call another labview program in our main labview program.by doing so, two programs are running at the same time, we may be able to solve my problem
Thanks

Hi Sean-
This functionality is theoretically possible, but this might not be the best option if you are concerned about latency in operation. A few references for using the parallel port in LabVIEW are linked in this thread.
If you are concerned about precise timing and operating system latency issues, you may want to consider a hardware-timed PCI counter/timer board instead. This utility is a good starting point for selecting such a card.
Tom W
National Instruments

Similar Messages

  • WRT300N does not sends out WLAN signal to card WPC300N ???

    Hi all,
    Another WRT300N problem
    It seems that my router does not send out a signal...
    I did update to the latest fimware, all security like MAC, key, firewall etc are disabled, ssid broadcast is enabled, so there are no restrictions no more
    LAN intenet connection is no problem, that's the way i work now.
    When i scan with the linksys wireless network monitor V.1.09, i cannot trace the router, neither with xp and the integrated wifi card from my notebook.
    However just a few times the router flipped on the network monitor, but when i tried to connect , it didn't work : no association with acces point...duh....
    A few seconds later he was lost again...
    I also tried all channels even auto settings.
    I do not know what to do or try for the moment to make the router send out his signal.
    Anyone any idea or had the same problem ???
    Many thanks to help me out !

    Hi…I think you have already tried everything on your router, now uninstall the wireless card WLAN utility and reinstall only drivers for your wireless card, through found new hardware wizard. Or you can even download the latest drivers from website and install them.

  • Can old time capsule receive signal w/o extending or sending out a signal?

    I just purchased a new Airport Extreme to replace my old Airport Extreme w/ Time Capsule.  I was wondering if there's a way to have the old AE w/ Time Capsule still connect to my network so I can backup wirelessly without actively sending out/extending a wifi signal.
    The new Airport Extreme supplies faster internet to my house and I'm afraid if I have the old Airport Extreme extending the signal it will degrade the speed I'm getting with the new router. 
    Therefore, I was wondering if there's a way to just have the old machine in a hypothetical "receive only" mode. 
    I know I can plug in a hard drive to the USB 2.0 into the new Airport Extreme, but I was curious if there's a way I can still use my old machine. 
    Thanks!

    Yes, what you want to do is easy.. until you hit Yosemite.
    Plug the old TC WAN port into the new AE LAN port with standard ethernet patch cable.
    In the airport utility locate the old TC.. you might need to do a factory reset as this is a major change of network and it is easier to start over.. none of the old backups will be deleted.
    Factory reset universal
    Power off the TC.. ie pull the power cord or power off at the wall.. wait 10sec.. hold in the reset button.. be gentle.. power on again still holding in reset.. and keep holding it in for another 10sec. You may need some help as it is hard to both hold in reset and apply power. It will show success by rapidly blinking the front led. Release the reset.. and wait a couple of min for the TC to reset and come back with factory settings. If the front LED doesn’t blink rapidly you missed it and simply try again. The reset is fairly fragile in these.. press it so you feel it just click and no more.. I have seen people bend the lever or even break it. I use a toothpick as tool.
    N.B. None of your files on the hard disk of the TC are deleted.. this simply clears out the router settings of the TC.
    Now set it up in bridge mode.. that should the the automatic setup default in this case.. and turn off wireless.
    You can now access the old TC in TM on the computer.. unless it is Yosemite.. in which case you have a pile of other stuff that might be needed..
    Tell us how you go.
    However to make life easier in the new setup.. please stick to these rules.
    Then redo the setup from the computer with Yosemite.
    1. Use very short names.. NOT APPLE RECOMMENDED names. No spaces and pure alphanumerics.
    eg TCgen5 and TCwifi for basestation and wireless respectively.
    Even better if the issue is more wireless use TC24ghz and TC5ghz with fixed channels as this also seems to help stop the nonsense. But this can be tried in the second round.
    2. Use all passwords that also comply but can be a bit longer. ie 8-20 characters mixed case and numbers.. no non-alphanumerics.
    3. Ensure the TC always takes the same IP address.. you will need to do this on the main router using dhcp reservation.. or a bit more complex setup using static IP in the TC. But this is important.. having IP drift all over the place when Yosemite cannot remember its own name for 5 min after a reboot makes for poor networking. If the TC is main router it will not be an issue.
    4. Check your share name on the computer is not changing.. make sure it also complies with the above.. short no spaces and pure alphanumeric.. but this change will mess up your TM backup.. so be prepared to do a new full backup. Sorry.. keep this one for second round if you want to avoid a new backup.
    5. Mount the TC disk in the computer manually.
    In Finder, Go, Connect to server from the top menu,
    Type in SMB://192.168.0.254 (or whatever the TC ip is which you have now made static. As a router by default it is 10.0.1.1 and I encourage people to stick with that unless you know what you are doing).
    You can use name.. SMB://TCgen5.local where you replace TCgen5 with your TC name.. local is the default domain of the TC and doesn't change.
    However names are not so easy as IP address.. nor as reliable. At least not in Yosemite they aren't. The domain can also be an issue if you are not plugged or wireless directly to the TC.
    6. Make sure IPv6 is set to link-local only in the computer. For example wireless open the network preferences, wireless and advanced / TCP/IP.. and fix the IPv6. to link-local only.

  • Push button signal to parallel port to trigger a process

    I just need to connect a push button to the parallel port to set it as a trigger signal for a process.
    When push button is pressed, labview executes a process.
    Kindly help me how to do this, the wiring please
    Regards
    Grugh Mike
    Success is Everything !!
    Solved!
    Go to Solution.

    Data Lines to be used as inputsSome parallel ports can be configured to use the data lines as inputs. It depends a great deal on the way the manufacturer designed the parallel port. With some models the data lines can be read the same way we read the control lines, by driving them to high logic so they will take on the value of an external signal. However, most parallel ports require that you set the direction bit for input. This is bit 5 in the Control register (base+2). If the port is capable of it, setting the direction bit high has the effect of making the lines tri-state so it can be driven externally. Sometimes it is also necessary to toggle bit 6 high or low. However, it should be noted that some manufacturers actually lock these bits so that software cannot change them. An example is shown below in Figure 7.
    To test whether your data lines can be used for input, try the following:
    Set bit 5 of the control register high (at base address+2).
    With nothing connected to the port, write a couple of values to the data port, and read each back after you write it.
    If the reads DON'T match the writes, your port is probably bidirectional. Setting C5 disabled the data outputs and you're reading the open inputs of the data-port buffer. If the reads DO match the writes, your port isn't bidirectional. The data outputs are still enabled, you're reading back what you wrote, and you won't be able to read external signals. If it is possible to use your data lines for input, then you just need to set control register bit 5 high and read from the value of the data lines at the base address.

  • Driving stepper motor via parallel port

    Hi everybody,
    I want to drive a stepper motor via the parallel port. The problem is to
    create a constant frequency on a digital line of the port. I tried to do
    so with a While-Loop with a certain delay, but the frequency varys due
    to occurrences like mouse-movement (due to the call-ups of interrupts I
    think).
    Any Ideas?
    Regards
    Martin
    Attachments:
    Martin.Eis.vcf ‏1 KB

    How about a simple NE555 timer circuit to externally create the constant
    frequency, then use a bit in the parallel port to enable and disable the
    NE555 circuit? You could probably go to Radio Shack and pick up the
    components for less than $10.
    Jim
    Martin Eis wrote in message
    news:[email protected]..
    > Hi everybody,
    >
    > I want to drive a stepper motor via the parallel port. The problem is to
    > create a constant frequency on a digital line of the port. I tried to do
    > so with a While-Loop with a certain delay, but the frequency varys due
    > to occurrences like mouse-movement (due to the call-ups of interrupts I
    > think).
    >
    > Any Ideas?
    >
    > Regards
    > Martin
    >

  • Compaq Presario 2100-Configuring of parallel port in EPP mode.

    I am using Compaq Presario 2100 old model laptop. In this I want to change the parallel port configuration to EPP mode in BIOS settings as my application demands. I am not able to see the options for changing the parallel port settings in BIOS.

    Hola! Me llamo Esteban soy estudiante en la carrera Analista de Sistemas en Rio Gallegos, Argentina .. en la carrera estoy aprendiendo programacion en Java.
    Quisiera consultarte si has conseguido leer y escribir el puerto paralelo correctamente usando java, ya que hace poco he empezado a incursionar en PIC's (microcontroladores) y me interesa por enviar y leer se�anales desde java. Instal� el API de comunicaciones hace poco pero por falta de tiempo aun no he podido dedicar a estudiarlo..
    mi email: [email protected]
    Te agradezco cualquier ayuda, y de mi parte si puedo ayudarte en algo con gusto.
    atte.

  • Is PCI-6036E suitable for me to send out analog signal to controll a device?

    Hello
     I need to controll and generate an analog signal to control a nanopositioning stage and I would like to know which one will be better using PCI-7344 board through UMI-7764 or using PCI-6036E board through SCC-68 I/O connector. additional question, I have actualy four wiring pigtailed with LEMO connector, the LEMO connector have two PINs which will be connected to the device, and the 4 wires which will be connected to the signal conditioner, the two pins Ain+ and Ain- with respect to the device, the other 2 wires one is the shield ground and the other one is ground also, the device is CGND, shall I connect the only two differential wires which will be connected in the analog out at the UMI-7764 snd the other one in AOGND at UMI-7764, and the other 2 will be ignored. please may I get any help or advice with full of thanks.
     Aneece
    Message Edited by Aneece on 04-09-2009 10:22 AM

    The XXXXX's means it's recording sys-ex information from somewhere, probably from your Yamaha. It also means you're probably recording onto an audio instrument track, or a MIDI track, not an audio track.
    Without assuming too much on my end, I would suggest, obviously, of course, that you spend a day or two really learning how Logic operates. Learn the terminology, really digest it, and take baby steps.
    Plug in one MOTU interface, and get audio in and out of that. Then plug-in the Yamaha, and do the same. Once you get that under your belt, set up the aggregate device, and by that point, you should be well on your way.
    Focus on the "Getting Started" guide, and after you have a handle on that, try pumping audio in and out of the interfaces, one interface at a time.

  • Quick report what are the notiifications are send out from SRM via SOST

    Hi all
    Can i have a list of messages sent out of SRM (from SRM via SOST.)
    sc completed by the buyer -
    but i want a set of all reports. so that i can decide i can filter go / no-go from srm system .
    any help is appreciated,
    what are the events are triggered notification.
    for eg. COMPLETED ...when buyer completed , requestor gets notification.
    so what are the other events. i have forgotten
    user creation too right? like that many..
    WHAT ARE THE ACTIONS IF I DO IN THE WEB , SOST entries will get created?. I KNEW BACKEND METHOD to download all sost message. but really we should know without seeing sost.
    Muthu

    You can check the fields of these tables via SE11
    Purchase Document Date  -  EKKO-BEDAT
    Item Description  -  EKPO-TXZ01
    Net price per item - EKPO-NETPR.
    Regards,
    Rich Heilman

  • Problems Reading/Writing Parallel Port Data, Status & control Registers Using In Port.vi and Out port.vi

    Hi,
    Can anyone there help me Please with the problem. I am trying to
    communicate with the parallel port using my program which i have
    attached to the message. I am running LabVIEW 7.0 Professional with
    application builder. All the program does is reads and writes to the
    three parallel port registers. It runs FINE!!! in my computer. But when
    i built an executable (see attached) and tried running on a different
    computer (with LabVIEW Runtime engine 7.0 installed) the program does
    not read/write to the registers. The target PC had the parallel port in
    SPP mode just like mine. I can't seem to understand whats going wrong?
    Can anyone please help me if you know the right answer.
    Thanks
    Attachments:
    Programs.zip ‏119 KB

    Hi Guys,
    I too have a problem using "Out Port.vi", but of a diferent kind. I use this VI to control the  Parallel Port which in  turn controls a small circuit. I use only two data pins, DP-2 and DP-4 for this purpouse. I use LV 7.1 Professional Development version in a Windows 2000 operating system. Now, my main problem is that my code runs fine (both is development and .exe forms) in my development computer, but when I try to run the .exe version in  other computers (Windows XP operating system), it asks for a "protocol file" while starting (look at the attached picture).
    Now, I really have no idea what kind of a protocol file it asks for and just click "ok" and proceed to work, the most interesting part is that the code works well as I expected. So, my only problem is that it asks for a protocl file which I want to avoid. As with the application building, I do all that is  required like including the sub VIs (self developed), creating an installer, enabling the port access, and creating a proper .ini fine. I also use the Out Port.vi from the AccessHW library.
    I have my doubts on two fronts,
    1) With the version conflict, since my development computer runs with Windows 2000 and my target computers all run with Windows XP
    2) With the Out Port.vi which further contains a small VI "Output Word to Port.vi" in it and that further contains Call Library Function Node, which might call soem external files, like what my problem is.(look at the attached picture)
    I don't have answers to these questions and may be my problem is in different place, but I would like to hear from anyone who could give me a helping hand. I am in a situation where I could not disclose my code.
    Thanks in advance,
    mohan
    Attachments:
    protocol file.zip ‏153 KB

  • 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

  • Piping text to an ieee-1284 / centronics parallel port

    I want to send raw text to a parallel port (IEEE-1284) via a USB-parallel converter. I plug the converter in and the Mac recognizes it natively; it shows up in the list of printers in the System Profiler. How would I pipe text to the thing? With a serial device, it's easy, sending the text to the appropriate device in /dev/tty.*
    Any pointers would be greatly appreciated.
    -Michael

    Central Harlem Anonymous wrote:
    Once upon a time, parallel ports shows up as devices, and parallel printers were easy to talk to. Why is this so hard now?
    I can't recall the last time I saw an Apple product that shipped with a parallel port, but I imagine its hard because there aren't enough people clamoring for 40 year old technology to justify maintaining support for it in modern source bases.
    You can find what driver is matching for the device in the IORegistry with the ioreg tool.

  • Parallel port sample rate

    Hi,
    I`m desperately in need of your help.
    For my school project, I`m trying to write a labview code in order to acquire air pressure data by using 8-bit analog digital converter via parallel port. Although my signal frequency very low -100 Hz-I think  I experience sampling rate problem. I  want to put sample rate and frequency data in my code but  how can I put it in my code?I `m giving square waveform via function generator which I need to see it on my graph in Labview. But there is something wrong in my signal in waveform chart. You can see screenshot and code attached.  . Also there are some noises and amplitude is not stable . How can I fix this?
    Would you please have a look at to my code and tell me how can I set sample rate and frequency?
    Attachments:
    CAN1.VI ‏21 KB

    Hi LW-s
    There isn't really a way to set the sampling rate for these VIs. You will have to use software timing. The only way to do this is with 'wait' functions inside your loop. You can also implement some logic to smooth/adjust your waveforms.  For a square wave the logic is pretty simple. If the input value is above a threshold store it as the max and if it is below the threshold store it as the min. (See the example below). For sine waves this is a bit more difficult and if I were you I would probably try to implement some sort of averaging. 
    Best Regards,
    Chris J
    Message Edited by ChrisJ on 08-23-2005 05:31 PM
    Attachments:
    example.JPG ‏86 KB

  • Programming the parallel port

    Hi. I need to send some bytes to the parallel port. I don't want to print any documents. I found a method called public static void setOut( PrintStream out ). Can I use this method? And if so, how do I do it? What PrintStream sould I use? Thank You!

    Interesting...
    http://mindprod.com/jgloss/parallelport.html
    Well, I'm not sure if that's really true (not that I don't trust that site, it has lots of good info)... My impression was (I've only used serial ports with it before) that since ParallelPort extends CommPort, that it would at least work by using it's CommPort's methods and that the ParallelPort stuff (which is all printer related) was just there for convenience, since most of the time it is a printer there.
    Well, the OP could try it, I guess, but if not, then JNI is the only hope... or another parallel port package if one was ever written.

  • Setting Pins on Parallel Ports

    Ok - going crazy - am trying to run a motor via parallel port - have a basic c app that does this but need to translate it into java. The code runs fine but no data is getting to the motor. Have tried with both a PrintStream and BufferedOutputStream but neither work (if they are in fact the prob)- this is what i have for the write methods.
    public void getOutStream(){
    bos = null;
    try {
    //bos = new BufferedOutputStream(port.getOutputStream());
    pos = new PrintStream(port.getOutputStream());
    System.out.println("_GET_OUTPUT_STREAM_");
    } catch (IOException e) {
    e.printStackTrace();
    public void write(){
    int [] b = {0x19, 0x39, 0x13, 0x33, 0x16, 0x36, 0x1c, 0x3c};
    for(int i=0; i<b.length; i++){
    pos.write(b);
    //bos.write(b[i]);
    delay(500);
    Have checked out the forums and a couple of people have mentioned setting the pins on the port to set values - how and where can i do this? and will it do the trick? Maybe someone can see something wrong with the code that i've missed?
    Any help will be HUGELY appreciated - cheers

    You must to forces the buffered output bytes to be written out to the underlying output stream.
    To do this use the flush method.
    public void write(){
    int [] b = {0x19, 0x39, 0x13, 0x33, 0x16, 0x36, 0x1c, 0x3c};
    for(int i=0; i<b.length; i++){
    pos.write(b);
    //bos.write(b);
    // put here if you want to flush after write one byte.
    bos.flush();
    delay(500);
    // or here if you want to flush only after write all bytes.
    bos.flush();
    }

  • RE: Write to Parallel port

    First you have to change the labview.ini file and add the line:
    serialDevices="COM1;COM2;COM3;COM4;COM5;COM6;
    COM7;COM8;COM9;LPT1;LPT2;LPT3;LPT4;"
    Then you can use the LabVIEW Serial Port Write.vi using port number 10,
    and it will send a string to the parallel port. But, if you have not
    yet modified your "labview.ini" file, you may receive an error -37.
    I haven't use this method yet, so if it works, please email me.
    Paul
    [email protected]
    Sent via Deja.com http://www.deja.com/
    Before you buy.

    Hallo, palma,
    Du (x) meintest am 14.08.01 zum Thema RE: Write to Parallel port:
    > I would like to know where can i found the IV
    > of Labview: "write to parallel port.vi".
    > I found it in "parallel 8-bit digital output
    > port" but when I try to open it appear this:
    Which OS do you use? Windows NT and Windows 2000 don't like direct port
    access. For these OSs you need a special file from the NI website
    ("hwaccess.xxx" oder "accesshw.xxx").
    Greetings!
    Helmut
    Please excuse my gerlish!

Maybe you are looking for