Timed data read out

Hi,
I have a text file filled up with data like this
-0.027762___0.020000
-0.031100___0.040000
-0.028828___0.060000
-0.031166___0.080000
-0.031016___0.100000
-0.030647___0.120000
-0.027762___0.020000
-0.031100___0.040000
-0.028828___0.060000
-0.031166___0.080000
I would like to line-by-line strip the unnecessary data away after the first number. I would like to display this updated set of data in a graph in a way that the X scale would show the relative time with 20 ms resolution. I thought of a solution similar to the attached picture but it is for charts. I need to display it in graphs as I want to include cursors as well later on.
Does somebody have an idea how to get rid of the unnecessary data efficiently and how to display the updated data in a relative timed X scale?
Thanks,
Krivan
Solved!
Go to Solution.
Attachments:
ChartProperties.PNG ‏6 KB

Hi,
like the attached VI shows I tried to "clean" the data file using the match pattern and then save the modified data into another text file. I tried furthermore to set up a graph to show the modified data with time information [step in every 20 ms].
It somehow doesn't work for me but don't see why. Can you please advise what I'm doing wrong.
Thanks,
Krivan
Attachments:
raw_data_file.txt ‏2854 KB
graph_with_timestamp.vi ‏12 KB

Similar Messages

  • Who worked with ICS' Model 4896 GPIB? I can not count the data from the module. Can prompt as it to make. It is desirable with examples (data read-out from the module and data transmission between channels. It is in advance grateful.

    I can not count the data from the module. Can prompt as it to make. It is desirable with examples (data read-out from the module and data transmission between channels. It is in advance grateful.

    Hello. Most of the engineers in developer exchange are more familiar
    with NI products. Contacting ICS for technical support is a better
    course of action.

  • Using image data read out from a file

    Hi,
    Having used the GetBitmapFromFileEx(), GetBitmapInfoEx() to acquire the necessary image data (most of them is the .png format), then using the FileToArray() to put the image data in my own binary file, e.g., "mypicture.dat". My idea is that whenever need to use the image, I can read out it from mypicture.dat and then display it on a pcture control.  But when loading the image data to the memory, I have no idea to map the image data buffer to an image resource, which can let to acquire a bitmap ID.  Because from the  cvi's image processing function lists, it seems that must through such as  the GetBitmapFromFileEx(), GetBitmapFromFile() to acquire the image data buffer and the bitmap ID, then using SetCtrlBitmap() to diplay it. Is there any way to resolve the problem? Thanks.
    David 

    Well, to read and write raw data file informations from a PNG image you must adhere to this standard. As a source of informations you may take a look to this Wikipedia page and to the links in this page from the PNG Home site.
    So the problem is: does your application worth the effort to study this documentation?
    Edit: FYI part of this job has been already made in CVI by Guillaume Dargaud for his ReadSavePNG instrument driver. It's been a long time since I have used this instrument, as I/O operations on PNG files have been integrated into CVI since release 8 and support for JPEG files in release 7 or so. Nevertheless I saw functions in that instrument for accessing raw data in a PNG file so you may find them useful for your needs.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • How do I stop the fake "Adobe Reader out of date" hijack

    In IE I will get a fake "Adobe Reader out of date" screen from newupdate24.com. The screen looks official. I clicked on the update message and got loaded up with virus and malware.
    The IE phishing filter is enabled and has no effect.

    gwbcomm001 wrote:
    This is some kind of malware or phishing. I just had a "update to Adobe Reader professional" in Chrome.
    I'm sure you're probably correct about that but, it's not a Reader or Adobe issue. You'll want to start searching around for a forum or support site that has folks that deal with this sort of thing. Good luck.

  • Read out current date on mobile devices?

    Hello there,
    how can I read out the current date in a mobile Flex-App?

    Getting the current date is as simple as creating a date object with no parameters, e.g.
                                  var d:Date = new Date();
    For formatting, check out the DateTimeFormatter class.
    -- Tom

  • How to read out data via usb

    Hello,
    i am trying to get the measurements of a dial indicator, "MarCator 1075", product of Mahr Co. via USB-Cable.
    I installed all the drivers and MAX shows that its a COM-Device and its working properly. So i configured the settings: baud rate 4800, data bits 7, parity even, stop bits 2, apllied and saved the changes.
    I tried those 2 attached VI's, but it doesnt work.
    1. basic_serial_write_and_read.vi is the standard VI for USB-communication of NI.
    2. Sylvac Read.vi is a VI the vendor send after i talked to him to inform me about the dial indicator. He said its a VI to get Data via RS232, but the problem is that i dont have a RS232-slot in my computer. In order to that i have to realize it via USB.
    I think it doesnt work because there are no databits to be read out. When the dataflow arrives the "VISA-Read" theres is an error. This occures in both VI's.
    Error -1073807339 occurred at VISA basic_serial_write_and_read.vi
    Possible reason(s): VISA:  (Hex 0xBFFF0015) Timeout expired before operation completed.
    Anyone who can help me with my issue??
    thx in advance
    best regards
    Attachments:
    basic_serial_write_and_read.vi ‏34 KB
    Sylvac Read.vi ‏22 KB

    Hello FCHansa,
    have you installed the proper drivers?
    Which version of LabVIEW are you using?
    Which OS are you working on?
    In the LabVIEW Example Finder you have a simple example how you can communicate to a USB HW via NI-VISA.
    It's called "Basic TCPIP or USB VISA Write and Read - PDA.lvproj". Or another would be "Basic TCPIP or USB VISA Write and Read - Touch Panel.lvproj"
    Have you configured your USB Device to a virtual COM interface?
    Also please have a look to these links:
    What is the Difference Between USB Raw Control and USB Raw Bulk?
    http://digital.ni.com/public.nsf/allkb/400D6EAB5CFE1C6B86257395005F5D48?OpenDocument
    USB RAW Controller
    https://decibel.ni.com/content/docs/DOC-2022
    Also, please follow the advises of smercurio_fc! As he said you need to know to which commands your Hardware is responding to.
    Best regards,
    Abduelkerim
    Sales
    NI Germany

  • Error #1107     The ABC data is corrupt, attempt to read out of bounds.

    Today i stumbled upon the "Error #1107 The ABC data is
    corrupt, attempt to read out of bounds."
    I googled the problem, but the only suggested workaroud (foud
    in the bugbase - https://bugs.adobe.com/jira/browse/ASC-2289) was
    not applicable to my case. The problem was reproduceable with Flex
    3.2 and Flex 4 SDKs.
    However, commenting out parts of my code, i found out that
    the problem was causing my set of test data, which was
    syntactically correct, but very very large (static const Array with
    34611 objects to be precise). I deleted half of the test objects
    and the error was gone.
    Hope this helps somebody ...

    Nevermind I fixed it..
    you just change the default program you open swf's with in windows..

  • Be able to Read Out Loud text, not just form fields

    I am trying to develop an accessible form that has at its end the following statement:
    "I hereby certify that all statements on this application are true and complete to the best of my knowledge and belief. I understand that false statements on pre-employment materials constitute fraud in securing employment and is basis for dismissal."
    This statement needs to be able to be Read Out Loud by a Screen Reader.
    I started outlining the form in Microsoft Word and then brought it into LiveCycle. The PDF Structure shows the text but the Hierarchy does not. From my experiments, only the Hierarchy is Read by a Screen Reader.
    So,
    1) How to make the certification be read out loud?
    2) How to alert users of Screen Readers that there also is a Signature line to fill out? They need to sign and date the form.
    Thanks for any help you may give. BTW, I am using LiveCycle 8.

    In Designer you can indicate what needs to be read for specific fields. Under the Window menu there is an Accessability palette that needs to be enabled. Once this is done you can enter Custom screen Reader text to be read. I woudl attach this to the last field on the form.

  • How can I read out metadata for captions from a Canon photo

    I have to tried to find an answer via Adobe and Google. Still not able to figure out on how to read out XMP metadata for captions out of my photos. Checking the XMP data in InDesign shows info on Camera Make, Exposure etc. But if I use metadata fields from "Caption Setup" like "Camera" the caption shows <No data from link>. Fields where the XMP field name matches (e.g. "Lens") are ok. I need following fields for the caption: Camera Make, Exposure (aperture and speed) and ISO.

    Lets keep it simple then.
    If I take my utf file generated and open and view it in notepad I can see the accented characters. But if I open it in Wordpad , the accented characetrs are corrupted.
    If I then save the file specifiying type Ascii, then the characters are written out correctly.
    What I want to do is to be able to write out the file in ascii format without having to open it in utf-mode and then having to save it in ascii.
    Ie I want the file to be opened in ascii format
    All the characters to be written in Ascii format
    But the source is still a unicode database.
    I have gone through using convert and characters get lost. In fact, at this stage, I'm not sure its possible to do What I need to do.
    Remember I am using an 8 bit character set which is why I have values above 127.
    So basically if you take the word 'Annulé'
    if I view it in wordpad it displays as
    Annulé
    But if I view it in notepad it displays as
    'Annulé' which is because notepad detects that the file has a utf-8 character in it.
    When I save it as type ascii I can then open it correctly in wordpad.
    So I basically want to open this file in Wordpad and have it display Annulé rather than the garbled characters,
    without having to go through the process of opening and saving the file as type ansi.

  • Not enough data points out of hokuyo lidar on robotics simulator

    Hi,
    We've been using the hokuyo URG series lidar in the robotics simulator but we can't get more than 29 data points out of it. We get hundreds when running the sensor in real life. Is there a way to increase the number of data points read in the simulator? It is too low to be useful at the moment.
    thanks.
    (Using Labview Robotics 2012)

    I believe the default scan angle for the simulated Hokuyo lidar sensor is 5 degrees.  With max and min angles of +-70 degrees, this explains why you're seeing 29 data points.  You can change these settings in the Simulator wizard.  Right-click the simulation target in the project, and select Properties.  In the wizard, select the Hokuyo sensor in the tree, and scroll down to change the "Max Angle", "Min Angle", and/or "Scan Angle" parameters.

  • Read out from OBD-II Freematic Emulator using ELM327 with USB and LabView

    Hello. I have an Freematic OBD-II mk2 emulator which simulates diagnostics of a real car. I have connected an ELM327 diagnostic device with USB cable to the emulator and a PC. The connection between emulator, diagnostic device and computer works. Now I need to read out parameters in LabView. How do I do it? I tried to use the NI VISA functions, but didn't manage to read out anything sensible. How can I for example read out Engine RPM? Do you have some example code?
    I want to avoid using Automotive Diagnostic Command Set, because it's to expensive for me. 

    Oh yes, I didn't realize what this hardware does.  Some beginners think that a DB9 is a standard interface for a CAN bus, and when they see the DB9 serial port on their computer they think they can just use that.  I was worried this was what you were attempting.
    So yes VISA is the right way to go.  Once you have this device installed and recognized in Windows it should appear as a COM port.  You can open the Windows Device Manager and by plugging and unplugging your device you should see a COM port appear and disappear.  
    Assuming you do launch LabVIEW and go to the example finder and search for Simple Serial.  This is an example VI that can send serial data to a COM port, wait, then read the response.  It can basically work like hyperterminal.  Assuming there are no already made LabVIEW drivers (I haven't seen any) this will be a good place to start.  Using documentation on your hardware you can start to come up with commands to do things like read and write CAN data, by sending the appropriate commands to the hardware over serial.
    http://www.elmelectronics.com/obdic.html
    Depending on what you want to do it might be a decent amount of work.  Of course if you do get anything good and working feel free to post your progress here so others can benefit.
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

  • IPhone/iPodTouch Question: How can I read out the actual Wifi/Hotspots?

    Is it possible to read out the actual WiFi/Hotspots? Which hotspots are now available? Over which Objects/Classes i have to do this? (i need the data as input for a game and a music program)
    thanks for any help
    t00cg@la1n

    I'm also looking for a way to read the available WiFi networks. There must be a solution for this since the application WiFinder does exactly what I seek to do. And it's available through the app store (i.e. it's not a solution that requires a jail-broken phone).

  • Weblogic 11G error = BEA-000449  Closing socket as no data read from it

    In My Weblogic 11G, i am getting Warning msg in my log file saying Closing socket as no data read from it
    ####<Nov 2, 2010 12:10:53 AM IST> <Warning> <Socket> <TradeServer> <TradeServer> <[ACTIVE] ExecuteThread: '8' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <1288636853607> <BEA-000449> <Closing socket as no data read from it on 95.66.7.15:58,089 during the configured idle timeout of 25 secs>
    ####<Nov 2, 2010 12:10:53 AM IST> <Warning> <Socket> <TradeServer> <TradeServer> <[ACTIVE] ExecuteThread: '8' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <1288636853607> <BEA-000449> <Closing socket as no data read from it on 95.66.7.15:58,088 during the configured idle timeout of 25 secs>
    ####<Nov 2, 2010 12:21:37 AM IST> <Info> <JDBC> <TradeServer> <TradeServer> <[ACTIVE] ExecuteThread: '23' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <1288637497701> <BEA-001128> <Connection for pool "IB_JDBC_Data_Source" closed.>
    I have follow the following step
    If you want to follow this solution. Go to Admin console -> Click on Domain->Configuration->Log Filters->create new Log filter.
    I added this line in expression "(MESSAGE !='Closing socket as no data read from it during the configured idle timeout of 5 secs')"
    Go to your server-(for each server you have to set it individually)->Logging->Advanced->Select this log filter for Standard Out or log file.
    My Filter is "(MESSAGE !=Closing socket as no data read from it ')"
    this is not working in weblogic 11G, any one have the solution to stop this msg.
    Edited by: Amar_Shaw on Nov 3, 2010 1:40 PM

    Hi Amar,
    I think you have given the wrong string in the filter, you are getting "*Closing socket as no data read from it on 95.66.7.15:58,089 during the configured idle timeout of 25 secs*" and you have given in the filter "*Closing socket as no data read from it during the configured idle timeout of 5 secs*".
    You can change it and see if that works for you.
    Also the above option is just to suppress the issue which are getting which in this case is fine as its just a warning message, however you can even try to tune few of the follwoing parameters that too would help you to remove this warning message.
    1. Set the parameter -Dweblogic.client.socket.ConnectTimeout=XXX, in the start-up script of the server which you are seeing this issue under JAVA_OPTIONS
    Note: Where "XXX" is the value in ms.
    Example:
    -Dweblogic.client.socket.ConnectTimeout=500
    2. Try tuning the duration time to a higher value from the below Console path
    Server -> Protocols (tab) -> HTTP (sub-tab) -> Duration
    Regards,
    Ravish Mody
    http://middlewaremagic.com/weblogic/
    Middleware Magic | Come, Join Us and Experience The Magic…

  • How do I get my Adobe Digital book read out loud.

    I am disabled and need to use text to speech. I purchased an ebook which is an Adobe Digital Edition. I have really enjoyed using Adobe Reader with the Read Out Loud feature and was shocked when I discovered I could not use this feature on the Digital Editions. If I knew Adobe cared so little about the disabled I would sought the book in a different format.
    Does anyone out there have any ideas on how to be able to get this expensive book read for me?

    I do not know quite what you mean by "paid for them to transfer all my data and programs over"...  I'm hoping you are not implying that you simply copied (had copied) programs from your application folder to your new computer.
    You still need to go through the installation process to install Photoshop, Illustrator, etc.

  • How to read out message cycle time from Vector CANdb file?

    Hello LabVIEW friends,
    I tried to open a Vector CAN Database (*.dbc) using the NI-CAN 2.3.2 Channel API and read out the cycle time of a message.
    The CAN get property.vi should provide the sample rate which is described as followed:
    Input parameter of the CAN Init Start function.
    The sample rate specifies
    whether to transfer data in a periodic or event-driven manner.
    For periodic
    behavior, the rate specifies the number of read/write samples to perform per
    second.
    But for all messages in my database I get the value 0.
    When I connect a sample rate to the CAN Initialize.vi I will get it's value.
    Could anybody help?
    Thank You.
    Greets,
    Marcus

    Hi,
    unfortunately there is no way to use the cycle time property from your DBC file, because the NI driver is not able to read this information.
    This is because the cycletime is stored in different places for different users and only Vector itself can read this information back.
    In your case, you have to figure out this information by yourself and you can use the sample rate input of the init or initstart function to configure the cycle time in Hz.
    If you need different cycle times for different messages, see the attached example.
    DirkW
    Attachments:
    CAN_Multi-Chans_Diff-Period.vi ‏26 KB

Maybe you are looking for