Asynchronous serial com with DAQ6034E

Hello,
I am a new CVI programmer, and i would like to submit a problem.
I use a DAQ6034E card with LabWindows/CVI. I would like to communicate with devices via an asynchronous serial bus. Is it possible to do such a thing with a digital I/O, and how can I do (especially for reception) ?
Thank's for your help !
Franck...

Frank,
You could use the DIO lines on the 6034E. But keep in mind the limitations of the DIO lines on this card. These DIO lines are programmed IO only. That means, that data transfers (in or out) can only be done via software timing. You cannot do any hardware timing on the DIO lines for this card. If you need hardware timing on this operation, you will need to use a DIO card.
But, if you can work with only software timing, you have the advatage in this card of being able to configure line direction on a line by line basis, which I think can be very beneficial in serial communication.
Nick W.

Similar Messages

  • Asynchronous serial input with an sbRIO FPGA

    Background:
    As part of my capstone project, I'm trying to read data transmitted serially from an IMU. The host is an sbRIO 9602.
    As far as I'm aware, the protocol is not exactly standard: data is sent asynchronously in packets. Each packet consists of 12+ bytes in immediate sequence, each having a start and stop bit, and then the line goes idle [high] until the next packet. Each data byte is preceded by a frame bit, and only contains 7 bits of actual data, so the packet has to be further processed to get actual useful data.
    I've seen the FPGA serial I/O example program floating around. The code I inherited was actually based on it, but it's overly complex for this application, and I'm not convinced it would actually work for this protocol at all. I couldn't get it to work, at any rate. I rewrote the sampling code in its entirety twice trying to get it to work, but haven't made a lot of progress. -On the bright side, the current VI is much simpler and more straight forward than my first attempt...
    The problem:
    I can read the first 70 or so bits of a packet fine, then the program skips a bit. That throws off the start/stop bits, and basically renders everything after meaningless. In this screenshot the data is as read in, in order from top to bottom:
    I'm fairly certain this means my sampling interval isn't perfect [this suggests about 1.4% too long], but I'm totally stumped on how to avoid it. What's worse, this is actually on the lowest possible output setting from the IMU, 2400 baud. Realistically, we're hoping to have it working at either 230.4k or 460.8k baud.
    The prior version of my code had the packet being read in 10-bit [1 byte] chunks, processing, then reading the next chunk. I encountered exactly the same error. I assumed that having too much code in the sampling process was causing the timing to be thrown off, so I changed it to read off the entire packet into a bit array and then process it afterward [while no data is coming in]. I've attached this version of the code for reference. It's cleaner, but no change as far as the error is concerned.
    Am I correct in my evaluation, or is there something else going on? More to the point, is there a way of fixing or working around the problem so that I can get reliable samples [even at 100-200x the bit rate]?
    As an aside, I've only been working with LabVIEW for a couple weeks; please tell me if I'm using poor habits or doing anything incorrectly.
    Any help will be immensely appreciated. Thank you.
    Attachments:
    IMU_serial_in.vi ‏61 KB

    Hi Ryan,
    I have a suggested methodology, but I don't currently have any example code to share that would get you started.
    The challenge you have is even if you sample at the exact right baud rate of your incoming signal, the phase of the FPGA clock will not be exactly the same as the source signal.  Now complicate that with your sample frequency and baud rate will always be slightly different, and you will get the sampling drift effect you described where data eventually is clocked in wrong.  On short transmissions, this may not be a problem because the sampling can be re-aligned with a start bit, but for long, continuous streaming, it eventually fails as the sampling and source signals drift out of phase.
    I would suggest over-sampling the DIO line, using a debounce filter if necessary, and use a measured time between edge detections to constantly adjust your sampling period and phase to keep your sampling aligned with the incoming data.
    The proposed LabVIEW code I imagine would be a single-cycle timed loop based state-machine.  Essentially the state machine could detect edges that occur near the baud rate you expect to receive, and then would adjust the sampling period to ensure you are sampling the data inbetween transitions while the incoming waveform is stable.
    With this method running at 40MHz, you would essentially have ~43 clock ticks/samples of each clock cycle at 921.6kbps, and you should be able to pull out the right samples at the right time in the waveform.
    Hope this helps, and if I find a good example of this, I'll send it your way.
    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...

  • I recently purchased CS2  premium from Amazon but I do not come with a serial number. How can I get a serial number

    I recently purchased CS2  premium from Amazon but I do not come with a serial number. How do I go about acquiring a serial number for the premium suite

    Huh?
    Error: Activation Server Unavailable | CS2, Acrobat 7, Audition 3
    Mylenium

  • ME SDK 8.0 EA Device Manager - Problems with Serial COM-Connection

    I caught a first glimpse at the new ME SDK 8.0 - so far I have been working only with very old JavaME-Stuff on a Cinterion-TC65i-Chip.
    Want to connect my Raspberry Pi via serial COM-Connection with the SDK-8.0-EA-Device-Manager. (due to security reasons I'm not allowed to connect the Pi via LAN/Wifi)
    But the problem is the ME SDK 8.0 EA Device Manager only offers me COM4 (this is my built-in UMTS-Modem) - even though my target-COM-Device isn't busy at all.
    A serial connection via Putty and USB2Serial-Cabel (FTDDI) works fine and I can get on my Raspberry.
    Is there any reason or restriction I don't know for being unable to use my dedicated COM-Port? Or do I have to make any additional adjustments in hidden SDK-Property-files?
    In my opinion the device manager using COM should offer me the same possibilities as an IP-Connection regarding the target-device (transfering my Jad/jar to the device, installing them and starting them).
    There is something in the SDK-get-Started Docu about "Connecting to a UART Device" I'm not really cotton on . Is this information concerning me even though I'm using a Raspberry PI?
    To put my files manually via USB-Stick or Z-Modem on the PI is a tad of inconvinient.
    Any ideas? Or am I completely off track understanding your SDK-Tooling?
    Thx and best regards

    Hi,
    For the Raspberry Pi, tooling over serial port is not supported. The simplest solution is to use standard IP networking over Ethernet. This can be a direct connection between the PC and the Raspberry Pi, as long as the cable is twisted and the IP addressing is correct (e.g. manual IP addressing or DHCP server on the PC).
    Regarding "Connecting to a UART Device": This is meant for attaching and controlling serial devices from the Raspberry Pi, not for tooling connections between the Raspberry Pi and the PC.
    Hope this helps,
    -- Terrence

  • I lost my logic 8 pro serial number. I can't find the booklet that comes with the serial number. How can retrieve this? I upgraded from logic pro 7. I changed hard drives and now it keeps asking for the serial number. But I can't find it. Where can I requ

    I lost my logic 8 pro serial number. I can't find the booklet that comes with the serial number. How can retrieve this? I upgraded from logic pro 7. I changed hard drives and now it keeps asking for the serial number. But I can't find it. Where can I request it? Thanks!

    If you still have the receipt or other proof of purchase, you can ask Apple to send you the serial. Otherwise, bad luck mate.. Good news is, you can now buy Logic Pro 9 from App Store for just 199 USD

  • VISA unable to communicate with or see RS232 serial com port

     I have a Dell Optiplex GX260 which has recently had Windows XP (Service Pack 2) re-installed on it.  National Instruments VISA is unable to communicate with the single RS232 serial com port on the computer.  Neither the "VISA Resource Name" control in LabVIEW 8.5 nor the "Measurement and Automation Explorer" can see the serial port.  Refreshing the list does not help.  "HyperTerminal"is able to both see and communicate with instruments connected to the serial port.  In Windows "Device Manager, the serialport appear in the list of hardware without any warnings.
    Can anyone please help with suggestions as to how I may be able to get VISA in LabVIEW to 8.5 to see and communicate with the serial port?
    System Details:
    Dell Optiplex GX260 (One RS232 serial port)
    Windows XP Home Edition Service Pack 2
    LabVIEW 8.5
    Solved!
    Go to Solution.

    AKA_TG wrote:
    Just passing by but I gotta say
    Guyts who answer like that do really irritate me
    Someone oughta apologize to the porr guy trying to get some help here.
    Go ahead and put me on your ignore list please!
    First, there is a plethora of messages on this forum and a plethora of information in the NI KnowledgeBase. If someone doesn't make the simple effort to take 5 minutes to perform a search what does that say? The issue being raised has come up, literally, dozens of times. Do you like answering the same question over and over and over and over and over again?
    Second, my feelings are not unique. You will find that the irritation of people not bothering to do a simple search is shared by most of the regulars here. Why do you think search engines are available? Just so that ads can be sold?
    Third, posting the SAME question in multiple threads is self-defeating. People who try to answer don't know what's already been suggested, and end up wasting their time as well as the poster's time in providing the SAME answer and/or suggestions that were provided in the other thread. 
    Fourth, simple forum netiquette. In both threads the poster essentially hijacked someone else's thread. This is frowned upon in just about every forum that I've ever seen.

  • I downloaded the trial but it didnt come with a serial number. where do i get it from?

    i downloaded the trial but it didnt come with a serial number. where do i get it from?

    Trial versions require no serial number. They run for 30 days without one.
    Mylenium

  • Is there a serial number or CD key that comes with Lion???

    Hi,
    I was wondering if there is a serial number or something like a CD key (I know doesn't come in CD) like Windows when you buy Lion that is unique and comes with it when you download or buy the USB flash??
    If I pay Apple online, can I get the software from a friend that has downloaded it or I MUST download it myself???  My internet is not very fast for 4GB file!
    Thanks

    Sasan, Lion Diskmaker makes your Lion Install DVD. Download the zip at the link (on your friend's Lioned Mac) drag LDM to Applications and launch it. http://blog.gete.net/lion-diskmaker-us/

  • Does serial number come with specific motherboard or it's replaceable?

    Hello guys, there have been a lot of sudden death issues of Z3C and I was one of the victims too, luckily just got it back after nearly 2 months wait
    Anyway I was told that they had replaced a new motherboard to fix the problem, but I don't really think so because when I went to the repair centre they gave me a paper with a parts list they repaired and replaced, which included screen, lock button and so on but no "motherboard" or "mainboard" written on it, I looked again and again just to make sure. If they did change the motherboard, would there be a new serial number because when I checked it in the Android setting it is still the same as the first time I bought it, is this true or they can insert the same serial number into the new motherboard? I know this may sound crazy or dumb, I will be happy if they didn't because there's still a chance for me to retrieve all the previous datas which meant so much to me. Thanks for the help guys!

    Thanks for your reply Thommo, I had already contacted Xperia care there was nothing they could do to retrieve the data, but I have just found Wondershare Dr.Fone and some other data recovery softwares that can help to retrieve the lost data for non-rooted phones. However I don't know why only Z3C needs to be rooted in order to perform data retrieval but as stated in other websites rooting Z3C will void the DRM that result in bad quality low-light photos... So if possible I will unroot it but it seems like there hasn't been a way released yet to unroot Z3C so far, right? So I'm like stuck in between
    So before I root I just want to confirm if the IMEI / serial number comes with specific motherboard, if yes then there's still hope left to get back everything I want because that means they didn't replace the motherboard at all!

  • Connect Flash to Serial Port with Local Socket Connection

    Hey all,
    So, I am trying to connect a Flash movie to a serial port
    and have it react to the input coming in. Of course, Flash does not
    have this capability built in, so I need a workaround. I also
    program in Director, and there are easier ways to deal with this
    there, but since there hasn't been an update in years, and for
    other technical reasons, I would like to use a pure Flash program.
    I also need to take advantage of some of the new hardware
    acceleration improvements and horizontal sync issues that come with
    running the Flash player full screen. So, there are some tools out
    there that will let me stream the input from the serial port to a
    web address. I figure I could use the local address and assign a
    port number, then use Flash to create a local socket connection. I
    am having issues opening ports on my computer, and a few other
    things, but in theory, I think it should work. I know that I won't
    get all the answers here, but if anyone has done anything of the
    sort, or might know of some similar projects, it would really help.
    I am more of a Director/Flash programmer, and not so much one on
    the system level. So, opening local sockets, etc, while I am sure I
    can figure it out, is still a bit beyond me. Thanks all!
    - Bruce

    You may want to look into flash remoting, which would allow
    you to push content to the flash movie. You could then write a
    proxy between the source of your stream and flash the remoting
    server.

  • Hi,  I lost my serial number for PS Elements11 following computer crash. Os is W7. I have the cd installation disc but there is no serial number with it or in the envelope  ..  How can I obtain the serial number please?     Thanks

    I lost my seriel number for PS Elements 11 following computer crash. Os is W7
    Peter Jones Aug 27, 2014 5:36 AM   
    Hi,
    I lost my serial number for PS Elements 11 following computer crash. Os is W7. I have the cd installation disc but there is no serial number with it or in the envelope
    How can I obtain the serial number please?
    Thanks

    If you registered the software you should be able to find the serial number thru your Adobe account online.
    To locate the serial number:
    http://helpx.adobe.com/x-productkb/global/find-serial-number.html

  • I just purchased a camera packaged with Adobe photoshop Elements 11. I have a mac book air- which does not have a cd drive. The package did not come with a code or anything that would provide me with another way to install photoshop that came with my came

    I just purchased a camera packaged with Adobe photoshop Elements 11. I have a mac book air- which does not have a cd drive. The package did not come with a code or anything that would provide me with another way to install photoshop that came with my camera. Is there any other way i can install this on my camera without using the provided cd or buying the software again?

    That doesn't help the user with the serial code though.
    There has to be some kind of code somewhere within the package. The disk itself does not contain one. You can look here for help with finding your serial number:
    Find your serial number quickly

  • I'm trying to associate my iphone serial num with my apple profile, but the system say that the number is not good !

    I'm trying to associate my iphone serial num with my apple profile, but the system say that the number is not good !

    it is correct in this link;
    but in the https://supportprofile.apple.com/PramAddRegisterProduct.do
    the message indicate the (same) number is not valide

  • Do the recovery discs come with an operating system?

         I was given a Toshiba satellite A215-S4747 a year ago. I don't have a recovery disc and can't do a restore from the hard disc. After putting windows 7 on it, it has been nothing but problems with the drivers and such. At this point I just want it at factory default again. Since my I never had the recovery disc in the first place, I don't mind paying for one, but I need to know if I will have to purchase a Vista OS disc as well or if it will come with the requested recovery disc for my laptop. Thanks in Advance!

    Howdy!
    Not sure why you are having issues with the drivers, but if you go to the following link, it lists all the drives which you can sort via which version of Windows 7 (32 bit or 64 bit) you are running.
    Satellite A215-S4747
    Another option to keep in mind is, depending on how you installed Windows 7, you may still have the recovery partition that discs would have been made from.  If so, your manual, which can be downloaded at the link I provided above, may tell you which keys to press during the boot process to access and run it.
    Worse case scenario where you just buy the OEM recovery discs from Toshiba, they will include everything you need from the Windows OS, to the correct drivers, to the Toshiba extra support software.  It will literally load to the state it was right out of the box.  As such, no, you will not need to purchase a retail copy of Windows Vista off the shelf.  The only kicker to that would be if Vista was not the originally installed OS.  Easiest way to check this is to look on the bottom of the laptop where the OS sticker is with your particular serial key.  Whatever it says there will be what is on the recovery disc when you receive it.
    If you have any other questions or need further assist, please feel free to post here.  Best of luck.

  • Does the iPhone 5s comes with global or international warranty ?

    I have read some news that, apple has planned to provide global warranty for iPhone 5 (A1429) GSM, does the iphone 5s also comes with global warranty ?

    Apple Warranty
    http://www.apple.com/legal/warranty/
    "Choose a product" and then "Choose a region"
    Pakistan is not listed for any device. So, I don't think it really matters where you buy iPhone because Pakistan is not officially supported country. However, I have read on several forums that iPhone warranty goes by the serial number regardless of where it was purchased. Apple is really good at taking care of customers, so your phone should be covered.

Maybe you are looking for

  • Solaris 10, Oracle 10g and ORA-27102 out of memory

    After much STFW'ing, RTFM'ing and experimenting I finally got Oracle 10g to start a database on a SunBlade 100 with 512MB of memory and Solaris 10. As most of the replies on the web about error 27102 "out of memory" address solutions in Solaris 8 and

  • IMovie 09 uses up 4GB of RAM in less than 2 minutes

    Hi, The topic says it all i think.. To be honest i don't know if i had this issue before Snow Leopard i have only been using it for about a week. I have a MacBook Pro (Early 2008) 2.6GHz with 4GB RAM installed. I have never had any issues with the RA

  • I keep losing my list of sites that are pinned to my taskbar after updates.

    No more to add. It's probably somewhere in the next box, but I am using Windows 7.

  • MSI X58 Pro SLI not working - solved

    Just wanted to post my experience of the last couple days here so that hopefully google and the other spiders will grab it in case other people have the same problem I was having. I have an MSI X58 Pro, and was running a single GeForce 8800GT for a l

  • For Cox customers:  sending mail

    After a great deal of frustration trying to send email from my iPad .... maybe this will help some people having the same problem. You can, for a around $15/yr., send up to 150 emails a day over wifi using an independent outbound SMTP server ... work