Is it possible to generate pulses on a ctr out and simultaneously read them on another ctr input using one NI PCI-6601?

Hi,
I am trying to output a pulse train on ctr0 OUT and I want to receive them on CTR1 SOURCE of the same NI PCI-6601 card, but no use! :-(
The pulses are generated OK, but the acquisition fails within timeout (10 sec.). The generated signal has 1 Hz frequency and 20usec high time. I've studyed the NI examples for this.
Can anyone help me, please?

Hi Julien,
I can post the code, but actually, it worked! I was making a loop between CTR0 OUT and CTR1 SOURCE and it didn't work. I made a loop CTR0 OUT <-> CTR1 GATE and it worked like a charm! As far as I read in the NI PCI-660x manual, I cand loop to either SOURCE or GATE pins and the pulses' acquisition should work anyway.... Maybe I am wrong. Can you explain me why it didn't work on the SOURCE pin?
Thank you very much for your tine!
Regards,
Marles

Similar Messages

  • How do I send a 2-10 MHz pulse train to my DAQ 6052E why simultaneously reading in data? I'm using the NIDAQ Tools with Igor Pro.

    I need to send a continuous 2-10MHz TTL timing signal to a low pass filter (to set the cutoff frequency) while I collect data from one of the analog inputs. I'm hoping that I can send the TTL signal and collect the data through the same DAQ 6052E board.
    I've been told that I can send a pulse train using one of the two counters on the board. But does anyone have more specific advice how to implement this using the NIDAQ Tools extensions to IGOR Pro? In particular I'm concerned about how I can send a continuous TTL signal and simultaneously read data. Or can you just turn on the timing signal and it stays on until it's
    turned off again?
    Thanks for your help

    You can program one of the counters to generate a continuous pulse train. Once programmed to do so the counter needs no further interaction. It will continue to generate the signal until stopped through SW. So you can start the counter using the functions provided to you, then forget about it and program the AI operations.
    Christian Loew, CLA
    Principal Systems Engineer, National Instruments
    Please tip your answer providers with kudos.
    Any attached Code is provided As Is. It has not been tested or validated as a product, for use in a deployed application or system,
    or for use in hazardous environments. You assume all risks for use of the Code and use of the Code is subject
    to the Sample Code License Terms which can be found at: http://ni.com/samplecodelicense

  • Is it possible to ask Siri a question in English and have it respond in another language?

    Is it possible to ask Siri a question in English and have it respond in another language?

    Not that I'm aware of (yet!) but who knows what Apple will develop for Siri

  • Is it possible to export Azure VM(to local disk) and import that VM to another Azure subscription and use that successfully ?

    I am setting up one VM in my Azure subscription.
    1
    Is it possible to export Azure VM(to local disk) and import that VM to another Azure subscription and use that successfully ?
    2
    Is it possible to move VM from one subscription to another subscription directly ?

    I think Yes. If you have the copy of OS (image) and data disk VHDs then you can copy that in your new subscription. And then create VM using that image. It has nothing to do with subscription.

  • Is it possible to break an edit into small scenes, and then sew them together, but without losing quality by using the 'publish and share' options?

    Is it possible to break an edit into small scenes, and then sew them together, but without losing quality by using the 'publish and share' options?

    redflashred
    What is important here is that you know the properties of your source file(s), set the project preset to match the properties of those source files, and then export with settings as close as possible to the original. Often you can do this without noticing quality differences in the export.
    I am understanding and defining your issue as you wanting to maintain the quality of the original imported files in the export. If that is the case, the please supply the following, and I will give you a step by step
    a. What are the properties of your source files (including bitrate). Here I am looking for
    video compression
    audio compression
    frame size
    frame rate
    interlaced or progressive
    pixel aspect ratio
    file extension
    A quick way to get that type of information is knowing the brand/model/settings for the camera that recorded the video.
    2. Based on that information we can set manually a project preset to match those source property.
    3. When we go to export...example Publish+Share/Computer/ and your choice and its preset, we can customize the preset selected
    under the Advanced Button/Video Tab and Audio Tab of that preset in order to try for the best possible match between the properties of the
    original file and the properties of the export.
    But, please let us know if you also need help in trimming the original import at the Timeline level prior to export.
    Your mention of Publish+Share suggest that you are working with Premiere Elements 11, 12, or 13. What is the computer operating system?
    Thanks.
    ATR

  • Is it possible to buy an iphone 5 in the states and take it back to another country for use?

    Is it possible to buy an iphone 5 in the states and take it back to another country for use?

    Apple has not yet announced the availability of unlocked iPhones in
    the US, but they are for sale in Canada, parts of Europe, and elsewhere.
    Warranty is not international. Service and repair/replacement only in
    country of original purchase. LTE/4G may or may not work in other
    country depending on bands and frequencies used.

  • MacBook pro won't power up! Acting asleep, black screen, fans don't fire up. Light nr catch pulsing, have taken batt out and reset but still blank screen, help!!

    MacBook pro won't power up! Acting asleep, black screen, fans don't fire up. Light nr catch pulsing, have taken batt out and reset but still blank screen, help!!

    You may want to try this.
    Solution A
    Start up your MBP while pressing Option (alt)|, Command, P, R until your hear 3 chimes rather than 2 as indicated by apple. This worked for me the first time.
    Solution B
    Start your MBP while pressing Option (alt), Command, S
    Hold until you see the computer automatic routine. When it finally stops type the following followed by "return":
    fsck -fy
    It will probably indicate some problem related to "pcscd.pub" (should be 16 instead of 17). I haven't figured out what this means but somewhere in the Internet i read it is related to scan cards...
    More importantly this routine will fix any problems with your HDD similarily to disk repair. When it ends, it will tell you if it has fixed/modified anything. If it has, run the routine again by typing again "fsck -fy"
    Lastly, reboot by typing "reboot" (followed by "return")
    Solution C
    Start up your MBP while pressing option (alt), command, S
    hold keys until you see computer commands scrolling
    when the routine stops type the following, each line followed by the "return" key:
    mount -uw /
    chmod 775 /
    chmod 1775 /
    reboot
    After which your computer should reboot on it's own.
    Each of the above has worked for me at one time or another. Once your computer has rebooted from the DVD you can reinstall OS X. If your problems started after installing 10.5.6, then I don't suggest updating until 10.5.5.
    I'm very very disappointed with my 2007 MBP, it started to give me problems after 1 year. had to change the HDD and lately when I isntalled 10.5.6 it suddenly refused to start up., My previous Mac laptop (2003 866Mhz) worked for 4 years without a hitch. Ironically I've had to use it to access the internet and find solutions for my current MBP.
    best of luck

  • Is it possible to take songs off of your ipod and put it them on itunes

    by accident i permanately deleted all my songs off my computer and cant get them back ,,,trust me i tried everything. im wondering is possible to take songs from your ipod and put them on your itunees library?

    You can't sync or drag your music back directly from an iPod to iTunes, the transfer of music is designed by default to be one way from iTunes to iPod. However there is a manual method of accessing the iPod's hard drive and copying songs back to iTunes on Windows posted in this thread: MacMuse - iPod to iTunes
    There's a command in iTunes 7 under File, "Transfer Purchases from iPod" you can check out. A paragraph on it has also been added to this article: How to use your iPod to move your music to a new computer
    If you prefer something more automated then there are a number of third party utilities that you can use to retrieve the music files and playlists from your iPod, this is just a selection. Have a look at the web pages and documentation for these, they are generally quite straightforward. As iTunes 7 is just out some of these may not work with it yet though I haven't experienced any problems with the Mac software I use.
    YamiPod Mac and Windows Versions
    iGadget Windows Only
    iPodCopy Mac and Windows Versions
    iPod Access Mac and Windows Versions
    PodUtil Mac and Windows Versions
    iPodCopy Mac and Windows Versions
    PodPlayer Windows Only
    If your iPod is set to update automatically take care when connecting back to your computer and an empty iTunes. If it is set to automatically update you will get a message that your iPod is linked to a different library and asking if you want to link to this one and replace all your songs etc, press *No* (or "Cancel" if you are using iTunes 7). Pressing "Yes" (or Erase and Sync in iTunes 7) will irretrievably remove all songs from your iPod. Your iPod should appear in the iTunes source list from where you can change the update setting to manual and use your iPod without the risk of accidentally erasing it. In iTunes 7 Check the "manually manage music and videos" box in Summary then press the Apply button. Don't uncheck Sync Music it will be unchecked by default when you choose the manual setting: Managing Your Songs Manually
    You can also use a keyboard command to prevent your iPod auto-syncing with iTunes. While connecting the iPod to the computer on Windows hold down the Shift + Ctrl keys (on a Mac hold down the Option and Command (⌥ and ⌘) keys). This will stop the iPod from auto-syncing with iTunes and the iPod will appear in the source list. Wait until you are sure the iPod has mounted, and that it will not auto sync and then you can let the keys go. This may take between 20 to 30 seconds depending on your computer. Then check the "Manually manage songs" box.
    Whichever of these retrieval methods you choose, keep your iPod in manual mode until you have reloaded your iTunes and you are happy with your playlists etc then it will be safe to return it auto-sync again. I would also advise that you get yourself an external hard drive and back your stuff up in case you have problems again. External drives are comparatively inexpensive these days and you can get loads of storage for quite a small outlay.

  • Is it possible to pick a point in a graph and drag/move it to another position using the mouse?

    I have an array which contains sample points.
    I would like to be able to pick exactly one of those points in the graph (using the mouse) and move it to another position.
    Thanks
    Thomas

    Hi,
    It's better to make just one cursor (in case you have an array of let say
    200 points), and make it snap to the nearest point. With the event structure
    you can read out if the user has clicked in the graph, read out the cursor,
    and when the mouse button is released, change the point to the new location.
    Regards,
    Wiebe.
    "MrWaves" wrote in message
    news:[email protected]..
    > Thanks!
    >
    > I didnt realize that it is possible to have more than one cursor!
    > This means I need to generate as many cursors as points in my array
    > and just make it look like an ordinary point.
    > Then I can use this cursor to move the point to any position within
    > the graph.
    > I hope my guess is correct!
    >
    > Thanks
    again for your help
    > Thomas

  • PCI 6602:How can I use the digital lines of the board and in the same time to generate pulse train using a counter?

    Hello!
    My problem appeared when I tried to update my code from Traditional NI-DAQ Legacy to DAQmx.
    I am using 2 counters (counter 5 and counter 7)  from PCI-6602, to generate pulse train, and also the Digital I/O lines of the port 0 (the lines form 0 to 7). What I do in my application is that I am starting to generate the pulse train on the output of the 2 counters, and after that I am playing with the state of the digital lines.
    In traditional there was no problem using the counters and the digital lines in the same time, everything was going perfectly, but in DAQmx this is not possible.
    What happens: I start to generate pulse train on the output of the counters,  no errors encountered, but when I try to modify the state of one line of the digital port the generation of the pulse train is stopped. This is happening when I start the task associated to the digital port.
    My question is: it is possible to create a channel on the digital lines without altered the channels created for the counters?
    Another thing what I manage to see using the  "Measurement & Automation Explorer" and Test panels for PCI-6602, basically is the same thing, I generate pulse train on the output of the counter 7 and try to start a task on the digital line, but I get one error :
    "Error -200022 occurred at Test Panel
    Possible Reason(s):
    Measurements: Resource requested by this task has already been reserved by a different task.
    Device: Dev4
    Terminal: PFI8"
    Instead if I use the counter 0 or counter 1 to generate pulse train I don't encounter the same problem.
    Which resources are used by the counters 2 to 7 from the PCI-6602 board and the counters 0 and 1 do not use?
    Thank in advance for any replies!
    Ciprian
    Solved!
    Go to Solution.

    Hello Jordan, thank you for your reply.
    I am sorry but I can not see or run your example, I don't use LabView, I use Visual C++ for developing.
    Here is the code for generating the pulse train:
    GeneratePulseTrain(unsigned long ulCount1, unsigned long ulCount2)
        short nStatus = 0;
        nStatus = DAQmxCreateTask("",&m_taskHandle);
        nStatus = DAQmxCreateCOPulseChanTicks (m_taskHandle, "Dev4/count5", "", NULL, DAQmx_Val_Low, 0.0, ulCount1,ulCount2);
        if( bTriggerMode == true) // if hardware trigger is enabled
            nStatus = DAQmxSetTrigAttribute (m_taskHandle, DAQmx_ArmStartTrig_Type, DAQmx_Val_DigEdge);
            nStatus = DAQmxSetTrigAttribute (m_taskHandle, DAQmx_DigEdge_ArmStartTrig_Edge, DAQmx_Val_Rising);
            nStatus = DAQmxSetTrigAttribute (m_taskHandle, DAQmx_DigEdge_ArmStartTrig_Src,"Dev4/PFI17" );
        //set the internal timebase
        nStatus = DAQmxSetCOCtrTimebaseSrc(m_taskHandle,"Dev4/count5","20MHzTimeBase" );
        nStatus = DAQmxStartTask(m_taskHandle);
        return nStatus;
    And the code where I try to set the digital line:
    SetChannelState(short nState)
        short nStatus = 0;
        uInt8 wrtBuf0[1]={0};
        nStatus = DAQmxCreateTask("",&m_taskHandle);
        // Configure line as output 
        nStatus = DAQmxCreateDOChan (m_taskHandle, "Dev4/port0/line0", "", DAQmx_Val_ChanPerLine);
        nStatus = DAQmxStartTask(m_taskHandle);
        wrtBuf0[0] = nState;
        nStatus =DAQmxWriteDigitalLines (m_taskHandle, 1, 0, 0, DAQmx_Val_GroupByScanNumber , wrtBuf0, NULL, NULL);
        nStatus = DAQmxWaitUntilTaskDone(m_taskHandle,10);
        nStatus = DAQmxStopTask(m_taskHandle);
        nStatus = DAQmxClearTask(m_taskHandle);
        m_taskHandle = 0;
        return nStatus;      

  • Generating Interactive Form in SAP GUI and saving in offline repository.

    Hi Experts
    Is it possible to generate an Interactive SAP Adobe Form and display it to a user within SAPGUI, as well as save the captured PDF form offline for later retrieval?
    We have the following requirements
    - Access an Interactive Form via SAPGUI, form containing data fetched from backend ERP (access of document cannot be via Portal)
    - Form to be saved "Offline", and to be accessible at a later point in time. Is it possible to save the PDF for later retrieval as an object inside SAP (what mechanisms are available?), or to store it in an external document repository for later retrieval?
    Any input would be appreciated.

    Hi Costa,
    As the first step, you need to create an Interface and Form through TCode SFP . After Interactive form layout designing, when you activate the object, a function module gets generated automatically. You have to call this function module from a z-program. This program is known to be the driver program. When you run this program by passing the appropriate parameters to the generated FM, it will create and download the pdf form for you.
    Check the following link for reference:
    [Driver program for ADOBE FORM;
    Thanks & Regards,
    Sanoosh

  • Is it possible to make a playlist and then delete those songs from the Music library and only keep them in the Playlist?file

    Is it possible to make a playlist of particular material and then delete them from the Music list and just keep them in the play list?
    than you. first time user/.

    I see you've found your answer here.
    tt2

  • Is is possible to have the images as thumbnails and make it so you can click on them for a larger view and then click them again to have it go back to the original size? In an interactive pdf?

    I am designing an interactive catalog in a pdf. Is it possible to have the images as a thumbnail and then click them to enlarge the image and then click again to make them go back to the original size?
    Thank you in advance!
    Stephanie

    It can be done with Show/Hide buttons:
    Here's a button created from a small version of the image (notice that it's selected in the image below):
    The small button has a Show/Hide Buttons and Forms action. It's action is to make the Larger Image visible (eyeball turned on) with the small image hidden (eyeball turned off).
    The large image is also turned into a button (shown below):
    Notice the checkbox "Hidden Until Triggered". The large button is hidden until it's triggered by the small button. Clicking on the large image also causes a Show/Hide action which shows the Small button and hides the large button.

  • Is it possible to port a number out and port a number in without any disconnection?

    I have a second line for a family member and they will no longer be on my plan. The issue is they would like to port their number but I am still under contract with that number. I'm having someone else take over the line. My question is it possible to have the Verizon number ported out and then have a new number ported in? I'm not trying to have the line disconnected as someone else will be using the line and would also like to have their number ported in.

        ednice84,
    Lets get these numbers ported in and out! I am sorry but if you are going to port a number out the line will be disconnected. As the port process is completely taking the number from VZW to another company it is necessary for the line to disconnect for the port process to complete. If you would like to just port the number in and have it take over the line that is currently in contract you can do that. Let us know if you have any further questions.
    LindseyT_VZW
    Follow us on Twitter @VZWSupport

  • Generated Pulse waveform is distorted when I deliver the signal to the output port in the DAQmx

    Problem: Generated Pulse waveform is distorted when I deliver the signal to the output port in the DAQmx.
    Environment: Windows XP sp3 (32bit), Visual Studio 2010 sp1, NI-Measurement Studio 2010
    Device: NI - DAQmx PCI 6251
     Analog Input: 1.00MS/s multi-channel (aggregate)
     Analog Output: 2 Channel 2.00MS/s
    Reference Example: AO_ContGenVoltageWfm_IntClk / AI_ContAcqVoltageSamples_IntClk
    Generated Pulse:
    1) AO0 = Square Waveform /0-5V / 8KHz / 0.5㎲/sample / sample 50% Duty
    2) AO1 = Square Waveform /0-5V / 8KHz / 0.5㎲/sample / (Reverse Image)
    Description: I’d like to deliver the waveform stream satisfied with specified constraints to the 2 channel output port in the DAQmx. To verify accuracy of the generated waveform, I did an electrical wiring from the Analog output channel (2 channels) to the Analog Input channel (2 channels) in DAQmx. As a result of this experiment, I could get a result which has signal distortion. Since the waveform has to satisfy with both high frequency (8KHz) and very short moment interval time (△t = 0.5㎲/sample) between samples, I cannot handle some parameters of the function in the referenced VC++ example. Following formulas shows an approach to deliver the generate pulse waveform to output port satisfied with constraints.
    Analog Output Channel
     Frequency = 8,000 cycles/sec (constraint)
     Sample per Buffer = 2,000,000 = 2*106 samples/buffer
     Cycles per Buffer = 80,000 cycles/buffer
     Sample per Channel = 1,000,000 = 1*106 samples/channel
     Sample Rate  = Frequency * (Sample per Buffer / Cycle per Buffer)
                              = 8,000 * (2*106 / 80,000) = 2*106 samples / sec
     △t  = 1 sec / 2*106 samples / sec
               = 0.5 * 10-6 sec/sample (constraint)
     Buffer Cycle  = Sample Rate / Sample per Channel
                              = (2*106 samples / sec) / (1*106 samples/channel)
                              = 2 channel / sec
    Analog Input Channel
    Sample per Channel = 1,000,000 = 1*106 samples/channel
     Sample Rate  = 1 MS/s * (2 Channel) = 5 * 105 Samples / Sec
    Program Code
    AO_ContGenVoltageWfm_IntClk / AI_ContAcqVoltageSamples_IntClk (VC++ Example)
    Result: The proposed approach was implemented in the experiment environment (VS2010, MStudio2010). As shown in Figure 1, we could get the unsatisfied result. Although I intended to make a ‘square’ pulse wave, the result looks like ‘trapezoid’ pulse wave (Figure.1). However, there is other result which was undertaken with different parameter condition. It looks like the square shape not the trapezoid shape.
    Please let me know what the conditions make the problem of signal distortion. (AO0 = Green line / AO1 = Red line)
    [Figure. 1] Frequency 8000 Hz / Cycle per Buffer = 8000 Result
    [Figure. 2] Frequency 1000 Hz / Cycle per Buffer = 1000 Result
    Questions: Please let me know following questions.
    1) Is it possible to deliver the generated pulse wave satisfied with constraints (f= 8KHz), △t = 0.5㎲/sample) to the output port without distortion using PXI 6251?
    (Is it possible to solve the problem, if I use the LabView or MAX?)
    2) Are there some mistakes in the proposed approach? (H/W or S/W program)
    3) What is the meaning of the Cycle per Buffer?, It could effect to the result?

    Hi Brett Burger,
    Thanks for your reply. For your information, I have set the sampling rate as 10000 as for the sound format, I have set the bits per sample as 16 bit, the rate as 11025 and the sound quality as mono. I tried using your method by changing the sampling rate as 8K but still my program encounter the same problem.
    I wish to also create a button that is able to generate a preformatted report that contains VI documentation, data the VI returns, and report properties, such as the author, company, and number of pages only when I click on the button.  I have created this in my program, but I am not sure why is it not working. Can you help troubleshoot my program. Or do you have any samples to provide me. Hope to hear from you soon.
    Many thanks.
    Regards,
    min
    Attachments:
    Heart Sounds1.vi ‏971 KB

Maybe you are looking for

  • Error"Failed to open the connection"  - Named Instance of SQL Server 2005

    "Failed to open the connection" error, when connecting to the Named Instance of SQL Server 2005 The report is throwing error, when changing the logon information dynamically through C#. Code      string reportPath = @"D:\NET\TestReport\TestReport.rpt

  • JBO-33001 bc4j.xcfg CLASSPATH problem in deployed java web service

    Hi I have deployed a web service that uses a simple java class to update some BC4J EO's. I have included the deployed jar files in the OC4J Classpath. I have also deployed the web service to the application server. I then call the web service from BP

  • Illustrator - WMF files

    Hi, I would like to know what the go is with Illustrator and exporting to wmf files? What has happened is this. I have an illustrator file which i have a logo and text(an A4 letter head), which i am working with. I have it saved as an .AI file (illus

  • ICal won't accept Google Calendar password

    can't sync with my Google calendars anymore. I have deleted the calendar accounts on my Mac. Set up the 2-stpe passwords on Google. Tried to create new accounts in iCal with my email address (is not a gmail account) and app specific password: - used

  • Error -9812, Help!

    I have a Mac and Windows with iTunes on, and both, when I try to download anything, give me the error number -9812. A quick google search turns up nothing, so though I would ask in here for some help. It started to happen last night and as I have Tis