Hello!!!I need to read some data from the serial port and processing these, at the same time I want to see the process that I am doing.

I read the data without problems, and I see them using Waveform graph, the problem is that I want to see the real time stamps, but in the graph appears 2:00:00,000 and 01/01/04, so the date and the time is wrong !!
Can I change this?
I am thinking that the problem is that I have to adquire the data and the time stamps ( using Get date/time) and after, I have to represent both!!!
Thanks!!!

Hello,
As you probably know a waveform is made of a beginning time (t0), a time difference between each value (dt) and an array of values (Y). Your problem is probably that you don't initialize t0. Use the Vi 'Waveform->Build a waveform' to initialize the time of the waveform.
Hope this helps !
Julien

Similar Messages

  • Best way to acquire data from both serial port and D/A board in real time?

    In my experiment, I have 2 kinds of data: analog and digital. Now, I have to write a programme to acquire both data not only in real time but also in sychronicity. My colleague tried to write a program for this purpose. However, the digital part was failed. For example, the data length found from "data buffer" is correct in the first 10 seconds; however, the format became wrong later.
    Is it one program involved two different data acquisition methods? 

    Hi,
    You need to figure out when the serial port sample occured by some technique and then obtain the equivalent sample from the aquisition board, probably from a circular buffer. If you know the sample rate (pretty implicit really) you can 'cherry pick' the appropriate measurement from the buffer to be synchronus with the serial port measurement.

  • "Example on reading combined signals from a serial port and separating them for display purposes". I am a beginner in Labview and would appreciate if anyone help with that

    I am working on a wireless vital sign monitor. I have 3 signals; heart rate and temperature. I filter and amplify the signals before converting them into digital form. I then pass them via MAX232 before passing them to RS232 serial cable.
    I am therefore working on a program to receive the combined signal and separate them.
    I have come across serial read and write examples on ni.com but am looking for one where I can actually separate combined signals and display them separately.

    Reading the serial port will give you a string. How you divide the channels depends on how the data was formatted before it was sent over the serial channel.
    If you are designing the instrument, as it seems from your query, then you can set up any form you wish. If your data is always floating point numeric, you could use space or tab characters to separate data words. You could use and XML format. If the instrument is provided by a vendor, contact them for the protocol.
    If tabs are used between words and returns between sets of readings, the resutlant string can be interpretted by the Spreadsheet String to Array function in LV.
    Things to avoid are characters often used by serial communications systems as control characters. Carraige returns are
    often used as command terminators by serial protocols, but may also be used by the port.
    Lynn

  • HT4061 I need to download some data from my phone prior to restoring it to the last backup. When connecting to itunes to download photo's it is suggesting I restore the phone. Is there a workaround?

    Hi,
    I need to download some data from my iphone prior to backing it up. When connecting to itunes it is suggesting I restore it now. I will lose quite an amount of data if I cannot find a workaround. Is there any way to get access to contacts, notes and photo's before I restore the phone?
    Phone details are: model: A1429
    FCC:       ID   BCG-E2599A
    IC            579C-E261DA
    IMEI:      013412004666230
    Cheers

    Thanks for the update. I went through the restore process and all the data I thought I would lose was there. The data must have been copied straight away before the update failed over.
    Cheers
    John.

  • I've got the labview vi written to read my IMU data from a serial port in COM1 and it displays onto the table on the front panel. I'm having trouble getting this data onto an excel spreadshee​t. Any ideas?

    I've got the labview vi written to read my IMU data from a serial port in COM1 and it displays onto the table on the front panel. I'm having trouble getting this data onto an excel spreadsheet. Any ideas? Right now my data will collect one reading instead of continuously reading my IMU which displays data in a continuous stream.
    Thanks
    Attachments:
    Read_IMU_Drew.vi ‏21 KB

    Hi
    Your vi is in 2009 version, which i am unable to open in 8.6
    However, if you want your data to be saved in excel sheet, here is the VI
    Somil Gautam
    Think Weird
    Attachments:
    save to excel.vi ‏12 KB

  • Urgent!!! Need help in file read/write data to a serial port

    Hi,
    I really need someone's help in order for me to complete my project. I have attached a vi which I have taken from an example and integrate to my project. In the vi, I have managed to get the encoder counts using Ni 9411. I need to read/write that data from ni9411 to ni9870 without using any serial port as they are connected to a NI 9104 chasis. May I know whether I am correct in writing the data to my ni9870 port using the vi I have attached? Does anyone know how i can convert the number of counts to a 8-bit data/byte so that I can send the data through the RS232 port? I really need someone's help as I need to finished in 2 weeks time.
    I have also attached an vi on controlling the epos2 controller using instrument driver. Does anyone know how can i integrate this vi to the fpga vi (the one which I need to read/write data to 9870) as I need to send those data to control my epos2 controller.
    Please help me!!!
    Attachments:
    Encoder Position & Velocity (FPGA).vi ‏23 KB
    SINGLEMOTORMODIFIED.vi ‏17 KB

    Afai,
    As I allready suggested you here, call your local NI Office and ask for assistance!
    You really need assistence in a higher level that we can provide via the forums. Otherwise I don't see a chance for you to finish your project in time.
    1. Convert I32 to U8 to write it to the 9870 could be done like this:
    2. The vi to control the epos2.
    There is NO way ( absolutely NO way) to port this vi to FPGA. It's based on VISA calls, uses an event-structure, both are not available at the FPGA.
    The only thing you could do is to analyze the VI, the instruction set and design an FPGA vi which handles the specific instructions you would need.
    I have no experience with epos2 and I'm not 100% sure if this would work as you would like to use it. And doing this needs deep knowledge of LabVIEW, VISA, Instrument Drivers, the epos hardware, FPGA programming, and so on... 
    Christian

  • How to retrieve data from the serial port and decode it each 2 bytes is a long variable and 1 frame is about 6 bytes

    I send the frame by a microcontroller ( 8bits) the fram contains 6 bytes, 2bytes conform a long variable, I want to decode the frame and make operations with these long variables and then plot them

    Hey jpvans,
    I would first suggest using NI-VISA to talk to the serial port. Then, you can use the LabVIEW Type Cast or the Flatten to String and UnFlatten From String VIs to convert the data.
    You can setup the read so that it reads just two characters at a time to form an individual long or you can set the read up to read it all and then use the string functions like String Subset to cut the information into chunks.
    I hope this helps out.
    JoshuaP

  • This may be a duplicate but, I have a new ipad mini that I need to activate but I need to get my data from my 1pad 1 which has never been backed up.  How do I get the data from the ipad 1 to the new mini?  I have itunes acct and also Icloud acct.  Thanks

    I have a new ipad mini that I need to activate but I need to get the data from my old ipad 1 and install on the new mini.  I have a itunes acct and also icloud acct.  How do I back up the ipad 1 data and then activate the mini.  I assume I will need to transfer the sim from the ipad 1 to the mini.
    Thanks for any info
    wino454

    How to Transfer Everything from an Old iPad to New iPad
    http://osxdaily.com/2012/03/16/transfer-old-ipad-to-new-ipad/
     Cheers, Tom

  • Read image data from SQL Server database and display it in a JSP web page

    Hi experts,
    I am doing a project in which I have to upload images to the database via JSP/servlets. I am able to do this.
    Now I want users to view and dowload these images which are stored in the database.
    Please help me of how can I read the images from the database and display it on jsp webpage and also can be downloaded by users via jsp pages on client side.
    Please help!

    Hi you may go through the below post to find what could be a better way to do that.
    http://forum.java.sun.com/thread.jspa?threadID=5163829
    REGARDS,
    RaHuL

  • Sending/reading hex data to a serial port in Powershell

    I have a device which responds to serial port requests. Using portmon I can see a request formatted as a six byte hex string.
    e.g. x'02031005E6 the last byte being a crc which I can work out.
    I don't seem to be able to write this data to a comm port as if I write
    [Byte[]] $request = 0x02,0x03,0x10,0x05,0xE6
    $port.Write($request)
    I see
    0.00189600 powershell_ise IRP_MJ_WRITE LSerial0 SUCCESS Length 12: 32 20 33 20 31 36 20 35 20 32 33 30  
    where I was expecting Length 6: 02 03 10 05 E6
    even if I write
    [Byte] $request = 0x02
    $port.Write($request)
    I get
    0.00188317 powershell_ise IRP_MJ_WRITE LSerial0 SUCCESS Length 1: 32  
    I have a nasty feeling I am misunderstanding how Powershell handles hex strings/arrays and will assume the sucking of air through clenched teeth on the reply.

    Your handling of Bytes, hexadecimal literals and arrays is fine. What type of object is the $port variable referring to?
    Edit:  If it's a [System.IO.Ports.SerialPort] object, then the problem is that you're calling SerialPort.Write() with a single argument.  The only overload of that method which takes a single argument accepts a String parameter, and PowerShell
    is automatically turning your bytes / arrays into a string representation (which is then being converted back into a byte stream.)
    To use SerialPort.Write with a Byte[] argument, you need to pass in 3 arguments:  The array, the offset, and the byte count.  For example:
    [Byte[]] $request = 0x02,0x03,0x10,0x05,0xE6
    $port.Write($request, 0, $request.Count)
    See
    http://msdn.microsoft.com/en-us/library/System.IO.Ports.SerialPort.Write(v=vs.110).aspx for more info.

  • Need to fetch some data from peoplsoft system

    Hi,
    We have peoplseoft as trusted source which gets all employee data into IDM.
    Just wanted to check whether the below requirement is feasible or not:
    1. Delete user accounts in IDM when any employee gets demoted.
    Currently only few employee records get reconciled into IDM. People like VP, marketing, sales guys data comes from peoplesoft to IDM. Remaining people(employees) like floor warden, clerk, store cleaners, data doesnot flow into IDM.
    Can we query peoplseoft and fetch records when any employee gets demoted from manager to simple store employee(worker), so that we can delete his account from IDM?
    PLease let me know if we can create a schedule task which can perform teh above functionality. Let me know the feasibility of teh requirement.
    Thanks,
    Kalpana.

    Gurpreet,
    You can create a transaport request for those six entries as below:
    Go to SE10 or SE09 or SE01 and create a new TR. Use TR type as Workbench Request.
    Double click on the request and go into the change mode.
    Insert an entry with Program ID 'R3TR', Object Type as 'TABU' and Object Name as '<Table Name>'.
    Now press enter. It asks to maintain table key.
    Press on the key which appears on the Function column. There you can maintain the keys for individual keys for every record or an generic key.
    If you maintain as '*' it takes all the entries of the table. Lets say a table is having Primary keys as MANDT (client) and MATNR (material number), the ket would be <Client><Mat no>. e.g. 100Test1 (Here 100 is client and Test1 is material) or 100000000000000000012 (Here 100 is client and 000000000000000012 is material)
    Likewise you can maintain the keys for all required 6 rows. Once the request is created get this transported to Quality client.
    Hope this will solve your problme.
    Thanks.

  • Fetch data from a R3 Table and send to XI

    Hello XI Experts,
                     I am involved in a scenario where i need to read some data from a Transparent table in R3 send to xi and post a CSV File.
    I have worked on look ups at the XI abap stack but i want to know which is the best solution to do this.
    What's the best way to read a table from R/3 and send to xi server. Is there any other ways besides Look ups? 
    Regards,
    Anirban.

    Hi,
    >>>1. When is look ups advised .
    a lookup is when somewhere in your
    interface flow you have to lookup some data
    for example you send data from one system to another but you have to change material numbers before
    sending the data to the target system
    you know that material numbers are inside some other server so you have to call this sever (very often in a sync way) to lookup the material numbers
    so this would be difficult with IDOC for instance
    >>> 2. Which is a better solution, if i have very few data to fetch with WAS >= 6.20 . Abap Proxy Or a 'Z' Idoc.
    you'll be able to do it quicker with ABAP proxy
    if you use a scheduled report that will send the data from r3 then use ABAP proxies
    Regards,
    michal

  • How to read and write from the serial port using java

    can anyone tel me how to capture data from a serial port and display on the screen and also store it in a database.

    Java Comm API, JDBC

  • Reading JSON data from a URL

    Hi all,
    I have a requirement of reading JSON data from a particular URL and using one of the value to set one property in iView. I need some info on how to get JSON data from a URL and extracting attribute's value from it.
    What are the APIs that can be used for this?Can anyone provide a solution/working example in Java for this?
    I am working on EP 7.3.

    Hi Tarun,
    JAXB should work for you. Take a look at this example:
    JAXB JSON Example | Examples Java Code Geeks
    Regards,
    Tobias

  • FM or BAPI for reading invoice data from backend

    Hi Experts,
    We use SRM 4.0 and need to read invoice data from Back end (creation time and number).
    Which FM I can use?
    Thanks in advance
    Evgeniy Vazhev

    Hi,
    look at the below BAPI's
    BAPI_CUSTOMER_DISPLAY
    BAPI_CUSTOMER_GETDETAIL2
    Regards
    Sudheer

Maybe you are looking for