VISA do not read serial data in the right order

Hi all

I'm working on a project, when I need sample data at point A, it passes these (zigbee) wireless data to point B and here rs232 connection to the laptop.

I'm using labview 2011 to view sampled data, but I have a little problem, data are not entered into labview in the right order and this is quite crucial in my application. I have attached some photos and my vi to describe the problem in detail.

Data are packaged in the following form: AS:number1:number2:...:number49:\r - where is the beginning, followed by the values of the sample character separated by: and the last is followed by a return at the end of the cart package.

When I view the data in different terminals (PuTTY, tera term ect.) then the data is in the correct order.

To make the most obvious problem, I place the sampling to count an integer of 16-bit instead of the real samling

The png sample of teraterm is how it is supposed to look like. The vi_sample.png is the string of labview, which is false, I've highlighted a few errors in the visample. When using the VI, I noticed that all the data is collected, but not in the right order.

The missing Subvi is a few small VI that reads the input rs232 string and control the various indicators of this.

I hope that you are able to help me with my problem.

Concerning

Tommy

In the structure of case where read you the serial port you are adding at the beginning of the string rather than allow the addition. In other words, you build the answer backwards.

Your method of reading is contradictory. You have configured the VISA session to stop playing when he sees a carriage return, but you do not actually. You have configured it so tell some bytes are on the serial port. Maybe it's not the set of bytes, since you have no delay between writing and reading, so you can be is only half of the message. If you use the method of termination, then reading VISA should have great value wired to the bytes to be read. Then, when VISA Read see the stop character, it will stop automatically. If you use the bytes available, then you need a mini loop to keep reading until you see the end of the response. Choose one or the other - don't try to play both ways.

Tags: NI Hardware

Similar Questions

  • The problem is the USB Devices folder shown as a shortcut so I can not Capy of data in the folder with other devices or hard drive.

    Original title: USB problem

    I use windows 7 as operating system. I have problem when I insert USB devices as pan tie drive, mobile, reader of cards ect. USB port of my PC. The problem is the USB Devices folder shown as a shortcut so I can not Capy of data in the folder with other devices or hard drive. so please suggest me what I can do?

    Hello

    Start Windows Explorer, and then see if there is a drive letter assigned for access to the
    drive. If this is not the case, check if the disc is shown in disk management.

    1. Open Computer Management by clicking on the button start , by clicking on Control Panel, system and security, clicking Administrative Tools and then double-click computer management. If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.
    2. In the left pane, under storage, click Disk Management.

    If there has made a right click option - assign a drive letter for you can use Windows
    Explorer to copy files.

    I hope this helps.
    --------------------------------------------------------------------------------------------
    Rob Brown - Microsoft MVP<- profile="" -="" windows="" experience :="" bicycle="" -="" mark="" twain="" said="" it="">

  • Titles are not up-to-date on the timeline

    MacBook Pro mid 2012, El Capitan, Adobe Premiere CC 2015 OS.

    Recently, titles, created the first order apply all changes and update on the timeline.

    So you can create the title, but if you want to change the color of the text or something - it's just not happenning.

    Yesterday, I noticed the same thing with AfterEffects composition, imported with the dynamic link.

    It is simply not up to date on the timeline

    Delete the Cache (overview) media files.

  • Why my any CD not play not back in the right order?

    I have a CD very good test of Alan Parsons and Stephen Court called "Sound Check 2. I wanted a digital copy to back up my CD.

    I have set iTunes to import the CD using Apple Lossless and Gracenote found all this info to track for me. I used my 1.83 Ghz Core Duo Macbook Pro to import from my recent iMac doesn't have a disc. The MBP running the final version of Snow Leopard, as well as some version of iTunes that supported.

    Import took place without a hitch, but when I tried to play the tracks in good condition, it jumps around in the album. I tried the remedies "from the Album", played with crossfade, nothing is done. The nature of this CD its extremely important to play in the right order, as each track leads to another by a reading of the word of the next title at the end of the previous track.

    What can I do to ensure that it renders properly? Also, is there some kind of sort order, I can add to track data that will ensure that these tracks are in the right order if I decide to put them on a stick for my cars?

    You have shuffle turned on by accident? May seem like an easy solution, but a lot of people miss it.

  • In Outlook Express, when I type in the first letter of an e-mail address that is in my contacts, the dropdown does not close when I click the right address.

    Original title:

    Under XP, when I type in the first letter of an e-mail address that is in my contacts, the dropdown does not close when I click the right address. What a nuisance! Also, when I go to create a new e-mail message, an address of my contacts appears in no particular place, making it impossible to complete the message.

    Hello

    I suggest you turn off Auto complete and then check if you face the same problem.

    a. open Outlook Express.

    b. click on Tools.

    c. click on Options.

    d. click the send tab.

    e. uncheck the e-mail address automatically complete when composing box.

    f. click OK.

    Turn Auto complete and test again to see if the behavior is better. To activate it again, follow the same steps as above, but put a check mark in the box.

  • A way to resolve the domain controller Adobe Acrobat Reader to open with the right hand "Interface" in the closed position - really annoying to have to close ALL THE TIME.

    A way to resolve the domain controller Adobe Acrobat Reader to open with the right hand "Interface" in the closed position - really annoying to have to close ALL THE TIME.

    Read this:

    https://forums.Adobe.com/thread/1817184?start=120&TSTART=0

  • Burning a cd picture with photos in the right order

    I'm trying to burn a cd of photos using Windows Live Photo Gallery. I have no problem with the actual combustion, however they do not come out in the order I want what they. The record, that I choose to burn is in the right order by date, time, name, but one burned time and I play on my dvd player, they are not in the right order. How can I fix this?
    Thank you.

    I followed the instructions in the link you provided. Double checked them and they will be all renamed starting with the first image file Name.jpg according to numerical order, the 2nd picture of the group is the name of (1) .jpg file, 3rd picture is the name of the file (2) .jpg and so on. These were numbered automatically, but first of all, I made sure that they were displayed in the order that I wanted them. I have clicked on and highlight the first photo, press and hold the SHIFT key pressed, clicked on the last image in the file, once all selected / highlighted, right click on an image, choose 'RENAME', typed in the name of the file, press ENTER. The first image of thought would be (1), but was just .jpg and then all the other images were numbered. Have not had time to read everything in the directions of operation Panasonic Blu - ray, but see nothing on playback in random order for still images.

    =====================================
    If you are dialing as my example you will have better results.

    And no.... don't right click on 'everything' photo... the 'first' photo is
    one you want to right click on.

    If rename you batch and use the following number on the
    first file... the sequence should follow correctly when you press
    Come in...

    (10001) .jpg (you can enter a group name and a space
    before the number if you wish) summer vacation (10001) .jpg
    John Inzer - MS - MVP - Digital Media Experience - Notice_This is not tech support_I'm volunteer - Solutions that work for me may not work for you - * proceed at your own risk *.

  • How to check interlaced fields are in the right order?

    I made a DVD interlaced in first. When I look at the video back exported, interleaving doesn't seem to be in the correct order, but I can't tell for certain.

    Other than conjecture, is a good way to check for certain, that the fields are in the right order? My Media Player does not play an image all at once, and I can't study the individual fields.

    Also: If you had a project that combines two videos from the field source levels? The correct procedure would be to move one of the videos upwards or downwards a pixel?

    You can do that in first, by selecting the view field under the key in the program window.

  • How to display text copied in the right order?

    I have a PDF document with text created from a Photoshop file.

    There are several layers of text in this Photoshop document.

    Problem:

    When I do 'select all of the text' in Acrobat and then "copy" and then paste them into a text editor text is pasted into the mess.

    It's a bit predictable because of the several layers of text in the original Photoshop file.

    Question:

    How can I find out the desired order of the text layers Photoshop when you create the PDF file?

    The layers are stacked in the correct order in the Panel layer in Photoshop. I was hoping that's the issue, but it is not. Is there another way in which I can specify the order of text?

    Your help will be very appreciated!

    It seems to work in reverse somewhat as a first In, First Out model. The best thing to do at this point is to open the navigation of content in Acrobat format Panel, locate objects and move them in the right order.

  • L50-A-19N satellite can not read audio data from multiple sources

    I can't read the audio data from multiple sources. It is very annoying when I have 2 youtube videos, playing, if I start playing something on the media player, there is no sound on media player, it's the same when I have 2 open media players and 1 youtube video playing, youtube video has no sound...
    It disappears when I plug my headphones...

    I already have all the latest drivers, the DTS driver was last updated was in 2014, his day of February of this year...






    25/02/14

    DTS Inc. Windows 8.1 - 64 Bit 1.01.2700

    I don't know if this has the feel, but I had his most recent DTS driver that I found, it is not my laptop model, but they all seem to be the same - v1.1.88.0
    I uninstalled the DTS software and still had the same problem, then it is irrelevant on its driver somehow...






    02/10/15

    Integrated Device Technology Inc. Windows 8.1 - 64 Bit 6.10.6491.0

    Audio driver IDT has more recent release date, but the version of the driver is the same as the 2013 one...
    Why the older drivers of toshiba releaseing as 'NEW '?

    2nd is my Advanced settings speakers, nothing has changed when I disabled "allow applications to take exclusive control of this device.

    Sorry but I don't understand your problem.
    I tested it on my machine and if I start the music on three different sources (YouTube, player, web radio) I can hear all together, but it makes no sense to listen to music from different sources.

    Or how do understand you?

  • Reading large data using the database connectivity

    Hello

    I use the Labview database connectivity toolkit to connect to my database sqlitev3 (I'm using ODBC). I just have to connect to the database (using the block of open_connection) and read all the values inside (using the select_data block). The problem is that my database is huge (about 2 GB), and I get this error:

    . VI NI_Database_API.lvlib:Rec FETCH Recordset Data (R)-> NI_Database_API.lvlibB Tools Select Data.vi-> real_web.vi-> real_web.vi.ProxyCallerADO error: 0x8007000E Exception occurred in provider: not enough memory is available to complete this operation. in .vi NI_Database_API.lvlib:Rec Fetch Recordset Data (R)-> NI_Database_API.lvlibB Tools Select Data.vi-> real_web.vi-> real_web.vi.ProxyCaller

    What should I do? It seems that he reads the data in the memory and it doesn't have enough space for it. When I read the data I want to write to a file.

    Read it in pieces. Write each piece to the file, and then repeat with the next segment. Try to read and process all data in one shot is not very practical and you found out will not work.

  • After you install Internet Explorer 9 (Beta) desktop computer does not display a date on the calendar

    Original title: after the installation of the Board explorer9 will not display calendar date

    tried to re install calendar but still no date display

    Hey flatcoat4247,

    O are you talking about the gadget?

    O also, do you mean to say the version of Internet Explorer 9 (Beta)?

    This behavior is most often observed if the XML registration is missing in the system. To resolve this issue, follow these steps:

    a. close Windows Sidebar. To do this, right-click on the Sidebar icon in the Notification area, and then click exit.

    b. open an elevated command prompt window.

    To do:

    i. click on Start > all programs.

    II. click Accessories.

    III. right click on invite and then click run as administrator.

    c. in the command prompt window, type the following command and press ENTER:

    regsvr32 msxml3.dll

    Similarly, run these commands:

    regsvr32 scrrun.dll

    regsvr32 jscript.dll

    If the registration was successful, you will see the message DllRegisterServer in succeeded to for each executed command.

    d. open Windows Sidebar (sidebar.exe) and check if the problem is resolved.

    See if it works.

    Kind regards

    Shinmila H - Microsoft Support

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • pl/sql block, reading the reading of data from the table to a single point in time

    I'm trying to figure out if several cursors in a PL/SQL block are executed inside a single Point in time, and so don't see no updates of paintings by other processes or procedures running at the same time.

    The reason why I ask is I have a block of code as an initial extraction of data, with some Sanity Check before the code runs. However, if another procedure might modify the data between the two, then the mental health check is not valid. So I am essentially trying to know if there is consistency read in a PL/SQL, preventing updates to other processes to be seen.

    Anyone who has an idea?
    BR,
    Chambaz

    Google SET Transaction.

    or

    Follow this link

    http://download-West.Oracle.com/docs/CD/B12037_01/server.101/b10759/statements_10005.htm

    Kind regards
    Prazy

  • can not read each message in the Inbox via firefox

    As of this morning, the Mar, 04/26/11, I can go to my Inbox, see all messages list it but can not read each email so that I can access via Firefox.  By clicking on each entry as usual, 'javascript' appear in the lower left corner, just above button start.  I have no problem reading through Explorer.  What have I done?

    Hello

    Try the procedure described in the following KB article

    http://support.Mozilla.com/en-us/KB/troubleshooting%20extensions%20and%20themes

    For more information, post your queries in instances of Firefox. Here is the link

    http://support.Mozilla.com/en-us/home

  • Microsoft Narrator does not read my documents on the screen - I get the answer "empty pane.

    When I give an order for Microsoft Narrator read what is on the screen, I get the answer "empty pane.

    Hello

     
    All changes made to the computer before the show?
     
    Check out the link and follow the steps.
    Troubleshoot Narrator
    http://Windows.Microsoft.com/en-us/Windows-Vista/Troubleshoot-Narrator-problems

Maybe you are looking for