SCTL using same clock

I am using 2 SCTL with the same clock, are they running in parallel or sequential?
Details:
I am using the 1st SCTL to acquire ADC data.  It is triggered by a button.  During the acquisition, when the 1st SCTL detects an event, it sends a FIFO message to start another SCTL, which should run at the same speed.  So I programmed another SCTL using the same ADC clock as the timer.
But I found the behavior looks strange.  I don't know if these 2nd SCTL is running after the 1st is stopped.

Hi
Parallel loops run in parallel.  Since these are both SCTL I can guarantee that there are no shared resources and each loop should behave completely independent of the other.  What exactly is the "strange" behavior? 
Just guessing, there are multiple cycles of latency between FIFOs.  Meaning if I write to a FIFO on the first iteration that data may not be available to read from the FIFO until up to 6 clock cycles in this case.  You need to monitor the empty and full flags to validate his data.
Can send some screenshots of your code and explain the strange behavior in a little more detail?
Thanks
Jerry

Similar Messages

  • LabVIEW FPGA: Multiple SCTL versus one SCTL (same clock domain)

    Hello NI forums,
    Question:
    See the attached picture from a modified version of the LabVIEW DRAM FIFO example. It probably explains my question more effectively than the paragraphs below.
    What is the difference to the LabVIEW / Xilinx compiliers, if any, between placing two independent branches of code in the same SCTL, versus placing them in individual SCTLs (in the same clock domain)?
    Misc. comments:
    I have briefly experimented with this concept using the included LabVIEW DRAM FIFO example (example finder >> Hardware Input and Output >> FlexRIO >> External Memory >> Simple External Memory FIFO.lvproj).
    I compiled the default example (the read and write interfaces are in separate 40MHz SCTLs) five separate times. Then I put the read and write interfaces in the same 40MHz SCTL and compiled another five times. The result (when both read and write interfaces were in the same SCTL) was a reduction in resource usage (according to the compilation summary).
    However, due to my lack of knowledge I'm hesitant to conclude that placing everything in one SCTL is always the best option. For example, I do not know what is created 'behind the scenes' with each SCTL. Perhaps putting independent branches of code in separate SCTLs makes it possible to route clock, reset, implicit enable, etc. signals more effectively.
    Background information:
    My task involves acquiring 2 channels of analog data using the NI 5772 and PXIe-7966. Data acquisition takes place in a 200MHz SCTL, and downstream processing is performed in a 100MHz SCTL.
    During a vast majority of the 100MHz SCTL processing stages of the FPGA VI, the 2 channels of data do not interact with eachother. So it would be easy for me to place them in separate 100MHz loops if doing so would somehow help the design (timing, resource usage, etc.).
    Thanks!
    Attachments:
    question.png ‏76 KB

    Intaris
    Trusted Enthusiast
    Posts: 3,264
    Re: LabVIEW FPGA: Multiple SCTL versus one SCTL (same clock domain)
    ‎10-28-2014 12:11 PM
    Just out of interest, what is the resource usage differential between the two versions?
    In response to the above comment,
    This is a little embarrassing, but it seems like the resource usage is similar than I initially thought for this particular example. I think the previous compilations that I based my assumption on coincidentally used more resources in the 2-SCTL loop case. I just compiled each version two additional times (see below).
    Here's the version with everything in one loop:
    Device Utilization
    Total Slices: 17.6% (2587 out of 14720)
    Slice Registers: 9.5% (5583 out of 58880)
    Slice LUTs: 8.2% (4855 out of 58880)
    DSP48s: 0.0% (0 out of 640)
    Block RAMs: 2.5% (6 out of 244)
    Device Utilization
    Total Slices: 16.9% (2493 out of 14720)
    Slice Registers: 9.5% (5583 out of 58880)
    Slice LUTs: 8.3% (4858 out of 58880)
    DSP48s: 0.0% (0 out of 640)
    Block RAMs: 2.5% (6 out of 244)
    Here's the version with the read and write in separate loops:
    Device Utilization
    Total Slices: 16.4% (2407 out of 14720)
    Slice Registers: 9.5% (5583 out of 58880)
    Slice LUTs: 8.2% (4852 out of 58880)
    DSP48s: 0.0% (0 out of 640)
    Block RAMs: 2.5% (6 out of 244)
    Device Utilization
    Total Slices: 19.4% (2859 out of 14720)
    Slice Registers: 9.5% (5583 out of 58880)
    Slice LUTs: 8.3% (4859 out of 58880)
    DSP48s: 0.0% (0 out of 640)
    Block RAMs: 2.5% (6 out of 244)

  • How can I use external clock to implement a delay?

    Hi all,
      I am testing to use external clock to drive dev/PFI0 (on device 6711) which is used as the clock for the analog ouput. I have thinking two applications by using the external clock but I don't have much idea on the implementation yet.
    First of all, I have a sequence of data (array) with each sample being sent at the interval of 1us. I use an external clock (10MHz) driving the PFI0 so it is pretty easy to achieve that goal. I am thinking what happen if I want each sampel being sent at different time. For example, if I have 5 samples, I want the first one sent 1us after the task start and wait 2us to send the 2nd sample, wait 5us to send the 3rd sample and wait 11 us to send the 4th sample, and wait 1us to send the last sample. Is it possible to achieve that based on the external clock?
    Second question is about the delay. My code require ciritcal timing and the builtin delay doesn't behave very well because I am running in windows. I can increase the priority of the vi to highest, it helps a bit but still not perfect. I am thinking if it is possible to implement hardward delay based on the external clock. Any idea?

    Hello dragondriver,
    To answer your first question, yes you could send data in that fashion. You would have to programmatically build a pulse train and use that to trigger the sending of data. The answer to the second question is essentially the same. You should be able to programmatically build a pulse train with a delay and use it as trigger to begin whatever operation you have.
    Jonathan L.
    Applications Engineer
    National Instruments

  • Using External Clock to write counter value to buffer

    Using CTR mode config which input controls at what frequency the counter value gets written to the buffer? How do I set it up so the counter value is written to the buffer at the same time Anologue inputs are written to a buffer, without using the other counter.

    Hello,
    Could you please explain what type of counter operation are you interested in doing? That would help me in suggesting something.
    But if I roughly understand what you are saying here, you can use a same clock to provide as scan clock for analog input and then use that clock for the counter. But depending on what counter operation you are trying to do will decide whether that clock be provided as source or Gate.
    You may take a look at examples provided at the following location too :
    Measurement Hardware
    Sincerely
    Sastry V
    Applications Engineer
    National Instruments

  • Help! I have a new iPhone 5s. My husband just lost his 4s, so I want to give him mine. Want to use same Apple ID so we both have access to itunes/apps purchases. Want to separate contacts, messages, mail, etc. I cannot change iCloud address.

    Help! I have a new iPhone 5s. My husband just lost his 4s, so I want to give him my 4s. We want to use same Apple ID so we both have access to itunes/apps purchases. Want to separate contacts, messages, mail, etc. I cannot change iCloud address on 4s iPhone. Also, when I tried to change iMessage I got a message that if I deleted my id (which seemed to be the only way to get my husband's I'd there), I would not be able to receive iMessages on any device.
    Would someone kindly tell me how to set up th 4s for my husband so that we can keep our info separate? It would be most appreciated! Thanks!!

    Hey Fagen!
    You will want to see the following article for guidance on achieving the result you wish to achieve:
    What to do before selling or giving away your iPhone, iPad, or iPod touch
    http://support.apple.com/kb/ht5661
    I would just follow the instructions from this article to give your unused 4s to your spouse. Since you have already started using your 5s, you will still be receiving iMessages on that phone and will have no need to receive them on a device that has been replaced. Thanks for coming to the Apple Support Communities!
    Cheers,
    Braden

  • I have an ipod touch already linked to computer, i want to add another using same email details. i have set up new ipod and it has excatly same  music etc as 1st ipod how can i use 1 account but 2 differnt ipods? many thanks.

    i   have an ipod touch linked to laptop, i now want to add another ipod touch how do i do it using same email etc, but dont want the same apps etc as the first ipod. as it is now i have exactly the same stuff on both ipods. please help.

    It's a snap.  Each device has its own name.  If iTunes does not assign unique names for the two iPods, change one of the names yourself.  You can see both my iPad and my iPod simultaneously on my iTunes because I sync wirelessly. 
    Simply configure the sync characteristics for each device separately.  The iTunes software will know the one with which it's communicating.

  • How can I use same account in 2 iphone with diff contact list?

    how can I use same account number but other all totally diff such as contact list, application, everything ..... I found that it's bad on IOS5.
    when I used IOS4 .. old verison, I can keep my phone in diff data. Afte upgrade IOS 5, it's bad. Even take photo, it can not focus zoom in and out.

    how can I use same account number but other all totally diff such as contact list, application, everything ..... I found that it's bad on IOS5.
    when I used IOS4 .. old verison, I can keep my phone in diff data. Afte upgrade IOS 5, it's bad. Even take photo, it can not focus zoom in and out.

  • Not able to open mail from my mac, gmail repeatedly asking for password. but using same password able to open gmail on safari

    not able to open mail from my mac, gmail repeatedly asking for password. but using same password able to open gmail on safari

    okay well they got me to take out some .plist files to see if that would help it didn't. I'm not sure what ones that they deleted for my self maybe someone here would be abel to tell you what ones to take out but didn't work the one that came close to working was this going into keychain and deleting the account(s) then reading them again.
    if you are to do this please back up first with Time Machine. You can do this with a usb drive.
    Okay so go back to where you had internet accounts and make sure mail is shut. click the - on the account your having problems with then quit system preferences.
    Okay so then press cmd and space bar at the same time then type 'keychain access' into the search then click on 'keychain access'
    once it is open go to the top of the window and put your email address that you are having problems with.
    once you have put in your full email, have a look at what comes up i deleted things in the kind colome with 'internet password' and anything with under name that had smtp.gmail.com or imap.gmail.com so it would look like this, map.gmail.com - internet password.
    right click and delete them. make sure not to touch any other files that dont say them things on them.
    Once you have done this quit keychain access and then restart the computer, once the computer is restarted go back to system preferences and internet accounts and re-add the account.
    Hope this helps. if something is not clear just ask.

  • Can we use same program ID for more than one RFC scenarios

    Hi experts,
                I am working on a RFC to FILE scenario. I have created one TCP/IP connection in SM59 with a program ID. Can we use this program ID for more than one scenario. I have written code as below
    data: iquote type standard table of ZIQMD initial size 0,
          IPRODUCT type standard table of ZPMS initial size 0,
          wa_quote type ZIQMD,
          wa_PRODUCT type ZPMS.
    CALL FUNCTION 'Z_CBT_RFC_QUOTEMASTER'
      TABLES
        I_QUOTE       = iquote          .
    CALL FUNCTION 'Z_CBT_RFC_QUOTEMASTER' in background task DESTINATION
    'ID4'
      TABLES
        I_QUOTE       = iquote          .
      COMMIT WORK.
    CALL FUNCTION 'Z_CBT_RFC_PRODUCTMASTER'
      TABLES
        IPRODUCT       = IPRODUCT          .
    CALL FUNCTION 'Z_CBT_RFC_PRODUCTMASTER' in background task DESTINATION
    'ID4'
      TABLES
        IPRODUCT       = IPRODUCT          .
        COMMIT WORK.
    when i am executing the code like this. i am able to send the data to 'Z_CBT_RFC_QUOTEMASTER'  , but iam not getting data  for 'Z_CBT_RFC_PRODUCTMASTER'  interface. ID4 is the connection that i have created in SM59. with program ID as ABCD.
                  Can i use the same connection for all interfaces.Please help in this, if we can use same connection for all interfaces. then how to make changes in XI.
    Thanks in advance.
    Thanks & Regards,
    Poorna.

    Just tried this and I can confirm that my earlier understanding was correct!
    One of my colleagues confused me out and the conclusion is,
    1. You need a separate TCP IP Connection for every interface with a Unique program ID.
    Regards
    Bhavesh

  • HT1206 Lots of info about one user using multiple computers. What about multiple users with separate Apple IDs using same computer? Having problems getting my wifes new iPhone talking to her apple account on the computer we share (2 users)

    Lots of info about one user using multiple computers. What about multiple users with separate Apple IDs using same computer? Having problems getting my wifes new iPhone talking to her apple account on the computer we share (2 users)

    You need to create a user account for your wife (or yourself depending on who has the current user account). When syncing, each of you should sign in as a separate user, login to iTunes and then sync. I had this problem when my sister got an iPhone. When we did her initial sync, everything on my iPhone showed up on hers. Apple gave me this solution.

  • How to update software on multiple iPhones using same iTunes account?

    How to update software on multiple iPhones using same iTunes account?

    SeanB15 wrote:
    Here are more details on my situation which should help clarify things...
    I purchased three iPhone 4 models back when they first came out (for my family) that all share the same iTunes account for access to apps and music, but each phone/user still has his/her custom contact list, email accts, and select lists of apps and music from the one iTunes acct library.  The problem is (as I understand it) that I can only update the software on one of the three iPhones – the primary phone I used to setup the iTunes acct without wiping out the separate contact lists, etc. As it stands today... the first (primary) iPhone associated with the iTune acct has been updated with the latest software version 5.1.1 and sync'd up with all the apps, music, etc from the one iTune acct, while the other two iPhones are still running on the original software version 4.0.2 and are experiencing problems now. I was advised by AT&T back in January that it would be necessary to setup separate iTunes accts for the second and third iPhones in order to receive system updates and still be able to manage separate contact lists, etc. If I go this route, I assume we will lose all the apps on phones #2 and #3 that we have been "sharing"... correct? Since this AT&T advice was prior to iCloud coming out, would iCloud be a better solution or at least part of the solution? I really don't yet understand how iCloud works. Hopefully, one of you can help me??
    we have 2 iphone 4's synced to the same itunes account for apps and music since the day we bought them, but each has a different icloud acct. they have both been updated on the same itunes account with every update that has come out since we bought them in december of 2010. nothing on either phone has ever been lost or duplicated. having said all that, maybe i'm missing something here, but we have had no problems. we do have itunes setup to sync manually. i do believe i'm a piker compared to lawrence finch, but i'm just telling you what happens in my house. maybe check with apple? is there a store near you?

  • I'm using same icloud and same apple ID on two iphones. Now i get calls from same number on both iphones at the same time. How to turn off that?

    I'm using same icloud and same apple ID on two iphones. Now i get calls from same number on both iphones at the same time. How to turn off that?

    Apple ID's are not device specific, so when you changed it on the iPad 2 it changed it on the iPhone 4 as well, since it's the same account still. What you need to do is create a second Apple ID (so you'll have two accounts, one for iPhone 4 and a seperate one for iPad 2).
    To create a new Apple ID on your iPad 2:
    1) Go into Settings > Store.
    2) If you are already signed in, tap your Apple ID on the screen and you will be given a few options, one of which is to sign out of your account.
    3) After you sign out, now click the "Sign in" button.
    4) Tap "Create New Apple ID" and follow the instructions on-screen.

  • HT204053 i'm using same apple id for my ipad & ipod but after start using the same apple id on my ipad, i can't upadte my free software, it's showing "YOU CAN NOT UPDATE THIS SOFTWARE SINCE YOU HAVE NOTOWNED THE MAJOR VERSION OF THIS SOFTWARE" so how I ca

    I'm using same apple id for my ipad & ipod but after start using the same apple id on my ipad, i can't update my free software downloaded on both, it's showing "YOU CAN NOT UPDATE THIS SOFTWARE SINCE YOU HAVE NOT OWNED THE MAJOR VERSION OF THIS SOFTWARE" so how i can update my softwares on ipad & ipod using the same apple id

    I think the issue is that iTunes (for whatever reason) thinks I have two Apple ID's.
    also, to further complicate the issue, when i try updating the apps from my iPod the iTunes store is still recognizing my old hotmail Apple ID. So when I go to enter my password it won't accept because it doesn't match with the old Apple ID, even though it is the same account (just new Apple ID name).
    I have tried signing out within the App Store and re-signing in with my Apple ID but it still brings up my old Apple ID name when I try to update.

  • My brother ipad was linked with old apple id and he forgot his id and never use same email.the problem now his mini ipad ask him for this id to open (activate ipad) what we can do ?

    my brother ipad was linked with old apple id and he forgot his id and never use same email.the problem now his mini ipad ask him for this id to open (activate ipad) what we can do ?

    He remember the id name and password but he can't enter we don't now if the password is wrong or the id was  lock . I have the all thing for the ipad such as his box . I now this is security thing but you could help me.

  • HT4436 I have 2 I phone which is using same apple id to back to icloud and restore it. I want to use different id on the one phone what can I do or change the id?

    I have 2 I phone which is using same apple id to back to icloud and restore it. I want to use different id on the one phone what can I do or change the id?

    Welcome to the Apple community.
    In order to change your Apple ID or password for your iCloud account on your iOS device, you need to delete the account from your iOS device first, then add a new account by tapping the "create Apple ID" button. (Settings > iCloud, scroll down and hit "Delete Account")

Maybe you are looking for

  • I am getting an error when attempting to save or export a PDF to Word

    When attempting to save as OR export a PDF document to Word, I am getting the following error:   Bad PDF, error in processing fonts. <cannot find CMap resource file>.  Does anyone know how to fix this?  I also attached an image of the error pop up.

  • Why the IE cannot open the Applet build by Swing

    Halo, i build a GUI inside an Applet, by using the Java Swing. althoug i have installed the Java plug in, and use the HTML converter, but when i try to use the internet explorer to open this applet, the exception is thrown, and it said the "Start: di

  • Installing flashplayer 11 on Linux 64 bit - error while loading shared libraries: libX11.so.6

    I've downloaded the flashplayer_11_sa_debug.i386.tar.gz file and extracted it on my RHEL box. When I run ./flashplayerdebugger I get the following error: ./flashplayerdebugger: error while loading shared libraries: libX11.so.6: wrong ELF class: ELFCL

  • Looking for software driver for HP 6655A Power Supply with Labview 5.1

    Hi, trying to control an HP 6655a Power Supply but the version of Labview in the PC is the old Labview 5.1. I don't want to upgrade it for fear that the program will no longer function. Does anyone have the driver for the HP6655a that will work with

  • Bonjour Crashing for no reason.

    Ok so I have a pretty wodespread problem accross my network. I have 2 PC desktops running Win 7 Ultimate, 2 PC laptops 1 on Win 7 Ultimate and one on Vista Home, and a 15" MacBookPro, and a Netgear ReadyNAS Firefly server. On my readyNAS I have the a