analyze serial port hex data and graph time real conspiracy

Hello guys,.

am a newbie to labview and am currently working on my final project of the student, but I met a problem extracting the values of currents and voltage of hexadecimal string read to read the VISA stamp. I also want to throw the string header every time so that I can only process only the voltage and current hexadecimal string. My rope of the read data is attached. 0023-0034 0045 0132 AA55 AA55 AA55... Where AA55 is header I want to throw. The following 2 after the header bytes represent the tension, while the 2 bytes represent the current. After 6-byte header (AA55) appears again.

So far, I read the data read as attached VI visa, and I would be recognizing all assistance to extract successfully, only the voltage and current values every time the (AA55) header is read to raw data. I have read several forums observation about the covers this topic but none seem still a click. Thank you once more!

The VI am working on is attached and some failures in the print screens.

A framing error means that something is wrong with your string of bits 1 and 0 s, coming from your equipment.  The start and stop bits are not where they are supposed to be.  Check all your configuration settings set to ensure that they match the device.  Baud rate (230 400 seems quite high), stop bits, data bits, parity.  Something is probably wrong in there.  That or if you have bad cables or electrical noise interfere with transmission.

Why is it you are emptying the receive buffer?  Which is almost never necessary and could actually cause you to lose data or start the synchronization of your data once you've established.

I don't know what you're trying to do in this while loop inside.  That looks nothing like what I was describing.

See the attached VI.  I have not fully tested (after all, I do not have material sending me data).  But it should give you the idea.

Tags: NI Software

Similar Questions

  • How display the date and the time in the taskbar on Windows 7 Home Premium 64 bit system?

    How display the date and the time in the taskbar on Windows 7 Home Premium 64 bit system?

    I already did it.  The time is displayed in the correct format, but I can't seem to view the date of

    Any other suggestions?

    Thank you

  • Using the Serial Port for data acquisition Non-Serial

    I searched the forums and can't find anything on this topic.

    I saw that it was possible to use the parallel port for e/s digital single and I was hoping that the serial port can be configured the same. It seems all VI VISA only to use the serial port to receive ASCII characters at a given flow rate, but is it possible to simply query the status of the line series at my own speed to see if it is high or low, kind of like a single pin DAQ?

    It seems that it would be possible until the serial data are read and controlled by labview, not Windows. Let me know if you have ideas of how to approach this problem, or any comment as to why it is not possible.

    Thank you all!

    Select the property > settings series > Modem of the line parameters. For example, the State of the CTS is an entry to the pc.

    With the help of these lines is a very poor substitute for a scope or map DAQ. The only things you can return is Asserted, Unknown or Unasserted. The range of acceptable signals is important enough. Anything between + 3 and -3 is an unknown state. Your other signals is + / 3 to 15 volts. What type of signals do you really want to capture?

    Edit: there is no such thing as a visa so I have no idea of what you actually use.

  • Mac Mini 2010 Date and reset time

    SP, recently, apparently without any reason at all, date and time of my Mac Mini will reset to January 1, 2000 at 00:00:00 every time that I turn on/off. I tried various methods, such as getting it automatically sets the time and date, manually set the time and date and time zones and other things. Nothing has worked.

    As in the title, it's a Mac Mini 2010. I had this problem before with a full boot disk and other things, drive hard replacement necessary. He was replaced earlier this year, and I had no problem with him since then, so far. It is the break Safari (certificates are not recognized), internet and other applications such as soft. Any suggestions?

    A flat battery logic-board can cause this behavior. Refer to the user manual for replacement instructions. You may need to take the machine to a provider of services to have to replace the battery.

  • Serial port, the ethernet and ethernet default management

    Hi all

    I try to install properly the DC200. I am trying to connect in the port of serial console, but with some problems...

    Please, see the image as an attachment:

    (1) that is the difference between the 6 and 7 ports? Both are management interfaces...

    (2) and then, which is the right way to set up the initial steps? The Cisco Guide is not very clear to me... Firstly I can connect to the serial port or before that I need to plug to VGA with a monitor and keyboard to redirect the output to the serial port?

    Does this mean that I need to run sudo /usr/local/sf/bin/configure_console.sh series , then sudo reboot to work correctly the console port series?

    (3) then, of which interface I can take the managed devices?

    Thanks in advance
    Kind regards

    Lor

    If you try to console in, just a monitor to the VGA connector, a USB keyboard will suffice.

  • Get the sytem date and the time of the BB device

    I tried the following code may not work on a BB:

    funcon {DisplayTime()}

    info of ti s ar = System.Tie.get.localime (System.Time.curentTieZone); ....

    ... this can't work because there is no such thing as the 'system' inside the widget.

    I saw there was a very long thread for Java developers, where they finally got up to 8 or 10 lines of code get the gross system in milliseconds time, then get the offsed calendar GMT then reformat to indicate the correct time.

    UM... in the widget environment, I don't think that we have very limited ability to access the object of the blackberry.system system, and we can invoke, but not query the calendar object (I think)... of suggestions?

    would be really nice if there was only a function now().

    Kind regards

    Scott

    var now = new Date();

    Who should get the date and time to the millisecond with the GMT offset

  • How to find the Date and the time of Installation of Oracle on Windows?

    Hello

    Is it possible to find the installation Date and time of Oracle on Windows?


    Concerning
    Rajesh

    If you have never recreated/restored/reincarnated the database, then COLUMN of v database $ should tell you when you created the database.

    If you are looking for the time of installing Oracle home, check the logs under OraInventory.

    Reply by Satish sir at the following link:
    installation of a database date/time!

    HTH
    Girish Sharma

  • Get the CURRENT Date and the time?

    Hello

    How to get the time or the date CURRENT? I need this because, am creating a (multi-line) TEXT field, when the user enters his COMMENTS / notes/comments, so I need to take care of this COMMENT by concatenating the TIMESTAMP

    For example, I opened my_form at 14:10, I received a call from TV, its about 15 min, then I'm back (the time is now 14:25) for my_form and entered some of the comments, so, I need to store these observations as well as TIME STAMPS, which means that its 14:25 (not, 14:10)

    Pls let me kmow in Java Script

    Thank you

    Here is a method.

    Date

    Form1.Page1.Subform1.DATE_::ready:layout - (FormCalc, client)

    $.rawValue = Concat (Num2Date (Date ("MM/DD/YYYY")))

    Time

    Form1.Page1.Subform1.time_::Initialize - (JavaScript, client)

    var date = new Date();

    var h = date.getHours ();

    If {(heures > 12)}

    this.rawValue = (12 hours) + ': ' + () date.getMinutes + "H";

    }

    else {}

    this.rawValue = hour + ":" + () date.getMinutes + "AM";

    }

    Steve

  • In my "Plugin Check & Update" Shockwave Director is not up-to-date, and every time I go on the site. Nothing happens, it just says: "Installation Complete.

    -Hello! This issue has been a problem for months and has been bothering me for a long time and I don't even no what the problem with my browser, or my computer if this is the case. I tried several times by clicking on the "Plugin update" I go to the website of Shockwave and he told me that the installation is complete, but the confusing part is that I have the ability to download anything. He just said "complete Installation."

    Help, please!

    And, if possible, please tell me how to uninstall the Shockwave Director, because I do not think that I still need.

    I'll try and offer the pictures of what I see, I hope it helps.

    That's what he tells me.
    [IMG] http://i1251.Photobucket.com/albums/hh553/KervinsPictures/FireFoxProblem.PNG Line

    [IMG] http://i1251.Photobucket.com/albums/hh553/KervinsPictures/FireFoxProblem2.PNG Line

    Hello

    You should not install Shockwave Player unless you know for a fact that you need.

    1. In the next page, save the uninstaller program, the full installer for Netscape and the full installer for Internet Explorer if you wish also in this browser.

    2. Close all applications.
    3. Launch the uninstaller.
    4. Restart your computer.
    5. Run the installer for Netscape.
    6. Run the Setup program for Internet Explorer, if you downloaded it.

    This forum supports BBCode as the [IMG] tags. You can simply post the Plains links to images. In the replies to the thread, you have the ability to attach pictures to your message.

  • Possibility to send e-mail to later a date and a time

    I am wanting to create emails today and sent as reminders before each football game and practice throughout the summer.  How can I set up the email to send automatically to future dates...?

    I know two ways to do:
    (a) with Outlook when you are connected to an Exchange Server
    (b) with the scripts, using a command line mailer.

  • XY graph in time real conspiracy

    Hello

    I'm creating a program of measurement of C-V-T using HP4284A RLC and Lakeshore 330 temperature via gpib controller. I'm of the temperature and voltage scanning. I need to have a simultaneous ground CV and I use an XY graph to display. My problem is when the loop set in the iteration next steps back without erasing the graph for the scan again. Can someone please help me find how to clear the grap of old values each scan

    Thank you

    Jean-Marie

    Hi odimuthu,

    My problem is when the loop set in the iteration next steps back without erasing the graph for the scan again.

    Usually, you would create another plot in the same graph for the next scan!

    When you really want to plot the data in the current sweep you must delete the data stored in the passage records (aka feedback nodes) when you start a new scan!

  • How to periodically send various types of data via the Serial Port?

    Hello! Everyone

    I have to send data to LabVIEW to my device on the Serial Port.

    I know how to send data on serial port in LABVIEW, I already have this part.

    Now the problem is that I have several types of data I need to question my embedded device, if I want to send the query periodically command.

    So lets say that my four Op Codes are the following, which will send four different types of query command to my device on the serial port.

    (To be honest only OP_LED and OP_SENSOR is used now)

    0, OP_SYNC

    1, OP_LED

    2, OP_SENSOR

    3, OP_FUTURE

    Structure of basic package is as follows:

    Header (0x2C), Checksum, length of the data (n bytes), Op_Code (1 byte), length (length of Code + data Op)

    For OP_LED, I need to send the package as follows:

    0x2c 0x02 0x01 0 x 00 0x2F (0x2F being the XOR checksum) (calculation of Checksum part is done and SUB Vi form)

    Length of the package this is 0x02

    0x01 is Op Code for OP_LED

    In the same way

    For OP_SENSORi need to send the package as follows:

    0x2c 0x03 0x02 0x00 0 x 00 0x2D (0x2D being the XOR checksum) (calculation of Checksum part is done and SUB Vi form)

    0x03 is length of packet here

    0x02 is Op Code for OP_SENSOR

    So, how can I do this periodically in labview, in such sort that period can be adjusted whenever necessary.

    Is there something in LabVIEW to do.

    I had done the reception and decoding part and working properly.

    http://forums.NI.com/T5/LabVIEW/store-data-coming-from-serial-port-in-buffer-and-then-take/m-p/32722...

    So I must implement read and write the part of same while loop?

    Do not insert in the table if you put data in an array at index 0.  Just use array to build.

    No need to have Visa to write don't be a part of wire to the wire of reference and error VISA go in the upper part.  These wires should go THROUGH the entry VISA.

    Don't your checksum requires all the bytes up through data?  Righ now, you only put the checksum on data bytes and forget the opcode and length bytes.

    Your sending is not the opcode for Opsync or Opfuture.  You just send the empty tables.  At the same time for the other two, you put the opcode in the data table.  All your original opcode in the table build thread.  Get the data out of these structures in case item which is supposed to represent the opcode.

    xpress_embedo wrote:

    Now it works but I have now two problems.

    (1) OP_SYNC and OP_FUTURE do not data, but still receive its data on serial port, can I do something here as I have nothing when the table is empty in the structure of the case.

    I do not understand this statement.  Perhaps my answer above will fix any issue you have here.

    (2) how can selection operation Code to be send is done using control façade but real application, this task should be automated to a certain frequency, like OP_LED package must go out to the serial port to 100msec and packet OP_SENSOR must go out to 1000msec, I do this.

    Now you agree a little more architecture.  I would encapsulate the code that is in the while loop as a Subvi.  Then with the hand of your program while loop, use two time Express VI, a game for 100 msec, the other for 1000 msec.  When an express VI is true, run the Subvi with a command set waiting for the answer.  When the other VI Express is true, have it run the Subvi with the other set of commands.

    The device responds with anything when you send these commands?  You only send data.  I see no VISA Read to be able to recover all the data.

  • Waiting for data on serial port

    Hello everyone.

    I'm trying to figure out how I can solve a problem on LabView. I programmed an Arduino board to read and send a data table of the accelerometer on the serial port. I want to LabView to receive the data and graphs it. My problem is that Arduino send data on an ongoing basis and sometimes LabView can not cope with traffic and read some values "0".

    Is it possible to wait for the data and solve this problem?

    I joined my current vi.

    Thank you much in advance.

    AndreasSchnaas wrote:

    Yes, the characters are 0-9 and - no. ' + 'or'. '. And bytes that vary.

    Once again, thank you very much.

    Given that you send ASCII characters, change your Arduino code to send a character to end of line (10 byte value) at the end of each transmission.  Your code is already configured to use it.  Then you need not use the bytes to the Port at all.  Suffice to say the VISA of reading to read a large number of bytes.  Playback stops when it finds the stop character (value 10).  Your code will get a lot easier from there.

  • How use the serial port read and display the text but not scroll off the screen?

    I'm new-ish/return user fan of Labview and trying to change the example VI "Advanced serial write and read VI" is the part of the dev suite 2012.  I need to use the string box for ALL of the text from a serial port, always adding and just roll off the screen when the actuals come to the serial port.

    What actually arrived more than bytes (or no bytes AT ALL!), during reading time text, current rolls out of the box in the chain.  Even when receiving 0 bytes, screen is removed.  I'm not very familiar with the locations of functions and even worse to understand obscure references to functions, so please keep very basic answers so I can follow.

    Just to be clear, I need window of the chain behave as HyperTerminal does always displays the data and it is not pushed by window arbitrarily.

    Thank you

    Steve

    A long shot.

    Is that what you want?

  • Visa read write on port series independently and at the same time!

    Hi all!

    I need to read and write data to and from a serial port (rs232) independently and simultaneously .

    I'm sorry that I can not put a picture of that, but it's very simple:

    I used "set up the serial port" and forwarded to two while loops, the resource reference.

    a loop is reading data and the other loop is writing data to the port.

    the problem is when the playback loop (function serial reading) waiting for data - it blocks the other loop to run (writing of the serial function is blocked).

    I searched the forum and find this visa open function has 'duplicate session' option - that's what I need?

    If true, can someone explain exactly how to wire and use it in the right direction?

    Thank you very much.

    Guy.

    OK, I found an example that solved my problem: a VI called   serialduplicatesessions.

    The file is associated.

    Here is the link for all cases: http://zone.ni.com/devzone/cda/epd/p/id/1727

Maybe you are looking for

  • How to install Vista using product from the bottom of the Satellite P200 key?

    Hi all I recently had to replace my HARD drive as my P200 took a fatal error, corrupt all the data on the old HARD drive. I have no recovery at all disks, (none were provided), and I was wondering how am I supposed to do to reinstall Vista using my p

  • Spooler subsystem stopped working

    all of a sudden I have when I try to print I get Spooler subsystem stopped working.    I check my printers and shows nothing, when I try to add the printer, I get a pop up that says the system does not re start the machine.   I rebooted several times

  • HP LaserJet 1020 has stopped working.

    Windows cannot open.  Add a printer.  The local print spooler does not work.  Please restart the spooler.   No printer found. Please install printer. HP LaserJet 1020 - the name of the file is not valid.

  • is this humble?

    Super noob question prepare... are you ready? OK, here it goes... I just got my new laptop, I ordered a dv7t quad edition that I was looking around and checked the system information, it says "HP Pavilion dv7 Notebook PC" is this the same edition dv7

  • How can I watch movies and shows with my dishanywhere account?

    How can I watch movies and shows with my dishanywhere account? Is required to download the video optimizer dishes online but surface rt will not let me.