How to change DI unbuffered mode

My request is when a fall from digital input (camera ready) edge arrives, it will trigger a pulse counter 0, open the shutter of camer.

The following code does this:

camShutterOutputTask.COChannels.CreatePulseChannelTime ("Dev1/ctr0", "",)
COPulseTimeUnits.Seconds, COPulseIdleState.Low,
0,
0.000001,
(((double) exposure_time) / 1e6);

camShutterOutputTask.Triggers.StartTrigger.ConfigureDigitalEdgeTrigger ("/ PFI0/Dev1", DigitalEdgeStartTriggerEdge.Falling);
camShutterOutputTask.Triggers.StartTrigger.Retriggerable = true;

On my PCIe-6323, PFI0 is by default configured with P1.0, so I connected physically ready to P1.0 camera entry.

I just want to trigger the camera several times. After the required number of triggers, I'll just ignore all the following input signals. The following code configures the input channel to do so:

camReadyInputTask.DIChannels.CreateChannel ("Dev1/port1/$line0", "", ChannelLineGrouping.OneChannelForEachLine);
() camReadyInputTask.Timing.ConfigureChangeDetection
"",
"Dev1/port1/$line0,"
(SampleQuantityMode.FiniteSamples, num_of_frames);

The problem is when I run the program, I get the error: "some lines do not support buffering operations. Ensure that lines are supported buffering operations are used in the task. If you use the calendar to change detection, the task should be replaced by without buffer to support these lines. »

If I use port 0 in the code instead of port 1, he makes the mistake, and it limits the number of input signals just like what I need. However, port 0 is not connecting to any PFI, so I can't use it in the trigger to start for the shutter of the camera.

Does anyone know how is:

1. change a task in unbuffered mode or

2 re - router port 0 to a PFI?

Thanks for the reply Ashly. I'm new to DAQmx and there is still a lot to learn.

The loop thing involves waiting timed software and concerns me.

I have found a workaround that calls a callback function whenever the meter changes its output:

camShutterOutputTask.SynchronizeCallbacks = true;
camShutterOutputTask.CounterOutput += new CounterOutputEventHandler (camShutter_callback);

...

' Private Sub camShutter_callback (object sender, CounterOutputEventArgs e)
{
trigger_count ++;
Console.WriteLine ("trigger count =" + trigger_count. (ToString());
If (trigger_count > = num_of_frames * 2)
{
Try
{
camShutterOutputTask.Stop ();
camShutterOutputTask.Dispose ();

...

startCaptureButton.Enabled = true;
}
catch (System.Exception Exception)
{
MessageBox.Show (exception. (Message);
}
}
}

In camShutter_callback(), I continue to follow a global counter and if it is greater than num_of_frames * 2 (since the callback will be triggered by rising and falling pulse edge), I stop all tasks.

Tags: NI Software

Similar Questions

  • How to change the ascii mode in dreamweaver?

    How to change the ascii mode in dreamweaver?

    Dreamweaver should automatically switch to ASCII as you can see from the following FTPExtensionMap.txt content

    In case you want to check your FTPExtensionMap.txt file, it can be found in the Configuration file according to the Dreamweaver crashes at startup

  • How to change the SATA mode to AHCI, no setting on the BIOS (Aspire E5 - 471P)

    How to change SATA to AHCI mode. Any setting in the BIOS (Aspire E5-471P-35Y2)

    Are you sure that your system is not already on AHCI?

  • Smartphones blackBerry how to change the connection mode for a BlackBerry Internet Service account on my 9700

    Got my first BB is the 9700 and I believe that my company doesn't have not BES, I must connect on my BIS via a computer to set up my work email (Microsoft Exchange Server). After having read about it and try, I get an error message on the Web site of my provider which basically means that I need to change the connection mode for a BlackBerry Internet Service account. I checked the site Web of Blackberry and the instructions do not work for my 9700. Can someone help me please?

    Thank you very much

    Buskroth

    the link provided should have addressed your question, if you "can't get there from here" - I would suggest that you contact your carrier because they need to move your account password enabled allowing connect you via a non - BB browser to set up your BIS email setting...

  • How to change the tunnel mode

    I have a table which I use to save 3 Boolean values.  I used a probe to check and just before I get into the structure of the case, I have 3 values (FTT).  I also have 3 values after I get the large case (FTT).  However, once I enter the loop for, I only get the last value.  I want to change the mode of tunnel for indexing, but when I right click on the box that I outlined in red, there is no other choice.  How can I change in order for the three values to enter in the loop for?

    Thank you.


  • How to change the Merge mode key? (mac)

    I used win7 in past and when I want to change the mode in layers of simple fusion I choose this layer, click on for the blending mode and roll down with the "ARROW DOWN" key but in MAC OS X that will to some don't work not. So my question is, how I roll through this palette? Is there a shortcut?

    Thank you very much

    Instead of using the arrow keys, there is a better key for the mixture of fashion, which releases the mouse.

    MAJ- Goes up in the blending mode

    Shift + Goes down in blending modes

    Make sure you are on the move tool first (you can hit v to switcch tools), as the blend mode shortcut also works on the blending mode for a tool if the tool has a (for example: brush).

  • How to change the power mode in Windows 7

    Hello

    I'm not very good in English (I'm Dutch) only when I talk about games or something not to technical stuff, but I'll try to explain

    In recent weeks, I have windows 7 running on this laptop.
    First I had vista, but who was bad. Windows 7 works much better.

    In any case, I don't have day my laptop with drivers from this site.
    When I was running I was missing something.

    On the right side where you can chance your schedule 'energy', you can choose between low and balanced performance.
    On vista, I had as good, but not now.

    Y at - it an update where I can lucky who?
    If Yes please can someone tell me where to find this update.

    Greetings,

    me

    took me 10 minutes to post this because of your message contains profanity or inappropriate language.
    In the interest of your fellow forum users, we ask you to change your message.

    Hello

    Windows 7 is a bit different as the Vista operating system.
    But you can change the settings in the Power Options located in the control panel.

    Go to the Control Panel-> Power Options

    There you can find both of these options; Low performance and balanced performance.
    The high performance is hidden you will need to click the arrow to open the option where the mode performance.

    But you can also create a mode of clean energy;

    On the left you will find the option: create the mode of power (or something like that... Sorry it s just translated)
    That could be an option that lets you choose the high performance.

  • Interactive reports: how to change the display mode (details, group by, chart, pivot) programmatically?

    Hi guys,.

    is it possible to control the display mode of the interactive reports, i.e. display icon, list, view detail, group by, chart, pivot?

    Produkte.png

    As I understand the current setting is stored as a preference of the user for each user... and again when his connection. A settings of the rules them all (all the stored report parameters).

    The display mode switchable using a javascript, the api package apex_ir or via a link?

    Thank you
    ~ Dietmar.

    Hi Dietmar,

    It is not a supported way to change the display interactive report mode.  With the device connected by Anthony internally, we will consider adding this because part of apex_ir or a link to the future.

    Kind regards

    Christina

  • How to change the display mode screen landscape

    original title: screen display

    my 1 year old has done something to my computer and now when I start it up to the top of the screen is in landscape mode.

    All versions: hold down Ctrl & Alt keys and use the arrows to rotate backwards.
     
    Vista: right-click on the desktop | Graphics options | Rotation.
    Windows 7: right click on the desktop | Screen resolution | Orientation.
  • How to change the RAID mode on this camera?

    I looked everywhere but there is no option to do this on my NAS?

    The setting of the RAID THAT SHOULD be on this page, but it is not?

    I didn't know that I had the CLOUD EDITION.

    I've updated the NAS with NON-CLOUD EDITION.

    That's why it wasn't working properly.

    There is no indication on the product which edition it is.

  • I used my iMac as a hard drive backup to my macbook once. Now when I update to El Capitan he says that it cannot be updated due to being of a backup. How do I change the drive mode so I can update?

    I used my iMac as a hard drive backup to my macbook once. Now when I update to El Capitan he says that it cannot be updated due to being of a backup. How do I change the drive mode so I can update?

    If you use your iMac as a backup to disk using Time Machine look for a folder called Backups.backupdb.

    It's what keeps you upgraded your operating system, you must remove it.

    Copy everything first if you are on a different drive. It would be wise to create a backup of the iMac on another drive also.

    Check system preferences > Time Machine and make sure that the iMac is not selected as the Time Machine drive.

  • How permanently change basic in standard mode mode

    I have 2 computers, the two Firefox running. The office (XP MS) opens in standard mode, the laptop (Win7) in basic mode. I wish to open in standard mode but cannot see how to do this. It is easy to switch to standard mode, but he always comes back to the basic mode next time it opens. I searched help and you can't see how to change. I missed this setting when I installed on the laptop.

    Sorry, this isn't a problem of Firefox support. Try to use a Windows support forum using this question.

    http://lounge.WindowsSecrets.com/index.php

  • How to change channels in PIP mode

    When the internet is currently viewing and TV is in the rectangle side. How to change the channel when it is like that? The channel upward and down scrolls the internet instead.

    Thank you for your message.
    It is not possible to change the channel mode dual display. When you want to change the channel, exit the dual view, change the channel, then come back in dual display mode.

  • Instructions on how to change a Sansa Express mode MTP to MSC mode

    Here's a PDF detailed instructions with screenshots on how to change a Sansa Express mode MTP to MSC mode.

    Instructions for the mode MTP Sansa Express in MSC mode

    Yet once again, if you feel compelled to start a pointless discussion on a distiction without difference, pull yourself.

    L'Express is a device MTP, the method ONLY works to 'convert' MSC are in the instructions.

    The instructions actually work, which was the point of being with.

    That's what these forums are for.

    But you're too busy from a contest of wee in fact pointed out that the highlight.

    What was the point of your original response message once again?

    Oh yes, it's true.

    It served no useful purpose at all and is used to tell us all that water is wet and rocks are difficult.

    Feel free to come back to the breeding of cats now.

  • How to change to XP Windows Vista mode

    I have Windows Vista on my laptop. Through some sets of strikes - unknown to me - UI went into a mode that looks like Windows XP. For example, in the lower left corner of the screen, instead of the Start button round with the Windows logo, I see a square with the word "Start" button How to switch to this mode and in Vista mode? Thank you.

    Hello

    You need to change the desktop theme.

    Right-click on an empty area of the desktop - customize set - Windows Vista theme - apply / OK.

    How to change Vista desktop theme
    http://www.Vistax64.com/tutorials/87194-theme-settings.html

    Change desktop theme
    http://Windows.Microsoft.com/en-us/Windows-Vista/change-desktop-theme

    I hope this helps.

    Rob Brown - MS MVP - Windows Desktop Experience: Bike - Mark Twain said it right.

Maybe you are looking for

  • Want to M6-N012dx fails 8.1 to Win-10 update

    I just bought this laptop used last Monday (7/25). Everything seems to work perfectly, and it is running 8.1 Win. I want to get updated to win 10 before the deadline of Friday, but the failure of the update online! Download goes well via Win-update,

  • Satellite A100-451 chart update?

    Can anyone help?I have laptop Toshiba Satellite A100-451 with geForce go 7600 dedicated video card (DDR video RAM 128 MBconnected bus: PCI Express 16 x).Is it possible to upgrade my graphics?Thank you

  • HP laptop - 15-f209wm: HP - 15-f209wm updated laptop

    I was wondering if I could upgrade my portable computer with more ram it has 4 GB but I was wondering if I could get more, and so what is my limit? I'm running on arch linux, I don't know much about the hardware, but I'm a software developer

  • HP8610e: get message network installation HP8610 lan connection failure

    Using set up disk, I get the network fails Installation message: the printer could not be installed on the network. I use the connection to the local network

  • No installation box after updates are.

    Windows 7 check updates new windows screen start 10 update ready.  Under this is a message "notice additional updates, clicked on it and extra is updated in.»  BUT there is NO box installation, there at the bottom on the right is a "Cancel and OK", I