Start event immediately after reading parallel port status

Hello,
I have a spectrometer for acquiring triggered pulses spectra, it works fine with labview, but I need to make it start the acquisition immediately after an event read by the parallel port in order to distinguish odd and even pulses after this event (wich have different properties). I used a flat sequence: in the first frame I wait until the pin number 12 becomes 1, and in the other frame I start the acquisition of N triggered spectra (nothing else, all the initialization of the spectrometer is done before). 
What I saw is that it doesn't work: sometimes is takes 1 ms to jump to the second frame and I miss a pulse (pulses @ 1 kHz).
Is there a way to make it more efficient? To launch the triggered acquisition process immediately after the pin status switch?
Thank you very much,
Daniele

Hi daniele,
      While it's not clear what is connected to the parallel port or what the trigger-options are on the spectrometer, in general it would be best to physically wire a trigger signal from source to destination.  Can the spectrometer be configured to acquire based on an external trigger?  Can pin 12 of the parallel port (via break-out board) be wired to spectrometer trigger-in?
Considering the 1KHz trigger rate, I wouldn't rely on a multi-tasking OS to implement a software trigger "Immediately". 
If aquisition must be triggered via software, event-based logic is desireable - I'm not sure whether that's possible here.  By Event-based, I mean use of LabVIEW Event functions.  There are some serial-port-pin (CTS,DSR,etc) event options available via "VISA Enable Event".  The logic would configure the event then wait on the event before invoking the data-aquisition, that is, IF it's even possible to get pin 12 to trigger an Event.
Luck/Cheers!

Similar Messages

  • I have two imacs in different rooms and Safari started crashing immediately after opening on both machines. latest version is installed.Any ideas?

    I have two iMacs in different rooms and Safari started crashing immediately after opening on both machines. latest version is installed.Any ideas?

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Step 1
    For this step, the title of the Console window should be All Messages. If it isn't, select
              SYSTEM LOG QUERIES ▹ All Messages
    from the log list on the left. If you don't see that list, select
              View ▹ Show Log List
    from the menu bar at the top of the screen.
    In the top right corner of the Console window, there's a search box labeled Filter. Initially the words "String Matching" are shown in that box. Enter the name of the crashed application or process. For example, if Safari crashed, you would enter "Safari" (without the quotes.)
    Each message in the log begins with the date and time when it was entered. Select the messages from the time of the last crash, if any. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message by pressing command-V.
    ☞ The log contains a vast amount of information, almost all of which is irrelevant to solving any particular problem. When posting a log extract, be selective. A few dozen lines are almost always more than enough.
    Please don't indiscriminately dump thousands of lines from the log into this discussion.
    Please don't post screenshots of log messages—post the text.
    ☞ Some private information, such as your name, may appear in the log. Anonymize before posting.
    Step 2
    In the Console window, select
              DIAGNOSTIC AND USAGE INFORMATION ▹ User Diagnostic Reports
    (not Diagnostic and Usage Messages) from the log list on the left. There is a disclosure triangle to the left of the list item. If the triangle is pointing to the right, click it so that it points down. You'll see a list of crash reports. The name of each report starts with the name of the process, and ends with ".crash". Select the most recent report related to the process in question. The contents of the report will appear on the right. Use copy and paste to post the entire contents—the text, not a screenshot.
    I know the report is long, maybe several hundred lines. Please post all of it anyway.
    If you don't see any reports listed, but you know there was a crash, you may have chosen Diagnostic and Usage Messages from the log list. Choose DIAGNOSTIC AND USAGE INFORMATION instead.
    In the interest of privacy, I suggest that, before posting, you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header of the report, if it’s present (it may not be.)
    Please don’t post other kinds of diagnostic report—they're very long and rarely helpful.

  • Read parallel port

    dear all
           reading parallel port having problem its giving same value.............i am using windows xp and and labview 8.5.........
    anything else to activate or to install..........
    Indrajit
    | [email protected] | [email protected] .

    indrajit,
    I found this article to be very useful here see Figure 3.  Careful the DOS debug command may be emulated on XP so you may show the wrong port address using it.  Try the example I mentioned above along with the default port address. 
    Regards,
    -SS
    Message Edited by ShotSimon on 07-14-2008 09:54 AM
    Message Edited by ShotSimon on 07-14-2008 09:54 AM

  • Fire an event automatically after reading line from file

    Hi all
    I am writing a programe in which i need to fire an event automatically after reading each line (i.e. on every EOL) from the file.
    Thanks
    jon

    jonhill wrote:
    ..I am writing a programe in which i need to fire an event automatically after reading each line (i.e. on every EOL) from the file.Thanks for sharing that with us. Let us know how it goes. If you have any questions, feel free to ask them.
    BTW - sounds like a very weird requirement.

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

  • Macbook won't start up immediately after battery dying

    When I plug in my Macbook after its battery died, it won't start up immediately.
    Every single time I have to press power button if I want it to start up. When I do this, it makes a really strange noise. (it's comparable with the sound your Macbook makes when you put in a DVD or something) Afterwards I can see my desktop but the screen is white/transparant and at the same time a progress bar appears. When this bar is full, my Macbook shuts down again and I have to do it all over again. The second time around my Macbook will start working eventually. The white, transparant screen disappears and after a minute or so, I can move my mouse again.
    Is there anything that can be done to resolve this?
    Thank you

    Hi Laura Hallaert,
    I understand that you are seeing a progress bar appear after waking from sleep when your computer has shut itself down from a lack of power. This article will explain to you why you see the progress bar:
    Mac computers: Progress bar appears after waking from sleep - Apple Support
    http://support.apple.com/en-us/HT201635
    This progress bar only appears when your computer’s battery power has been depleted, so if you put your computer to sleep before that happens, you should not see this behavior any longer. Thanks for coming to the Apple Support Communities!
    Regards,
    Braden

  • [865PE/G Neo2 Series] How to correct "Parallel port driver service failed to start"?

    I recently disabled the parallel port in the BIOS (I wasn't using it anyway) to try and free up an IRQ or some system resources, when I installed a firewire controller (which I wanted to have its own IRQ if possible).  Then I periodically started getting this error "The Parallel port driver service failed to start due to the following error:
    The service cannot be started, either because it is disabled or because it has no enabled devices associated with it."  I Googled this, but any info I found either was not applicable or was in incomprehensible techspeak.  I couldn't figure out how to prevent the error from occurring, so for the time being I re-enabled the parallel port in the BIOS--disabling it didn't free up any IRQ's anyway.    I would like to know more about this, however.  Is there a proper way to go about disabling the parallel port so that this error does not occur?   
    Should it be done before installing Windows?  What are the advantages and disadvantages of disabling the parallel port, other than freeing up IRQ's (as I said, it didn't--unless this also happens only upon Windows install?).  Gurus, please respond!

    That was the first thing I tried.  There is nothing called "parallel port service", nor is there any mention of the parallel port in any of the services listed.   I don't know if it is even using any system resources, anyway.  The ECP Printer Port always had a box checked that said "never use an interrupt" anyway. It has no conflicts or sharing.   Maybe I should leave it alone.  It's just that people always mention disabling it in order to free resources.   

  • Imovie 9.0.8 Crashes immediately after launch

    Running Imovie 9.0.8  on OS 10.7.5 with 8GB RAM and 1TD Hdd.
    Recently has started crashing immediately after launch.
    Have tried a couple of possible work arounds but the 3ivxVideoCodec and the plist options don't seem to be available.
    Anyone got any other ideas?

    Have been trying lots of different things since posting this and discovered the following;
    Been temporarily storing Imovie output files (m4v's) to the desktop. Moved them all from the desktop to a folder and hey presto Imovie is now working as it should!
    I guess it must be memory related but with 8GB Ram I'm surprised.
    Anyway problem solved and maybe this might help someone else.

  • 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

  • Can we read the status of a particular pin in the Parallel port(LPT1)?

    Hi,
    I have a Camera.I'm trying to read the status of the camera by connecting it to the parallel port.The camera has a DB26 ,high-density I/O connector .A high level on pin 19 indicates that the camera power is switched on(+5v =on ,0v=off).I want to read the status of this pin by connecting it to the parallel port.Can i read the status of a particular pin in parallel port thru LABVIEW? if so how ? Any help in this regard is appreciated.

    Rajesh,
    You may find the following tutorial useful:
    http://zone.ni.com/devzone/conceptd.nsf/webmain/72C6FC6CE4AD4D1386256B1800794596?opendocument&node=DZ52058_US
    Regards,
    Khalid

  • On my MacBook with Lion Safari does start, does not react immediately after trying to open it. Installing a new Safari does not help. Removing parts of Safari in the Library did not help. Where can I find and remove all components (LastSession ...)?

    How can I reset Safari with all components? On my MacBook with Lion, Safari does not start, does not react immediately after trying to open it. Installing a new Safari does not help. Removing parts of Safari in the Library does not help. Where can I find and remove all components as LastSession and TopSites?

    The only way to reinstall Safari on a Mac running v10.7 Lion is to restore OS X using OS X Recovery
    Instead of restoring OS X in order to reinstall Safari, try troubleshooting extensions.
    From the Safari menu bar click Safari > Preferences then select the Extensions tab. Turn that OFF, quit and relaunch Safari to test.
    If that helped, turn one extension on then quit and relaunch Safari to test until you find the incompatible extension then click uninstall.
    If it's not an extensions issue, try troubleshooting third party plug-ins.
    Back to Safari > Preferences. This time select the Security tab. Deselect:  Allow plug-ins. Quit and relaunch Safari to test.
    If that made a difference, instructions for troubleshooting plugins here.
    If it's not an extension or plug-in issue, delete the cache.
    Open a Finder window. From the Finder menu bar click Go > Go to Folder
    Type or copy paste the following
    ~/Library/Caches/com.apple.Safari/Cache.db
    Click Go then move the Cache.db file to the Trash.
    Quit and relaunch Safari to test.

  • Photoshop Elements 13 running in Windows 8.1 hangs immediately after starting

    Photoshop Elements 13 running in Windows 8.1 hangs immediately after starting.  Has to be shut down by Task Manger.  Task Manger shows that it is still using some CPU.  Ran Procmon (part of Sysinternals) which shows that it is in a loop.   Stack trace shows it is executing code in AMTValidateProductLicense.dll.  Started happening about a month after I installed PSE.  Everything used to work fine at first.  Have tried going back to an old image of Win 8.1 on a different hard drive, otherwise same computer, and installed PSE 13 from DVD.  That installation never worked, it aways hangs.  If I do a clean boot, it sometimes runs long enough for me to click on a menu item and then hangs the same way.  And, yes I bought a new DVD to run on this computer, never been used in any other way.  Any ideas how I can get PSE running properly?

    It really doesn't look like a licensing issue, it seems to be code in the area of license validation that isn't working.
    I took your suggestion and initiated a couple of chat sessions with support, but so far still no luck.  The latest session with Neeraj seemed to be promising.  After some investigation he asked to reinstall.  First he uninstalled with Revo Uninstall, which seemed to be pretty thorough.  That required a restart, so he set things up to restore his conference session and took my phone number.  Unfortunately I guess his connection didn't come back.  When I didn't hear from him after a couple of hours I tried installing Photoshop and Premiere myself.  As before, Premiere works and Photoshop doesn't.  When I start Photoshop, the window opens and for a couple of seconds menus open when I click on them.  Then the window freezes and I have to use Task Manager to kill it.  So basically, I've tried several things but I'm back where I've been all along, I can't get Photoshop to work.  I'd really appreciate suggestions about something else to try.
    I wish someone at Adobe was interested in the Process Monitor traces I've made, because I'm sure someone who knows the code would be able to figure out pretty quickly what's happening.  Is it trying to read a file that's not there, failing to write a file, failing to make an internet connection or what?  It really shouldn't be this hard to figure out.

  • Skype 7.0 stops working immediately after starting...

    As soon as i start Skype , right after the log in , it crashes.  Tried un-installing and re-installing.  Still no luck.
    Attached event.log and dxdiag.log
    Solved!
    Go to Solution.
    Attachments:
    DxDiag.zip ‏7 KB
    skype_eventlog.zip ‏1 KB

    If it's crashing in Safe Mode and only worked with much older versions then the issue mayb be related to your IE browser.  The newer versions of Skype rely on elements of IE to function.  I would suggest you perform the following maintenance.
    Reset IE settings:
    http://support.microsoft.com/kb/923737
    Clear IE temp files:
    http://windows.microsoft.com/en-us/windows-vista/d​elete-temporary-internet-files
    Download and install the latest version of Adobe Flash for IE (currently 16):
    http://aihdownload.adobe.com/bin/live/install_flas​hplayer16x32ax_mssd_aaa_aih.exe
    Download and install the latest version of IE (if not already installed):*
    http://download.microsoft.com/download/3/A/2/3A2B7​E95-24EF-44F6-A092-C9CF4D1878D0/IE11-Windows6.1.ex​...
    *It does not have to be your default browser, but it should be installed.

  • How to use the Control lines of a parallel port as Input lines to be read using Labview ?

    The details are :
    NI Software : LabVIEW
    Version : 5.0
    OS : Windows 95
    NI Hardware : N/A
    Drivers : N/A
    CPU : Pentium
    RAM : 48
    Vendor : darcom
    Customer Information :
    SPEL TESTING
    SPEL, INDIA
    [email protected]
    Ph: (91) 4114 53818
    We do not have any DAQ cards within the PC. We have the parallel port which is EPP and ECP compatible having the address 278h on LPT2 and we are trying use this port for reading 8bit data from an external circuit. We developed a vi program in Labview 5.0 to control the parallel port.We tried with the Data lines to send signals from PC to external device through this parallel port with the addr
    ess 278h (which
    is Data lines) and it works fine. We also tried using reading 4bit data from external
    device to PC through this port with the address 279h (which is Status lines) and it
    is also working fine.
    But it was not possible for us to read through Control lines whose address is 27Ah. Whereas when line printer (dot matrix printer) was
    connected, it was possible for us to take print out. Thus printer was working. This
    informed us that the control lines are all OK!
    Can you please clarify, how to use both control lines and status lines to read 8 bit data through this parallel port using the Labview software.

    There are several Knowledge Base entries about this on the NI site, but probably the most detailed document is on the Advanced Measurements (www.advmeas.com) website. Try looking at this page, I think you will find it useful.
    http://www.advmeas.com/goodies/parallelport.html

  • Parallel port read with a CIN

    I need to read the status of a pin of the parallel port from within a Labview CIN.
    I intend to use this as a trigger for multiple camera acquisitions, and going back to Labview to read this value would not be fast enough.
    I know that under windows XP I need to "unlock" access to this port. I used a set of functions called "winio" to do this. This works fine from a regular C program, but won't work from within a CIN. Does Labview lock the use of the parallel port in any way?
    Does anyone know what I should do ?
    Thanks.

    Tchill wrote:
    Does Labview lock the use of the parallel port in any way?
    Does anyone know what I should do ?
    Thanks.
    Hi Tchill,
    I can't remember Win-XP causing trouble with the parallel port. But I do know about the security feature which does not allow to change the parallel port IO addressing (that's another topic )
    If you are running LV7.0, you can do a search example on parallel port. There are a couple of very useful vi's that you can run right away and it should get you going.
    You can also check this thread.
    or more directly into the developer zone for a tutorial by clicking HERE.
    JLV

Maybe you are looking for

  • CS4 - Is there a way to adjust gamma for second monitor or send to overlay?

    One thing that is evident when I edit in Premiere CS4 using the AVCHD 1080i 60 template is that the preview in the second monitor, which in my case is my TV set connected using a DVI to HDMI cable, is that the output is too dark compared to what it s

  • Auto sleep

    is there anyway to make my ibook g4 not auto sleep when the lid i closed. i want to be able to shut the lid and have the computer act as if nothing happened. thanks

  • A question about the App Store....

    Well, when 3.0 first came out, it had the "More" at the bottom instead of "Updates". In the "More" section it had updates and redeem. I wake up this morning and now it's just "Updates". Did anyone elses just change on them?

  • Files, icons, docs won't open with double click

    Suddenly when I double click, nothing happens. I have to use keyboard commands to open files, icons, docs, folders, etc. Did I inadvertantly set something? I have a Mighty Mouse and this was never a problem before. Thanks Mac G5   Mac OS X (10.4.9)  

  • Help with java. Please ASAP I have to submit this in a few HOURS

    I just downloaded the new java and I can't compile a test program that I need to complete for class. I was told to save a simple program in the "bin" folder and there isn't one in the "java6 update 2". When I try to compile the program is says "'java