Acquire encoder position with Motion and DAQ

Hi,
I am trying to acquire an encoder position with Motion. It seems impossible to set the frequency of the acquisition with Motion and I must poll for the position in a do-while loop.
I have read in a lot of threads that one can use RTSI lines to retrieve encoder position with a DAQ Board though it is acquired with a Motion board. But there are no examples at all about this.
To sum up, I need to send Encoder Phase A to RTSI0, Encoder PhaseB to RTSI1 (which I already do), retrieve info with a DAQ device and then calculate rpm.
Christophe
PS: please don't answer with measure angular position.vi or explain me in what this Vi can help me

Hi Christophe,
I'm not sure I understood well what you need. You have the angular position and you need to know the timing, am I right? Can you use an other counter on your card to get the period (or the frequency) of your signal? From that, I think you should be able to calculate the velocity.
I hope this helps,
Charlotte F. | CLAD
National Instruments France
#adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
>> "Du 11 octobre au 17 novembre, 2 sessions en parallèle : bien démarrer - approfondir vos connais...

Similar Messages

  • Pvc2300: false positive with motion detection

    Hello!
    I bought 3 pvc 2300 cameras. I tried motion detection with camera's software and with "Active webcam" software and I received a lot of false positive mails.
    1. with camera's software, I set event with motion detection & sent mail, but I receive a lot of mail when there isn't motion (I saw registrations and images)
    2. with Active WebCam software I use Linksys cameras and Panasonic Cameras. With Panasonic cameras all is ok. With Linksys cameras, about every hours there is a black frame, so I receive a mail from motion detection. Black frame arrive about every hours, after 60 minutes from last black frame. That is very strange!
    I changed sensitivity, check frequency, number of frame at second, but I have same problem.
    Can you help me?
    Thanks
    Mary

    I have 2 Panasonic cameras too and I need one software to manage all cameras.
    sensitivity: on active webcam software, I changed sensitivity of motion detection
    frequency check: on active webcam software, I changed from check motion every 0,1 second to every 5 seconds
    number of frame: on Linksys software I changed Max Frame Rate from 15 fps to 6 fps.

  • How can I create transparent animated  text with Motion and Final Cut Pro?

    Hi all,
    I am trying to replicate an effect that a previous video editor did in a project, but I can't contact them.
    They made animated text in Live Type, and saved it as a QT movie. When this text is placed over existing video in the FCP project, the text is "transparent", basically it acts like text created in FCP (You can see the background image behind the text, like through the middle of the letter "o").
    I have made some animated text in Motion, but when I save it as a QT movie, and bring it into FCP, the whole 1280x720 screen is covered by this movie, and I have to crop it so it does not cover the background image. It is all black except for the text. And of course the text is not on a transparent layer. Any ideas how I can create this effect with animated text? I've tried messing with transparency and overlay settings, nothing seems to work.
    Running latest version of Final Cut Studio...
    Thanks
    Dave

    Just bring the Motion (.motn) project into FCP and lay it over your clip.
    The QT you're exporting has to carry the alpha channel (animation codec, million+ colors), but don't waste your time/disk space with that. Just bring the motion project into FCP.
    Patrick

  • Working with Motion and FCP 6

    I have some footage of a presenter reading the news and i need to know the best way to create a lower third caption in Motion and incorporating it into my movie in FCP.
    So far i have created my lower third caption in Motion and then saved it as a template, when in FCP i then open the template and drag it into the timeline, but it was trial and error getting the lower third to position at the right place on the footage.
    Is there a better way ? should i edit my footage then export to motion and creae the lower third over the footage ?
    Help
    Hillster

    Do not worry, while you gain more experience in editing and motion graphics this non-issue will gradually disappear.
    However, there are several things you can try within FCP, one is to toggle on Image+Wireframe (FCP main menu>view) and swiftly reposition your lower third as you wish in the canvas by dragging the image center.
    g.

  • Some encoded files with subtitle and other are not

    I just encoded a few videos files with Nokia Video Manager. and all files b4 encoding are with subtitles(*.smi) in one same folder. I played encoded files and some results are with subtitles. (I didn't set up the video manager program to inserted the subtitles into final encoded files. also there is no option I can make insert subtitles in). and rest of files are not with subtitles. now I wanna make all files with subtitles. how make all files with subtitles?

    Short answer is I don't know.
    The way I get files with Subtitles is by Ripping the DVD with ImTOO DVD ripper, in the selections I select the audio track and Subtitle from the DVD to be used during the encoding. Then the resulting video has the subtitles built in.
    I can't get Nokia Video Manager to work reliably for me so I don't use it.
    640K Should be enough for everybody
    El_Loco Nokia Video Blog

  • Spectrum analyzer with sim and DAQ IV File

    Hello..
    i have a project that i need to design a Spectrum analyzer with simulation mode and DAQ option. ( so you can generate input signal from LabView and DAQ.
    all i look for is a modern Spectrum anlyzer VI file for reference and education purposes
    i know there are examples out there in LabView but, i need a modern one with a lot of options and features ( like Impulse respond, marker... filters.....)
    there is something i found here on the website, it happen long time ago, and some proffessor from Vietnam created such project. its not with DAQ, but its great for me.
    here is the link:
    http://digital.ni.com/worldwide/singapore.nsf/web/all/42B390E4624228D486257249001A5349
    this kind of Spectrum anlyzer looks great
    most appreciate for any help

    Hi Eldad,
    Thanks for posting and welcome to the NI forums!
    The
    application you have linked uses LabVIEW to control a Tektronix TDS220
    over RS232 (a.k.a. serial port).  The TDS220 has a 1GHz sample rate
    with a 100 MHz bandwidth--the specs on our DAQ devices don't go nearly
    this high, our High Speed Digitizers
    would be a better option if you need something comparable.  Also, the
    programming of the two devices (TDS220 vs. DAQ) is going to be quite
    different, so I am not sure how helpful the code from the link would be
    for your application.  I don't have access to the code or permission to
    post it here, but you could always try contacting the original author
    (his contact info is in the link you provided, not sure if it's up to
    date or not).  Again, I'm not really sure how helpful the code would be
    for you.
    You might want to take a look at the following example to see if it does what you need:
    NI-DAQmx: Benchtop Spectrum Analyzer
    There
    are also numerous examples that are installed with the DAQmx Driver to
    help you get started with the API.  You can access them from LabVIEW by
    going to:
    Help >> Find Examples... >>  Hardware Input and Output >> DAQmx
    There
    may not be a ready-made example that will do everything that you
    require, but the above should give you a good starting point for
    implementing the necessary features yourself.  If you run into any
    specific issues while trying to program, please don't hesitate to post
    to the forum and we'll be more than happy to help out.
    -John
    John Passiak

  • Photos with motion and transitions have jerky intros and fades

    Most of the time when I add a Ken Burns type motion to a photo and then as a transition or several, the playback has little hiccups in it at the start or end of the transition. I render the project and it's still there but not on every singe one. What is this? Sometimes I can fix it by re-motioning the image but that is soooo time consuming. This is simple stuff it should be smooth.

    Hi -
    It sounds like you are editing a photo to the timeline, programing your Ken Burns move, and then adding transitions to and from this clip.
    If that is the case, you must remember that adding a transition can use portions of the clip that proceed the in point of the clip, and follow the out point of the clip to make the transitions. So if you are commencing your move at the cut point, and you add, for example a Centered 30 frame dissolve at the cut to the clip, when the dissolve commences you will see 15 frames of the clip static, then clip going in to motion and starting the Ken Burns move you made.
    The same is true on the out point of the clip - you will need to keyframe the move in such a way that the motion continues throughout the duration of the transition you intend to use.
    Hope this helps.

  • Database usage with Motion and/or Shake

    Is it possible to create templates in motion that pull information from databases to fill drop zones? Since Shake uses c programming, can you merge a database with shake to create video content? For example, if you create a database and list in that database pics and text, can it be merged with Shake or Motion to create the video?

    Motion doesn't have this kind of option at least at the moment.
    Only thing that comes to my mind is that you can make database connections to Quartz Composer files and use those as generators in Motion through Noise Industries FxFactory Pro.
    Of course if you're coder you can also edit Motion files (which are XML) with any text editor and change your drop zones by hand. Actually I think there was/is some program which allowed you to modify/render huge amount of Motion templates with information coming from different sources.
    UPDATE: Okay now I remembered the product. It's Digital Heavens AutoMotion. No Idea how well it works but you can download trial from their site.
    http://www.digital-heaven.co.uk/automotion/
    Message was edited by: Tapz

  • Encoding problem with convert and CLOB involving UTF8 and EBCDIC

    Hi,
    I have a task that requires me to call a procedure with a CLOB argument containing a string encoded in EBCDIC. This did not go well so I started narrowing down the problem. Here is some SQL to illustrate it:
    SQL> select * from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    PL/SQL Release 10.2.0.4.0 - Production
    CORE 10.2.0.4.0 Production
    TNS for Solaris: Version 10.2.0.4.0 - Production
    NLSRTL Version 10.2.0.4.0 - Production
    SQL> select value from v$nls_parameters where parameter = 'NLS_CHARACTERSET';
    VALUE
    AL32UTF8
    SQL> select convert(convert('abc', 'WE8EBCDIC500'), 'AL32UTF8', 'WE8EBCDIC500')
    output from dual;
    OUT
    abc
    SQL> select convert(to_char(to_clob(convert('abc', 'WE8EBCDIC500'))), 'AL32UTF8', 'WE8EBCDIC500') output from dual;
    OUTPUT
    ╒╫¿╒╫¿╒╫¿
    So converting to and from EBCDIC works fine when using varchar2, but (if I am reading this right) fails when involving CLOB conversion.
    My question then is: Can anyone demonstrate how to put correct EBCDIC into a CLOB and maybe even explain why the examples do what they do.

    in order to successfully work with xmldb it is recommended that you use 9.2.0.4
    and above. Its seems to have lower version.
    Okay now related to the problem , if your data that you want to send to the attributes are not greater than 32767, then you can use the pl/sql varchar2 datatype to hold the data rather then CLOB and overcome this problem.
    here is the sample. use function with below pl/sql to return the desired output.
    SQL> declare
      2   l_clob     CLOB := 'Hello';
      3   l_output   CLOB;
      4  begin
      5    select  xmlelement("test", xmlattributes(l_clob AS "a")).getclobval()
      6      into l_output from dual;
      7  end;
      8  /
      select  xmlelement("test", xmlattributes(l_clob AS "a")).getclobval()
    ERROR at line 5:
    ORA-06550: line 5, column 44:
    PL/SQL: ORA-00932: inconsistent datatypes: expected - got CLOB
    ORA-06550: line 5, column 3:
    PL/SQL: SQL Statement ignored
    SQL> declare
      2   l_vchar     varchar2(32767) := 'Hello';
      3   l_output   CLOB;
      4  begin
      5    select  xmlelement("test", xmlattributes(l_vchar AS "a")).getclobval()
      6      into l_output from dual;
      7    dbms_output.put_line(l_output);
      8  end;
      9  /
    <test a="Hello"></test>
    PL/SQL procedure successfully completed.

  • Encoding issue with Chinese and Japanese characters but not for Korean

    Hi All,
    I am dealing with the problem below and have tried a lot of options to correct this. Could anyone help me resolve the issue?
    Some japanese text is returned to my jsp from SAP, the text looks like ‚P‚T“ú’÷“–ŒŽ––Œ»‹à .
    When I manually set the encoding of my browser to Shift-JIS, the problem is resolved and the text is seen as &#65297;&#65301;&#26085;&#32224;&#24403;&#26376;&#26411;&#29694;&#37329;
    However, I set my response.setContentType as Shift-JIS, the browser automatically selects the encoding as Shift-JIS, but my characters get displayed as ??????
    I had a similar problem with Korean characters, and I used,
    decodedString = new String(strToBeDecoded.getBytes("iso-8859-1"),"EUC-KR");
    It worked and I did not have to use the setContentType method of servlet response. This code however does not work for either Japanese or Chinese characters.
    Please let me know, if there is anyway of getting the characters right on the screen.
    I am using Sun Java Application Server 8.1.
    Thanks,
    Priya

    Get rid of legacy character encodings and just use UTF-8 all the way.
    Read this to learn more: [http://balusc.blogspot.com/2009/05/unicode-how-to-get-characters-right.html].

  • Image positioning with table and css?

    Hi please look at the following link to see my problem
    http://www.stefanlesik.com/csg/traditional-designs.htm.
    I am trying to position a list of photos with details of dimensions
    and reference number below each. I have set up a table with 2
    columns but I cannot position the images inside the cells
    correctly. I've also tried adding an image style to each with
    padding etc but this does not work. I'm sure there is a simple
    solution. Any other comments about the design of the site would
    also be very welcome. Thanks in advance

    You need to add valign="top" to your cells in that table.
    <td height="0" width="265" valign="top">
    Also your first image is wrapped in a <p> tag. The
    second is not. That is why you will see extra space at the top of
    the first one. You can also delete all of the height="0" that you
    have through out your code.
    J

  • Bought computers with motion and final cut on it. Is there any way to to upgrade without the password?

    Bought computer with software on the computer don't have password. Is there anyway to upgrade?

    Probably one of those craigslist ads.
    Guys take a computer, pack it full with stolen software, and then charge more than the computer is worth.
    But: no upgrades, no support. And you'll never know if there's not some malware, spyware somewhere.
    I wouldn't want to work with such software.
    It's really the best to wipe the drive, and only use your own software. Charge it under "experience".
    And it's only $50...

  • Motion and Field Order Stupidness

    I'll try not to rant too much.
    But what is up with Motion and working with DV NTSC video with fields? I have had nothing but headaches. I am a long time After Effects user, and I was glad to get Motion 2 (2.1.2), but I've just spent the last hour and half trying to get it to render DV NTSC video correctly without it getting field jitter on a project that needed to be over-nighted to go on the air. And it still doesn't look totally correct. (I'm not a happy camper)
    Here's the deal, I took DV captured footage from FCP using the standard DV/DVCPRO - NTSC preset I've used forever. That footage was imported into a Motion project that was using its own NTSC DV project preset (all lower fields -even). But every time I'd play it back in Motion, or render it out (still using the NTSC DV render preset), I get serious field jitter on DV output.
    Eventually I found under the Inspector-Media tabs that the footage was imported as Field Order- None (why I have not a clue). So I changed all the footage to Lower (even). That worked on any footage where size, rotation, or position was not changed. If any of those attributes was changed I get the field order jitter. It seems to me that Motion is not able to render out field ordered video properly and the quality looks poor or jittery.
    Now that might seem hasty to say that, but I've been doing the same thing in AE for years, never having to change the imported field order to get it to look right and I have always captured, imported, work with projects and rendered using the QT DV/DVCPRO - NTSC presets.
    Can someone help me because I can not believe I've had to change so many setting to try to get video to look right from Motion while using the same settings during the entire workflow.
    Thanks, and sorry for the rant.
    PowerMac Dual 2.0 G5, PowerMac Dual 1.42 G4, iBook 800 G3, Mac mini 1.42 G4   Mac OS X (10.4.7)  

    Hey, thanks for the replys.
    [....you might want to try using the animation codec..millions of colors...]
    I gave that a shot this morning, and I'm having the same problem. See what's going on now is after changing the Field Order to even for the footage media, all of it looks decent except for the ones on an angle, croped or resized and I see this in both Motion's preview and the final render when I play it back in FCP. So as per your suggestion I rendered with the animation codec (filed rendering) and it still has it. Its just odd to me that it does that, like I said before I've worked in the DV/DVCPRO - NTSC codec with FCP and AE for years with no quality degrade. The reason I have always do that is that's what I capture to and that what my FCP project is so to keep it all consistant. BTW, this is going network and cable, no different than I usually do.
    [...are you enabling field rendering in the Canvas or in the export settings?]
    Yes I am, sorry, I should have pointed that out. I have done combinations of different QT codecs with and without field rendering turned on to see different results. None of course resolves this issue.
    Thanks
    PowerMac Dual 2.0 G5, PowerMac Dual 1.42 G4, iBook 800 G3, Mac mini 1.42 G4   Mac OS X (10.4.7)  

  • Recording Flash with iShowU and importing into FCP?

    I need to create some motion graphics for a video, though I am not good enough yet with Motion and would like to use Flash. I am wondering if there are any issues with creating my project in Flash, playing it back and recording it with iShowU and just bringing it into my FCP project this way. It seems like it should work fine, just want to see if there might be anything I am overlooking?
    Thanks.

    I"m not slamming iShowU. It's great, and it's easy to use.
    I would just choose graphics built using Motion over graphics built using Flash and then iShowU, the quality will be significantly different. But that's my opinion and depending on your final destination (like a podcast for instance) you may be better off going your direction. With regard to audio though, be aware that iShowU compresses audio using AAC.

  • Combing Keynote, Motion and FCP. Best Strategy?

    Ok Im trying to do a project where Im using Keynote content, Motion content and FCP content.
    My final screen delivery will be on a flat screen plasma monitor with a native resolution of 852 x 480.
    I am going to be playing this back as a looping Quicktime movie from a Mac to the plasma screen. The screen will be functioning essentially as a computer monitor.
    The piece will only be about 3-4 minutes max run time.
    The video I've shot is standard DV resolution: 720 x 480.
    I am building the whole project at 852 x 480 so I dont have to scale up the video to fit the final screen size vertically.
    I was intending to piece it all together in Motion.
    (Exporting Quicktime renderings from Keynote and Final Cut at high resolution and placing them on the timeline in Motion...)
    Now, with Motion and FCP's ability to transfer files back and forth, am I using the best strategy? Should the whole thing be assembled in FCP? Or is Motion just as good for assembly.
    (I want to use Motion because I find it's interface way easier to push around than FCP and much less cryptic...)
    Is there any slicker way to bring in Keynote material than to do the exporting to Quicktime thing?
    Any advise I could get from all you motion gurus out there would be greatly appreciated.
    Thanks.

    Well after actually starting in on the real construction of this project it has become very obvious it must be assembled in FCP.
    Now that I have resolved myself to that fact, I have a few issues:
    I've exported all my Keynote stuff in Animation Codec.
    Is that better than H.264? (Seemed to be slightly sharper on type edges)
    I tried setting up the sequence to have H.264 compression but it refused to accept any imports.
    I changed it back to NTSC DV Codec and it accepted to imports no prob.
    Must all FCP projects use DV codec?
    You cant tell them to use a different compression system?
    (This is one of those areas of FC that I find utterly mysterious.)
    When I bring the Keynote clips into my FCP document, they look crunchy.
    And they stumble on playback.
    Is that just temporary in the editing environment.
    The video plays back pretty clean...
    Can I get all the files to play back cleanly in FC as Im working on them?
    Will the compression used in my sequence be ignored upon export to the Final Quicktime?
    And what's the deal with the frame rates on the Keynote files.
    Even though I specified 29.97 on export, when I get info on the files theyre all over the place (20fps, 24fps...)
    Is that a problem?

Maybe you are looking for

  • How to use R & R to backup to an external USB HDD?

    Greetings, I have two Lenovo Workstations and one is Desktop and other is Thinkpad and I would like to have it backed up to a single 1TB External HD and I cannot seems to backup both of them on single External HD. It seems that it does not work with

  • At Exit-command  not working

    Hi experts. I am working on At Exit command and in my screen i have field validation and i have coded AT EXIT COMMAND in my PAI to execute when we exiting BACK/CANCEL/EXIT. I have taken Function type as "E' in GUI. but too i am not able to exit witho

  • Has anyone had a problem with low battery capacity on the 6th gen ipod nano?

    I got my dad a 6th gen Ipod nano for his birthday and he is complaining about very low battery power and i was wondering if other nano users were experiencing this problem

  • Replay error with new iTunes

    I just downloaded version 7.0.2.16 and I've connected my Nano to my laptop to play music directly from the ipod through my satellite speakers while I charge my nano. The problem I'm having is that iTunes will play one song, and then the next, and the

  • "Burn" Is Not Applying CD Name

    Hi, When I burn my CD from Waveburner 1.5.1 the CD name ends up being "Audio CD". I've filled out all the Disc Options and Mastering Notes. When the CD is in my computer drive it should show the title of my CD not "Audio CD". It's two CD's so I need