Strange RS232 question

Hi,
I am supposed to read some data from the RS232 port and plot it on the waveform. The data looks like this: (ASCII Strings seperated by return)
134
343
12F
12
To test, I wrote a Labview program to send out this kind of data to the RS232 port. It is a for loop and for each loop step, it will translate the data into an ASCII string and send it to the RS232 port. For example, number 48 will be translated to "48".
I made a loopback on the RS232 port, and wrote another Labview program to read the RS232 data in, translate into numerical and plot on waveform. It is a while loop, for each loop step, it will check the bytes on the serial port, if it is bigger than 0, it will read the bytes and translate into number and plot it.
This works fine in loopback mode, it can capture every line of string and plot it perfectly.
But then I switched to the real environment, the data is sent by others, I checked the data by Hyperterminal and it is in accordance with the above format, but the strange thing is that now my receiving program got the data not line by line, instead, it got the data several lines per read. How can this be? And what can I do to make it read line by line while not losing other data? Not every sample data is of the same length.

By 'sync' I mean that the test app writes a few bytes, the receiver app reads a few bytes, etc. Since the two applications are running on the same machine they may be in sync timing-wise so that the reciever program happens to work as expected.
The serial port contains multiple buffers. For non-VISA it is a HW buffer and driver buffer. VISA may add an additional buffer.
When the computer receives a byte at a serial port, the serial driver grabs the byte from the hardware buffer and stores it in a software buffer. When you call Bytes at Serial Port, you're asking how many bytes are in the software buffer. Then you perform a read and get N bytes from the software buffer.
What I would do is make a routine that just reads from
the serial port and puts the resulting data in a buffer you define in LabVIEW (perhaps a queue of some sort?). Then your main program parses the buffer and processes the data accordingly.

Similar Messages

  • Answer for a strange Interview Question

    Hi Guys.
    I gave an Interview and was asked a strange question.
    the Question is which two object in IR cannot be transported via CTS + .
    As far As I know everything can be transported using CTS+ even the JAR files .
    If any one know can you please let me know.
    Regards
    Gagan

    Hi Guys found the answer
    What are the Transportable and Non-Transportable Objects IN pi 7.1

  • Very strange broadband question. Please help!

    Hi guys. A few days ago I was having problems with my telephone. We could not make or receive calls but our broadband was still working fine, just a little bit slower than usual. I filed a fault report with BT and the issue was resolved within 2 days and my telephone is now working fine but my broadband is now playing up. It is permanently slow, websites load increddibly slow and my download speeds are at a maximum of about 50 kb/sec. I'm on BT total broadband unlimited so it can't be me being limited for going over my monthly usuage.
                       The router is connected directly to the master socket and my computer is connected via ethernet port. The only other computer in the house is connected wirelessly and is also getting shockingly slow speeds. I've logged into the router and it is saying that my connection speed is 4mb/sec. I've also done BT's own speed test and that found a similar result. Here's a screen cap of the tests results. 
    If both tests are stating my line speed is currently around 4mb/ sec how is it that my broadband is so slow and my maximum download speed is 50kb/sec. Would really appreciate some help, thanks. 

    your problem is your profile is only 750 instead of 3500 which leads to lower throughput/download.
    if connection now ok then staying connected to the internet 24/7 for 3/5 days maybe sooner the profile will come back to normal
    If you like a post, or want to say thanks for a helpful answer, please click on the Ratings star on the left-hand side of the post.
    If someone answers your question correctly please let other members know by clicking on ’Mark as Accepted Solution’.

  • Strange networking question

    I have two computers (they are called IOMS-design and Beast).  I'm trying to connect the two using shared variables and front panel binding.
    When I set up the Beast as the server, it works fine.  Everything binds to the variables on Beast.
    However, this is the opposite of what we want, so we tried to reverse it.  This is where the strangeness comes in.  IOMS-design can see everything on itself and the Beast, but the Beast can only see it's own contents, not IOMS-design's. I've attached two images to illustrate my problem.
    I don't think it's strictly a Windows networking issue because the computers can see each other in the Networking window on Windows.  Also, like I said, it works with the data going one way, but not the other.
    I think it's a LabVIEW configuration issue because of this.
    FYI both computers are running Vista and LV8.6.0
    Message Edited by elset191 on 02-20-2009 09:03 AM
    Tim Elsey
    LabVIEW 2010, 2012
    Certified LabVIEW Architect
    Attachments:
    Beast-view.jpg ‏36 KB
    IOMSDesign-view.jpg ‏41 KB

    Nevermind.
    Somehow I overlooked the fact that Beast had Norton
    Tim Elsey
    LabVIEW 2010, 2012
    Certified LabVIEW Architect

  • Compactrio RS232 question

    I have Compactrio 9074.  How do I setup the rs232 port setting.  I try to run"LabVIEW 2009\vi.lib\Instr\_visa.llb\VISA Configure Serial Port (Instr).vi" to setup the port I get a error. I would like to communicate over RS23 with the compactRIO.
    Port name = RIO0::INSTR
    error code  =  -1073807331
    Error desciption
    Error -1073807331 occurred at Property Node (arg 2) in VISA Configure Serial Port (Instr).vi
    Possible reason(s):
    VISA:  (Hex 0xBFFF001D) The specified attribute is not defined or supported by the referenced resource.
    Sam

    I have written LabVIEW for serial communication.  I have the Serial
    software that communicates between the instrument and computer.  I want to
    run the RS232 communication software on the CompactRIO.  I got everything
    working on the CompactRIO but the RS232 port.  The RS232 software is fine
    because I can run it on a computer talking to the instrument. 
    LabVIEW has a RS232 configure serial Port.  If I call out the wrong
    port, I should and get an error.  If I call out the correct port, I should
    not get an error even if the instrument is not connected.  All I'm doing
    is trying to initialize the port configuration. 
    On the compactRIO, I have NI-RIO 3.2.0(minimal) installed.  I'm trying
    to initialize the baud rate before I talk to the instrument.  Attached is
    the init vi I'm using.
    Thanks for the response
    Sam
    Attachments:
    InitSerial.vi ‏11 KB

  • FCP Output speakers Strange sound question

    I hope somebody reads this.
    I compressed my (2 Separate scenes, different timelines, same settings) footage using compressor, "DVD 90 min Best Quality"
    I took that footage and put it in DVDSP, put that on the timeline.  Separate both scenes with a chapter marker. 
    I then built a DVD, I put that DVD in my system, and the 1st scene only plays out of the center speaker and subwoofer, My second scene plays out of all the speakers, (additional speakers are labled "FRONT SPEAKERS" and "SURROUND SPEAKERS" that's they way they are labeled on my Stereo)
    It must be some setting, anybody know?
    Thanks!

    Anybody?

  • Check marks and question marks all over my icons

    Hello!
    Sometime in the last few days I've noticed that a bunch of the icons in my Finder have strange little question marks and check marks on them. I first noticed a check mark on the icon for the hard drive, but when I looked closer they turned out to be everywhere! here's a screen shot of what they look like:
    http://www.theamazingrolo.net/marks.jpg
    (i just took a screenshot of the info windows to make it more clear, but the marks can be seen in any finder window)
    What on earth are they about?! Any ideas? They kind of bug me, to be honest.
    Thanks!
    Yann
    (white Macbook running 10.5.5)

    Problems such as yours are sometimes caused by files that should belong to you but are locked or have wrong permissions. This procedure will check for such files. It makes no changes and therefore is not, in itself, a solution.
    First, empty the Trash, if possible.
    Triple-click anywhere in the line below on this page to select it, then copy the selected text to the Clipboard by pressing the key combination command-C:
    find ~ $TMPDIR.. \( -flags +sappnd,schg,uappnd,uchg -o ! -user $UID -o ! -perm -600 \) 2>&- | wc -l | pbcopy
    Launch the built-in Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad and start typing the name.
    Paste into the Terminal window by pressing command-V. The command may take a noticeable amount of time to run.
    Wait for a new line ending in a dollar sign ($) to appear.
    The output of the command will be a number. It's automatically copied to the Clipboard. Please paste it into a reply.
    The Terminal window doesn't show the output. Please don't copy anything from there.

  • Aperture Adds Strange Keywords

    Hello,
    I have imported about 20 iPhoto libraries into Aperture 3.  Many of these have keywords assigned in iPhoto and they appear correctly as keywords in Aperture.  Aperture adds other keywords such as iPhoto Original, etc. which I understand.  However, there are cases in which Aperture has also added one of its Project titles to a photo's keyword list (these were not keywords in the iPhoto images).  If I open the Aperture keyword list these are in it but  they are not in the Filter HUD keyword list.  What is going on here?  I am wondering if the Aperture library is corrupted and I need to restore from the Vault backup which I think was made before I noticed this problem.  The iPhoto libraries seem to work fine but could they be a problem (Aperture uses iPhoto Event titles as Project titles)?
    Thanks for any suggestions.
    Mike

    Hello Leonie,
    Thank you for your response.
    Yes, I did mean Keyword HUD, sorry.  If I examine the Keyword HUD and the Keyword Filter with all photos in the library selected, the oddball added keywords appear in the HUD but not the filter.
    Thanks for the tip on hierarchical  keyword categories.  I tried that with Library Manager but when they were shared among all my libraries the structure I set up was lost.  I plan to use this feature in Aperture once my library is complete.
    However, the strange keyword question may be academic since I discovered after my post that I had the following warnings from Console which I interpret to mean serious problems with the library:
    One Console Warning like this (last one on the list):
    12/6/11 4:21:16 PM          Aperture[1095]          An instance 0x134a66970 of class RKVersion was deallocated while key value observers were still registered with it. Observation info was leaked, and may even become mistakenly attached to some other object. Set a breakpoint on NSKVODeallocateBreak to stop here in the debugger. Here's the current observation info:
    <NSKeyValueObservationInfo 0x12b9ed890> (
    <NSKeyValueObservance 0x13a0d7110: Observer: 0x13a0d72d0, Key path: isReadOnly, Options: <New: NO, Old: NO, Prior: NO> Context: 0x0, Property: 0x1399a9510>
    <NSKeyValueObservance 0x13a0d94d0: Observer: 0x13a0d88e0, Key path: isReadOnly, Options: <New: NO, Old: NO, Prior: NO> Context: 0x0, Property: 0x1399a9510>
    <NSKeyValueObservance 0x13a0da720: Observer: 0x13a0da8a0, Key path: isReadOnly, Options: <New: NO, Old: NO, Prior: NO> Context: 0x0, Property: 0x1399a9510>
    Many Console Warnings like this (should have saved more of them):
    12/6/11 1:41:32 PM          ScreenSaverEngine[1132]          Couldn't load image for path: /Volumes/OWC On-The-Go (SATA)/Aperture Library 11:30:11/Aperture Library1.aplibrary/Previews/2011/11/29/20111129-101150/kqu+Y3vXTLulk88738Y6ew/I MG_0517.JPG.jpg
    I wonder if "mistakenly attached" has anything to do with my keyword problem.  I found IMG_0517.JPG.jpg (is  ".JPG.jpg" a valid extension?) and found 5 in Aperture, all of which ware taken at different places and different dates.  The keywords were all OK. Four had the extension .JPG and one had no extension, just IMG_0517.
    My plan now is to restore from my Vault copy and check for the odd keywords it it.  If they are present I guess I will have to trash the library and start over.
    Sorry for such a long post.
    I welcome any observations on this.
    Mike
    Mike

  • Hello! I have a huge question about how can I get connected my iphone 4 with my car Is there any opption on find my car application? I have a Volvo xc60 and I want to be connected all the time with my iphone. Can I do that?

    Hello! I have a huge question about how can I get connected my iphone 4 with my car Is there any opption on find my car application? I have a Volvo xc60 and I want to be connected all the time with my iphone. Can I do that?

    Hello. I can say that you have a quite strange „huge question”… It’s non-sense to stay connected with your car which is hundreds miles away. Unless…
    I have a theory. You don’t want to controll your car, you want to controll somebody who is driving the car. Volvo XC 60 is a nice family car, usually used by married men between age of 35-45, probably with small children, so it’s very unlikely that you want to controll your teanage kid, mainly because probably even if you would give him/her to drive the car in the neighborhoud, I don’t think that he/she would be „several hundred miles away”…  If your child is not young teneage anymore, and he/she has his/her own life, but you want to control him/her, that is sick… So I am convinced that you want to controll your husband who probably travelling often! Am I wright?
    Isnt’t nice at all! Would you like if you would be monitorized in such way? I bet you don’t!
    Anyway, iPhone is smart, you can use for many things, but come on, you really were thinking that there is such kind of application???
    What could you do it's to put in the car a GPS survelling system, however I don't think that you could do it without your husband knowledge, otherwise he won't be able to start the engine...

  • Remote desktop virtualization setup - can't identify virtual desktop state

    I'm experimenting with MS's vdi offering and have hit a problem when selecting the Remote Desktop template virtual machine.
    The Error (translated from spanish)
    'Cannot identify the virtual desktop state. Verify that the remote desktop virtualization host server hypervsrv is available on the network and that the virtual desktop VDIBaseWin7 is closed'
    What I've got:
    A Windows 2012 R2 with hyper-v
    A Windows 2012 Std on which I am trying to configure Remote desktop virtualization
    A virtual machine with Windows 7 pro. The machine is basic win 7, patched and has been sysprepped.
    How I get there:
    From server manager I open Remote Desktop Services > from the wizard área above I click on (3) Create remote desktop collection
    This opens the wizard where I choose a name for the collection
    I then select 'personal virtual desktop collection' and 'créate and adminístrate virtual desktops automatically'
    The wizard then presents me with a list of virtual machines. I then select the sysprepped wind 7 pro machine (which is shut down naturally). I've tried generating the win7 machine as a generation 1 and generation 2 - the result is the same.
    The wizard pauses for a few moments and then displays:
    'Cannot identify the virtual desktop state. Verify that the remote desktop virtualization host server hypervsrv is available on the network and that the virtual desktop VDIBaseWin7 is closed'
    Neither the event log of the hyper-v server, nor the rds server, report anything.
    So, my question is, whats failing? Its obvious that its trying to perform some action and is failing. The question is, whats it trying to do. If I knew what it was doing then I could investigate the cause, but the error doesn't say much.
    Anyone have any ideas?

    strange, This question has been moved to the remote desktop forum. I would have thought this forum was more for the traditional terminal server type questions.
    Anyway, I found a solution to my own problem. It turns out to be the mix of 2012R2 for hyperv and 2012 std for the broker, etc.
    I set up another server with 2012r2 and followed the same sequence to configure it with the rds roles and it worked perfectly.

  • When I disable my left windows key for gameing using Microsoft keyboard and mouse software, I can no longer type in firefox. How can i fix this?

    Microsoft Keyboard and Mouse Software that you install with Microsoft keyboard and mice, (latest version) allows you to disable your windows key so that you don't accidentally hit it when gaming. When I take advantage of this feature, I can no longer type in Firefox. Typing in Firefox is completely disabled. Other browsers, windows, applications work, but not Firefox. What is it about the windows key that firefox needs for typing. Strange problem, but annoying because I have to use a different browser while game. Certainly not a deal breaker, but kinda strange.

    Try:
    *[[/questions/947513]]

  • Characteristics in the material master (SAP Retail)

    Hi everybody,
    Iu2019m using SAP Retail and I need to maintain characteristics in the material master. These characteristics are used to maintain additional information like u201Caccessoriesu201D and u201Cguaranteeu201D (Iu2019m not working with generic articles and variants).
    Each characteristic need to be maintained in different languages:
    Example: Guarantee u2013 In Portuguese the value should be u201C2 anosu201D and in English the value should be u201C2 yearsu201D. 
    There are no predefined values for these characteristics. We use additional values and the user can maintain a free text, but it should be different in Portuguese and in English.
    One solution I can use is to create each Characteristic in English and in Portuguese, and then maintain different values for each one. Iu2019m trying to find a better solution because I have numerous Characteristics.
    Does anyone know another way to solve this issue?
    Thanks in advance,
    SN

    Hi SN,
    this requirement sounds a little bit strange.
    Question 1: This field 'Guarantee' is  valid for all articles or for some articles only ( e.g merchandise categroy electronics)
    Question 2: How do you name the Characteristic? is it Years or Ano or guarantee?
    Question 3: using additional vlaues will kick out the value check. So it is like a free text entry. Of course this makes no sense, because you can also add 'g hello' als a valid value.
    Why you choose this way ?
    Question 4: What is the issue using fixed values? I guess the guarantee values are limited at all.
    Question 5: Why you don't use a MARA append field and hide it on unwished mechandise categories. Thats easier to handle and a value check can be implemented.  So you are able to create a field with a unit in different languages
    e.g.    Guarantee          Years
    if you logon in english.
    regards
    Björn
    PS: Did you tried the new characteristic strorage?

  • Unable to order photo book without paid Iphoto upgrade?

    I am currently running OSX10.6.8 and Iphoto 6.0.6. I have always been a fan of the Iphoto Photobook feature, and in the last 8 months I have got married and spent 6 months travelling the world, and have 1000's of photos and several phtotobooks to make, but I can't do it running this version of Iphoto. I upgraded about a year and a half ago from Tiger to Snow Leopard, and would have thought that any upgrades that affect a feature working would be free, but it is £14.99 to upgrade, which I am not willing to pay just to be able to order some photobooks (which obviously Apple will be earning from).
    Is there anyway I can continue using the photobook feature of Iphoto without having to pay money and upgrade?
    Thanks,
    Sarah

    ID, I was asked to enter Apple ID and Password again and, strange, my question and answers was shown, but I had to enter a new one to go a step further.
    And are your answers to the security questions conformig to apple's security rules - at least six characters long? The password complicated enough? See Apple ID: Tips for protecting the security of your account
    If your password and security questions are too simple, change them. The Apple Store seems to be rejecting them otherwise.

  • Preflight method to identify fonts which will fail tagging/extraction

    Hello,
    I've run accross several PDFs that contain problematic fonts -- examples are:
    1.  Adding tagging to the document adds strange characters around the fonts (i.e. "@" or "É")
    2.  Copying and pasting the text to word creates strange boxes, question marks, garbled letters.
    I've been investigating this problem and it seems to have something to do with a failure to convert characters to Unicode values --- I've noticed some of hte problematic text has custom/identity-h encoding, and doesn't contain a Cmap reference to unicode.
    However, I've seen several instances of text that is missing a unicode encoding, but copying it to word seems to work fine?
    Is there a custom preflight profile that could proactively identify text that will fail copying + pasting / will produce strange characters when accessibility tagging is added?
    Alternatively, is there a check that will at least flag text that is likely to fail in this way?
    using acrobat 9 pro
    Thanks,
    Andrew

    There's a "text cannot be mapped to Unicode" check in Preflight but it won't give you exactly what you want. Acrobat has no way of knowing if the glyph maps are corrupted, as only a human can recognize the character shapes aren't correct. Internally, all Acrobat sees are lists of character code numbers.

  • Java is a platform independent

    how can we say that java is a plateform independent language, would u like to send me an example and procedure.
    thanks in advance.

    Oh, on review of your posting history, I see that you have been asking a bunch of similarly strange short questions today, that they do appear to be homework, that you often spam the forums with similar cross-posts, post incorrectly (and for god-knows what reason) to the "forums.sun.com News and Updates" forum, that you rarely reply to these strange requests and that Google appears to not be working on your computer. Please show that you are doing at least a small bit of your own work here, you lazy sod.

Maybe you are looking for

  • Can't get gmail to work on iPad

    I have 2 gmail accounts which have worked fine on my iPad for a while- 1 is personal and the other is professional. Recently, the personal one was hacked and I had to jump through all sorts of hope to get it work correctly. I set up the 2 step verifi

  • Error messages in Photoshop CS5

    I get this message when I start PS.  " There is no disk in the drive.  Please insert a disk into the drive\drive\harddisk\dr2" When I accept this message PS continues to load as normal, However If I try to save a file using "Save for Web and Devices"

  • DB link performance.

    HI Experts One of our developers is facing performance issue on one query using dblinks. When we run the query in remote db it is taking 4-5 mins. When we execute the query from his local db using db links it is never ending. Looking at this initiall

  • JDBC, SQL*Net wait interface, performance degradation on 10g vs. 9i

    Hi All, I came across performance issue that I think results from mis-configuration of something between Oracle and JDBC. The logic of my system executes 12 threads in java. Each thread performs simple 'select a,b,c...f from table_xyz' on different t

  • Entitlements in this portlet file

    Hello I am unable to entitle these two .portlet files (attached one). The corresponding entry in the .portal file is <netuix:portletInstance contentUri="/portlets/ShowSeason/ShowSeason.portlet" instanceLabel="MainPage_ShowSeason" markupType="Portlet"