How to import 6602's counter output to PFI3 of the 6534 board?

Dear friends,
I have the following problem:
I am trying to import the output of one of the counters of the 6602 board (counter 4) to
the REQ2 (PFI3) line of the 6543 board (please see the VI attached). But I do
not see any signal on the PFI3 line though the VI runs without errors.
The situation is the same if I connect output of the counter to the PFI3 directly in the "Connect Terminals" VI instead of connecting it via PXI_Trig4 line.
I need your help to understand why is it so and how can I accomplish the
"import" task.
Thanks in advance!
Attachments:
counterImport.vi ‏28 KB

Hi Andrew,
You are absolutely right - there should be PFI20 instead of PFI26.
It works now. Thank you!
.....I hope you can give some ideas with regard to the following problem:
In a program I used four 6602's counters (counters 0-3) to generate single trigger
pulses on the backplane of the PXI.
It worked fine.
Now I want to incorporate the fifth counter into the program (counter 4) to
generate a finite pulse sequence on the PFI3 line of the 6534 board.
And I can not do this.
Code example is in the VI attached.
When I try to run this VI it gives error:
Error -89137 occurred at DAQmx Connect Terminals.vi:4
Possible reason(s):
Specified route cannot be satisfied, because it requires resources that are
currently in use by another route.
Source Device: TimingIO
Source Terminal: PFI36
Destination Device: TimingIO
Destination Terminal: PXI_Trig0
Required Resources in Use by
Source Device: TimingIO
Source Terminal: PFI20
Destination Device: TimingIO
Destination Terminal: PXI_Trig4
I do not understand why it happens and how to correct this....
Thanks!
Attachments:
counterImport 2.vi ‏79 KB

Similar Messages

  • How to filter starttrigger on counter output precisely

    HW PCI6602
    Measurement studio 2008 (C#)NI-DAQmx 9.02I’m trying to trig a camera using the output from a counter.
    The camera should be trigged when the counter input pulse width is larger than approx (filterPulseWidth 10us).To do this a have set up the following tasktask.COChannels.CreatePulseChannelTime(counter,                "TriggerTaskChannel", COPulseTimeUnits.Seconds, COPulseIdleState.Low, 0, 80E-6, 0.007);             task.Triggers.StartTrigger.Type = StartTriggerType.DigitalEdge;            task.Triggers.StartTrigger.DigitalEdge.Edge = DigitalEdgeStartTriggerEdge.Rising;             task.Triggers.StartTrigger.Retriggerable = true;task.Triggers.StartTrigger.DigitalEdge.DigitalFilterMinimumPulseWidth = filterPulseWidth;            task.Triggers.StartTrigger.DigitalEdge.DigitalFilterEnable = true;Unfortunatly this filter has the following behaviour”If the period of the filter clock timebase is tfltrclk, this filter guarantees topass pulse widths that are 2*tfltrclk or longer and to block pulse widths thatare tfltrclk or shorter. A pulse with a width between these two ranges may ormay not pass, depending on the phase of the pulse with respect to the filterclock timebase”.It means that I have no sharp distinction on my filter as one would when applying a filter to an ordinary pulse width measuring task. Implementing this with via the software in a callback is to slow.The bottom line is that I would like to generate a pulse on my counter output when the trigger/counter input is greater than say 10us. The output pulse could be predetermind as in the sample code above or as long as the filtered input (I.e counter just pass filtered input to my output).How can this be done? BR
    Jongas
    Solved!
    Go to Solution.

    Hi Jongas,
    Is it OK if the trigger is sent once the pulse hits 10 us, rather than
    on the exact falling edge?  I'll assume the exact timing isn't as important, but you would like the trigger to occur very close to the falling edge (within a couple of us).  The important thing is that we trigger as close as possible to when the PWM has hit 50% duty cycle.
    Some brainstorming:
    Digital Filtering on the 660x Isn't the Best for This:
    Digital filtering might not be as practical here on your 6602 due to the region of uncertainty between 5 and 10 (or 10 and 20) us pulses.  The TIO boards count two consecutive edges of a filter clock to determine when to pass a signal through so the guaranteed rejected pulse width is always half of your guaranteed passed pulse width (providing an external filter clock timebase that is synchronized with your external signal could potentially reduce this uncertainty but I honestly haven't tried this before and I would imagine it is not going to be very straightforward).
    X Series Alternative:
    Our X Series devices use a different method of digital filtering that would work better for you.  If a hardware change is an option (and you can use PCIe) then you might consider this.  You could use the 20 MHz timebase as your filter clock timebase and could guarantee to pass 10 us (200/20M) and reject 9.95 us (201/20M).  The 6320 is currently our lowest cost X Series board.  A couple of points about this solution:
    1.  To configure the PFI filter, you need to use some sort of dummy task to
    access the property nodes.  Here is an
    example of this (although it is written in LabVIEW).
    2.  You can route the filtered PFI signal to be exported on another PFI line, but this will reserve Counter 3.  This is documented in the Device Routes tab of Measurement and Automation Explorer.
    3.  The filtered output will be 9.95-10 us delayed from the input signal, so you could trigger the camera off of the rising edge of the filtered output directly and be fairly close to the actual falling edge.
    External AND Gate Alternative:
    You could configure a Counter Output to generate a re-triggerable pulse with a 10 us initial delay (to be triggered off of the rising edge of your PWM signal).  Assuming the pulse is short enough to complete before the next period of your PWM signal, the counter output would only be high at the same time as the PWM signal if the signal was longer than 10 us.  Use the external AND gate to combine these two signals and the result would be the trigger for your camera (the rising edge would correspond to 10 us after the PWM signal first goes high).
    If you wanted to you could make the counter output pulse a little longer (say 8 us) and trigger the camera off of the falling edge out of the AND gate (a.k.a. rising edge out of a NAND gate) which would line up with the exact falling edge of the PWM signal.  Don't make the CO pulse too long or it will overlap with the next period of the PWM.
    Another Idea:
    One idea that I keep coming back to is to use the internal rollover event of a counter input task (a pulse is generated whenever a counter rolls over on its Internal Output which can be routed to a PFI line).  I don't think this will work, but the idea in theory would be to:
    1.  Set Default state to known value (e.g. 2^32-200).
    2.  Gate the Counter so it only counts during the time PWM is high.  Have it count the 20 MHz timebase.
    3.  Reset the Counter to default state on the falling edge of the PWM signal.
    4.  The counter would rollover if 200 pulses occurred of the 20 MHz timebase (10 us), and the Counter Output could be routed to a PFI line to trigger the camera.
    The problem is that there is no good way to reset the counter except for an encoder measurement (Kevin has already made a nice suggestion about this).  A Pulse Width Measurement would technically reset the counter, but you cannot currently set the default value of a Pulse Width Measurement task so there is no way to make the rollover happen prematurely).
    Configuring an encoder measurement and working with the multiple counters on the 6602 to produce appropriate A,B, and Z signals might be a method to look into further, but at this point I think you'd be better off with an external AND gate.
    I don't want to say it's impossible with just the 6602, but I can't think of a straightforward way to go about it without external hardware (although maybe I can sleep on it and think of something later... how many counters do you have to work with?). 
    With your current NI Hardware, I think your best bet is to go with an external AND gate.  If you're planning on purchasing an X Series card the digital filtering idea is actually not a bad way to go.
    I hope this is helpful!
    Best Regards,
    John Passiak

  • Using 6602 to count number of pulses on the gate

    Hello
    I'm using 6602, NI-DAQ,WinXp,VC++
    I have an external pulse (about 30HZ 50% d.c) which I need to synchronize my process to.
    On every High level of the pulse I need to issue a thread that run for about 4ms.
    I think for 2 options to solve it:
    1. Receive an interrupt for every pulse and increase a global vaiable (counter) in memory. My applicaion will poll this varable and will issue the thread on every counter increament.
    I didn't find any way to receive this interrupt via the 6602!
    2. Increase one of the 6602 counters when the external pulse is connected to its gate/source. The problem is that I found that I can't poll (check the ND_COUNT) insoftware as long as the counter is armed.
    Can you please direct me how can I solve the problem in both cases?
    Many thanks
    Shali

    Hi Shali,
    Thanks for contacting National Instrument's support!  It sounds like you have an interesting application involving our 6602 card. 
    I would recommend going with your first solution.  You could simply perform a Count Digital events measurement and constantly monitor the output.  Then, you would use an event structure to monitor the variable where you're storing the count value.  If the value has changed, then you fire off your interrupt event.  If not, continue polling that variable. 
    I'm not sure if I understand what you're trying to do with the second solution, but hopefully the first solution will work for you.  If not, please let me know and I'd be glad to help you out further.
    Regards,
    Daniel L.
    Applications Engineer
    National Instruments

  • 6602 Multiple Counter Output

    Hi
    I would like to output a counter signal on all eight of my outputs on the PCI6602.  These outputs have to be able to be stopped individually.  How do I do this in labview 8.

    Hi Chris,
    There is a great shipping example that comes with DAQmx named "Gen Dig Pulse Train-Continuous.vi" which will do what you are looking for on a single counter.  To get to this, go to the NI Example Finder and browse to Hardware Input and Output>>DAQmx>>Generating Digital Pulses.
    To expand this to all 8 counters on your 6602 there are 2 options:
    The easiest way is to copy the code 7 times, to have a total of 8 seperate counter tasks, with 8 parallel while loops that all poll for a stop condition.  Although not the prettiest, this should be very easy to create starting from the example mentioned above.
    A sleeker way to accomplish this is to reuse the same DAQmx code inside of auto-indexed for loops.  Attached is a modified version of the original example that should work for all 8 counters, and give you individual control of all of them.
    Hopefully this helps you get up and running!
    Have a great day!
    Travis W
    Attachments:
    Gen Dig Pulse Train-Continuous - Multiple Counters - Individual Control.vi ‏44 KB

  • How can I run a counter by number of times the script is run

    So I've created a script for disabling exchange mailboxes and moving them to a disabled OU in AD.  I currently have this set to run once a week via scheduled tasks but instead would like to kick it up to nightly and improve on the logging.
    Right now, the only items I record are the name of the person and the OU they were originally in.  I'd also like to include the groups they were a member of.  I could easily enough include all the groups they were a member of in the email but here
    is the twist.
    Since we are going to a nightly run of this script, we would want to keep at least a weeks worth of logs in a text file as a just in case.  After a week, the log would be cleared.  I know that would be a counter but I can't even wrap my mind around
    how that would work.  Is it even possible?
    #Finds all users who have the AD attributes
    # wWWHomePage = Updated_by_GroupID
    # msExchHideFromAddressLists = True
    # msExchHomeServerName not empty
    # emailaddress contains @MyDomain.com
    # useraccountcontrol = 514 (disabled)
    Import-Module ActiveDirectory
    add-pssnapin Microsoft.Exchange.Management.PowerShell.E2010
    #Declare Variables
    $users = $null
    $ADgroups = $null
    $username = $null
    $user = $null
    $LogFile = "C:\Scripts\TerminateUsersLogFile.txt"
    $LogFile2 = "C:\Scripts\UserNamesMovedtoDisabledOU.txt"
    $EmailLogTo = "[email protected]"
    #Generates log file
    Start-Transcript -path $LogFile
    #Performs search for all users in AD filtering only AD user with wWWWHomePage = Updated_by_GroupID, msExchHideFromAddressLists = True, msExchHomeServerName not empty and emailaddress contains @MyDomain.com
    $users = Get-ADUser -properties name, emailaddress -Filter {(HomePage -eq "Updated_by_GroupID") -and (msExchHideFromAddressLists -eq $true) -and (emailaddress -like "*@MyDomain.com") -and (msExchHomeServerName -ne "$null") -and (useraccountcontrol -eq "514")}
    $users.name -Replace '^cn=([^,]+).+$','$1'
    #loops through all users
    foreach ($user in $users){
    $user.name -Replace '^cn=([^,]+).+$','$1'
    #Copies the current OU into the Notes field in the AD User Object.
    $newvar = ($user).distinguishedname
    set-aduser $user -replace @{info="$newvar"}
    # Removes user from all AD groups except Domain Users.
    $ADgroups = Get-ADPrincipalGroupMembership -Identity $user | where {$_.Name -ne "Domain Users"}
    Remove-ADPrincipalGroupMembership -Identity "$($user)" -MemberOf $ADgroups -Confirm:$false
    #Disables their Exchange Mailbox.
    Disable-Mailbox -Identity $user.EmailAddress -Confirm:$False
    #Moves their AD user object to disabled OU.
    Move-ADObject -Identity "$($user.DistinguishedName)" -TargetPath "Disabled Users OU" -Confirm:$false
    Write-Output $user.name >> C:\Scripts\UserNamesMovedtoDisabledOU.txt
    Stop-Transcript
    # Email the log file
    $emailFrom = "[email protected]"
    $emailTo = $EmailLogTo
    $subject = "Terminated Users Cleaned in AD"
    $content = Get-Content $LogFile2 | ForEach-Object {$_.Split("`r`n")}
    $body = [string]::Join("`r`n",$content)
    $smtpServer = "SMTP.MyDomain.com"
    $smtp = new-object Net.Mail.SmtpClient($smtpServer)
    $smtp.Send($emailFrom, $emailTo, $subject, $body)
    clear-content C:\Scripts\UserNamesMovedtoDisabledOU.txt

    I apologize for the long delay in replying.  I thank everyone for their help but I'm still running into issues with the script.  Below is the script as it is right now.  I'm having issues with logging as the groups the associate is a member
    of are not logging correctly.
    #Finds all users who have the AD attributes
    # wWWHomePage = Updated_by_GroupID
    # msExchHideFromAddressLists = True
    # msExchHomeServerName not empty
    # emailaddress contains @MyDomain.com
    # useraccountcontrol = 514 (disabled)
    Import-Module ActiveDirectory
    add-pssnapin Microsoft.Exchange.Management.PowerShell.E2010
    #Declare Variables
    $users = $null
    $ADgroups = $null
    $username = $null
    $user = $null
    $LogFile = "C:\Scripts\CleanUpTermedUsers\TerminateUsersLogFile.log"
    $LogFile2 = "C:\Scripts\CleanUpTermedUsers\UserNamesMovedtoDisabledOU.txt"
    $EmailLogTo = "[email protected]"
    #Generates log file
    Start-Transcript -path $LogFile
    #Performs search for all users in AD filtering only AD user with wWWWHomePage = Updated_by_GroupID, msExchHideFromAddressLists = True, msExchHomeServerName not empty and emailaddress contains @mydomain.com
    $users = Get-ADUser -properties name, emailaddress -Filter {(HomePage -eq "Updated_by_GroupID") -and (msExchHideFromAddressLists -eq $true) -and (emailaddress -like "*@mydomain.com") -and (msExchHomeServerName -ne "$null") -and (useraccountcontrol -eq "514")}
    $users.name -Replace '^cn=([^,]+).+$','$1'
    #loops through all users
    foreach ($user in $users){
    $user.name -Replace '^cn=([^,]+).+$','$1'
    #Copies the current OU into the Notes field in the AD User Object.
    $UserOU = ($user).distinguishedname
    set-aduser $user -replace @{info="$UserOU"}
    # Removes user from all AD groups except Domain Users.
    $ADgroups = Get-ADPrincipalGroupMembership -Identity $user | where {$_.Name -ne "Domain Users"}
    Write-Output $user.name >> C:\Scripts\CleanUpTermedUsers\UserNamesMovedtoDisabledOU.txt
    write-output $ADgroups.name >> C:\Scripts\CleanUpTermedUsers\UserNamesMovedtoDisabledOU.txt
    echo $ADgroups.name
    Remove-ADPrincipalGroupMembership -Identity "$($user)" -MemberOf $ADgroups -Confirm:$false
    #Disables their Exchange Mailbox.
    Disable-Mailbox -Identity $user.EmailAddress -Confirm:$False
    #Moves their AD user object to disabled OU.
    Move-ADObject -Identity "$($user.DistinguishedName)" -TargetPath "Disabled OU" -Confirm:$false
    Stop-Transcript
    # Email the log file
    $emailFrom = "[email protected]"
    $emailTo = $EmailLogTo
    $subject = "Terminated Users Cleaned in AD"
    $content = Get-Content $LogFile2 | ForEach-Object {$_.Split("`r`n")}
    $body = [string]::Join("`r`n",$content)
    $smtpServer = "smtp.mydomain.com"
    $smtp = new-object Net.Mail.SmtpClient($smtpServer)
    $smtp.Send($emailFrom, $emailTo, $subject, $body)
    Get-ChildItem -Path C:\Scripts\CleanUpTermedUsers\* -Include *.log | where-object { $_.LastWriteTime -lt $((Get-date).Adddays(-7))} | clear-content C:\Scripts\CleanUpTermedUsers\TerminateUsersLogFile.log
    Clear-Content c:\Scripts\CleanUpTermedUsers\UserNamesMovedtoDisabledOU.txt

  • How to import a self signed certificate into Firefox from the windows store properly.

    I am currently trying to get a wcf service that runs on the same machine as the browser that is making the request. Since the connection is between a browser and an application running on the same machine security was orginally not a concern and it seemed fine to leave the request on http. The first issue arrised when Firefox did not allow mixed content calls (The website making the requests uses https). I have the service converted fine to run with Chrome and IE in https, but not for Firefox due to its use of a seperate store.
    For the windows store I created one CA cert which then issues the self signed cert which is then binded to a port I have the WCF service listening on (In my case this is: https://localhost:8502).
    This all needs to be done progammatically so I can't manually Add an Exception (which does work).
    If there was a way to use certutil (I am not very addept at using this tool at all) to add this exception it would be very helpful.
    The other method I have tried is exporting the selof signed cert and then importing it. Using IIS I can only export the file as .pfx which I can't seem to import into the Servers tab in the certificates interface (I assume this is the right location for it since the exception adds it here). I extracted the certificate from the port through code and imported it to the store, but it does not seem have the extra column defining the port like the exception cert does (It does not work wither).
    How do I do this correctly? Or is it even possible to have a self signed cert bypass all this? I only have it using self signed certs since the service is just running on localhost.

    HI,
    Adding an exception does work manually, but you would like to do this programmatically. This has more on the nSS functions [https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSS/Certificate_Download_Specification]
    I have not tried this you can add it to the file cert8.db if you can insert it into each profile you can access? (For example copy the file after you have manually added it?) that would overwrite any uniqueness however- not good for preserving data.
    The best advice would come from the security mailing list or the esr mailing list, that helps enterprise environments.

  • How to synchronize analog input and output from two different USB daq boards

    Hi all,
    I have two very differnt USB boards the NI USB 6008, which I am using to acquire the data (Analog Input) and a NI USB 9263, it is an Analog Output only board that I am using to deliver a signal (in this case a square pulse). The reason why I am not using the 6008 Analog Ouputs is because I need to deliver negative voltages and need the full +/-10V range.
    Looking at similar posts I am pretty sure that I can't use an external trigger or a shared clock, I also tried to use the synchronization of timed structures but no cigar.
    I am including a quick vi that I whipped out showing how the signal jitters due to the lack of synchronization. The AO from the 9263 connects to the AI in the 6008 in this example.
    Solved!
    Go to Solution.
    Attachments:
    Test Pulse.vi ‏117 KB

    I talked to a specialist in the phone and tols me that it is not possible.

  • How to import a video from a panasonic miniDV to the macbook

    I recorded a video on my panasonic miniDV palmcorder but it wont import to iMovie, i need help...

    While we all have MacBooks in this forum most of us don’t use iMovie. There's a iMovie Support Community where everybody has iMovie.You should also post this question there.   https://discussions.apple.com/community/ilife/imovie

  • How to import photos from Mail to iPhoto and preserve the date created?

    I have several photos sent to me via email attachments in Mail which I want to "add to iphoto."  When I do this, the original date of the photo changes to "today's date." 
    When I drag the photo to the desk top, the file (photo) properties change and the date changes to "today's date."
    Is there a way to import photos and preserve the original date the photo was taken?  For example,  if my family finally got around to sending me photos from 4th of July, I know the date is 7/4/2012, not today's date, 10/9/2012. 
    I want to avoid the time/work of doing batch changes on countless photos I want to add to iphoto. 
    iphoto 11
    mail 5.3
    Lion 10.7.5

    Larry, I need more information...
    Using what you said, I ran some tests using photos taken with my digital camera in iPhoto.  My photos show the following information in the "information" sidebar:
    •type of camera
    •Flash on
    •Format size
    •File size (MB)
    •File type (jpeg)
    •Frame "number"
    •Month/day/year/hour/min/sec/AM-PM
    Then I tried to email a photo to myself:  I have tried:  "share," "attach," "drag/drop" a photo into email and sent it to myself as a test.  Once the photo arrives in my Mail inbox, I have tried various ways to add this "test" photo into iPhoto:
    "Add to iphoto"
    "drag into iphoto"
    "export into iphoto"
    Each time, iphoto created the photo with "today's date."  In the past, I would get an alert:  Photo already exists in iphoto, do you still want to import?  Duplicate or Cancel
    Can you elaborate on, "if the photo properties are present and correctly formatted then iPhoto uses them."
    When I drag a photo to the desktop and double-click to preview the photo, the top of the preview window says:
    P1009.jpg -- locked (gray lettering of the word "locked")
    Is there a setting I need to change to "unlock" the properties of my photos?*
    Thanks!!
    MG
    *My original post focuses on importing photos sent from other people.  I am hoping if I can solve the matter with my own photos, other photos will import with original dates created, too.

  • How to import a web service into labview and make the assembly strong named signed?

    I have used the web services tool to import my .net project files. I am then putting them into clearcase. In order for my dll's to work on a network im getting the error that they need to strong named signed. Is there anyway of strong name signing them with in the web services tool, or modifying the dll's after they've been created? Thanks for any help!

    dbell0971,
    I appreciate your willilngness to help on this issue.  However, it doesn't seem like we are on the same page here.
    When you import a webservice it creates an assembly.  That assembly is .NET.  In general you cannot run an assembly on a shared drive unless it is "trusted".  You can make the assembly trusted by adding some classes and properties to it (i.e. strong signing it)- http://msdn.microsoft.com/en-us/library/xc31ft41.a​spx
    However, since WE are not creating the assembly, LabVIEW is, then we don't have the source code so we can't just strong sign it. 
    The question is simple- Can the Import Web Service Utility strong sign the assembly it creates?
    Thanks,
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~

  • How to importing AVCHD if I don't have all the folder files?

    Hi,
    I have to cut a few videos. I have been given an external drive with .MTS files. However, all the files regarding the structure of the folder... are not there!!!!!
    Now, when I import them to Adobe, they are glitchy and out of sync.
    - Do I have to convert them?
    - If so, to what codec/format?
    - With what program?
    Thanks a lot for your help.
    Kind Regards.
    Robert

    Hi,
    Thanks for the reply. Unfortunately, when I import the plain MTS, the audio is out of synch. However, it plays nicely on the Windows Player.
    I have also copied to an internal drive, without success.
    I have also used the recommended codecs in the guide you mention: DNxHD... nothing seems to work.
    I am using: Premiere Pro CC 2014, on an intel Core i7 with 8Gb RAM lenovo.
    Any other ides?
    Thanks.

  • How do I configure a counter to generate pulses using DAQmx?

    How do I configure a counter to generate pulses using DAQmx?
    Is says in the DAQmx C reference help
    "CtrnInternalOutput—The signal at this internal terminal is where the pulsed or toggled output of the counter appears. The output of a counter pulses or toggles when the counter reaches terminal count. When counting down, the counter reaches terminal count when the count reaches zero. When counting up, the counter reaches terminal count when the counter rolls over. To configure the counter to toggle or generate pulses, use the Export Signal function/VI with Counter Output Event as the signal name."
    I've tried this but can't get it to work, I may have the parameters wrong or something. The DAQmxExportSignal() function is very unintuitive to me. Here is my counter config code...
    int ret = 0;
    ret = DAQmxCreateTask("",&task_);
    errorMsg(ret);
    if (ret != 0)
    throw ret;
    // Configure the counter
    ret = DAQmxCreateCOPulseChanTicks( task_, "Dev1/ctr0", "", "/Dev1/PFI8", DAQmx_Val_Low, 0, divider, divider );
    errorMsg(ret);
    ret = DAQmxCfgImplicitTiming( task_, DAQmx_Val_ContSamps, 1000 );
    errorMsg(ret);
    // Change to pulse mode
    ret = DAQmxExportSignal( task_, DAQmx_Val_CounterOutputEvent, "/Dev1/Ctr0InternalOutput" );
    errorMsg(ret);
    // Start the counter
    ret = DAQmxStartTask(task_);
    errorMsg(ret);
    The above code works fine, in toggle mode, if I just comment out the DAQmxExportSignal() part.
    HELP!!!
    Stefan

    The problem is due to the DAQmxExportSignal call.  By default, when you create a counter output pulse train task, the driver will automatically set the output of the counter to toggle when the count for each high ticks and low ticks expire.  The driver also automatically routes the signal present at Ctr0InternalOutput terminal (the output of the counter internal to the device) to the Ctr0Out terminal (the I/O pin available externally).  Using the line
     ret = DAQmxExportSignal( task_, DAQmx_Val_CounterOutputEvent, "/Dev1/Ctr0InternalOutput" );
    will tell the driver to tristate the Ctr0Out terminal and not output the signal to the external I/O pin.  Using the DAQmxExportSignal function is generally only useful if you want to route the signal to some other terminal internal to the board without having the output show up on the external connector, route the signal to some other external pin other than the default pin, or if you want to have the output show up at multiple locations. 
    If you want to change the output behavior from toggle to pulse, you need to use the DAQmxSetExportedCtrOutEventOutputBehavior function.  However, this is generally only useful if all you care about are edges (not the duty cycle of the pulse train), and you want to generate higher frequency signals.  For example, with a 20 MHz timebase as the source of your counter, you can only generate a 5 MHz pulse train by default.  This is because the minimum value for the low and high ticks parameter is 2 (20 MHz / 4 = 5 MHz).  By changing the output behavior form toggle to pulse, you can generate a pulse train at 10 MHz since the output is now pulsing instead of toggling.  However, the width of each pulse is not programmable so you will no longer have a 50% duty cycle signal.  I don't remember exactly what the width of each pulse is, but I believe it's in the neighborhood of 50 - 100 nanoseconds in width.  I hope this information helps.

  • How to import .pdf files into iBooks?

    How to import .pdf files into iBooks?

    Or send the file from your computer to your ipod by emailing yourself the pdf. Then if you open the Mail client and you open the pdf there is an option to select open in ibooks. It will save it to your device for remote viewing.

  • How to import epub/pdf into macvericks' ibooks ?

    how to import epub/pdf into macvericks' ibooks ?

    Placing the PDF into an InDesign document shouldn't be a problem, but if it is, please post back. What I think you're asking for is how to edit a PDF with InDesign, which can't be done. You would need the source document, edit that and then export to another PDF (if PDF is the end goal). There are some programs that can edit PDFs or convert PDFs to other formats (Word, InDesign, etc.), and they will work to one extent or another. You should expect to have to rework parts of it should you go that way. Keep in mind that PDF is generally considered a final document that isn't intended to be edited.

  • How to Import a Timecard in CSV format in OTL

    OTL Guru's.
    I'm new to OTL, could you please guide me how to import a timecard from a CSV file using the existing APIs.
    Thanks,
    Himanshu

    Himanshu,
    There is a seeded functionality at user level which allows you to import timecard as a csv. But it will create one timecard at a time and you need to use a fixed format csv.
    If you are looking for mass timecard creation, use the OTL api to create timecards.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Maybe you are looking for

  • How to display an animated image of any sort in centre of screen

    Hi, Would really appreciate some help on how to present the user with a animated image in the centre of the screen whilst a user is waiting for a operation to load/complete. I basically have a situation where a user presses a button to load a CSV fil

  • SPRY accordion and tabs not displaying in IE6

    Hi everyone: Even after clearing up some validation errors in my HTML, I am experiencing issues with a SPRY accordion and another page with a Tabbed SPRY widget not appearing in IE6. The pages all work fine in IE7, Firefox and Safari. I would greatly

  • J2EE Tutorial

    I need do make work the examples of J2EE Tutorial. But, when i execute c:\j2eetutotial\examples\ant all happen following error : Exception in thread main java.lang.NoClassDefFoundError: org/apache/tools/ant/Main. What I do will make to try ?? Tanks a

  • Restore my DB with the data files.

    I needed to re-install my Windows 2000, so I lost my Oracle, so I have only my data files, I'd like to know if I can get my Data on it.

  • 3rd party apps suddenly won't work

    This happened to me before but it was a long time ago and I don't remember what the fix was. Suddenly all my 3rd party apps refuse to run. They come up for a second then quit. I tried a hard reset but no luck. Anybody got any ideas. I'm still on OS 3