Synchronization of signals on my SBRIO problem

Hi all

I need some advice on how to complete my project.

I need to send a 32 bits of data to my unit test with the following parameters. CLK + FS + and +.

The clock runs at 4 MHZ. The FS + sends a bit length 33 of high for the treatment of the data signal, and in this context, I need to send my 32-bit data.

What I did is I created 3 loops as shown in my diagram.

1. the first loop is a loop timed to generate my clock pulses. I run at 8 MHZ with the low and high signals in loop rotation.

2. the second loop is for my frame sync signal using the rising edge of the clock over an external trigger (SEND DATA) to start the sequence. It has two red WAITING to the 0 graduation and 330 ticks (by tick is 25ns).

I have compiled up to this version of the code and run it with all the problems. I was able to generate the signal FS + 2ns after the clock rises and is to have cycles of clock exactly 33 in length.

3. the third loop which is I'll have trouble at this time is designed to loop data. I also used the pulse of the clock and the external data to start the sequence. I used one signal to WAITING to delay the start of the data by 1 clock cycle and use a loop for send data from 32-bit to 250ns (10 ticks) per line.

The problem is that I do not get the result I want. The departure of the bits is always erratic and not 1 clock cycle of delay that I hoped. Also the first bit is much too small for the 250ns.

Can someone tell me where I'm wrong? Is there another way to address the issue?

Your help will be greatly appreciated.

As a short response, I would recommend combining the three sets of loops in a single state machine.  All three loops are intended to be based on the field of derivative 8 MHz clock.

As a longer answer and to explain the behavior you see... the time of the present code is assigned by the data through the areas of the clock.  The details are in this help message LabVIEW FPGA: implementation of multiple clock domains with the overcoming of the areas of the clock (using a tunnel in the field to clock 8 MHz timed loop to the domain block diagram clock 40 MHz), LabVIEW is obliged to implement a hand shaking algorithm to maintain the integrity of the data.  This shaky writing consumes FPGA (logic cells) tissue and takes 25ns several clock cycles to run, as well as creates unwanted delays.  In addition, the third loop cannot guarantee that code data will trigger off the same synchronization signal as the second for loop because of the handshake that occurs for the data to pass through the loops of 8 MHz.

I would recommend that base you all of the communication out of a single loop timed in a configuration called a state machine.  Essentially, timed with a looping structure business inside, where each picture of the structure of the case is a different State.  Breast of a timed loop state machine, does not have the 'wait' function, so the delays must be implemented with a 'status quo' State which is repeated N number of times to match the time required.  The following link leads to a state machine similar to the SPI communication that would be a good example for the implementation of this communication: Example of SPI LabVIEW FPGA.

The example above implemented the following communication scheme, which seems pretty close to what you implement:

This code is a little more complicated than what may be absolutely necessary to your application, but it is an excellent example of a scalable & flexible of the notion of core implementation (this code can easily be migrated to new hardware targets or add multiple replicated or modified communication to the same architecture protocols.)

See you soon,.

Tags: NI Software

Similar Questions

  • synchronization of signals HAVE, AO and c on 6014.

    I want to achieve synchronization of signals, AO and c on 6014. Here's a 200077 road th sample clock error when I use a signal CO as the soure.

    How can I solve the error?

    Hi swinhaibo,

    DIO in PCI-6014 lines are timed by the software, so you can connect to any clock signal to control. That's why you get an error. Unfortunately it is impossible around him other than the use of a different material.

  • Synchronization of VST: Ok with RFSG, problem with DAMA

    Hi all

    We strive to synchronize 2 VSTs (5644) with DAMA OR and NI RFSG.

    So far, we have been able to sync the RF Transmission of the VST 2 with RFSG, down a less than 100ps difference. It's excellent!

    But we have not been able to renew this success with DAMA: we have time differences in the order of between 2 VST 100us.

    We believe that we follow all the indications of the documentation of DAMA, as shown here:
    http://zone.NI.com/reference/en-XX/help/372058N-01/vstdevices/5644_rfsa_gsynchronizing_clock_signals...
    We ensure same buffers are empty at the beginning of the acquisition by manually empty the VST buffer before calling RFSAInitiate.

    NOTES:

    Our application is coded in C++ only.

    We do not and cannot share the LOs between 2 VSTs, as we Rx/Tx at different frequencies.

    Does anyone have an idea of what we could try?
    We attached the sign of e/s OR our acquisition. Please, let us know if you see something wrong.

    We use DAMA 14.5
    SMU-8135 controller, Win7 x 64
    SMU-1075 chassis.
    SMU-5644R in the location #2 and #6

    Best regards
    Serge

    Hi all

    Finally, support (Kevin Sooch) helped us to solve the problem:

  • Signal Express version unknown problem with Labview VI

    Hi all

    I am trying to run 2010 Labview Signal Express VI. It gives me "unknown version" problem. When I checked for Labview versions, he said 10.0f2 and Signal Express can read the version of LabView 2010. I don't understand this. 10.0f2 is not just a patch for version 10.0? I will appreciate if someone can help me with this.

    Kind regards

    Kanu

    Hi Kanu,

    I tried to write a simple VI and its importation to the Express Signal and I have not had any problems. I use 32-bit LV2010f2 and Signal Express 2010. I have attached the VI I used so that you can try it yourself. I followed the instructions of this KB to create a distribution of the source file. If you follow this KB and still can't make it work, can you please post the VI?

    Thank you

  • Contacts synchronization to Smartphones blackBerry and calendar - problems with Outlook Connector (and other things).

    Hello world

    I just got my first BlackBerry (storm) and this is my first post on the forums.  I read around a lot and found pieces of this problem but no definitive answer (which I understand).  So, I know it's a delicate subject, but really hope that someone can help you.

    FYI, I use Windows Vista and Outlook 2003 with the connector Outlook synchronize my e-mail, contacts and calendar on my Windows Live Hotmail account.

    I installed the Desktop Manager software V.4.7 and crossed to set up > sync and selected Outlook for Contacts.  The wizard all seems to work OK but then when I press "Finish" I get the error message ' file is does more part of the system data source or the couldnot folder is located.

    I partially understand the idea that my Contacts are not in Outlook, they are in my hotmail/live account.  My question is how can I work around this problem and import my contacts to the BlackBerry?  It will not accept an exported .pst file or can it link directly to hotmail?

    (On the basis of the advice on the forum), I found is you go into Outlook and adjust the settings of your e-mail account to send incoming emails into "Personal folder" instead of "* @hotmail.co.uk ' then he manages to pass the error message, however, I found no data calendar or contact in my outlook personal folders for BlackBerry to synchronize with a time that I did."

    I'll try to do a few requests on a Microsoft forum on the features between Outlook and Hotmail to see if there is an easy way to get my data anywhere in the personal folders so that the BlackBerry it can sync from there.  I'm afraid to lose emails or functionalitly to the Outlook Connector on my PC to subsequently change the default e-mail folder.

    Sorry for the length of the message but thought the more detail the better - thanks in advance for any help you can offer,

    Al.

    Just in case anyone else has this problem, I got a work around (not a solution, but it works).  In Outlook, go to Contacts - export to file and select: separation by comma (Windows). CSV file - save it to your PC.

    Then open a Yahoo mail account (if you have not already one) go to Classic view, Contacts and to the right of the screen, there is an option to import/export.  Select the location of the CSV file you saved on your PC and transfer it on Yahoo.

    You can now go through the DM Assistant and select sync with Yahoo.  It is ideal to add contacts to the phone for the first time.  Don't forget to make sure that everything is up-to-date and complete in Outlook Contacts before export to the CSV file.

    If you want to add contacts to the future, the best way is to add to Outlook first and then go through the process of exporting the CSV file again - this will ensure that all records are the same.  Although if you wanted too, you can also export from BB in Yahoo, then in Outlook as Yahoo also exported contacts to a CSV file.

    Hope that helps someone...

    Al.

  • synchronization of the agenda of iMac problem

    my calendar works fine to and from the iPhone and iPad and iMac fine.  However, the calendar entry made on my iMac won't sync with my iPhone and iPad.

    Someone else you have this problem and found a solution?

    Ensure that the calendar is selected in the preferences system - iCloud on your iMac. Then also make sure that you choose the right calendar in the calendar app!

  • How can I synchronize two signals in Labview?

    The first signal is a pulse index which gives the position of a reference point of the wheel (= 1 for 0 ° and signal = 0 for 1-360 °), and the second signal gives the total force meeting the wheel. The two signals have different sampling rates high. The first signal is always 360/rotation, but the second signal varies from cycle to cycle based on how fast the force is changing. The signals are in the form of two columns of numbers in an excel spreadsheet.

    I would like to do such as Labview at the exit of the angular position of the reference at the time of the cycle where the wheel knows the maximum strength in degrees. Can anyone suggest a vi or a method that I might be able to use for this task? I am new to Labview, so any help is appreciated.

    Hi Westerman,

    I have a little trouble to understand the basics of what you're trying to do. A little more details would be very helpful pointing you in the right direction. If you want to align the timestamps/reference of the two signals time?

    I've included a link to a document that describes generally how encoders (I guess that your pulse index indicates that you are using an incremental encoder) can be used in LabVIEW.

    http://www.NI.com/white-paper/7109/en

    You should also try the search the forums for questions relating to the use of a rotary encoder in LabVIEW. I was able to find several with the included code example.

    Feel free to provide us with a few details and we'll help guide you.

    Andy C.

    Technical sales engineer

    National Instruments

  • synchronization, and start the application met problem?

    I don't know why when I run my apps in the device, the result is

    Why?

    even * beep * stuf to me. I disconnect my device from the pc and remove the unit from manage your device... and connect the device to the back and set up again.

  • Tecra M2 and wireless network - signal strength problem

    Need advice buying wireless kit.

    I have a DSL phone line connection and I am currently using a Speedtouch USB modem connected to my workstation down.

    I have a laptop Toshiba Tecra M2 with construction of wireless support. I want to be able to share the internet connection which comes in the workstation down. I guess that my options for the workstation are to use a DSL wireless modem to share the internet connection or to use a PCI card in my computer. I tried them both.

    I first tried to set up an infra mode network with the laptop using a LinksysWAG54G which was connected to the telephone line and a computer. But the problem with that I was t couldn't do accept the subnet mask that my ISP (Lixxus) provided 255.255.255.255 (PPoA). This modem has all the masks of SN in a dropdown list, but mine isn't in this list. I returned this modem.

    I tried then set up an adhoc network purchase buy a PCI Wireless card for my desktop, and internet connection sharing etc. on the workstation. However, while it worked, and I could see the desktop of my laptop, the problem has been the wireless range. The signal disappear when I wore the laptop in the back room on the first floor. It would have been a distance of 10 meters in a straight line between the laptop and desktop. There are walls two bricks and a floor between the two machines. It seemed hopeless, so I sent the PCI card.

    I'm not sure what to try next.

    Any suggestions that I could try next?

    Suggested hardware?

    Signal strength - could the problem be that the antenna in portable insufficient Tosh - it too small?

    Hello

    I have the same situation at home. The best solution for this is to use the wireless router. Here you have the possibility to connect several computers desktop or laptop. In this case the configuration of wireless connection is very easy and it works fine. I also use it at home and in front of my house with no problems.

  • When I put my my tv signal on media center window, it is a problem and says unavailable tuner.

    Why don't the conflict viewing and listening will leave and why's my tuner available on media center to windows

    When I put my my tv media Center window signal, it is a problem when it saids tuner unavailable. Five minutes earlier the tuner worked when I did it the first time. (Missed installation the first time, I had to do it again) Then when I click on tv live or the tv button it saids there is a conflict viewing and listening. When I click on Yes for on the trip, it keeps on poping up and doesn't go away. I tried to reboot, but it does not work. I have windows vista and norton spyware these problems. In addition, I don't know where to look to find what type of tv tuner I have.

    Hello pgarv,

    I suggest you look at this post on the Windows Experts. Their question appears to be similar to yours:
  • Problems to recreate the synchronization information files

    I had a problem to sync the files in Dreamweaver (Version 12.0 Build 5808). I disabled the program "maintain synchronication info" in my site, closed and then re-enabled the option definition. Now, Dreamweaver will not recreate the XML files with the synchronization information. Even if I manually push my entire local site to remove, it will not recreate the files. Any suggestions on how I can get Dreamweaver to rebuild the synchronization information files?

    The problem seems to have resolved itself. It seems that there is a short period of time (i.e. minutes) in writing the dwsync.xml file. I don't know if this has to do with the size of my site (files ~ 100K) or not, but finally the synchronization files began to show.  I just had to be patient.

  • iPhone does not synchronize photos correctly

    Hello

    I use iPhone 6 and are having problems since iOS 9.3 update.

    I don't want to have pictures in iCloud or want to synchronize the photos app. I have a folder on my mac book: there are several subfolder and each holds a couple of photos and images.
    It worked well, but since iOS 9.3 files synchronizes any more. IPhone sync problems - I can't delete photos on the iPhone.
    I tried to solve this problem by creating a new empty a folder - but if I try to sync iTunes starts the synchronization process and fails with the message: iPhone could not be found, but the iPhone is still connected and hit anything the iPhone. Synchronization of an empty folder will not change the photos on my iPhone, or any change in iTunes will delete the photos on the iPhone.

    The last time, I reset my iPhone. I had a backup restore, and after I could synchronize photos from the new record.
    Now, I made an iPhone update iOS 9.3.3 and the same thing happens again...

    It's not funny, it's terrible... and no, I'm not impressed by apple. I want the Apple of comfort back, represented in the...

    Hello Steffen_R y..

    Thanks for stopping by the communities Support from Apple! What you describe, it seems you want to have your photos synced via iCloud. In addition, you do not want to delete some photos from your iPhone by syncing in iTunes 6. I know that I would be able to manage my photos on my own terms, and I will be happy to provide you with some resources.

    To start, we will make sure all your photos are imported safely to your computer, so you may lose important memories. The following article will guide you in this process:

    Import photos and videos from your iPhone, iPad or iPod touch

    Once we know your photos are safe, we can begin the process of disabling the feature photos in iCloud on your devices and setting up of your devices to sync manually content via iTunes. Let's start by disable synchronization of photos via iCloud. This article includes steps on how to turn off iCloud photo library and how to remove photos from iCloud:

    Get help with your iCloud photo library

    This section specifically:

    How can I remove iCloud all the contents of the library of photos to iCloud and my devices?

    To turn off your iCloud photo library, follow these steps:

    • On your iPhone, iPad or iPod touch, go to settings > iCloud > storage > storage management > iCloud photo library, and then select Disable and remove.
    • On your Mac, go to Apple menu > System Preferences > iCloud. Click on manage, select Photo library, and then select Disable and remove.

    Photos and videos will be stored in your account for 30 days. To download your photos and your videos on your iOS device, go to settings > iCloud > Photos and select Download and keep the originals. On your Mac, open the photo, choose Photos > Preferences, and select to download the originals of this Mac. You can also select the photos and videos you want tΘlΘcharger iCloud.com.

    You can also turn off the flow of My photos and iCloud, photo sharing feature. This can be done by the same way as above.

    Once that features photo iCloud is disabled on both your devices, we can turn our attention to iTunes. First of all, let us make sure that the Auto-Sync feature is disabled. Without your connect your iPhone, launch iTunes. From there, click on in the upper left corner near the Apple iTunes logo. Then click on Preferences > devices and make sure that there is a check mark next to 'prevent iPods, iPhones and iPads of automatic synchronization.

    Now that automatic synchronization is disabled, we will be able to connect to your iPhone and then work to remove all pictures from your camera. This resource provides steps on how to manually synchronize the photos on your iPhone, as well as how to remove all or part of your photos:

    Keep your photos safely stored and updated on all your devices

    I want to emphasize this section for your specific:

    Turn off sync iTunes

    If you want more pictures synced to your iPhone, iPad or iPod touch, turn off sync in iTunes and they will be removed from your device. You can disable synchronization for some of your photo albums or all of them at once.

    Stop the synchronization of some albums

    1. Open iTunes on your computer and connect your iPhone, iPad or iPod touch.
    2. Click the device icon in iTunes.
    3. Click on the Photos.
    4. Choose "Selected Albums" and deselect the albums or collections you want to stop synchronizing.
    5. Click on apply.

    Stop synchronization of all photos

    1. Open iTunes on your computer and connect your iPhone, iPad or iPod touch.
    2. Click the device icon in iTunes.
    3. Click on the Photos.
    4. Uncheck 'Synchronize Photos' and then click 'remove all '.
    5. Click on apply.

    Learn how remove photos and videos synced from iTunes when you can not access the originals.

    Take care!

  • OSX 9.3.1 icloud notes sync problem

    Hey all.

    I'm having a problem with the timing of my notes to my iPhone 6s iCloud more (iOS 9.3.1).

    I have confirmed that the problem lies in the phone as my Macbook of synchronizations to my account iCloud without problem.

    What I tried:

    (1) hard reboot iPhone.

    (2) disable and enable synchronization of notes in the iCloud settings.

    (3) input/output panel to iCloud.

    (4) lights up "on my iPhone" notes, create a note it and move to iCloud notes.

    (5) change my password to iCloud.

    Signed 6) input/output to icloud on my macbook (which works fine).

    (7) reset my network settings according to the other discussion ( only note not synchronized new iPhone 6 more )

    8) switched on notes to my alternative email address, then created a note on Macbook (not even these notes synced to iPhone).

    Well, what I can do.

    Another that pointed out, everything else on my iPhone works perfectly.

    Other suggestions or apple is aware of this and working on a solution?

    See you soon!

    GW.

    Okay, so I managed to solve the problem and all I had to do was sync my phone to iTunes.

    That seems to have fixed.

  • Keychain password problem

    Hi all

    Recently my begins keychain to ask me to enter a password when I want to see some passwords (password of the show). I always used my password to check passwords in my keychain. But after El Capitan, he has not worked for me. I changed my password in Keychain Access. I deleted the old keychain and created a new, but it keeps blocking of access.

    That's happened? Can I reset password in Keychain Access?

    Manage the OS X always ask to use your passwords in keychain

    Tutorial: The problems of Keychain

    If you can not access your keychain , or you forget your password If you can't in your keychain file because you have forgotten your password or the keychain file seems to be corrupted, there are two options.

    First of all, if you have forgotten your password, you can use the utility "S.o.s. keychain" to make the Keychain password the same as the password for the connection. This can be accomplished by the following process:

    1. open Keychain Access (located in Applications/Utilities)

    2. go to the "Keychain Access" menu and select "Preferences".

    3. click on the tab "first aid".

    4. make sure that the "Synchronize login Keychain password" is checked

    5. close the preferences window

    6. go to the "Keychain Access" menu and select «S.o.s. keychain»

    7. Enter your user name and password

    8. click on the button "fix."

    The second option is to completely remove your keychain then re-create. This routine is useful if your keychain is corrupted or otherwise unavailable. This can be achieved as follows:

    1. launch Keychain Access (located in Applications/Utilities)

    2. click on "Show keychains" in the lower left corner of the window.

    3. Select the problematic Keychain in the left pane.

    "4. go to the 'File' menu and select 'Delete the keychain"(Keychain name)' "

    5. check all control options, and then press 'OK '.

    6. create a new keychain by going to the 'File', then 'new' menu and selecting

    "New keychain.

    7. you can now do this keychain by default if you wish by selecting it, and then

    going in the 'File' menu and selecting 'Make "(Keychain name)' by default'

    Log in as root and the repair In some cases, problems with keychains can be solved only when you are connected as a superuser.

    First of all, you want to enable the root user:

    1 OS X Lion mountain: enable and disable the root user

    2 OS X Lion: enable and disable the root user

    3 mac OS X 10.6: allowing the root user

    4 activation and using the user 'root' in Mac OS X

    After activation of the root user and the connection under this account, open Keychain Access again. First attempt to repair using S.o.s. keychain and failing that, drop and re-create the Keyring as described above, by being logged in as root.

    Constantly asked for the stored passwords If you are constantly prompted for passwords in various applications that you specified do not forget in a keychain, keychain "login" may not be enabled for one reason or another.

    Navigate to ~/Library/Keychains/ (it's the library within your folder folder staff user). Find the file named "login.keychain" and double-click it.

    Otherwise, select the "login" keychain in the Keychain Access application and make sure that it is the default Keyring by going to the "File" menu and then selecting 'Make 'Login' by default'

    Disable the synchronization of trousseau in applications having problems If specific applications are problems when you access material protected by password, the keychain may be to blame.

    The above comes from an article published on MacFixit.com.

  • How to synchronize a DSA Board (4496) with several S-series (6143) tips for PXI?

    I need to set up a data system that will require the measure to phase for accelerometers-locking and dynamic deformation signals.  How to synchronize my PXI-4496 Council with my PXI - 6143 s?

    I forgot that some DSA properties does not directly on the devices of the series S I have been able to find an article in the knowledge base that has addressed your specific issue.

    Synchronization Dynamic Signal Acquisition (DSA) with NOR-DAQmx products, this includes an example program synchronization a DSA device and MIO device to sample at the same pace.

Maybe you are looking for