reading photoplethysmograph waveform with serial port on PC using Labview

Hello world

I'm gaining time real Photoplethysmography waveform of serial port using Labview.I have managed to acquire data from serial port by using the following features:

-Baud rate: 38400

-data bits: 8

-stopbit: 1

 

-No parity bit

-Time delay before reading the serial port: 10 ms (according to what was written in the manual that every 10 ms there is a frame in serial port)

After the reading string will be converted to byte array to be able to extract the bytes associated with waveform (1 & 2 bytes in a frame) even for SOP2 (6 & 7)

(what is read in serial port is in decimal and must be converted to hexadecimal based on what made the software of prodeuct for some result.that in the waveform properties, I chose the hexadecimal representation)

Then, as mentioned in the manual, I associate these two values to draw the waveform.

Although I used the filter band digital waveform of pulse but not significant pass that was seen (cutofffrequeny:10 high low cut-off frequency: 0.5).

I have attached my program and result in front of Panel and manual for the sensor. The result is still far from what is supposed to be. I was wondering if you could help me and let me know your opinion on the program and the protocol used. I have to get the result as soon as possible. Please let me know if you need more information.

Kind regards


Tags: NI Software

Similar Questions

  • waveform, with an average of results using labview to O-scope

    Hello fellow engineers! I'm a first-yeargraduatestudent in CHEE at the University of Houston. Basically, I know nothing about labview. I am trying to program an application that looks like this - I collect a waveform of the signal of O-scope. This waveform does not change its characteristic shape. I need to find the wave form average of waveforms of N (100 for example). Thus, the slight changes (or noise) in the feature of form during the period mustbeaveraged out and I need to have a resultant waveform that represents the average waveform over a period. So, basically, I'm collecting the wave several times (for example 100) on a single period. The O-scope that I use now is Tektronix TDS 2024 B. It communicates with the computer via USB. The version of labview is 8.5. For now, I am able to communicate with the computer using our o-scope through labview. I already downloaded the driver of instruments of your Web site. It turns out that the program can give me only the average result I can get directly from o-scope manually. I need to have more say on average (100) using labview. I wrote a program that relies on the instrument driver that is downloaded on your website (for loop part is average, the waveform). The program that I modified and an instrument driver are attached. The program cannot be fully open, if the driver is not put in the right place in the labview (under lib inst.) When I run the program, the average waveform does not appear on the front panal and signal waveform file is not saved correctly. Is there someone can find where I did wrong and it develop for me? Because I barely know Labview, it will be even better if you can add an image or program that you have changed. I'm waiting for your creative ideas.
     
    With the best regards,.
    --
    Weiye


  • Communication with Serial Port

    Hello

    Hi I have a request that I should communicate with serial port...

    Its works perfectly if gives you all parameters to com as constants (pls hav a look @ codea).

    But I want to read the port number and baud RRSP file text. When I changed the encoding in serial number

    setting, I was not able to find the number rate.it and port baud displayed as the size of memory buffer. I think that the way I connected the baud rate and port number to the clusture may be a problem (pls see codeb). How can I solve this problem?

    Thanks in advance...

    Again, the point of connection to the Central Terminal is not not to define the values contained in the cluster - just the logical structure of the cluster. The data that appears in the cluster from the budler will reflect the data that you read from the file. Try it.

    Mike...

  • Laptop computer with serial port

    Hello, I would like to buy a new hp laptop with serial port. Could you suggest me some models?

    Thks

    There are still a few models of laptops business\Enterprise with serial ports.

    HP ProBook 6470 b and 6570 b Notebook PC have all two serial ports.

    Best regards
    ERICO

  • read data from a serial port

    Hello to everyone
    I use oracle forms 6i. I want to read data from a serial port. How can I do this?

    HII,

    You may search for any existing OCX or VBX component capable of doing this job.

    Better compliance
    Skyniazi

  • The cRIO serial port can be used for the CAN bus communication?

    I would like to order a CVC with a CAN of network device and would like to know if this can be accomplished by using a serial port integrates the cRIO (OR cRIO-9024 in my case). Is it possible, or would need a C Series module CAN?

    You need a C Series module. Series and CAN use a DB9, but they do not have the same physical layer.

  • Two reading a digital value serial ports

    Hello

    Under VI attached writes a numeric value to a port and reads to another port. But it shows exception of

    ' VISA: (Hex 0xBFFF0015) timeout expired before the operation is complete. "is this the problem due to the conversion of the numeric value to a string? or any other. Please post possible suggestion.


  • Trouble with the port replicator. Use of 2 screens and now only have 1

    Have a new laptop. (Lenovo) also bought duplicator. Hung, everything works fine. Got online to get assistance with updates is not crowned success, after that I just use of screen on laptop, any other monitor disappeared. Can't get it back

    Hi Tom,

     

    Thanks for posting the question in the Microsoft Community!

     

    You are unable to get the display of multiple monitors.

     

    I suggest you to contact Lenovo to get help for this issue.

     

    You can try to get help on the site:

    http://support.Lenovo.com/en_US/feedback/contactsupport.page

     

    If you need any other assistance, let us know and we would be happy to help you.

     

     

     

     

  • How the interface with a multimeter Keithley 2000 using LabVIEW



  • need help with an order first level using LABVIEW PID control process.

    As the program begins to run the PV value also increase when it reaches the SP is not settledown instead it stops.

    Have you tried on the NEST? There are a bunch of examples here on the forum

  • Problem: read bytes to serial port

    Hello, I need to communicate with an external device with serial port. I have to write a command to my device string, and then it should play with 64 bytes of data. I built a function of READING-WRITING and I use it in a loop (I have to read a lot of 64-byte block)

    Sometimes, I have the following problem:

    (1) I have send the command string, I wait with "Bytes to the serial port" whereas I have more then 60 bytes, then I read.

    (2) sometimes happen that the read function cannot read all 64 bytes, so the net for cycle, I have in the receiver buffer mor than 64 and the program to stop working. (does not work well)

    I need to be sure that after writing the command I have 64 bytes, so I red all the 64 bytes so the next loop for, I have the buffer of the empty receiver.

    I enclose my writing reading function. Please refer to the block diagram (there are a few notes).

    Thank you

    In no place in your program see the VISA configure the Serial Port. It's always a good idea to include this that even if you use the default settings. I suspect this is one of the default settings which is wrong with you. By default, playback is set to end when a character is considered. This means that if you have a 10 hex (ASCII LF) in your stream, playback stops until the specified number of bytes is read. Put in a VISA set up the Serial Port and connect a constant False to the stop character allow entry.

  • the NI 9871 serial ports appear also in MAX with built-in serial ports of the target - under devices and Interfaces IS NOT? NO NEITHER 9871 (Scan Interface)?

    Hi - Have cRIO

    Can someone help me get the NI 9871 (Scan Interface) work?  My two 9477 and two 9425 and 9403, function with the scanning Interface.  In MAX > software > NOR-Serial RT 3.82 > NOR-Serial 9870 and Scan Engine Suport 3.8.2 9871 BUT NOT == MAX > devices and Interfaces > series & parallel = number of Ports Com for 9871 listed?   Project, 4-port RS-485 NI 9871 is in slot1?  Any help appreciated thanks

    the serial ports on the NI 9871 also appear in MAX with serial ports integrated target under devices and Interfaces

     

    NEITHER 9871 (Scan Interface)

    I left the Slot 1 Slot 8 9871 Know works and MAX displays 4 COM ports.  Something is misconfigured in Slot1?

    Solved!

    Thank you

  • whille prob get bytes to the serial port for serial communication

    Hi all

    I have one using the series write vi to send the command to the instrument. the answer I get is read NICU playback vi. I use between read and write the serial port bytes accumulate bytes. BU what I observed is quite strange. When I run the vi with the debugger, I could c the bytes to port series is 201 and what I get in buffer is only 133.

    any1 can guess at what the problem would be b?...

    You don't show the function of VISA set up a Serial Port, but I guess you have the active stop character. Playback will end automatically when the character is detected and you should never allow when you try to read hex.

  • Serialize the data into several messages from serial port

    Hello

    My current LabVIEW project, I want to read data from the serial port and store the (transformed) response in a file.

    Since my design model is based arround the Manager of messages queued waiting my serial communication is also build around that. (see this post for my original question).

    But now I have the following problem:

    In the loop 1 I put several messages in the queue of loop 2.

    Loop 2 processes these messages and sends them to the print queue of loop 1.

    Loop 1 gets several messages that need to be combined into 1 string and (with other data) in a file.

    Just to clarify:

    Loop 1, I have send 3 messages for each connected device. Even though I have a separate file for each device, the response to the messages must be in 1 result string.

    (Note on the picture: there are other loops running at the same time you will also need to access the serial port for the port for loop 1 is not an option)

    Hope you can help.

    A next attempt to download the code

    The attached Code is provided as is. It has not been tested or validated as a product for use in a deployed application or system, or for use in dangerous environments. You assume all risk for use of the Code and the use of the Code is subject to the license terms of Sample Code which can be found at: http://ni.com/samplecodelicense

  • How to transfer files from PC to PC via a serial port using labview

    I need to transfer files (.txt, .doc, .xls) from PC to PC via a serial port using LabVIEW. Is it possible to transfer files, if so how to transfer?

    Yes, it is possible to transfer files with the serial port using LabVIEW.  The files are just collections of bytes and the serial port is good enough in the expedition of the bytes from one PC to another.  You must connect the ports series with a null modem cable.

    First, take a look at the example of serial communication.   In LabVIEW, go to the Help menu and select «Find examples...» ».  From there, you can search for "serial" or navigate to hardware input and output > series.  Select «Write series base» and Read.vi  Try this example to gain confidence on the serial communication methods.

    Then it's time to learn how to read and write files.  For this, the examples might be somewhat confusing as they deal with files that are presumed to have data of a specific type in them.  I would recommend just familiarize yourself with the functions in the file e/s palette.  Specifically, familiarize yourself with the following functions.

    1. Open/create/replace file - on the side of your destination, you will need to create the copy of the file you are trying to transfer
    2. Close the file - when you're done reading or writing to a file, you must close it.  It cleans the memory used and finalizes write operations that are still floating in the write buffer.
    3. Read a binary file - is the best way to play a file when you don't really like what type of file it.  In your case, you just want to get these read bytes and sent so they can be written down instead of destination.
    4. Write to a binary file - next to the destination, is what will store the bytes in the file that you created with the number 1.
    5. Size of the file get (under the range of the advanced features of file) - you need to know how big the file is, so you know when you are finished.

    OK, so once you are able to create files byte write and read bytes from existing files, you can move forward.

    I suggest the basic method is to have the user specify a source file on the source PC, and a folder on the destination computer.  Then find the size of the source file using the number 5.  Divide this number of size by the number of bytes that you want to transfer to the times.  The series pads are usually around 32 k (if I remember correctly) in order not to exceed that.  Now start to send data by reading a number of bytes and this string output wiring to the feature of writing VISAS.  On the side of destination, you will want to monitor the serial port for bytes and read when they arrive.  This string of yarn to the writing of the function of binary file to add them to your destination file.

    This is the basic outline of how to do it.  He needs to not to overload him write and read buffers on the serial ports.  Initially, you can use delays on the side sending to make sure that the side reading has enough time to digest.  To make things faster, you can bring in a control of flow.

    If all that sounds a little intimidating, there are there Alliance member companies (such as the automation of PrimeTest) who can write this code for you and even provides a turnkey for you solution.

    Happy wiring,

    Dan press

    Certified LabVIEW Architect

    PrimeTest Automation

Maybe you are looking for

  • Received by MS but also by the VST program change?

    Hello I have patches in MS I want to choose with my external keyboard through program changes. These patches contain Sylenth1 VST. The problem is that when I send the program change, MS he will receive, but Sylenth1 will also receive it. MS will sele

  • Lenovo T400, Bly - Ray player out there?

    Hey guys,. Ive been to a upgrade to my Thinkpad T400 and I wondered what else I got I could be upgraded. THE DVD PLAYER!So my question is, is there any blu - ray discs for a t400? Specifications of lenovo for a T400 page shows she has a blue ray play

  • To access Internet using smart TV

    I have a Samsung PS51550 smart TV which I connected to my WIFI network. I can use the mouse on the remote controller to write the words, but it is very cumbersome / slow. Is there a better way? Or a device to do this? Your thoughts welcome

  • Local security configuration DCOM blocked me as an administrator. Many functions of Windows do not work

    Dell Optiplex 745, XP Pro, SP3. The computer is 3 years, 3 G of Ram. Fully secure and clean. This is what appears in the local security settings, Security Options: DCOM: Machine Access: 0:BAG: BAD: I am an administrator and the main user of this comp

  • HP Envy 5530: Printer not closing

    Sometimes the printer will not stop. I press the power button / stop and it will work for cut you during a certain time and then freezes. Then I have to unplug it to stop it. This happens more often than otherwise.