Low frequency measuremen​t from Parallel Port

Hi there...
I need to calculate the "on" and "off" time and duty cycle in pulse form from a parallel port. By making the circuit in 5 or 0 V, I just simply put it in my parallel port. The problem comes when I need to measure a very very low frequency. In this case, I want to measure the duty cycle from my operated refrigerator. I need to know when the thermostat goes "on" and when it comes to "off". In my experience, the thermostat will be "on" in about 5-10 minutes and "off" in about 20-30 minutes. So, the pulse might be take for a long periode each.
I've tried with Timing and Transition Measurement wizard or even by using Pulse Measurement.vi which is included in Waveform Measurement category. It only works for 2 Hz and . If I try to set it with 1 Hz or below, it comes the message :
"Error -20308 occurred at Timing and Transition Measurements -> Untitled 1
:4"  (waveform index 0 of 1)
Possible reason(s):
Analysis:  The waveform did not cross the mid reference level enough times to perform this measurement. Check the signal length, reference levels, and ref level units."
Could someone help me please ?
Regards,
Ricki

here is a quick shot to give you an idea
Greetings from Germany
Henrik
LV since v3.1
“ground” is a convenient fantasy
'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'
Attachments:
port logger.vi ‏22 KB

Similar Messages

  • 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

  • Reading Ascii charactors from Parallel port???

    Greetings:
    I have a question about instructing a third party vender who is writing code in VB6.0. (windows XP sp2) 
    They will be sending cycle counts thru the parallel port to my computer that i will be capturing using Labview 7.1.1 (windows XP sp2)
    The format of the streaming will be Ex.   *000000324*000000325*000000326*... etc. Continuously
    I can tell him to get rid of leading zeros if need be.
     I think i can capture this using VISA serial read.
    a) But what should i tell the third party vender for him to write to the parallel port?  Also should set the printer port to RAW
        and/or bi-directional printing .
    b) What is the pinout of the parallel cable between the two computers , is there a Null modem type of cable available, or is it pin to pin?
    c) What about handshaking , such as printer not ready, buffer full, etc.etc.
    Any help would be apreciated.
     Thanks
     Forrest 
    [email protected]
    to modify thier software to a
    Parallel port. so that i could capture.
    I have a third party group that is running a process sending and receiving
     data
    > thru a USB port for control of a frequency test. They are keeping track of
    > cycle counts that
    > are important in there test. They are using Visual Basic 6.0.
    >
    > What I want to do is to send the cycle counts ( which could be up to
    > 999,999,999 cycles)
    > (on an older system I would capture the cycle counts from a RS232 port
    that
    > they were send to me on another computer[Running Labview 7.1.1])
    >
    > I need ( since RS232 ports are sort of going away on new computer system
    > nowadays) to capture a streaming cycle count from the third Party system.
    > etc which will be continuous. They can modify there Visual Basic 6.0 to
    > incorporate USB drivers for your chips. I will be capturing the Data
    either
    > RS232 or USB into Labview 7.1.1 .
    >
    > I noticed you had drives on your web site with VB and Labview.
    >
    > Could you guys give me some suggestions if possible.
    > Thanks
    >
    >

    Hi Forrest,
    Okay... that makes more sense.  You are trying to communicate beetween 2 PC's.  Something like LapLink.. And yes, it would be okay to do this with the parallel port, it may have more speed than the serial port.  However for ease of implementation, you can use the serial port communication.  It is actually quite easy to implement. 
    The first step (if you are using Windows), is to establish the communication between the PC's using Hyperterminal.  You should be able to "chat" between the 2 PC's.  Maybe I shouldn't use the word chat..  You can communicate (Tx/Rx - ASCII) between the 2 PC's.  Once you verify that this works (at the desired speed - and configuration), you can implement it in Labview. 
    RayR

  • Read from parallel port

    I know it's possible to write some data to the parallel port using
    LabVIEW, but I don'y know if it's possible to read from the parallel
    port.
    If someone knows, please advice.
    Thanx for reading.
    Paul
    Sent via Deja.com http://www.deja.com/
    Before you buy.

    [email protected] wrote:
    >I know it's possible to write some data to the parallel port using LabVIEW,
    but I don't know if it's possible to read from the parallel port. If someone
    knows, please advice.
    Thanx for reading.
    Paul
    Yes, it is very easy to read from the parallel port. There have even been
    some VIs floating around allowing you to use the parallel port for digital
    I/O using the inport and outport VIs.
    To just use it to communicate, just use the VISA VIs with the proper resource
    name for the port you are using.
    Bob Young - Test Engineer - Lapsed Certified LabVIEW Developer
    DISTek Integration, Inc. - NI Alliance Member
    mailto:[email protected]

  • Voltage out from parallel port

    Hi there,
    I want to use the parallel port to run a relay.
    I do not understand the example given by labview. I also read the forum but I did not see what I am looking for.
    I am kindly asking if some one can write a small program ( I use labview 8.5) so I can give a 5v out say to pin #2.
    Thank you in advance

    vlonjati wrote:
    I do not understand the example given by labview. I also read the forum but I did not see what I am looking for.
    I am kindly asking if some one can write a small program ( I use labview 8.5) so I can give a 5v out say to pin #2.
    Please tell us more why you struggle, this is not good enough
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)

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

  • 27" iMac screen low frequency humming + moving too freely on the base

    Got a new 27 incher on tuesday after fedex lost the first one That's a different story.
    The problems
    1. The huge iMac moves a tad bit too freely on its base and when i try to tilt it to an angle, it doesn't stay at that angle it trys to go tilt back down ... maybe its gravity.. i don't know...
    2. Very very low frequency humming noise from the iMac top left corner... its out when it goes to sleep. not the normal HDD/fan noise. I have a fan app, its not the fan... but its really annoying when working on it ...
    i've seen a couple of posts about this. i'm taking this 27 incher to the store tomorrow... lets see how the geniuses deal with it. i hope they acknowledge this problem. does anyone else with the 27" have this problem?

    Took it to the apple store, some genuises looked at it, confirmed it and sent me another one

  • My parallel port cannot work on win2000 and new pc

    I was troubled by the reading/writing from parallel port on win2000 for a long time. I had made my programs work on win2000/OLD PC, but i failed with the same programs on win2000/new PC. I tried with the method from the forum, that is, install accessHW and other method from my colleagues. Allways failed. I have to return to an old pc, it work! I think not only win2000/winxp will influence parallel port work, but also pc hardware. My new PC is Dell's GX260SMT with p4 2.4G. Dell's FAE told me that i can not install win98 on the pc due to some limitation of mainboard. Who met the smae issue as mine? How to fix it? Thanks for any help.

    I typically stay away from Dell PC's. I always have problems with them..
    I'm surprised to read that a new PC doesn't support Win-98. Have you / can you try Win-NT 4?
    I can't understand why Win2K would be different with a newer PC. The OS assigns the base address of the parallel port to a typical value of 0378h. This is for LPT1.
    My question would be: Are you having problems with LPT1 or do you have a PCI-based Parallel Port (to add ports)? If so, you cannot change the base address with Win-2K or Win-XP which assigns a PCI base address to the port.
    Can you provide more details as what exactly changes between the 2 PC's. Other than the motherboard and typical hardware (of course).
    How is the parallel port configured?
    What are you doing
    with it, etc?
    Any information that can help figure out a solution.
    Regards,
    JLV

  • "how to read parallel port using labview"

    "i am doing a bio medical project and need to read data from parallel port using labview. can anyone help me"

    Hi
    in most cases a simple example helps best.......see attachment. Find in addition in Word document a helpful picture of LPT - Pins.
    In case you work with WinNT, W2k, XP - you need to install accesshw.
    Regards
    Werner
    Attachments:
    printer_port_test.zip ‏41 KB
    dsub_25_parallel_port.doc ‏29 KB

  • How can I do to communicate to parallel port using labview 5.0 and NT ?

    I am trying to write and read from parallel port using Labview 5.0. It does not work with NT.
    How can I do to communicate to parallel port using labview 5.0 and NT ?
    Thank you in advance.
    Regards,

    If you are trying to use In/Out port functions that come with LabVIEW they will not work with NT. I think the AccessHW file at the following link will fix that problem:
    http://zone.ni.com/devzone/explprog.nsf/6c163603265406328625682a006ed37d/49664743ded6f1da862564bc004e3a7f?OpenDocument
    Try also this link:
    http://zone.ni.com/devzone/conceptd.nsf/2d17d611efb58b22862567a9006ffe76/0989d3d9dafae64e8625680400679736?OpenDocument
    and do some searchs at NI.com for parallel port, you should find some more usefull info.
    Good luck
    Brian

  • Parallel Port Programming - Pls Help

    Sir / Madam,
    Greetings.
    We are new to writing parallel port programming. We have tried to execute a sample code.
      import parport.ParallelPort;
      class SimpleIO {
        public static void main ( String []args )
          ParallelPort lpt1 = new ParallelPort(0x378); // 0x378 is normally the base address for the LPT1 port
          int aByte;
          aByte = lpt1.read(); // read a byte from the port's STATUS pins
          System.out.println("Input from parallel port: " + aByte);
          aByte = aByte >> 2; // a simple and irrelevant operation
          lpt1.write(aByte); // write a byte to the port's DATA pins
          System.out.println("Output to port: " + aByte);
      }We get the following error:
    # An unexpected error has been detected by HotSpot Virtual Machine:
    # EXCEPTION_PRIV_INSTRUCTION (0xc0000096) at pc=0x10001057, pid=2224, tid=2916
    # Java VM: Java HotSpot(TM) Client VM (1.5.0-b64 mixed mode, sharing)
    # Problematic frame:
    # C [parport.dll+0x1057]
    We are new to this..
    Pls help us. We have connected a parallel port device already.
    Regards
    Rampalli

    This means there is a bug in the driver you are using.
    I would check you have the latest version of Java 5 or 6 and the latest version of the driver you are using.

  • I swtiched from LabView7 to LabView8.2, and now my parallel port on LPT1 is not more recognised (I am not able to use VISA to write on it). Why?

    I switched from LabView7 to LabView8.2, and now my parallel port on LPT1 is not more recognised (I am not able to use VISA to write on it). Why?

    Hi,
    Sorry for the delay,
    I need to know more informations about your problem. Have you check the configuration of LPT in MAX? Can you open a VISA session? Do you receive a timeout error when you try to write on that port?
    You can find same importants informations about parallel port configuration for different versions of LabVIEW at this link: 
    http://digital.ni.com/public.nsf/websearch/E6415E8A8376F63D86256C46007592E8?OpenDocument
    Let's me know.
    Riccardo

  • Pulse generation on PC parallel port and its maximum frequency

    Can i generate pulse pattern on any one out of 8 lines of IEEE1284 using Labview? if yes what is minimum period and duty cycle?
    Yours sincerely

    I doubt you will get up to 2 MBps and whatever you get you will not have any real control about the timing. If you use VISA LabVIEW sends the data to the COMM port driver and that driver outputs it with whatever handshake speed the remote side answers. Also in order to use anything but the old unidirectional printer mode you need to have a device that is intelligent enough to startup in Nibble mode to negotiate the maximum mode it supports. Without any remote device that does the negotiation and handshaking there won't be any EPP, ECP or whatever other bidirectional mode.
    In unidirectional mode you can expect a few kBps at most and again the speed will be whatever the CPU is able to hammer through the parallel port. If you want to have any control of the speed you need to program the parallel port directly on register level. However that will maxout at 1 or 2 kBps at most and you should not expect any fine grained and steady speed control at that level. Windows is not realtime and trying to control anything reliably in software that is less than several 10ths of milliseconds is simply impossible without going into kernel mode and writing the timing critical parts in a kernel driver.
    Also direct access to the paralell port registers is out of question for 64 bit Windows.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • How do I generate custom-made signals (impulses) from the parallel port

    I am trying to generate some simple pulses to drive an external device. I am sure this is simple, but I'm not sure how to do it in LabView. I need to generate to TTL-level (2.4 - 5v) pulses that are spaced 500ms apart and occur every 34 seconds (that's the period).
    Any suggestions?

    ilogix-
    The easiest way to write to the serial port in LabVIEW is with the Port Out.vi. You can find the help info here. You can find the address of the parallel port in the properties (located in Control Panel>>System>>Hardware Tab>>Device Manager) under the Resources tab. IT is the first number in the I/O range property (usually 0378).
    This is a digital line and the parallel port is written as a byte so your labVIEW program will need to write a byte, delay and write another byte to get a "waveform".
    Xaq

  • How to detect signals from serial or parallel ports?

    Hi everybody!
    I'm developping a p.o.s. app, and I need to detect the printer status (serial or parallel), but I couldn't find the way to do it (I'm using Text_IO). I know about using a C program, but I want to find a simpler way.
    Is there any command or trigger in Forms 6?
    Thank you for your help

    Hi
    In your setup you have a ADAM 4250 RS232/485 repeater talking with 7 instruments in a network. Each instrument have a unique address, and you can only address 1 instrument at a time. If you need more speed you have to insert more ADAM 4250 units in your system and more RS232 ports on the PC. Identical ADAM instruments may receive commands over the same communication line, but transmit data on a unique communication line. You can not use the parallel port in your setup at all. This is not a Labview problem but a hardware problem. If speed is critical maybe the Ethernet I/O Modules: ADAM-6000 series are better for your setup 
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)

Maybe you are looking for