Problem in synchroniz​ing signals on my SBRIO

Hi All,
I need some advise on how to proceed with my project. 
I need to send a 32 bit data to my unit under test with the following parameters. CLK+, FS+ and DO+.
The clock runs at 4MHZ. The FS+ sends a 33 bit length of high signal for data processing and within this frame I need to send my 32bit data.
What I did is I created 3 loops as shown in my diagram.
1. The first loop is a timed loop to generate my clock pulses. I run it at 8MHZ with the high and low signals alternating per loop.
2. The second loop is for my frame sync signal which uses the rising edge of the clock plus an external trigger (SEND DATA) to start the sequence. It has two WAIT signals at 0 tick and 330 ticks ( per tick is 25ns).
I compiled up to this version of the code and run it with out any problems. I was able to generate the FS+ signal at 2ns after the clock rises and is having exactly 33 clock cycles of length.
3. The third loop which is I am having trouble right now is designed for the data loop. I also used the Clock Pulse and the external data to start the sequence. I used a single WAIT signal to delay the start of the data in by 1 clock cycle and use a for loop to send in the 32 bit data at 250ns (10 ticks) per loop.
The problem is I am not getting the desired result that I want. The start of the bits is always erratic and not 1 clock cycle delay as I hoped for. Also the first bit is way too small for the 250ns.
Can somebody tell me where did I go wrong? Is there another way to approach this?
Your help will be greatly appreciated.
Solved!
Go to Solution.
Attachments:
timing.PNG ‏204 KB

As a short answer, I would recommend combining all three sets of loops into a single state machine.  All three loops are intended to be based on the 8MHz derived clock domain.  
As a longer answer and to explain the behavior you are seeing... the timing of this code is affected by data crossing clock domains.  The details are in this LabVIEW FPGA help post: Implementing Multiple Clock Domains    When crossing clock domains (by using a tunnel from inside the 8MHz Timed Loop clock domain to the 40MHz block diagram clock domain), LabVIEW is forced to implement a hand shaking algorithm to ensure the data integrity is maintained.  This hand shaking consumes FPGA fabric (logic cells) and takes multiple 25ns clock cycles to execute, so that creates the undesired delay.  In addition, the third loop can't guarantee that the data out code will trigger off of the same clock pulse as the second loop because of the handshaking that occurs for data to be passed into the 8MHz loops.  
I would recommend you base the entire communication off of a single Timed Loop, in a configuration called a state machine.  Essentially, a timed loop with a case structure inside, where each frame of the case structure is a different state.  Within a Timed Loop state machine, you cannot use the "wait" function, so delays have to be implemented with a "do nothing" state that is repeated N number of times to equal the delay needed.  The following link is to a similar state machine for SPI communication that would be a good example for how to implement this communication: LabVIEW FPGA SPI Example.  
The above example implements the following communication scheme, which sounds pretty close to what you are implementing:
This code is a little more complicated than what may be absolutely necessary for your application, but it is a great example of a scalable & flexible implementation of the core concept (this code can easily be migrated to new hardware targets or add multiple replicated or altered communication protocols to the same architecture.)
Cheers,
Spex
National Instruments
To the pessimist, the glass is half empty; to the optimist, the glass is half full; to the engineer, the glass is twice as big as it needs to be...

Similar Messages

  • Problems with TV Out signal after upgrading to iOS 5.1

    Has anyone experienced problems with TV Out signals on their iPad 2 using the Apple HDMI Adapter after upgrading to iOS 5.1?  I am trying to connect to my HDTV after upgrading and cintunally receive an "Unsupported Video Signal" message with a blank/back screen.  Prior to upgrading, I had no connection problems and could view TV Shows, Movies, Music Videos, Keynote, etc...without problems.  I've been unable to find any resolution to this problem, even followed Apple guidance to detach and reattach the HDMI adapter without success.  Seems like a software bug to me and it's a major problem when trying to conduct business or personal activities.  Hopeing Apple has a fix in work already...anyone else have any ideas?  Thx in advance...

    Try a reset. Press & hold the Power and Home buttons together for 10+ seconds, ignoring the red power-off slider, until you see the Apple logo. It is safe to do, there should be no content loss. It is the same as rebooting your computer.
    If that does not work, restore the iPad to the factory settings.

  • Does the iPhone 4S problem of reducing the signal quality? ("capture of death")

    Does the iPhone 4S problem of reducing the signal quality? ("capture of death")

    You make no grammatical sense.

  • Problem in synchronization

    Hi, i intent synchronize but... appear an error:
    • Synchronization started 
    • Connection set up (without proxy) to: http://clariana:50200/sap/bc/MJC/mi_host?~sysid=J2E& 
    • Connection to server failed. 
    • Problems during synchronization: Not found 404; The server has not found anything matching the URI given 
    I have various doubts with the settings:
    - Host is the server the same when i enter in http://<server>:<port>/sld?
    - Port is the same when i enter in http://<server>:<port>/sld?
    - System is the name that i active in sap management console?
    If all is yes... appear the error...
    Thanks,

    For J2ee Sync ....you need to connect to http://<host>:<j2eeport>/meSync/servlet/meSync?~sysid=....
    whereas for ABAP sync yo need to connect to:
    http://<host>:<port>/sap/bc/MJC/mi_host?~sysid=...
    This is generally done in the Mobile Engine.config file of client. But to configure this first of all ..... you need use the steps told in the MI installation guide (New Technology). You can also use the Template installer in the NWA ->Administration->Deploy and Change for configuring the various setting required for ABAP sync.

  • Weird problem during synchronization !!!??

    Hi all
    I came accross a weird problem during synchronization. I am into customizing MAM2.5, and in testing phase. I created 600 local measurement documents and tried to sync. Nearly half of the documents got successfully posted at the back end and got deleted from the hand held. Nearly 250 documents were not posted and it stays in the hand held. On multiple synchronization also it is not getting moved but it says "synchronization successfully completed". The state in the upload syncBO (040) shows the state of these documents as "S" that corresponds to synchronized documents.
    any of you had come accross this problem?? any thoughts??
    Raj

    Hi Raj,
    Now that a new development, If the device was restarted manually please do a client data reset. Settings-> client data reset.
    I know you have tried doing this before but I want you to check the following.
    This will ensure that the data in the client and the middleware are consistent.
    Check the MEREP_MON when you perform the first sync.
    Download requests must be sent from the client to the middleware (They will be in I-Finished status after processing) and the response will be found in O-Waiting. When you perform the sync the second time all the data is sent to the client. Now the data in the client and the server are in-sync. Now if you change any data and sync the data should be sent to the middleware.
    If it still doesnt work your only option is to reinstall MI on the device and start from scratch.
    Let me know.
    Best Regards,
    Karthik

  • Is there problems with the network/signal in TA3 Taunton area

    Is there problems with the network/signal in the TA3 Taunton area I have not had a signal all day and then to make contact with one of my children regarding school pick up.

    Unfortunately so. Spoke to EE today and the service may take up to 72 hours to get back to normal - which is unbelievable given how much we use our phones for day to day life! As they cannot do anything for us, to thank us for our patience they are asking us to monitor when the service resumes and get back to them (no doubt on their £ per min line) and let them know and they’ll credit us for the down time. Just Brilliant!!     

  • Problems with coverage and signal in other countryw

    Hi, I am out of my country, I am traveling, and I have problems with coverage, the signal is not stable it come and go.
    I have a Europe plan active with my operador, and with my previous Arc S, I dont have this problem.
    Any solution ? Other people with this problem??
    Regards

    Please do let us know how you go. LTE coverage is still quite new and even non-existent in many places and as such this can certainly cause the problems you are facing.
    What are your thoughts about this forum? Let us know by doing this short survey.
     - Official Sony Xperia Support Staff
    If you're new to our forums make sure that you have read our Discussion guidelines.
    If you want to get in touch with the local support team for your country please visit our contact page.

  • I am having problems with my EE signal on my iphone 5 - sometimes "no service" or just one bar up - anyone else having the same problem?

    I am having problems with my EE signal on my iphone 5 - sometimes "no service" or just one bar up - anyone else having the same problem?

    Hello there, alisonwayne.
    The following Knowledge Base article provides some in-depth steps for troubleshooting your issue:
    iPhone: Troubleshooting a cellular data connection
    http://support.apple.com/kb/ts3780
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • Problems with synchronizations items and partners

    Hi,
    I have problems with synchronizations from SAP B1 to SAP E-
    commerce 5.9.6
    When I run Synch. manager, there are some error messages in Synchlog
    and some items and business partners are synchronized and some not
    synchronized.
    Error messages:
    1)
    Completed account list synch with unhandled error:object reference not set to an instance of an object.
    2)
    Completed parts list synch with unhandled error:
    object reference not set to an instance of an object.
    at NetPoint.SynchSBO.SBOObjects.SBOItem.SBOToNetPoint()
    at NetPoint.SynchSBO.SBOObjects.SBOItem.SynchItemList()
    at NetPoint.SynchSBO.Synch.SynchPartList()
    Thanks,
    Milos Vich

    Hi Milos,
    If nothing at all has synchronized, I would first double check your connection settings and passwords.
    If the synch appears to to be connecting correctly, you will need to look at the data that it is failing on.
    The synch queue is the prx_transaction_queue table in the Business One database.  The object_type column refers to a Business One object.  2 for business partner and 4 for items.  The list_of_cols_val_tab_del is the key in the associated table.  For business partners that is OCRD.CardCode and items OITM.ItemCode.
    First determine that there is no bad data in the queue.  Bad data is typically defined as null or empty strings in the list_of_cols_val_tab_del column.
    Try running the following for business partners:
    select *
    from prx_transaction_queue
    where object_type = 2 and (list_of_cols_val_tab_del is null or list_of_cols_val_tab_del = '')
    And this for Items.
    select *
    from prx_transaction_queue
    where object_type = 4 and (list_of_cols_val_tab_del is null or list_of_cols_val_tab_del = '')
    If there are nulls or empty strings in the list_of_cols_val_tab_del column, delete them.
    If not, take a look at the first records in the queue.
    select top 1 *
    from prx_transaction_queue
    where object_type = 2
    order by tmstmp
    and for items:
    select top 1 *
    from prx_transaction_queue
    where object_type = 4
    order by tmstmp
    Change the transaction_type to "X" (remember what is was, because you will need to change it back).  Changing this value will remove the item from the synch.
    Rerun the synch. 
    If it runs at this point, there is probably data in the records that the synch was not expecting.  The business partner data will need to be examined.  Tics in key values (CardCode, Address Name, contact name, itemcode) may cause problems.
    If this is the case, you might want to contact support to try to track the problem down.
    Another source of problems may be database collation.  We can talk about that if none of the above works.

  • I have problem to synchronize my I Pad. (Fehler -50).

    I have problem to synchronize my I Pad. (Fehler -50). Have some of you an idea to solve the problem?

    Tell us exactly what the problem is!

  • Problem: No Synchronize since Ovi Suite 2.2.1.23 h...

    Hello. I have a Problem: No Synchronize since Ovi Suite 2.2.1.23 has been installed.
    The phone (XpressMusic 5800) is connected to the PC via Bluetooth or USB, I can enter to the messages / contacts / content etc. but no Synchronization can be made. Nothing happens even when I click on "Synchronize" on a part or "Synchronize All". 
    What can I do?
    Thanks a lot in advance,
    Lior.

    Here's something worth trying: 
    Check if you have Contacts included in the Auto sync
    * Tools > Options > Device Sync 
    * there is a check box under "Contacts". 
    * Uncheck the "Sync automatically ...." 
    * Click Ok
    * Then from Menu "File" > Exit
    Then start Ovi Suite again and try... any improvements?
    Do you see in home the "Preparing to sync <contacts>" or any other indication that something might be happening?
    Aki

  • Problem with Desktop software synchroniz​ing Outlook 2010

    I have 2 new computers;
    Dell Inspiron One running Windows 7 (64) bit and Desktop software works fine with Outlook 2010.
    Samsung R530 laptop running windows 7 (32) bit and Desktop does not link to Outlook 2010.
    I have tried installing version 6 which did not work. I have also tried starting with version 5 and upgrading  and this also does not work.
    Any suggestions would be welcome.
    Solved!
    Go to Solution.

    Many thanks, it now works the problem was down to a version of Front Page 2003 corrupting files in Office 2010. Deleted Front Page and repaired Office and now all works well

  • Synchroniz​ing two counter frequency inputs with multiple analog inputs

    Hello all,
    I'm fairly new to LabVIEW and I'm trying to collec​t data from multiple sources with synchronized tim​ing on the acquisition but I'm having trouble figu​ring it out. My problem is that I've got two count​er frequency inputs, one optical tachometer readin​g one pulse per revolution, and a max machinery fl​ow meter with a k factor of 12000. I can't seem to​ figure out how to sync the timing with my multiple analog inputs. I've be​en attempting to get the tachometer  to sync with ​the analog inputs first by following the example l​inked here. (https://decibel.ni.com/content/docs/DOC-10785) So far each time I run it I either get a timeout e​rror on the DAQmx read or a "Multiple sample clock​ pulses were detected" error (see attached image).  It seems if I slow the sampling rate way down to ​say 10 hz and ensure that the tachometer signal is​ over 800-1000 RPM (13-17 Hz) before starting the VI then the program will run without errors until ​the RPM drops below that threshold then the "Multi​ple sample clock pulses" error occurs.  The code is attached below.
    Does anyone know of a more effective way of syncin​g counter frequency inputs with analog inputs?  I'd like to have a VI that can show 0 RPM (and ev​entually 0 flow as well, but I think I need to fig​ure out the timing of one counter before I add ano​ther as it seems I can't have two counters in the ​same task). Any help on this would be greatly appr​eciated.
    LabVIEW version 13.0
    cDAQ-9178 Chassis with NI 9401 for the two counter inputs and NI 9205 for the analog inputs.
    Thanks!
    Richard
    Solved!
    Go to Solution.
    Attachments:
    SimpleDAQ.vi ‏44 KB
    LV_Error.JPG ‏31 KB

    Maybe third times the charm? 
    So I've finally got a good handle on why the VI is having problems at low RPM though I'm somewhat embarassed how long it took me to do that
    Because I have the counter time synced to my Analog input task if it doesn't see at least two pulses between the two clock pulses set by the analog input task I get the -201314 "Multiple sample clock pulses" error. This seems fine at first as it just sets a minimum RPM that I can measure and it's well below the area I'm interested in so no problems there.  I tried a simple error handler that would clear the error when it happend assuming the loop would keep iterating until the RPM went above that minimum at which point I would get a signal again. This is not the case, the read function just continues to spit out the -201314 error even after the RPM is back in the readable range. So then I tried adding two case structures so that when the error occured it would stop the task, clear the error, and then start the task again on the next loop iteration (Code Attached). This also doesn't work as the error shows up again on the stop task and then AGAIN on the start task on the next loop iteration. It seems this error is not actually being cleared and once it happens it stays with the task regardless of what the error cluster is carrying. 
    Anyone have any ideas?  The only solution I can think of is to just clear all tasks and recreate them each loop iteration until the RPM is readable again but that strikes me as a horribly clunky solution.
    Richard 
    Attachments:
    SimpleDAQ_1_Start Stop.vi ‏48 KB

  • Problem with synchronize in web form

    I'm runing forms server 6i with patchset 11...
    I'have a java bean wich extends VTextField, wich opens a file dialog and returns the path+filename selected...
    I have a navigable text item whose implementation class is this one for file dialog...
    Java class returns ok the filename in text item,value shows up in the screen...but if I try to process the value returned in the text item,I receive null..i've even attached a when-validate-item trigger with the code: :text_item:= :text_item ...I have enough 'synchronize ' inserted all over the pl/sql code...the only situation when I receive the value is when I raise a message,or alert in the screen...after this :text_item holds the corect value...However this is annoying,as my customers want this alert removed...
    does anyone has a idea about how can I notify forms about the wright window to synchronize with???
    Does Forms management team Knows something about this?If it is a bug,I wan't to know so I won't lose any more time....

    Thanks Duncan
    This last solution with using the Handler is working,the internal value is updated...however,the screen value of the PJC is nor updated...
    I'm using
    this.setProperty(ID.VALUE,fileDirectory + fileName);
    try
    mHandler.setProperty(ID.VALUE,fileDirectory + fileName);
    catch (oracle.forms.api.FException fe)
    fe.printStackTrace();
    System.gc();
    return true;
    I thinck I'll use that workaround with the get_custom_property....
    However,if you're here,I thinck I have some other problem:
    I have created a pjc on the forms wich imports or exports one line (identical with text_io package)
    This pjc is managed by a pl/sql package also created by myself...from the pjc I'm sending custom events to the forms:endoffile,invalidinfile,invalidoutfile...all works ok,but if a try to import a whole file(performing a loop in pl/sql),no custom event is received by forms,even if the pjc certainly sends it...
    That happens only while performing the loop...
    Is there any special reason why this is happening?is the listener for custom_events disabled during loops execution?
    I've found a workaround for this...I've created another endoffile property wich I'm reading after each line import...but this takes a lot of extra time,doesn't it?
    Thanks for your time

  • Problem when combinning PWM signal and Analog signal TOGETHER!

    Hello everybody,
    first of all i have DAQmx 6212, and i need to run a small water pump (9V-16V) which needs to be driven by a PWM signal; also i have a motor (5V-13V) for a water valve that needs to be driven by a analog signal and it has a built in a force feedback potentiometer, i connected on the extremeties of this potentiometer +5V from the DAQmx and used the output voltage from the third extremety as a diagnose value for knowing the position of the motor.
    my VI shows:
    1. is a normal Counter output to create my PWMout signal.
    2. is an analog input i use it as a PWMin to the LabVIEW to diagnose what is happenning in my water pump through the duty cycle and the frequency.
    3. is an analog input from the third extremety of the potentiometer.
    4. is an analog output which i have used as a power supply for the motor valve and i have used an AC/DC amplifier to aplify the signal from the DAQmx and drive the motor, between (3. and 4.) i have made a feedback with some calculations i had a P-controller to know the actual position of the motor valve.
    My Problem:
    when putting 1. and 2. in the same VI alone, i am getting a clean PWM in/out with no problems mentioned;
    also when putting 3. and 4. in the same VI alone i can control the motor valve without any problems;
    but when i put all these 4 together as found in the attached VI, i have a problem that the motor valve is running continously without stopping even if i change the valve position between 0 and 100 %, i should mention that i am seeing a normal PWM out/in signal on my oscilloscope, one other thing that if i delete one of (1. or 2.)  and run the VI the motor valve is working fine without any problems.
    so this my problem, if you can think of any solution please let me know.
    thanks in advance for your help.
    Regards,
    Alosh
    Solved!
    Go to Solution.
    Attachments:
    pwm.out.in.analog.out.in.vi ‏45 KB

    Dear nathand thanks for your reply,
    i have ran the vi again and i am have error no 50103 from the (AI, number 3. )  but it is not displaying the error message, the VI keeps running without any error notification.
    adding to that,  i have tested the VI again today by placing (1. and 2.for the PWM inout) together in one VI and (3. and 4.for the motor valve) in another VI and ran them one after the other, i had another problem. if i turn the motor valve vi, the motor will run smoothly but in the pwm vi i will have a problem in which the AI did not read any value. also doing this vice versa by running the pwm vi first it will work perfect but the motor vi will have problem in reading the measured voltage in AI during this the motor will keep on running without stopping.
    so i think now the problem is in AI (2. and 3.) readings they are interfering on each other but i am not discovering where is my problem...
    Q: does the AI's seems well build or i can do it in an another way so to get over the interfering?
    Regards,
    Alosh

Maybe you are looking for

  • TS3694 Why did I rec'd error 9006 when trying to restore my ipad 1 in iTunes

    When I turned on my ipad 1 today after using it 2 days ago with no problems.  I had a black scree with the itunes logo, photo of the white USB charging cable and a white arrow pointing to the itunes logo.  So I plugged the ipad into my iMac computer

  • How to check in schema weather table is created by user or system?

    For list outing the tables in schema I will execute the any below queries SELECT DISTINCT OWNER, OBJECT_NAME    FROM DBA_OBJECTS   WHERE OBJECT_TYPE = 'TABLE'   AND OWNER = 'SCHEMA NAME' OR SELECT * FROM ALL_TABLES; or SELECT * FROM USER_TABLES; or S

  • Cant see jtable column headers

    I have my jtable in a container and i am displaying that container in a jframe. I cant see the table column headers. I cant use a jscrollpane and need to make the table headers visible. I can see the table fine with all its information in it. When I

  • Can a Macbook Pro be insured?

    My parents wanted me to find this out because they are buying me a MBP for Christmas. They wanted to know if Apple offered some sort of insurance policy, where if the MPB broke or became stolen a new one could be provided. Or are we just SOL, if some

  • Rented movie on computer to tv

    OMG!! Apple makes the best products but horrible customer support horrible explanation on how to watch a simple rented movie on you apple tv! ive been trying to watch a movie that i rented last night but can't manage to watch it bc its either too com