Genral how do synchronized encoders work with a PCI-6602


Well, here is the work routine for syncronous data two encoders, and it seems to work very well.

I have this working with my two 2000 encoders of CPR, let's see how it works when I get the CPR 500 000 encoders later.

The three major problems that caused it does not work have been:

(1) argument to the task of createCOpulsechanfreq must be between 0 and 1 of the cycle Theduty.  I had ' 50.0 ' before, it works when it is "0.5".

(2) the time base sample that I used (ctr7) necessary must be started before one of my two angle encoder tasks have been created

(3) the string "dev/PFI8" should be replaced by ' / dev/PFI8 ".   I don't really understand why, but it was what seemed to fix it.

If this question has been answered...      Now I have a different problem when playing 8 values PWM both with the Semiperiodcounter, which I'll post in a new a different thread.

Thank you!

"' Working code here

Public Sub Aquireposition(samples As Long, data0() As Double, data1() As Double)

Protected BaseTaskHandle as long
Dim encoder0TaskHandle As Long
Dim encoder1TaskHandle As Long
Dim TaskIsRunning As Boolean
Dim ReadCount as long
Dim strCounterString As String

On Error GoTo ErrorHandler
  
DAQmxErrChk DAQmxCreateTask ("base", BaseTaskHandle)
     
DAQmxErrChk DAQmxCreateCOPulseChanFreq(BaseTaskHandle, "/Dev1/ctr7", "base", DAQmx_Val_FrequencyUnits2_Hz, DAQmx_Val_Level1_Low, 0#, 200#, 0.5)
"Specify the continuous time
DAQmxErrChk DAQmxCfgImplicitTiming(BaseTaskHandle, DAQmx_Val_AcquisitionType_ContSamps, 200)
"Startup DAQmx code."
DAQmxErrChk DAQmxStartTask (BaseTaskHandle)
   
"DAQmx Configure Code
DAQmxErrChk DAQmxCreateTask ("encoder", encoder0TaskHandle)
      
TaskIsRunning = True
     
DAQmxErrChk DAQmxCreateCIAngEncoderChan(encoder0TaskHandle, "/Dev1/ctr0", "", DAQmx_Val_EncoderType2_X4, 0, 0#, DAQmx_Val_EncoderZIndexPhase1_AHighBHigh, DAQmx_Val_AngleUnits2_Degrees, 500, 0#, "")
DAQmxErrChk DAQmxCfgSampClkTiming(encoder0TaskHandle, "/Dev1/PFI8", 1, DAQmx_Val_Rising, DAQmx_Val_AcquisitionType_FiniteSamps, samples)
   
"second encoder.
DAQmxErrChk DAQmxCreateTask ("encoder1", encoder1TaskHandle)
TaskIsRunning = True
     
DAQmxErrChk DAQmxCreateCIAngEncoderChan(encoder1TaskHandle, "/Dev1/ctr1", "", DAQmx_Val_EncoderType2_X4, 0, 0#, DAQmx_Val_EncoderZIndexPhase1_AHighBHigh, DAQmx_Val_AngleUnits2_Degrees, 500, 0#, "")
DAQmxErrChk DAQmxCfgSampClkTiming(encoder1TaskHandle, "/Dev1/PFI8", 1, DAQmx_Val_Rising, DAQmx_Val_AcquisitionType_FiniteSamps, samples)

"Startup DAQmx code."
DAQmxErrChk DAQmxStartTask (encoder0TaskHandle)
DAQmxErrChk DAQmxStartTask (encoder1TaskHandle)
 
"DAQmx Code reading
DAQmxErrChk DAQmxReadCounterF64 (encoder0TaskHandle-1, 0.05 * samples, data0 (0), samples, ReadCount, ByVal 0 &)
DAQmxErrChk DAQmxReadCounterF64 (encoder1TaskHandle-1, 0.05 * samples, data1 (0), samples, ReadCount, ByVal 0 &)
 
"Everything is done! StopTask
' DAQmxErrChk DAQmxStopTask (TaskHandle)
"Work stoppage is not necessary because the clear task also stops task"
DAQmxErrChk DAQmxClearTask (encoder0TaskHandle)
DAQmxErrChk DAQmxClearTask (encoder1TaskHandle)
DAQmxErrChk DAQmxClearTask (BaseTaskHandle)

Exit Sub

ErrorHandler:

' MsgBox "error:" & Err.Number & ""& Err.Description, "Error".
' mlngPWM_ErrorCount (lngChannel) = (lngChannel) + 1 mlngPWM_ErrorCount
"MainForm.PWMErrorCount =" errors ("& lngChannel &"): "" & mlngPWM_ErrorCount (lngChannel)
  
Next summary

End Sub

Tags: NI Hardware

Similar Questions

  • How to me to work with Outlook 2016 and 10 windows iCloud?

    How to me to work with Outlook 2016 and 10 windows iCloud?

    1. uninstalled and reinstalled iCloud several times - no luck

    2 reinstalled Outlook 2016 - no luck

    3. the module removed and reinstalled only - no luck

    Help please... step by step would be appreciated.

    Hi xinggirl45,

    Thanks for your question.  Can you elaborate a little bit and let us know exactly what does not work?  The resources below provide some troubleshooting steps basic to work with Outlook and iCloud for Windows.

    Get help using Outlook with iCloud for Windows

    Take care.

  • How to pay Apple works with Uber?

    I have been in contact with Uber at least a dozen times already, and so far, looks like I spoke in Greek, because the assistance of Uber team doesn't seem to understand my questions.

    I initially signed with Uber without realizing the company caught pay Apple & I never put my account with my credit card information. I'm not happy to give Uber my credit card details, I've finally set up Apple pay on my iPhone 6s +. Only problem is that I don't know how Uber receives my payment with Apple pay because there is no contact/credit card machine that the driver has. For some reason any my pay Apple appears on my iPhone 6 s + as a valid payment, but not on my Uber account when I use my MacBook Pro. I'm confused.

    I'm trying to understand how exactly pay Apple work with Uber.

    I know I used my sister before Uber account and it wasn't a problem because she had a credit card at the Uber folder. So, I know that I can ask for a round. I don't know how the payment is received by Uber if I pay Apple on my iPhone and it is not on my account when I use my Mac.

    Could someone please explain how this works as I'm not exactly tech savvy. Also can I change the amount of the tip on my Uber account via my Mac even though I don't have a valid credit card? Also Uber really cool utility for Apple using Bill pay?

    If Uber wasn't the only company which operates at the international level I would have told them to delete my account... oh I tell them to delete my account, but support Uber team think answer them my questions.

    Help, please.

    You do not pay in the car, you pay with a 6/6 + / 6s / 6 s + when you book. No mention of the use of a Mac.

  • How to change or work with a .sket in Illustrator?

    How to change or work with a .sket in Illustrator? Can't select the object exported from the sketch. Thank you.

    Answer: You cannot directly use the .sket file.  You can send a JPG of the working version to everyone through stock supported options.

    Pseudo response (fast): If you want to work with vector paths in the project of the sketch (.sket) you will need a subscription Adobe CC ~.

    1. go in the specific figure that you want to send (click it like to change it in the application);

    2. send (Share) to Illustrator CC from the mobile application.  (to the same CC account you're connected to your iPad with);

    3. in Illustrator CC, choose from the options OBJECT toolbar > LINE & SKETCH ART > EXPAND to PATHS

    NOTE: This does not apply to the work of the brush.  It converts your work simple and features traces, change your work to something that does not resemble the project of .sket.  Fortunately, it does not save the file .sket of origin.

  • Laptop Compaq Presario CQ60-300SO - how to make HDMI work with Win 7

    I've upgraded to Windows 7 from XP.

    I connect the HDMI cable to my TV.
    The PC displays both screens, but there is no signals reaching the TV.
    I uninstalled the software of the graphics card and let the Win Update to find the driver. Same results.

    Here's my setup.

    How to make it work? It works very well with a VGA cable. And I tried many televisions.

    Martin

    _________________________________________________________________

    Name of the operating system Microsoft Windows 7 Enterprise
    Version 6.1.7601 Service Pack 1 Build 7601
    Another Description of the OS is not available
    Manufacturer of operating system Microsoft Corporation
    Name of the MARTSHP system
    System manufacturer Hewlett-Packard
    System model Compaq Presario CQ60 Notebook PC
    System Type X 86-based PC
    Processor AMD Sempron (TM) TR-42, 2100 Mhz, 1 Lossnay, 1 logical processors
    BIOS Version/Date Hewlett-Packard F.54, 18.08.2009
    SMBIOS Version 2.4
    Windows directory C:\Windows
    System directory C:\Windows\system32
    Boot Device \Device\HarddiskVolume1
    The local United States
    Hardware Abstraction Layer Version = "6.1.7601.17514".
    MartsHP\Administrator user name
    Zone schedule Southeast Asia standard time
    Physical memory (RAM) 4.00 GB
    Total physical memory 2.75 GB
    1.60 GB available physical memory
    5.50 GB total virtual memory
    4.13 GB available virtual memory

    Hi realpommy. If you encounter problems with HDMI output and let Windows determine the pilots, who could be part of the issue.  First of all try to install these Windows 7 drivers provided by HP for your laptop: NVIDIA nForce Chipset MCP77MV graphics drivers

    After installation and reboot, if you still have problems with video output look in Device Manager, to ensure that there is no error, or "unknown devices".  The section "Understanding of the symbols of error Device Manager" in this document:
    Information from the Device Manager in Windows 7 to illustrate some possible errors.

    If there is no error in Device Manager, do through these documents for more information and the last for troubleshooting ideas:
    Connection of a monitor, projector or a TV (Windows 7)
    Overview of HDMI and DVI for PC connections

    HDMI display resolution and problems of his (Windows 7 and Vista)

    Let me know if it helps.

  • How the download bundle work with Professional Edition folios?

    Hi all

    I tried to get information on specific issues without success.

    This is the scenario:

    We must develop a newsletter for a company by using membership of the company Apple.  First wave will only be iOS devices.  Second wave will include Android devices.  The newsletter will be around 4 issues per year.

    (1) using the montlhy members, folio downloads are combined?  Newsletter1, Newsletter2 will give us 500 downloads for the first year?  And after that, to have bought 10,000 distribute downloads between all folios, that we published?  The number of downloads available is affected on the profile of the user instead of individual applications?

    (2) no folio downloads expire?

    (3) if we do use iTunes to distribute the newsletter, how do we keep track of downloads? This occurs in the application when it is installed?  And this raises the question if we really need that the costs of downloading if we don't use iTunes?

    (4) If you are using the creative cloud (which only works with iOS devices) is going to give us unlimited downloads, right?  This type of folio works with the Apple company membership?

    (5) if we create the first wave by using the creative Cloud service, and later, we get the professional edition, can 'transfer us' information folio from the CC to the new Service?

    I've already called:

    877-792-3623 such as published on the page of the professional edition (they say only can help with Enterpise) and sent to 1800-443-8158 (Volume Licensing) who does not know the answers.

    I'm trying this way because it was kind of frustrating trying to find the answers by phone.

    Please, any help would be great.

    (1) I don't know what you mean by "accumulation". See http://www.adobe.com/products/digital-publishing-suite-pro/buying-guide-pricing.html for included downloads. If you buy every month, you get 250 downloads per month, and only one month of value will take forward. If you purchase the annual version, you get 5 000 downloads, but then again, those who don't ride to your next year of service. Bundles of Folio apply on all publications in your account, not for an individual application.

    (2) those included in your monthly or annual expires at the end of each month or year. A folio bundle purchase expires one year after the date of purchase.

    (3) for the consumption of bundle download calculation that is done by the application itself, not iTunes. The DPS dashboard at http://digitalpublishing.acrobat.com/ will show you the download counts for your publications.

    (4) creative cloud only gives you access to create simple editing applications. It is a complete, stand-alone, application with your content inside. It doesn't have the ability to download additional content in the application and therefore no download fees and no "unlimited" download It's just a unique and autonomous, application in the app store.

    (5) If you start with a simple editing application and then want to switch to an application of several question you will need to re-apply several issue with App Builder and submit it to iTunes as an update of your existing application. Your existing content used to generate the application may easily be re-published (if necessary) so that it appears in the new application of several question. Your readers will see an application update is available, download it and then to have the experience of several question inside the app. If you recharge for newsletters, it will be problematic granting previous buyers of your application fees for simple editing to the same content in the request of several question.

    Neil

  • How config FCoe to work with esx4.1 and CISCO?

    Hello

    I installed a server esx 4.1 intended to test and we want to configure to work with FCoe.

    The Esx has a Qlogic 10 G card to do this, we have a problem with our network team.

    The cards are regognized as vmnic and my HC is on them, but we now want to make the connection on the

    Cisco side so that I could also see the storage.

    Is there a manual for config this thing on both sides? VMware and CISCO?

    is there something special, that I need the config on my side?

    I did not FCoE with Cisco, but I made many configurations with Brocade/VMware & Qlogic FCoE. It works like a charm. In this case, everything I do is:

    (1) plug the Qlogic card to the server & get the vmnic up & working with qlogic drivers (I think you are finished with this step, if you have not mentioned about installing qla & pilots qlge on the box of ESX. You all TWO qlge & qla drivers for the Qlogic fcoe card)

    (2) after step 1, you should be ready for the FCoE, you don't have to do anything once the ESX box came.

    (3) a last step to the area both the FCoE (QLogic) adapter with your target of FCoE in your Cisco box. With Brocade switches, all I have to do is:

    (i) set up the port connected as a "fcoeport" to get the connected port

    (II) create a box with 2 WWN & add this area to the cfg, & activate this cfg. That's all.

    I feel that you do not "installed the qlogic drivers (qlge & qla in ESX yet), just in case if you have not, here is the driver names you need (doesn't have to be exact, just look for the part"qlge"&"qla"):"

    VMware-ESX-drivers-net-qlge_400.1.0.0.39-1.0.4.00000.265875.ISO*

    VMware-ESX-drivers-SCSI-qla2xxx_400.832.K1.27.1-1vmw.2.17.00000.291979.ISO*

  • How import and continue working with old projects iDVD?

    I have some old files of project iDVD since 2008.  I never burned real DVD on their part.  At the time I played against them directly on the mobile phone.

    Today, I have an iMac with El Capitan OS X Version 10.11.3.  There iDVD 7.1.2 version (1158).

    I tried to open the older files with the new iDVD.  The program opens and is complaint of the queue at all but as far as I can tell him simply ignore.  With the program running, I find no evidence of any content.  It is stuck on the themes of the page.  No other option doesn't show anything.

    Am I missing something?

    More generally, how can I get inside these files?  I would like to have access to the content in them and actually burn a DVD.  Is this possible?

    Advice and suggestions would be most appreciated.

    You are able to create a new project with a theme? You have all installed themes, from version 1 thru 7 iDVD iDVD?  If not maybe the project is an older version that you have installed.

    To get inside the packaging of project control (right) - click on the file and select view the contents of the Package on the shortcut menu:

    However, if you have added movie files to the project and they are not coded, they will not be in the package.  They only should be indicated. If the assets have been encoded, they will be in the Contents/Resources/MPEG.nobackup folder but will be missing the audio.  These files will be look like this and play videos only in Quicktime Player:

  • How LR 3.4 works with PS/CS6 and C.Raw/7?

    I searched around and have not figured this out:

    If the C.Raw/LR/PS new deals in a different way raw files - what is happening to all signals that you have made to the photos under the previous version of C.Raw/s?

    For example: the base inside C.Raw 7.x Panel is reworked. So when C.Raw 7 looks like 6.4 DNG or xmps, what does? Say you set a brightness value of + 65 in a few old photos... What do do C.Raw 7?

    I'll wait a bit to update of Lightroom - but work wants me on PS CS6 - which I suppose will try to install C.Raw 7.1? Right?

    Is it possible to upgrade to PS CS6 and continue to use LR 3.4? What happens when I open a photo of LR 3.4 in PS CS6? Should I have a technical support keep CS5.5 PS on my computer for photo stuff?

    So confused, any help appreciated.

    The engineers who solved by something that is called process Versions. All images whose settings were made by previous versions of ACR or LR will be open with the settings of the image intact and unchanged. LR 3.x was 2010 PV so when you open a raw with the settings of the old PV 2010 4 LR or ACR 7.x sliders and settings will be there. You can update to the new PV 2012 and that you may want to for many images, but you have not...

  • How to manage and work with multiple libraries

    I decided to store my photos in annual libraries - but now I want to create a photo book with photos of two libraries.

    Is there a way of

    (1) create more products of a library?

    (2) otherwise: merge two libraries into one?

    Thank you!

    Does not support photos to merge libraries.

    It would more easily create a library for your book.

    • Export the photos that you want to use in the book of two libraries (select the photos and use file > export > export... versions).  Export photos to a high quality.
    • Import the photos exported in an empty library.  Create your book.
    • Then check in the library with the book project...

    This will have the advantage, that don't accidentally delete you or change the photos you used for your book.

    If you temporarily want to move photos between libraries, you can use the PowerPhotos application.  It allows you to navigate easily several libraries of Photos without having to open them in Photos.

  • How to order by working with rownum

    Oracle worm: 11g

    Hi all
    I have 2 cases here, with external control by one and another without external by command.
    I see no difference in the results for the moment.
    Case 1:
    /* Formatted on 4/30/2013 2:12:28 PM (QP5 v5.240.12305.39446) */
    SELECT *
      FROM (  SELECT ROWNUM rn, id
                FROM (SELECT 9 AS id FROM DUAL
                      UNION ALL
                      SELECT 1 FROM DUAL
                      UNION ALL
                      SELECT 14 FROM DUAL
                      UNION ALL
                      SELECT 7 FROM DUAL
                      UNION ALL
                      SELECT 5 FROM DUAL
                      UNION ALL
                      SELECT 6 FROM DUAL
                      UNION ALL
                      SELECT 13 FROM DUAL
                      UNION ALL
                      SELECT 8 FROM DUAL
                      UNION ALL
                      SELECT 2 FROM DUAL
                      UNION ALL
                      SELECT 4 FROM DUAL
                      UNION ALL
                      SELECT 19 FROM DUAL
                      UNION ALL
                      SELECT 3 FROM DUAL)
            ORDER BY id)
     WHERE rn BETWEEN 1 AND 6;
     
    Case 2:
    I added the command by external clause in this case
    But I want to make sure if I really need to have the order of outer query by here.
    /* Formatted on 4/30/2013 2:12:28 PM (QP5 v5.240.12305.39446) */
    SELECT *
      FROM (  SELECT ROWNUM rn, id
                FROM (SELECT 9 AS id FROM DUAL
                      UNION ALL
                      SELECT 1 FROM DUAL
                      UNION ALL
                      SELECT 14 FROM DUAL
                      UNION ALL
                      SELECT 7 FROM DUAL
                      UNION ALL
                      SELECT 5 FROM DUAL
                      UNION ALL
                      SELECT 6 FROM DUAL
                      UNION ALL
                      SELECT 13 FROM DUAL
                      UNION ALL
                      SELECT 8 FROM DUAL
                      UNION ALL
                      SELECT 2 FROM DUAL
                      UNION ALL
                      SELECT 4 FROM DUAL
                      UNION ALL
                      SELECT 19 FROM DUAL
                      UNION ALL
                      SELECT 3 FROM DUAL)
            ORDER BY id)
     WHERE rn BETWEEN 1 AND 6;
     ORDER BY id;
    Thank you
    Rod.

    Hey, Rod,

    SamFisher wrote:
    ... I see no difference in the results for the moment.

    You can not, but you are not sure that you will never see a difference. There may be a difference if you change versions, or if you add more data, or for no apparent reason.

    If there is an ORDER BY clause in the main query (as in query 2) then the output is guaranteed to be in that order.
    Is there no ORDER BY clause in the main query (as in the query 1), then there is no guarantee that the lines will be in a particular order. If Oracle finds it convenient to display rows in order by one of the columns (for example, rn) then she will do. You can't count on it always does the same thing, unless there is an ORDER BY clause.

    You should check the ROW_NUMBER analytic function. It is much more useful and easier to understand, as ROWNUM. (In this example, it maybe not simple, however.)

  • How can I get version 4.6.8 roboform to work with firefox?

    I use roboform 4.6.8 because I don't want to pay for it annually (or at all) and it's great! But I can't understand how to make it work with firefox. Please can you help me? I use windows 7. I use firefox 24.

    Try to update of roboform Roboform... resolved here?

  • Opening works with Sierra

    How the opening has worked with Sierra?

    Basically the same as on El Capitan. The seeds of same as before.  He started and we can change, but some tools are behaving unexpectedly.  Some users report that the opening is now crashing mode full screen.

    I can't reproduce this problem, it might be the dependent platform.

    See this discussion: Re: work will be opening 3.6 in Mac OS Sierra?

  • IMAQ WindDraw does not work with multiple screens

    I am developing an application using drivers IMAQ which displays fullscreen image on a primary or secondary monitor.  It works very well in mode full screen on the main window, but when I put the window on the secondary window, is not up-to-date.  As an additional test, when I put half of the window on the screen 1 and the other half on the other, the part that is on the main display updates is not the case of the part that is on the secondary display.

    How to make it work with the secondary monitor?

    (I've included an example VI to demonstrate the problem).

    Thank you

    Bruce

    I don't know how it happened, but when I completely closed LabVIEW and rebooted, then just run the VI it works now!

    It has been a strange behavior, if I see it again once I'll let you know.

    Thank you
    Bruce

  • KODAK EASYSHARE M583 14MP digital camera does not work with Windows 8

    Come on MICROSOFT... why you can't find a solution for this problem... What is a camera if you can not use it with your computer... In fact, I have two Kodak digital cameras which I can't use.  You have any suggestions on how to make it work with Win8...?   I hate hate hate Win8.  Why do we consumers to buy new products so they will be compatible with Win8.  If you can not say... I'M REALLY UPSET!

    Original title: Kodak Easyshare M583

    Hi Ellen,.

    Please answer these questions to help you in a better way:

    (1) was this camera photo works well before on any Windows OS to the previous address?

    (2) what exactly happens when you connect this unit to your computer Windows 8? Windows 8 detects the camera without any problems?

    (3) you have the KODAK EASYSHARE software installed on Windows 8? If this isn't the case, then you have the CD for this?

    The Windows Compatibility Center indicates that the Kodak EASYSHARE M583 14MP digital camera is compatible with Windows 8. Please click on this link for more information:

    KODAK EASYSHARE M583 14MP camera digital compatibility with Windows 8

    KODAK EASYSHARE Software, which are used to transfer the photos to the computer is no longer available as a download in the KODAK Web site and also either provide live assistance for this software.

    Even if you don't have KODAK EASYSHARE Software, installed on your computer, you can still transfer the photos from your camera to the computer without using this software. You can visit the KODAK below Support Article:

    How to transfer images from the camera to the computer without EASYSHARE Software

    Hope it will be useful. Please get back to us with updates.

Maybe you are looking for