How to synchronize presentation on the front panel to the start of a 75Hz monitor's retrace cycle?

How to synchronize front panel presentation with the start of a retrace cycle of a 75Hz Monitor, so when a bitmap is presented 100ms, its duration is indeed 100ms on the monitor?

Hi,
In the old days (late 90's), we used in port and out port to wait for
vertical retraces (or even horizontal retraces).
I searched the web (vertical retrace), and there seem to be lots of
infromation and tools, like
http://www.compuphase.com/vretrace.htm
It uses a simple routine:
mov dx, 3dah ; VGA input status register
vretrace_loop:
in al, dx
test al, 8 ; bit 3 set?
jz vretrace_loop ; no, continue waiting
But to get it working, you need a VxD. Good news is you can download it.
The also suggest you use WaitForVerticalBlank(), but dx could be hard to get
working under LabVIEW.
Please let us know how (and if) you got it working with LabVIEW!
Regards,
Wiebe.
"Vinci HK" wrote in message
news:[email protected]...
> Hi Robert,
> I am so excited to have received a response! Sorry that I didn't reply
> earlier as I have been out of town. You are understanding the problem,
> so good!
>
> I just want to know the exact duration a stimuli in the front panel is
> presented. I can make it to last for 13 frames, but the problem is to
> ask LabView to synchronize with the start of a frame.
>
> The crucial thing is that I want a trial of presenting 700ms blank
> screen + 1300ms bitmap will add up to 2000ms on the front panel. And
> in the next 2000ms, a different bitmap will be used for the 1300ms.
> The start of a trial is initiated by a pulse from the parallel port. I
> need the 2000ms on the front panel to be really 2000ms+/-5ms.
>
> My worry is that even if I buy the external clock and the RealTime
> system of LabView, I won't be able to get the front panel to
> synchronise with the refresh cycle of the monitor, so that the trial
> length as it appears on the front panel is 2000ms +/- 5ms.
>
> What do u think?
>
> I am using LabView for my fMRI experiment, and I wonder if you know
> anyone from the fMRI community who are using LabView for stimulus
> presentation and synchronization with MRI data acquisition?
>
> Thanks,
> Vinci

Similar Messages

  • How can I save an EXE front panel image to a file?

    The methods to save a VI front panel image to a file don't work on executable applications. How can I save an EXE front panel image to a file? (LabVIEW 6.1)

    Hi,
    i wrote some vi that save FP to image and created exe and it works fine. How do you save FP to image in VI?
    If you use VI server method "Get Panel Image" and use "Write JPG file" ( or BPM) it works fine.
    Attachments:
    fp.zip ‏40 KB

  • How can I shut down the start sound on my IMac under OS X 10.9.5

    How can I shut down the start sound on my IMac under OS X 10.9.5

    Did you try using 'mute' in the System Preferences> Sound> output>
    control panel? This usually will mute the startup sound; you may have
    to try a few things to be sure only the startup will mute, not all sounds.
    Of course, you could likely write an apple script in automator or in
    text edit, that could automatically mute before shutdown and then
    in startup items, have the script un-mute the audio for everything.
    There are possibilities that do not include the command line; but
    if you learn how to use that, without messing up other functions,
    then even more custom control is possible in Mac OS X.
    With that, you could write a substitute 'sound file' with white noise
    or nothing in there; so instead of Bong, it'd be as quiet as a mouse.
    PS: You may have a local reason why the site link posted above
    does not work for you, but it does function and if the product is
    free to use, and does not include adware or malware, here is an
    untested download link from their site. (I can go there, easily.)
    http://www.allvu.com/index.php/sndownloadpage.html
    and note:
    http://www.allvu.com/downloads/StartNinjaInstaller.dmg is the
    actual DL link for this product. Mouse over the buttons to see it.
    (The other downloads are highly suspect; even this one is to me)
    There may be a reason in your Mac OS X 10.9.x for gatekeeper
    to not allow odd download installations, there is a way around
    that feature, but I do not recommend using unknown software.
    In any event...
    Good luck & happy computing!
    edited 2x

  • Terminal - how to jump type to the start/end of a word or line?

    How do I jump to the start or end of a word or line in Terminal?
    In other OS X apps, Cmd or Opt + left/right arrows move to the start/end of a line or word respectively.

    Try these (note: the first two require the shift key, at least for me):
    ctrl-A beginning of line
    ctrl-E end of line
    (note: the next two require that you have the Terminal preferences, "settings" , "keyboard" opened, and the checkbox for "Use option as meta key" checked)
    opt-f forward word
    opt-b backward word
    ctrl-u clears the line before the cursor position. If you are at the end of the line, clears the entire line.
    ctrl-f forward character
    ctrl-b backward character
    ctrl-d delete character
    ctrl-l clear screen
    pageup page up in buffer
    pagedwn page down in buffer
    More here:
    http://osxdaily.com/2006/12/19/command-line-keyboard-shortcuts-for-mac-os-x/

  • How do I get to the start of a really long text message conversation without scrolling through them all? Thanks

    Hi. How do I get to the start of a really long text message conversation without having to scroll through and load earlier messages repeatedly?  Thanks

    click on the top of the screen (the top bar/clock sectionish).  Hope i helped

  • HT5953 How can I speed up the "start speaking" feature in iBooks? (System Preferences Dictation and speech does not do anything to the speech speed.) The rate is a bit to slow.

    How can I speed up the "start speaking" feature in iBooks? (System Preferences Dictation and speech does not do anything to the speech speed.) The rate is a bit to slow.

    Hi, I had the same problem you described, and I noticed that there are two ways of activating text to speech on iBook for Mac, with different speed results (at least on my MacBook Pro Retina display)
    On your iBook you can select the text and and then click on > More> Start speaking,  and you will get a certain speed, which tends to be too slow.
    But you will get the speed you had selected with "Go to System Preferences>Dictation and Speech>Text to speech. In there is a slider to adjust the speaking rate." if you use the TOP MENU (next to the black apple)  under Edit>Speech>Start Speaking. I also learned that under System Preferences>Dictation and Speech>Text to speech, there is an option for a shortcut which is very helpful. And you can change Key. Hope this was helpful.

  • How to pop up another VI front panel and run this in the main VI?

    Hi all,
    I want to create a VI, which contain several buttons: like "RUN ANALYSIS 1" and "RUN ANALYSIS 2".
    When I click one of them, another front panel of VI jump out and run automatically. When I click on "Finish" button on this VI (the one jump out), this front panel close.
    How to complete it?
    Thanks,

    Hi Osso,
    The ability to click on other VIs is also controlled by the Window Appearance. If you follow Dennis' instructions above, but this time change the Window Behavior to modal.  You can find more information about the different selections in the LabVIEW Help: Customize Window Appearance Dialog Box.
    Regards,
    Elizabeth K. 
    National Instruments | Applications Engineer | www.ni.com/support 

  • How can I close a remote front panel by closing only the browser window?

    I control a remote front panel in a browser (from the client PC). If I don't use the 'close' - button in my program to end the remote front panel, but instead of this the 'x' of the browser window (in the right bottom corner), my program won't be close, it continues on the server. Do you know how to end a VI by closing only the browser windows?
    Thanks for any help!
    wolfe

    I found the examples. Thanks.
    But I could not find a solution yet. Now I know how to end a VI by clicking on the x of the VIwindow.
    My problem is, to end a VI by clicking on the x of the BROWSER window after I loaded and controlled a remote panel VI in a browser (e.g. IE).
    If you have any ideas ... I'd be happy.
    Thanks for your help.

  • How to active more than one front panel in the same application ?

    Hello,
    I want to active several front panels in the same application. I am a recent labview's user and it's difficult to solve this question.
    Thanks for your help.
    Regards

    But, each VI, including each subVI has a front panel. If you want several front panels, that implies using several VIs. The top level VI will call the appropriate subVI. Each subVI that you need as a UI can be set to 'Show front panel when called' and 'close afterwards if originally closed'. These settings can be accessed through popping up on the VI's icon and selecting VI Properties..., then selecting Window Appearance, then selecting the customize button or the dialog radio button.
    Hope that this helps,
    Bob
    Bob Young - Test Engineer - Lapsed Certified LabVIEW Developer
    DISTek Integration, Inc. - NI Alliance Member
    mailto:[email protected]

  • Q:How to trim a VI's front panel at runtime?

    The occupied front panel space can be obtained by calling
    "GetPanelImage" via an invoke node. The resulting cluster "bounds"
    describes the union of all front panel objects. The front panel can then
    be resized to fit these bounds. The content of the front panel can be
    repositioned by manipulating "FrontPanelWindow.Origin". This "...Origin"
    points with an _unknown_ _offset_ (which varies with the FP´s layout) to
    the upper left corner of the front panel content.
    How to exactly calculate the origin from other front panel values?
    Thanks,
    TC

    You can use a VI Server to position the front panel of your subVI. Look at the Ghost in the Machine.vi example that ships with LabView.
    To see where to position the subVI, you need to know the position of the calling VI or of something on it. You could use a property node of the Get Details button.
    1. On the front panel on Panel.vi, right-click on Get Details and select Create >> Property Node
    2. Right-click on the Property Node and select Properties >> Position >> Left.
    3. Point to the bottom edge of the property node and pull it down to add another element. That element should default to Top.
    That will give you the coordinates of the Get Details button. Now use a VI server (based on Ghost in the Machine.vi) to place the subVI front panel the desired distance
    from the Get Details button.

  • How to make some part of front panel transparent?

    There is a property node to make a front panel completly transparent...but is there anything that only makes some part of the vi transparent like if I define a decorative block in the vi which takes 1 quardant of front panel and I have a control to make it transparent during runtime...
    And moreover the frontpanel transparent property makes the whole window transparent, is there any way to retain toolbar of window like stop, run button when front panel is transparent??

    Hi,
    Have a look at this VI (attached). To make it work you need to create an image mask as a .png (open paint, colour in the areas that you want to become invisible and save it as a .png). The VI diffentiates between white areas and black areas of the mask you create, the black areas will become transparent and the white areas will remain the same- this will be implemented on your front panel. I've included an example of a possible paint image in "mask2.png".
    You may also want to play around with the resolution of the mask created in paint, this will effect how the program works (I advise you use a lower resolution than your display- I used 500x300)
    NT: If the front panel controls disappear, go into the block diagram window and attach a false constant instead of a control. Let me know if this works
    Cheers, Tom
    Attachments:
    custom window.zip ‏107 KB

  • How do I create tabs on front panels

    Hi everyone. I want to create multiple front panels on the same project. How do I go about this?
    Also, I needed to analyze noise from a thermocouple signal in terms of Probability  Density Function and power spectral density and I don't have a clue yet. Any body any useful info should pls reply.
    Thanks. 

    Well said Lynn..
    I do realize that the discussion has moved away from the original topic
    Are you trying to resolve a problem that would normally be solved using signal conditioning?
    Are you seeing artifacts from 50/60Hz ?
    Did you mention what your thermocouples were connected to or in proximity of?  ie: do you need shielding?

  • How to data log graphs using front panel data logging?

    Hello I have a VI that collects data from DAQmx thermocouple readings and graphs the temperature vs time using a while loop to collect data and graph. I have 9 control operators that define the correction factor of the thermocouples.
    I want to create a datalogging using the option under Operations>Data Logging
    When I retrieve the data the only information that is present are the control operators correction factors that I defined. The graphed data that was created is not retrieved.
    Is there a solution to show the graphed data plots that were created on the front panel? They remain unchanged from the last run of the VI or blank if I open the VI without having ran the program.
    Thank you.

    This is expected for the Data Logging in LabVIEW. If you want to record the signla data, use the Write to Measurement File Express VI.  Here's a link with a walk-through:
    http://www.ni.com/academic/students/learn-daq/data-logging/
    The Data Logging from the Operate Menu is for recording front panel control(s), as you have observed.
    Mark P.
    Applications Engineer
    National Instruments
    www.ni.com/support

  • How to add ASCII symbol to Front Panel

    Hello,
    I am trying to add an ASCII character to the front panel but I cannot figure out or find out how to do it. It should be ALT key plus the decimal code I thought.
    Any help would be appreciaited.
    John

    you can enter an "e", select the character, and change to symbol font.
    LabVIEW Champion . Do more with less code and in less time .

  • How to delete hidden Control on Front Panel

    I have deleted the Attribute Node setting a control in a cluster to
    invisible. So now I'm not able to delete this control on the Front
    Panel. How to do this?
    Sent via Deja.com http://www.deja.com/
    Before you buy.

    Gert,
    Just right-click on the control's terminal and select ->show control. You
    will then be able to delete the control as usual.
    James
    "Gert" wrote in message
    news:8uto76$r8v$[email protected]..
    > I have deleted the Attribute Node setting a control in a cluster to
    > invisible. So now I'm not able to delete this control on the Front
    > Panel. How to do this?
    >
    >
    > Sent via Deja.com http://www.deja.com/
    > Before you buy.

Maybe you are looking for

  • Regarding java mapping failure

    Hai all   Iam Ajay , here i would like to create XML Tree using DOM Parser. In the java Program i need to import "com.sap.aii.mapping.*" library. Unfortunately i don't have that. could you suggest me where do i import the jar file which includes the

  • Passing parameters to event triggered functions

    hi all, i have created a button and added EventListener. as mybutton.addEventListener(MouseEvent.CLICK,clickSt art); when i implement the clickStart (event:MouseEvent) function i want to pass an array ,a String to this function as parameters .how can

  • Confusion about reference variable

    Still, I am sometimes an incurable complete newbie. The code A works but I feel repeating same comparisons is somehow awkward. But, much simpler code B fails in inserting a new node in a tree. Could you explain what is happening here in Java backstag

  • JPEG for Best Results

    I want to include some JPEG still images into a project. I tried just applying them to the timeline and of course they look terrible. Do I need to convert to .tiff or .png, change the pixel ratios etc.? What is the best workflow or where can I find t

  • API to access query structure / bad performance Bex query processor

    Hi, we are using a big P&L query structure. Each query structure node selects a hierarchy node of the account. This setup makes the performance incredible bad. The Bex query processor caches and selects per structure node - which creates an awful mas