What is the most Frames Per Second NI-CAN can do?

My goal is to send 1000 Frames per Second on my CAN bus using the NI-CAN PCI 2 slot card I have.  However the closest I have been able to do is 666 frames per second.  This is sending 8 frames every 12 MS using an edited readmult example.  Is there a way to do this with writemult?  Or is there a hardware limit that I am trying to go past?
What can I mess with to get more frames?  Increase Baudrate?  Decrease the size of the frames?  (I've tried both of those)
Other questions that should probably go in other posts  (Frame API):
Is there a way to send/read the frames at the bit-level?  I have found ways to manipulate Arbitration ID, Remote Frame, Data Length, and Data, but there are several other bits in a frame.
Is there a way to send a bad frame, one that would raise/cause an error frame?

Yes, I did break 1,000 Frames Per Second.  I got up to 1,714 and 1,742 using two different methods.  This is at 250 kbps, if you used 500 or 1 Mbps, you could get more frames.  If you have 125 kbps, you might not be able to break 1,000 Frames per Second.
ncWriteMult is the key.  You can load 512 frames in a queue at a time.  I would put 256 on at a time and check to see if there was less than 256 frames left in the queue and if there was, load it up, that way the queue would never be empty.  I went about it 2 ways, one was using ncGetAttribute to determine space left, and that got the faster method, however, I was also trying to read the messages to verify that it worked, and I had problems with logging every frame.  It would also send the first 40 ncWriteMults quickly, as if the queue it was filling was much larger than 512.
The other way, was using trial and error to determine how many MS to sleep before writing the next batch of 256 frames.  There are variables outside of my control that determined the time it would take and it would vary a few ms.  I wanted a stable environment that could send forever without filling the queue so I went with a value that would wait 2 or 3 ms, depending on conditions before writing again.  The value I used was 142 ms, I think.  Your Mileage May Vary.
There is also a way to do some error handling that I did not try to utilize.  Instead of the process crashing, there is a way to tell it to wait if this error is returned.  That might be the best way for me to implement what I wanted to do, but I was assigned another task before I tried to get that to work.
There is a timing element in ncWriteMult's documentation I didn't look into very much, but that would space the frames out and could send 1,000 frames a second evenly distributed, instead of sending them as quickly as possible, wait some ms then send another batch.
If anyone could link us, or provide some code snippets of the error handling, or proper usage of ncGetAttribue, or some way to read faster, that would be greatly appreciated.

Similar Messages

  • What is the most advanced version of ACR that can be used with Photoshop CS5?

    What is the most advanced version of ACR that can be used with Photoshop CS5?
    Will it open RAW files from a Canon 5D Mark III ?

    CS5 can use up to ACR 6.7.1.  CS6 started with ACR 7.0.
    The 5D Mark III was first supported with ACR 6.7.
    ACR 6.7.1 can be downloaded from the Camera Raw Mac and Win links on the Adobe Download page:
    http://www.adobe.com/downloads/updates.html
    References:
    http://helpx.adobe.com/x-productkb/global/camera-raw-compatible-applications.html
    http://helpx.adobe.com/creative-suite/kb/camera-raw-plug-supported-cameras.html

  • I have a mac powerbook g4 power pc processor, OS 10.5.8. what is the most current version of firefox i can use? i currently have 2.0.0.9 and am unable to auto or manual update

    i have a mac powerbook g4 power pc processor, OS 10.5.8. what is the most current version of firefox i can use? i currently have 2.0.0.9 and am unable to auto or manual update edit

    It was in the release notes for version 4 IIRC

  • Video chats get only 1 frame per second on my friend's macbook.

    Hi.
    My friend has a macbook, and whenever she video chats anyone, the video will only change 1 frame per second after 10 seconds in the video chat. Like the first 10 seconds, she`ll get 30fps but then after 10 - 15 seconds, it'll go down to 1 fps. It's not just with me either, its with all people I know its not her connection because her video isn't blurry at all, its crystal clear, but theres just the 1 frame per second. Her photobooth works fine and all, however. IT's a brand new macbook, fresh from apple.

    Tell us every single add-On for iChat and the computer as a whole you have please.
    Spirited Away causes the App in Use's Icon to be displayed as your Buddy Pic.
    Lotus Notes can cause the slow down you are seeing.
    So Can not Updating iChatUSBCAm when you upgrade to Leopard.
    There are others
    like Folding@hoem
    Seti Screen Saver
    Bionic (Maybe spelt Bionix)
    9:52 PM Sunday; February 24, 2008

  • What is the most current iweb version I can use to maximize my capabilities?

    I have G5 a power pc running 10.4.8 because of final cut issues - what is the most current version of iweb I can use to maximize my capabilities? i have it right now and can only host one site in it, etc. (though I build multuiples)
    brent

    The latest version of iWeb you can run with 10.4.9 is iWeb 2.  iWeb 3 requires Leopard, 10.5.8 or later.
    OT

  • How to find the frames-per-second of a Quicktime movie using Applescript?

    Is there a way to find out the real-time "frames per second" of a Quicktime movie?
    The only Applescript movie properties in Quicktime which I have found to be useful are "duration" and "time scale". The real-time duration of the movie in seconds is found by dividing "duration" by "time scale".
    But "time scale" only sometimes relates to any real time property. In some cases it does (2500 = PAL 25 fps, 2997 = NTSC 29.97 fps) but for many other movie types I've opened (DivX, flv, mp4 etc) the "time scale" is often reported as "600" even though the Quicktime movie inspector window will report a frame rate of 25, 29.97, 15 or some other number.
    Where does the Quicktime movie inspector window extract the FPS from, and is it possible to extract that same number, or calculate the real-time FPS of a Quicktime movie using Applescript only?
    Thanks.

    Thanks for this but unfortunately it only works for some movie types. For .dv .flv and .divx movies, this script correctly calculates the FPS. But for .mpg .mp4 and .m4v it does not.
    For .mpg movies I tested, the count of frames was always 1, so clearly the FPS calculation is always wrong.
    For the .mp4 and .m4v movies I tried, the FPS was always reported as 43, regardless of whether the actual FPS was 25 or 29.97. In all cases the count of frames was incorrect.
    A bug in Quicktime?

  • Calculating Frames Per Second Accurately

    I tried searching the forums for suggestions or code used to calculate FPS accurately... But was ultimately unsuccessful.
    I think I have a pretty basic understanding of how it works... but I'm still left wondering if there's a better... or correct way of attacking the problem.
    What I started out doing is taken a pre-cycle time sample using System's currentTimeMillis method, followed by the main parts I'm executing in my program and then took a second time sample. I subtracted the post-cycle from the pre-cycle to get the time... and it occurred to me that the currentTimeMillis is not exactly reliable. As it says in the API, "For example, many operating systems measure time in units of tens of milliseconds," when discussing that method.
    I then noticed the nanoTime method and decided to use that.
    It quite honestly seems to work perfectly for what I'm trying to accomplish.
    I pretty much used the same steps as before.
    But now my problem is that I want to limit the amount of frames per second to 60.
    I decided that I should try using the Thread class's sleep(long millis, int nanos) method.
    It seemed like it would work... but to my dismay, it did not.
    The milliseconds, for the most part, were correctly timed... but still not always. The nanoseconds even less so... but I knew that the nanoseconds would be less reliable-I decided to use microseconds. Using microseconds doesn't even work that well.
    So I wondered if there was an even better way... maybe a more 'manual' approach to fixing my problem.
    I would greatly appreciate any input/knowledge on the matter.

    its quite simple. Windows has an API call that can set the timer precision (its all based on some interrupt interval - I forgot the precise details). This precision is system wide, so if one application does it it is immediately active for all other applications running at that time. Applications can only lower it, so if you set it to 1ms then some other application cannot force it to 5ms for example.
    Now here comes JVM bug number two.
    As said the interval differs per system - sometimes it is 10ms, sometimes it is 15ms. The JVM wrongfully assumes it is always 10ms however. Do a test: try to sleep for some time that is a multiple of 10 (without the long running thread hack active); you'll find that the precision still sucks. That is because in this specific case the JVM does NOT change the system wide timing precision. But if you sleep for any number of milliseconds that is not a multiple of 10 it will actually temporarily set the precision to 1ms.
    So the rule is: as long as one thread goes to sleep the precision is set to 1ms. When the last sleeping thread wakes up, it is reset to what it was. Then it also doesn't matter for what amount of time you make your real thread sleep as the long sleeping thread will not be sleeping for an amount that is a multiple of 10, thus forcing the precision to 1ms.
    Now say that you don't do the long sleeping thread hack and you make your own thread sleep for say 9ms, switching to 1ms precision temporarily. This behavior makes it so that sampling the passed time (before and after sleeping) can be imprecise; you'll find that most of the time you'll get sampling that matches the number of milliseconds you slept and sometimes it jumps to 10/15ms depending on the granularity of your system. This is a concurrency problem; sometimes the precision is reset before you get a chance to sample the current time.
    So to recap to give 100% accuracy with System.currentTimeInMillis(), you need to keep a thread sleeping at all time so the precision stays at 1ms.
    And then finally we come to bug #3, which is a problem in Windows itself: rapidly changing the precision (which happens when you make a single thread sleep for short intervals) can screw with the system clock. I don't know if this problem still exists in later iterations of Windows, but it is again a reason to do the long sleeping thread hack. Because this is a known issue I still call this a bug in the JVM because of the way they implemented the precision timer activation, which can trigger the problem in Windows. The command line switch mentioned in the above bug report SHOULD have fixed that... but you know, facepalm bug #4.
    But at the end of the day: even if at least 4 bugs can be named regarding precise timing in Java under Windows, the root of all evil is still the way timing is implemented in Windows itself making life too difficult for the poor JVM devs. What were the MS devs thinking at the time?

  • Very Poor Frames Per Second on MSI 661FM2-LSR

    Ok this new motherboard that i purchased has a onboard graphics SIS 661fx now my old motherboard the MSI ProSavageDDR P4M266A has also an onboard chip however it allowed me to play HL2 with 32mb of shared memory off my 512MB ram the graphics werent to good but i could play fine 
    Then i had a 5200fx which was a major improvement however when the old board blew that blew aswell
    Now i have got this new board and tried playing half life 2 and it has 3-15 frames per second (which makes the game sluggish as heck) but on half life 1 it has 71+ frames per second
    i know onboard isnt that good but it should at least let me play my games
    My old motherboard link (that allowed me to play half life 2) >> http://msicomputer.co.uk/Products.aspx?product_id=703551&cat_id=77
    My new motherboard link (wont allow me to play half life 2 to a decent standard) >> http://msicomputer.co.uk/Products.aspx?product_id=703553&cat_id=77
    Can anyone please help 
    Thanks 

    One thing to keep in mind is MSI doesn't make the chipset that your board uses. That is done by SIS. If the performance is lower then what you expected then it can only be attributed to SIS.
    The best thing for any gamer, especially one who wants to play Half-Life 2 is to get an AGP graphics card. The performance jump is huge. Then the higher the quality of the graphics card the higher the performance of the game. Then you can start getting the eye-candy that makes Half-Life 2 so worth playing. As far as not purchasing MSI, that is fine. None of us get a commision or any benefits from you purchasing MSI. I personally got a built by ATI 9800 Pro (which I absolutely love). One thing to keep in mind though is ATI doesn't have any better support than MSI and I have yet to find an ATI forum. Sure there are plenty of forums out there but none are ATI specific, which I really wish existed.
    I think we all understand your frustrations as computer problems are what brought most of us here in the first place. Just remember, we have no way of knowing what is going on with the MSI Support department. All we do is try to help out users who have run into problems and don't want to go through the hassle of going through tech support. Don't see this as me flaming you. I am merely trying to open your eyes to the reason Danny did what he did. None of us like to see the products we support day in and out (free none the less), get bad mouthed by users who are having issues.
    Good Luck
    Jeremy

  • Final Cut Pro X Image Sequence Export missing frames per second option?

    I am using the trial version of Final Cut Pro X.  I can export an image sequence but it will only allow me to do so at 30 frames per second -every single frame! 
    So a 10 min movie takes half an hour to export 20,000+ frames that no one on earth has time to look thru.
    In my old Final Cut Express I was able to choose 1 or 2 frames per second, which was just right.
    What am I missing?
    Do I need to buy Quicktime Pro or Compressor to allow me to export image sequences without exporting every frame?
    Why would Apple even have an image sequence export if it only allows you to export every frame, or it that only in the trial version?
    Thank you

    I found a free option for you, if you don't already have Compressor 4.
    In FCPX create your movie. Then SHARE as a Master File.
    Get MPEG Streamclip, which is a free app available here.
    http://www.squared5.com/svideo/mpeg-streamclip-mac.html
    Drag your Master File into MPEG Streamclip.
    In MPEG Streamclip, select FILE/EXPORT TO OTHER FORMATS.
    In FORMAT: choose IMAGE SEQUENCE
    In OPTIONS, choose your frame rate.

  • Trying to find a camcorder that records in 60 frames per second and will upload onto  ipad2 through camera connector

    Trying to find a camcorder that records in 60 frames per second and will upload onto  ipad2 through camera connector

    Old forum discussion, message now gone, but here's the summary
    Matt with Grass Valley Canopus in their tech support department stated that the model 110 will suffice for most hobbyist. If a person has a lot of tapes that were played often the tape stretches and the magnetic coding diminishes. If your goal is to encode tapes in good shape buy the 110, if you will be encoding old tapes of poor quality buy the model 300
    Both the 110 and 300 are two way devices so you may output back to tape... if you don't need that, look at the model 55
    http://www.grassvalley.com/products/advc55 One Way Only to Computer
    http://www.grassvalley.com/products/advc110 for good tapes, or
    http://www.grassvalley.com/products/advc300 better with OLD tapes
    Or
    ADS Pyro http://www.adstechnologies.com

  • Feature request: Frames Per Second info for clips / Warning when exporting

    I know that this may not be the right place to post, but I think many of us users would agree that this feature would be useful in iMovie. Especially for new users who are not even familiar with terms like "frame rate".
    Let's assume you import a video from your digital camera. You are not an expert in this field, so you edit the video in iMovie. Then you export it using QuickTime. The final video is jerky... and this can be due to incorrect frame rate settings.
    It would be nice if iMovie provided some warning if you are trying to import video at a different frame rate setting than your original video source. Just a pop-up saying "Your video was recorded 29.97 frames per second (FPS) and you are trying to export it into 25 FPS. This can cause some playback issues."
    Maybe even suggest the correct frame rate setting for the export. Apple's software is always trying to make things easier. I think regular users do not even know about "frame rates", so it might be a good idea to warn them.
    Also, how can you tell what FPS are your sources in iMovie? There is no way to tell what FPS was the clip recorded in. To find out, you have to go back into iPhoto, then drag the clip into QuickTime and only there you can select "Get Info" and find the recorded FPS for the specific clip.
    This seems like a lot of trouble to go through, just to find out a very basic information about the clip.
    I would like to see some functionality like this added to iMovie. I think many of us users would welcome this feature.
    What do you guys think?

    Click iMovie/Provide Feedback. That will send your enhancement request to the developers.

  • Frames per second vs timecode

    Small question
    How do I get the frames per second indicator at lower left of canvas to show timecode instead?
    I have looked all over for what is probably staring me in the face.
    cc

    Preferences > Project > Display Time As, change it to "Timecode". Or, just click on the little stopwatch to the left of either the current time, or the duration.

  • Laptop editing with Premiere Pro CS4: what are the most important specs

    Laptop Editing: What are the MOST important specs?
    Hello everybody, I have been a long time lurker, but I decided to join in and share my voice.
    I've been editing, for a while now, various projects of various lenghts shot on my HV20, on an IMac using Adobe Premiere Pro. Actually, I bought the CS4 Extended Production Suite last year  thinking that it made sense to be able to edit, do the coloring and effects+ sound all within the same suite.
    AND, it came with OnLocation, wich is, I think, a fantastic tool. I really want to be able to record and monitor my future shoots using OnLocation. I've seen how useful monitors and scopes are on set, and the idea of being able to shoot in HD and actually checking the focus on something larger than a few inches is very appealling!
    So a laptop is in my future. Now, what are the most important specs?
    I could buy 1) a barely used Macbook pro early 08- 17" HD led display ,4g Ram ddr2 ,nvidia 8600M GT 512 VRAM ,800Mhz BUS, 200G 7200HD
    and have enough money left to buy an Apple Display 30" refurb
    OR 2) a new Macbook pro 17, 4 g Ram ddr3, 512 VRAm, 4g Ram ddr3, double procsessors 9400M+9600M GT 512 VRAM, 1066 BUS, 500G 7200HD
    and wait for a second display!
    Plus, of course, a portable External Scratch Drive on the Express Card. Now, if that fast drive is handling the footage, could'nt I settle for a 5400HD in the laptop,, they seem much less prone to problems-clicking noise, heat-than the 7200, especially in the new unibody model. Is 800 versus 1066 BUS a terrible trade-off? In terms of secondary displays , I've heard less than lukewarm things about the new Apple 24 LED (glossy is no-no for me).
    My intentions are to make documentaries and short fictions as well. I make a living as an actor so I don't need to be performing as a director/editor business wise!
    I do want to explore that side of the craft, in a professional and enjoyable way though. I know that, in addition to the laptop, I will get a MacPro in a few years.
    Thanks a lot for the inputs!

    Successful video editing (as compared to tear your hair out video editing) requires at least two hard drives... one for all software and one for all data... some people use 3 drives, with data on one and scratch files on the 3rd drive
    I'm not sure about software, but everything I've ever read in this forum says 5400 is NOT fast enough for the data drive
    If you want to edit video... you have to buy the hardware that works

  • Laptop Video Editing: What are the MOST important specs

    I've been editing, for a while now, various projects of various lenghts shot on my HV20, on an IMac using Adobe Premiere Pro. Actually, I bought the CS4 Extended Production Suite. It came with OnLocation, which is, I think, a fantastic tool. I really want to be able to record and monitor my future shoots using OnLocation. I've seen how useful monitors and scopes are on set, and the idea of being able to shoot in HD and actually checking the focus on something larger than a few inches is very appealling!
    So a laptop is in my future. Now, what are the most important specs?
    I could buy 1) a barely used Macbook pro early 08- 17" HD led display ,4g Ram ddr2 ,nvidia 8600M GT 512 VRAM ,800Mhz BUS, 200G 7200HD
    and have enough money left to buy an Apple Display 30" refurb
    OR 2) a new Macbook pro 17, 4 g Ram ddr3, 512 VRAm, 4g Ram ddr3, double procsessors 9400M+9600M GT 512 VRAM, 1066 BUS, 500G 7200HD
    and wait for a second display!
    Plus, of course, a portable External Scratch Drive on the Express Card. Now, if that fast drive is handling the footage, could'nt I settle for a 5400HD in the laptop,, they seem much less prone to problems-clicking noise, heat-than the 7200, especially in the new unibody model. Is 800 versus 1066 BUS a terrible trade-off? In terms of secondary displays , I've heard less than lukewarm things about the new Apple 24 LED (glossy is no-no for me).
    My intentions are to make documentaries and short fictions as well. I make a living as an actor so I don't need to be performing as a director/editor business wise!
    I do want to explore that side of the craft, in a professional and enjoyable way though. I know that, in addition to the laptop, I will get a MacPro in a few years.
    Thanks a lot for the inputs!

    CPU, RAM, bus speed, system HD, external HD, graphics - basically in that order
    You should think in terms of purchasing for maximum future use. In that regard the new 17" MacBookPro is the way to go. The specs are significantly better than the early '08 MacBook and you will be much happier in the long run with performance, software support and longevity.
    If you really need a large display, consider a 24" Dell, HP, NEC, etc. in the $200-$300 price range to stay within your total budget. You will be pleasantly surprised how good they are.
    You could start out with the 5400rpm system HD - you can replace it anytime with a 7200rpm drive if necessary for hardly any more $ than it would cost in the first place; and replacing it does NOT void your warranty. But you WILL want/need a good external FW800 or eSATA drive (for eSATA you will need an eSATA expressCard/34 however) no matter what.
    One other thought, if your primary use will be with an external display, and you don't actually need eSATA capability (FW800 will do you just fine at this point), then the 15" 2.66GHz or 2.8GHz MacBookPro models will be just fine at a significantly lower cost than the 17" model.

  • What is the most efficient (in terms of cost) way to transfer 35 mm slides to my iMac hard drive?

    What is the most cost efficient way to transfer 35mm slide images to my iMac hard drive?

    This gives you the basics
    http://www.tech-faq.com/how-to-copy-slides-to-disk.htm
    The first option, the professional one, isn't the cheapest - but the results should be good.
    The second option is very appealing. Some printers come with brackets that can be used to scan film or slides.
    The third option is a slide scanner. I haven't used this option, but there's a significant startup cost of under $100.
    In short, a scanner is the cheapest and most efficient option.

Maybe you are looking for

  • IPod Touch 3.1.3 1G no volume bar.

    does anyone has this problem? i plugged in earpiece, reset everything,restore to factory setting,tried everything but still there is no volume bar appearing! There is a very very soft volume but its really depressing you can't adjust the volume!

  • Using XSL-XML template to convert name value pairs into XML elements

    Hi, I have a xml document in the format: <?xml version="1.0"?> <body title="Mr" firstName="Joesph" middeNames="George Harry" lastname="Smith" countrycode="GBP"/> I need to convert this using a XSL-XML template in BI publisher to return XML in the fol

  • My CameraRGB profile is gone.  how do I get a new one ?

    Took some bad online advice and now I can't get it back. photos are bizarre same problem with iMAC/Tiger until I was able to load the Canon 7D ICC profile directly from the camera but apparantly the firmware on the camera hadn't been updated and I co

  • Passing context value to Popup Window

    Hi, I am having a list of Sales Order numbers in a table.  And if any one of the SO is clicked then a popup have to show its item details with in a table. I am having the values of item list in the main view context and how to pass this data to the p

  • How to access oracle cursors using jdbc (expecting ur earliest reply)

    Hi All, can anyone help me out by giving me an idea or sample code in accessing the cursors that are defined in the oracle... i have to access those cursors using java... Thanks in advance for your reply and time.... Ragu