Requesting feedback and advice on modifications to the FIDL examples

Hello,
With the help of this forum, I've been learning about FlexRIOs, low-level FPGA programming, the higher-level FlexRIO Instrument Development Library, and general techniques for high-speed synchronization and acquisition.
I believe I'm now on the right track, and would like to ask for feedback/advice from someone who's experienced with FlexRIO (or general PXI FPGA) programming on what I've done. I modified Acq Engine on 5734 PXIe-7962R.lvproj:FPGA Top Generic PXIe.vi to let all 15 cards trigger a synchronized acquisition. I replaced the trigger detection mechanism, but left everything else untouched:
Brief background
Equipment list
Controller: PXIe-8135 (Windows 7)
Chassis: PXIe-1085
Input cards: PXIe-7962R FlexRIO base with NI-5734 digitizer (Total of 15 cards = 60 channels)
Requirements
The system continuously monitors 60 channels for events. (An "event" is when any one channel exceeds a user-defined threshold. Events are up to 30 minutes apart)
When an event is detected, data is acquired simultaneously from all 60 channels (200 μs pre-event, 300 μs post-event)
Data is sampled at 10 MHz
Explanation for code modifications
Idea
When a card detects an event, it fires the "Detection" trigger to the Master.
When the Master receives a "Detection" trigger, it fires the "Acquisition" trigger to all cards.
When a card receives the "Acquisition" trigger, it transfers data to the host.
Implementation
The FlexRIO cards are spread across 3 different PXI busses, so I use 3 "Detection" trigger lines.
I hijacked Acquisition Engine - FPGA.lvlib:acqEngineTriggerPoly.vi by feed my custom trigger into acq.Trigger Immediate.
Questions
Is this a good way to do things? It works overall and the channels are all synchronized, but the additional trigger layer seemed to introduce a delay of ~17 ns (2 samples at 120 MHz, but I think it's negligible at 10 MHz)
How can I decimate the data to 10 MHz? As a simple first step, I thought I'd put a case structure around everything in the timed loop, and run this case every 12 iterations. However, FIDL Synchronization v1.lvclass:Create.vi only goes down to 17 MHz.
Thanks in advance!

David-A wrote:
Seems fine. I've always just used a single trigger connected to the master, but what you've done to allow any of the slaves to notify the master that it needs to distribute a synchronized trigger to all the slaves should work fine.  Not sure what delay you are referring to though. It probably doesn't matter as long as all of the modules see the synchronized trigger at the same time since you can always just increase the number of pre-trigger samples you collect.  
Thanks for confirming, David.
About the delay: With the default example, if I specify 50 pre-trigger samples, then on the host graph I see the y-threshold crossed at t=50. With my modifications, I see the y-threshold crossed at t=48.
But you're right. Since the shift is constant across all cards, all I need to do is read 2 extra pre-trigger samples to compensate -- not a problem.
David-A wrote:
Regarding decimation, I suppose you could just dump 11 of every 12 samples to decimate the data down to 10MS/s, but like Rob mentioned, you may get some nasty aliasing. I would look into using the decimation filter he mentioned.
I understand the importance of a decimation filter.
To clarify my question: After filtering my signals, how do I get the FIDL multi-record system to pass downsampled data to the host?
I tried modifying Acquisition Engine - Facade.lvlib: Packer.vi to Enable every 12th sample:
Explanation
If AcqInProgress is FALSE, Counter is always 0.
If AcqInProgress is TRUE, Counter decrements from 11 to 0 cyclically.
Enable is TRUE if (AcqInProgress == TRUE and Counter == 0)
However, the data received by the host is corrupted. Below is from a 100 kHz sine wave input, sampled at 10 MHz. I asked for 100 pre-trigger and 200 post-trigger samples, which should give me 3 cycles. It looks like the wrong sections from the buffer are being read from:
What did I do wrong?

Similar Messages

  • X300 performance - seeking feedback and advice

    How does the X300 perform with
    XPSP2
       vs.
    Vista Business in not-fancy-Aero-graphics-mode ?
    (please no blatant Vista bashing, am already familiar with it)
    Assume 3GB of RAM and typical multi-task usage to be:
    2 windows of Firefox, each with 6 tabs
    5 tabs IE
    Thunderbird
    2 Excel spreadsheets
    iTunes
    Skype
    Experienced feedback very much appreciated.  I currently have a T60P Vista Biz with 2GB and can run the above acceptably.
    Message Edited by JayNYC on 04-11-2008 07:17 PM

    stephan wrote:
    Hi,
    I'm interesting to know how fast is this notebook comparing to my A31p with 2GHz Pentium M??
    Thanks!
    cu
    Stephan
    I'm not quite sure if you realize that the Pentium M 2GHz can't be really compared(performance-wise) to the X300 CPU?
    The X300 CPU is one of the latest Intel CPUs which aren't even officially available yet. It seems it is the same CPU Apple uses in the Macbook Air, just at a lower CPU frequency (1.2 instead of 1.6/1.8 GHz).
    The Intel SL7100 dual core CPU has been optimized for the typical usage of video, office, etc.
    In my opinion it can handle ANY load with the exception of 3D games.
    The Intel X3100 graphics adapter also helps with video performance, it has aprox. 50% more punch than the well known Intel 945/950 chipset.
    I'm running Vista Business with 3GB RAM, Aero is activate. At the same time, Norton Internet Security 2008 is running in the background with full realtime protection enabled. I played various video files using Amazon Unbox video client and iTunes, no stuttering, no issues at all, all the time played FULLSCREEN. The video files were played from a portable HDD, not the internal SSD, SSD playback should be even better(faster).
    I'm also running MS Office 2007 Enterprise on my X300, again: no problems whatsoever.
    That said, I think that the X300 can replace almost ANY previous laptop on the market with the exception of so called "gaming laptops" and/or laptops with special graphics adapters for architectural/design/etc. purposes.
    X300 (6478-15G), Intel SL7100 CPU 1.2GHz and X3100 GPU, 3GB RAM, 64GB SSD, HSDPA, Vista Business 32bit, 6 cell and 3 cell bay battery

  • Loaded IOS 7 and now notice that in the Music App cannot choose format to display all my albums as a matrix, Loaded IOS 7 and now notice that in the Music App cannot choose format to display all my albums as a matrix

    After loading IOS 7 i note that there is no longer a choice of how you want albums displayed in the MUSIC App!
    I used to find it useful to display them all as a matrix and then choose by touching the relevant album cover!
    This app now lists the albums as a list alphabetically which means I have to scroll thru the list to find the album I want.Can we have this facility back?
    I called the support desk and he could not find this feature!

    Exactly!
    This is all about the experience and accessibility. I don't even mind if the new desing is beautiful or not, but if I find myself, like you, avoiding looking for my music, my experience becomes frustrating. I have about 35 albums of a single artist and I used to love going over them and choose the right thing for me, especially being on the road a lot, and now I have to think twice about even entering his name.
    I really hope Apple will take those kind of things into consideration when they issue updates for ios 7, and maybe also give us back the goole search which was embeded into the spotlight search (which is really not that big of a request).
    And for your 4s - get the new iphone, it's MUCH better

  • Join the LabVIEW Example Code Contest and Get a Chance to Win an iPad!

    This October, we are holding the LabVIEW Example Code Contest 2010. LabVIEW users can demonstrate the cool things they've been able to accomplish with LabVIEW by submitting new example code. The best example code wins an iPad.
    Each participant can submit as many entries as they want as long as they fall under at least one of the following categories:
    Data Acquisition
    File I/O
    Math/Analysis
    User Interface Controls
    VI Server/Scripting
    Games
    Submissions will be accepted from October 1 through 17. Judges will choose finalists for each category, then the NI Community will vote for their favorite example codes. Father of LabVIEW Jeff Kodosky will choose the overall winner.
    Read the rules, ask questions, and submit your entries in the LabVIEW Example Code Contest 2010 Group

    The submission deadline has been extended to Monday, October 25

  • Advice for recovering from "The requested URL was not found on this server" error when browsing photos and videos on my iPhone 4S IOS5.1

    Im not quite sure how I got into this situation but I have fried my Iphone app photo and video library.  This demonstrates itself in 2 ways
    1. The above error message when I attempt to play videos older than a certain date.
    2. Photos older than a certain date - appear to be grainy suggesting that only the thumbnails are on the phone, and the full resolution photos have been blitzed.
    This coruption may have occured as I have replaced my Iphone 2 times in the last few months for various reasons, where each time I have restored them both using back ups I have made using icloud.  (I havent made an Itunes back up since the iclod came around)
    In reading the support forums - it suggest to restore from a back up version.  Is anyone aware if selectively restoring media content from an icloud back up is possible.
    I have 2 Back Up versions on icould.
    1- 13.5 GB
    2- 7.2 GB
    My hope is that the earlier 13.5 GB version has content I am looking for.
    I am kicking myself for not making the occassional itunes back up, or at least use Image capture as a more secure way of ensuring my personal content is not lost. (I am loosing faith with icould).
    Can someone suggest a good workflow for restoring from a cloud back up.  I have already downloaded the most recent photos using image capture onto my mac.
    Kiwi Grant

    Progress Update.
    I made a back of what existing phtos and Videos I had on my Iplhone.  I used Image capture to do this making an entire back up of photos and videoa that were still intact on the phone.
    Image capture is god for this purpose, as it does exactly what you ask it to do without applying any rules or squishing the files back into iphote (which might also be corupted) 
    Image capture wil do the basic function of retriving the contents of the phone and save them as native files on your hard drive.
    Once I did this I erased my iphone, and re intitialised it restoring an older back up from icloud.
    As the retore was happneing - I did retreive the missing files that cuased the intial beviour as above, and I could play the videos that were missing in the above scenerio.  The wierd ting was however that even though the source files were now back on the device, the thumbnail previews were missing. Where I ahd balck thumb nails for server portions of the resotred content.
    I then went to bed as the restore is a long process.  When I woke up the library had library had cleaned itself up.  Mysteriously the prcess had deleted the files missing the their thumbnails.
    This is very perculiar and bad behavior.
    I am now repeating the process, and will attempt to download the missing content as it is restored and prior to the phone trying to fix itself.
    Here are the lessons learned.
    DO NOT rely on Photo Stream to keep back ups and synchornise videos from you IOS device. IT DOES NOT SUPPORT THIS CAPBILITY
    DO NOT rely on iCloud Back Up alone - always fd an occassional iTunes back up or more reliably still always take a back up of photos and video files using Image Capture to be doubly sure that you a have backd up any content.
    DO THIS NOW - dont wait to loose your phone ofr have your phone repaired by replacement at the apple Store.  (I did both :-(

  • I left a negative feedback, and now the seller won't stop emailing me.

    I bought an item on eaby, and it was completely different from the picture, and honesty, just terrible.  I'm not someone who jumps to leave a negative review, and this is the first time I've ever, ever done it.  I left a negative because I think it's wrong to misrepresent a product. Ever since leaving the feedback, the seller has contacted me every day, sometimes twice, telling me to change my review. I'm not changing it.  I left an honest review. The end.  I want no further contact with this seller.  How do I make them stop emailing me?

    Well, I'm sorry to hear that you had a crummy experience with this transaction. Sometimes, if you let a seller know ahead of time that you are unhappy with your item, they might make amends, but it is completely within your right as a buyer to expect to get the item you bought the first time around so..... Assuming the messages are coming via ebay messages and not your personal email, you'll have to sit down at a desktop or open a web browser on your phone and log into your account. Go to your Messages. On each one, there should be a section at the bottom that looks like what I have attached below. Go to the Report an inappropriate email and follow the instructions. Do this for EVERY message that you've been sent by this person. I don't know what good it ever does but this is what you can do. Report them. For each message sent. When a seller makes a Feedback Revision request, they are warned by ebay NOT to harass the buyer to do comply. The seller really should know better than to do this to you.  I too have a problem with unwarranted and unwanted messages from a fellow ebay member (not a customer) who has been reported by me to ebay multiple times and long-ago blocked but still has somehow managed to circumvent it to continue to contact me. In the most recent message, he suggested I have marital relations with a pig. He also told me he has run out of his meds. I don't reply to something like that. I would suggest you not either with this seller. Eventually, someone else will leave bad feedback for this seller and you'll be off the hook. Good luck as you carry forward.   

  • I would like to inform you that  i have received today an email from Apple adrees (Warning your account has been limited), Apple in this email requesting me to update my Apple ID information. After i updated that as well and follw up with instructions the

    i would like to inform you that
    i have received today an email from Apple adrees (Warning your account has been limited), Apple in this email requesting me to update my Apple ID information. After i updated that as well and follw up with instructions the massage bellwo was appeared to me(Apple ID doesnot have permission to access iTunes connect)
    I appreciate if you kindly explain this and tell me please if i do something wrong.
    You feedback is high appreciate.

    You have been scammed. Most likely your iTunes account will be hacked. Contact Apple:
    Apple Store Customer Service at 1-800-676-2775 or visit online Help for more information.
    To contact product and tech support: Apple - Support - Contact Apple Support.
    For Mac App Store: Apple - Support - Mac App Store.
    For iTunes: Apple - Support - iTunes.
    BTW. The forums are user forums. You aren't speaking to Apple here.

  • HT4623 Dasya is upset by upgrade to iOS7 and requesting downgrade to iOS6 especially due to the usage of Chrome browser

    Dasya is upset by upgrade to iOS7 and requesting downgrade to iOS6 especially due to the usage of Chrome browser and ugly desktop icons.

    Feedback to Apple
    http://www.apple.com/feedback

  • Old school with CS2.  Haven't used in a while and am unable to use the program as it says my serial number is invalid. Customer service tells me the server for CS2 has been shut down.  Then they sent me here for help.  Does anyone have any advice?

    I don't have a clue what I am doing with this.  Here is my discussion with Customer Service:
    Naresh: Hello! Welcome to Adobe Customer Service.
    Naresh: Hi Mary.
    Naresh: I understand you have been getting invalid serial number, am I right?
    Mary Vance: Hi
    Mary Vance: yes
    Naresh: Please provide me with the serial number, Mary.
    Mary Vance: I provided my serial number here
    Naresh: Thank you for the serial number.
    Naresh: Please allow me 2-3 minutes while I check your serial number.
    Mary Vance: no problem
    Naresh: Thank you.
    Naresh: Thank you for being online.
    Naresh: I would like to inform you that the server for CS2 products have been shut down by adobe since then you are not able to install the product.
    Naresh: However, I will provide you the link to download CS2 application. Please visit the following link.
    Mary Vance: will this allow me to reinstall Photoshop?
    Naresh: Yes, Mary.
    Mary Vance: ok...what is that link?
    Naresh: Please clcik here to download.
    Mary Vance: thank you....trying it now
    Naresh: You are welcome.
    Naresh: I will also provide you the link for further information regarding the installation of CS2 products.
    Mary Vance: the download doesn't have anything regarding installation
    Naresh: Please click for the information.
    Naresh: I am sorry for providing wrong link.
    Naresh: Please click here to download.
    Naresh: The 3rd link is for the download of CS2 Photoshop.
    Naresh: Were you able to view the download link, Mary?
    Mary Vance: what file in that download is supposed to help me?
    Mary Vance: the first and 3rd link were the same
    Mary Vance: when trying to load from my software, I get the message saying my serial number is not valid. All I need is a serial number that works. Is that going to be possible?
    Naresh: Mary, Adobe has disabled the activation server for CS2 applications, including Acrobat 7 and Audition 3, because of a technical issue.
    Naresh: So you will have to download the software from the above link.
    Naresh: May I know in what OS you are trying to install the software?
    Mary Vance: the link sends me to a CS2 help package
    Mary Vance: windows 7
    Naresh: I am sorry you will not be able to install the CS2 application on Windows 7 since it does not support CS2 version.
    Mary Vance: I have had on here for a few years...why all of a sudden would it not work? Illustrator is fine.
    Naresh: Okay.
    Naresh: You can try downloading the software.
    Mary Vance: was the original link that you sent me suppose to allow me to download Photoshop?
    Mary Vance: I did try and got the message that the serial number is invalid. Is there any way to get around this or should I throw it away?
    Naresh: May I know whether you uninstalled the product.
    Naresh: ?
    Mary Vance: I did uninstall Photoshop only. Then I tried reinstalling Photoshop only and got the message about the serial number.
    Naresh: I check and see that it seems to be a technical issue, I request you to please post your query to the forums so that you will get the resolution from our expertise and I'll provide you the link to visit the forums.
    Naresh: Please click here to visit the forums.
    Mary Vance: I guess I will try that.
    Naresh: Yes, please.
    Naresh: Is there anything else I can help you with?
    Mary Vance: I don't see where you helped me with this yet, so I guess not!
    Naresh: I am sorry for the inconvenience.
    Naresh: Thank you for contacting Adobe.  We are available 7 days a week, 24 hours a day. Goodbye!
    Any help would be appreciated.

    CS2 is very old and reached its "end of life" a while back.  So probably won't run on modern operating systems.  If you can still run it, you'll need to uninstall what you have and re-install with the download link below to activate it.
    Error: Activation Server Unavailable | CS2, Acrobat 7, Audition 3
    Nancy O.

  • My storage is mostly full of a category labeled "other." I'm out of memory to the extent that it won't even allow me to update apps. I have moved all photos over to my computer and my music streams through the cloud. Any advice on how to fix this problem?

    My storage is mostly full of a category labeled "other." I'm out of memory to the extent that it won't even allow me to update apps. I have moved all photos over to my computer and my music streams through the cloud. Any advice on how to fix this problem?

    http://discussions.apple.com/thread/3418045?tstart=60

  • Hi, I need help and advice. Basically me and my ex partner both had iphones and synced it with the same computer under the same ID. We split i have a new laptop and now it keeps asking for the old ID or it'll erase my apps bought on theold account.

    Hi, I need help and advice. Basically me and my ex partner both had iphones and synced it with the same computer under the same ID. We split up and now im trying to get all my apps and info onto my new laptop with a new account but it keeps asking me for the old apple ID which she is still using and she changed the password. i tried backing it up but still nohing. When i try to back up purchased items being apps etc its keeps asking for the old one. help

    See Recover your iTunes library from your iPod or iOS device. But you'll still need the password.
    Once you have the computer authorized to use the account she could change the password again to stop you buying apps on her card (assuming it's not on yours!). It would lock you out of upgrading them too but they should work unless she uses the deathorize all feature.
    It depends on how amicable the split is...
    tt2

  • Hi,  I'm in Nova Scotia, Canada and when I try to use Siri it loads and loads and then says, "I'm really sorry about this, but I can't take any requests right now. Please try again in a little while."  I rebooted and it didn't fix the problem. I just got

    Hi,
    I'm in Nova Scotia, Canada and when I try to use Siri it loads and loads and then says, "I'm really sorry about this, but I can't take any requests right now. Please try again in a little while."
    I rebooted and it didn't fix the problem. I just got my iPhone 4s (unlocked right from Apple) several weeks ago.

    Siri has been a bit more erratic than usual in the last week or so. Apple has announced a major announcement for 9/12. Conclusions are left to the reader.
    Best of luck.
    (Occasionally from Lower Economy, Colchester County).

  • On i-pad, when try to enable itunes match, it says, "you are not currently subscribed to iTunes Match. Use iTunes on your computer to subscribe." I am subscribed though! Then it says no my request and item not available in the U.S. store. WWJD?

    On i-pad, when I try to enable itunes match, it says, "you are not currently subscribed to iTunes Match. Use iTunes on your computer to subscribe." I am subscribed though! Then it says no to my request and, "item not available in the U.S. store." My Mac will not use update iTunes to any later version than the one I have because my os is also out of date, but when I try to update that i cant, so what do I have to do?  Please don't tell me I have to buy a new Mac to be up to date.

    On the iOS device you must be logged into the store with the exact same Apple ID you used to originally purchase the service. Go to Setting > iTunes & App Stores and if necessary sign out/in and then enable iTM.

  • How to store the value of request message and use it in Response mapping

    Hi All,
    We have an requirement where we need to store the data coming in Request Mapping and use the stored value in Response Mapping. Can anybody help us in how to proceed?
    Thanks
    Sujata

    Hi!
    In Mapping you may use the RFC Lookup function to store values in database table during request mapping and to read values from database table during response mapping.
    You can also use an ABAP or Java Mapping "in front of your" message mapping to store/read the values.
    You can also use an Adapter Module (if applicable for the adapter type you use) and/or a UDF to store the data e.g. in Dynmaic Configuration Header of Request Message and to read these data from Dynamic Configuration Header of Response Message. But this works only for synchronous scenarios (and it means overhead in your message traffic).
    Hope these thinkings help you o find the most suitable way for your concrete scenario!
    Regards,
    Volker
    Note:
    These techniques help you to avoid using BPM.
    Edited by: Volker Kolberg on Aug 27, 2009 11:18 AM

  • After some advice, I am new to Apple and looking to purchase either the MacBook Air 13inch with 256GB and 8GB mem or the MacBook Pro 13inch with retina 256Gb and 8GB mem. I am an assistant principal in a primary school and also studying my masters

    After some advice, I am new to Apple and looking to purchase either the MacBook Air 13inch with 256GB and 8GB mem or the MacBook Pro 13inch with retina 256Gb and 8GB mem. I am an assistant principal in a primary school and also studying my masters at university. I don't play computer games and I don't watch movies. I do store photos and videos of my kids and music on iTunes. I also like browsing the net with numerous windows open, check email etc. I am really wanting long battery life as I do a lot of my work on the couch - not close to a PowerPoint. Would the air do the trick or will it soon be outdated as Apple move towards retina display? Both air and pro seem very thin  - almost the same? And not much difference in weight either so both very portable which is also a necessary requirement. Just can't help dreaming about that 12 hour claimed battery life. Any helpful advice/opinions, very much appreciated. Thanks

    It's not likely that you'll get 12 hours in reql life. Those benchmarks are set under very strict controlled conditions. Kind of like mileage per gallon claims on cars. If 16GB of ram is an option at all I'd highly recommend you get that. As far as storage 256GB isn't alot, consider storing some things on an external thunderbolt real

Maybe you are looking for

  • Question regarding free of cost order

    scenario: i have a client who wants to send 100 qty of good A free of cost to a customer. the customer is only responsible for taxes on this order. how would i do this in SAP? what do i need to create? thanks!

  • IBook to TV - how do you get good quality?

    I hooked it up my iBook to my TV using Apple's mini-VGA to S-video converter and the result was lousy - awful resolution, slow white lines periodically float thru the screen, and it made everything blurry. So I know this is not the answer. Is the com

  • Movie Inventory Management

    Movie Inventory Management Despite having computed for decades, I am very new to iPod and downloading music and movies. I understand that one cannot burn a DVD of a downloaded movie. Is that correct? So, what is the point of having the movie art if o

  • Serious Problem. Help!!!

    Hi. Im having some serious problems. Some of my programs refuse to load. None of the Microsoft Office programs will open. Omnidisksweeper wont load, nor will Windows Media Player. I used Microsoft Word this morning. Now nothing. I ran Monolingual and

  • ORA-31167: XML nodes over 64K in size cannot be inserted

    Hi there, we have just recently upgraded our database from 9i r2 to 10g (Oracle Database 10g Enterprise Edition Release 10.2.0.3.0). The following code was working fine in 9i but is now failing with the error listed in the subject of this thread. I a