Plot data following receiving from VISA

Hello,
I am reading data from a microcontroller using VISA function in labview. I can convert these data to decimal values (this is what I want).
I want to build a X-Y graph in this way:
Every time I receive a value from VISA, I want to put this value on the graph (Y value) with respective number of reading (X value).
For ex. if the first time after reading VISA, I receive 128, I want to have X=1, Y=128 on my graph. If the second value from VISA is 154, I want to have X=2, Y=154, etc...
Could you please help me how to do that.
My main concern is how to build the X axis.
Thank you very much.

Duplicate
"If anyone needs me, I'll be in the Angry Dome!"

Similar Messages

  • Display FFT of input signal which receive from VISA read ?

    Hi.
    I receive data from MCU whcih sampling frequency is constant and we assumed it is S. now I get data from MCU with using VISA read block. I can display data, perform some functios like filtering, multiply and save them in txt files. all thing is OK.
    but when I want to see FFT of incomig data on chart , it doesn't work !! I use this VI for calculate and display FFT of input signal (from VISA read) and display it which in Y-Axis is magnitude and X-Axis is frequency. 
    in your mind why this is not work and what I must done for show input signal FFT and frequency components ?
    Thanks.

    If I understood this correctly, you are getting the correct results when outputting to a text file but you are not able to see the results when trying to output to a chart?
    This discussion may be of some help to you.
    Rob S
    Applications Engineer
    National Instruments

  • How to handle empty Dats field received from SAP RFC response

    Hi All,
    I am invoking a SAP RFC which gives me a Dats field in response.
    A valid dats fields is successfully received by my pipelines.
    But when an empty Dats field is received, My pipeline fails and i get error.
    How to handle the empty Dats field from SAP

    Hi Anant,
    This is because the legacy SAP adapter accepted RFC messages with date field empty. In the new version, the same call results in an error. WCF-SAP adapter doesn't allow blank XML nodes.
    You need to use the below custom pipeline component as a workaround.
    Refer:
    Pipeline component for enabling legacy behavior in WCF-SAP adapter.
    Rachit
    Please mark as answer or vote as helpful if my reply does

  • How can i show a Data that receiving from PLC, showing it by Round leds?

    I need to show Data from a PLC, which consists in 4 Bytes of information. This information is according to 0 and 1 combination and i wold like to show by Round Leds.
    I`m using the VISA Read palette, and need to read the Data out from "read buffer" ootput for after showing it with Roun Leds (32 led).
    How can i show the string from this "read buffer"?
    I have used "String to Byte array" but i cann`t show the Byte (0,1) and otherwise the Round Leds
    What command I need to put for converting this kind of "array"?
    Thank a lot for your help!
    I`ll show you my program.

    Hi maurovera,
    I think you just want to convert a 4 byte string to boolean arrays like shown in the attachment...
    Btw. you don't need to show an U8 array in an EXT indicator - kind of overkill (and bad programming style too...)
    Message Edited by GerdW on 07-04-2009 10:52 AM
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome
    Attachments:
    string2bool.vi ‏21 KB

  • Propery Binding exception when bound to data received from the web socket

    Hi,
    I am getting the following exception when I try to bind my properties to the data received from the MessageWebSocket. Works fine when the data is received from the normal StreamSocket.
    A first chance exception of type 'System.Runtime.InteropServices.COMException' occurred in System.dll
       at System.StubHelpers.EventArgsMarshaler.CreateNativePCEventArgsInstance(String name)
       at System.Runtime.InteropServices.WindowsRuntime.PropertyChangedEventArgsMarshaler.ConvertToNative(PropertyChangedEventArgs managedArgs)
       at System.ComponentModel.PropertyChangedEventHandler.Invoke(Object sender, PropertyChangedEventArgs e)
       at WinStoreApp.Common.BindableBase.OnPropertyChanged(String propertyName)
       at WinStoreApp.Common.BindableBase.SetProperty[T](T& storage, T value, String propertyName)
       at WinStoreApp.DataModel.Model.StockItem.set_BidVol(String value)
       at WinStoreApp.Core.FIDValueMapper.PopulateFIDValue(Int32 fid, String value, StockItem stockItem)
       at WinStoreApp.Core.StockFeedReceiver.<ProcessData>d__20.MoveNext()
    Code snippet of message received:
     static async void _websocket_MessageReceived(MessageWebSocket sender, MessageWebSocketMessageReceivedEventArgs args)
                try
                    using (var reader = args.GetDataReader())
                        reader.UnicodeEncoding = Windows.Storage.Streams.UnicodeEncoding.Utf8;
                        string message = reader.ReadString(reader.UnconsumedBufferLength);
                        await myObj.Message = message; // Exception here
                catch (Exception ex)
    Please let me know what may the problem.

    Hi,
    According to your description, I think you can received message from server by using
    MessageWebSocket class, but the data you received may not be right. I see the document in the link below:
    http://msdn.microsoft.com/en-us/library/windows/apps/xaml/windows.networking.sockets.aspx
    In the document above indicates:
    StreamSocket class is a stream socket to use for incoming or outgoing network communication over TCP
    MessageWebSocket is a message-based WebSocket.
    If the server send the data based on stream format, the
    MessageWebSocket class may not received the right data.
    You can use StreamWebSocket
    to see whether the problem occur. And you should give us more information and upload a test project to OneDrive so that we can test it.
    Best Wishes!
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. <br/> Click <a
    href="http://support.microsoft.com/common/survey.aspx?showpage=1&scid=sw%3Ben%3B3559&theme=tech"> HERE</a> to participate the survey.

  • I tried to sync my phone and received this message: "iTunes was unable to load data class info from sync services. Reconnect or try again later." Now it doesn't sync calendars because it says I need to download Outlook, which I already have

    I have synced my phone to my computer several times. This time i received this message: "iTunes was unable to load data class infor from sync services. Reconnect or try again later." It says if I want to sync calendar I must install Outlook to my computer?? Why does iTunes not recongnize that I already have Outlook installed on my computer?

    This worked for me...i did a restore on my computer to take it to a date prior to the last update i did on itunes and now it works just fine.  Everytime i do a backup it syncs my Outlook! When a request comes up saying there's a new version of itunes click here to download the latest one DON'T do it.
    Here's how to do a restore on your computer:
    Create a restore point
    A restore point is a representation of a stored state of your computer's system files. You can use a restore point to restore your computer's system files to an earlier point in time. Restore points are automatically created by System Restore weekly and when System Restore detects the beginning of a change to your computer, such as when you install a program or a driver.
    System image backups stored on hard disks can also be used for System Restore, just like the restore points created by system protection. Even though system image backups contain both your system files and personal data, your data files won't be affected by System Restore. For more information about system images, see What is a system image? You can create a restore point manually at any time by following the steps below.
    Go to the Windows website to watch the video. (1:08)
      Click to open System. 
    In the left pane, click System protection. If you're prompted for an administrator password or confirmation, type the password or provide confirmation.
    Click the System Protection tab, and then click Create.
    In the System Protection dialog box, type a description, and then click Create.
    For more information about System Restore, see What is System Restore?
    I HOPE THIS WORKS!
    Annette9114

  • Creating one file per each 50 Mb of data received from PI

    Hi Experts,
    I have a scenario JMS to FIle.I have to create separate files for each maximum of 50MB received by SAP PI.
    For example if PI receive 160 MB data then i have to create 4 files i.e 1st file with 50 MB file data ,2nd file with 50 MB file data ,3rd file with 50 MB file data and 4th file with 10 MB file data. How to acheive this any suggestion.
    Regards
    Deepak

    Hi Deepak,
    Following logic can be applied if and only if the data that you are receiving from JMS is binary one(not a structured). In that case, you can break your large binary data file into small small packets of any size.
    In SAP PI 7.30/7.31 this fuctionality is available in the File sender and receiver channel. You can directly use it if you are working on the PI 7.30/7.31.
    If you are not using 7.30/7.31 then you need to write a adapter module which does same functionality. Logic is simple:
    Step 1: Get the XI message payload and convert it into binaryStream object.
    Step2: find the length of binaryStream and then calculate the no.of packets that you want to create by dividing binaryStream size with packet's size that you want. eg. if main payload size is 160 MB and packet's size is 50 MB and no.of packets = 160/50 =3.2 round off to 3.
    Step 3: Divide the large file size 4 times with given packet size and put remaining data into last packet.
    Step5: change all the small binaryStream packet into Files and store them into target directory.
    Best Regards,
    RK

  • To read & save data from serial port (write to .csv file), and plot data as waveform

    Hi,
    I've been stuck with this problem for weeks and really need some help. I've been searching a lot but I can't find a proper solution.
    I am trying to use Labview to plot and display some parameters of a data acquisition system for a project.
    The data acquisition system is connected to a computer via serial connection through COM 1 port.
    The data acquisition system sends a serial stream of data (ASCII string with baud rate 19200), as shown below (from HyperTerminal),
    01:00:26,933.24,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,
    01:00:27,931.54,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,
    The serial data stream consists of a time stamp (as 1st data), followed by 16 individual channel data, separated by comma "," and each stream ending in return "\n". Each value of the data ranges from 1 to 6 digits (value of -5000 to 15000).
     I have no problem reading this values correctly using HyperTerminal, but I have problem to plot and display individual parameters of this serial string in Labview. I want to save the entire data in  a “.csv” file corresponding to all the 16 channels with time stamp and plot each individual channel parameter in a graph with time on X-axis.
    I am relatively new to Labview hope I can learn a lot from your help.
     Thank you

    Thank you Dennis.........
    Now I had modified the program incorporating1D array for gauge display.....but currently I have a new problem. The program is running updating the file, waveform graph and Gauge very slowly. Approximately once in every 15 seconds 16 data streams are getting updated in a bunch with gauge sticking to the last value rather than indicating real time value.
    eg.
    12:33:41,-3728.78,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,
    12:33:42,-3730.47,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,
    12:33:43,-3729.81,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,
    12:33:44,-3733.80,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,
    12:33:45,-3733.57,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,
    12:33:46,-3729.27,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,
    12:33:47,-3725.97,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,
    12:33:48,-3730.14,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,
    12:33:49,-3733.20,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,
    12:33:50,-3733.60,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,
    12:33:51,-3732.24,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,
    12:33:52,-3734.51,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,
    12:33:53,-3728.07,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,
    12:33:54,-3732.54,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,
    12:33:55,-3732.24,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,
    12:33:56,-3731.58,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,
    gets updated in a bunch after 15 seconds, rather than in every second. I thought the problem is with while loop but, i realised there is no delay associated with it..... Can u kindly help me in modifing the program so as it can update the waveform, file data and gauge in real time? (I have attached the modified VI file "suitcase new.vi" and the data gathered after executing the same as in "Trail.txt".)
    Thank You,
    Rahul
    Attachments:
    trail.txt ‏85 KB
    suitcase new.vi ‏44 KB

  • Plotting Data on a fixed time axis from left to right

    I am plotting data on a Historical Trend graph from the DSC palette. I receive the data from a plc throughout the course of a production shift. I would like to have the start time of the shift (07:00) on the far left of the x-axis and the end time of the shift on the far right (15:30). I would like to plot the data from left to right as the shift progresses. Is this possible? How do I format?
    Many thanks for any input,
    Stuart Wilson

    Hi Stuart,
    All you need to do is place down a waveform chart and then modify the properties slightly in order to achieve this. If you right click and make sure autoscaling is turned off on the x-axis first of all, then go into the properties page and change the x-axis formatting to absolute time then you will be able to plot data with the actual time according to your system clock.
    The only problem you have now is that there probably isn't enough room on the chart to plot data for the entire time between 09:00 and 15:30 depending on how often you want to sample. The default number of data points to keep in the chart is 1024. Therefore if you try and change the max and min values to 09:00 and 15:30 then it won't allow you to set that up as it doesn't think you have enough room there. Right click on the chart again and go down to Chart History Length. Increase this number to a large enough number and then you will be able to set the start time to 09:00 and the end time to 15:30 and as long as autoscaling is turned off this will not change.
    Hope this helps, please find the attached example which will plot random numbers to a chart once a minute and the chart will plot data between these times.
    Best regards,
    Peter H.
    Applications Engineer.
    NIUK.
    Attachments:
    Large Chart.vi ‏16 KB

  • Plotting data from two instrument​s at different rates

    Hi,
    I have a VI that reads temperature from a multimeter using VISA and acquires image from a IR camera via IMAQ. Each acquisition process takes place in an independent while loop; each with its own frequency. From the IR image I get a pixel value which is converted to temperature.
    My problem comes when I try to plot both signals (temperature from the multimeter and from the pixel in the IR image)in one chart. Just merging signals doesn´t work. I have embedded the multimeter section in the "while" loop corresponding to the image acquisition. This works, but speed is limited by the multimeter, which is very slow (approx. 1.5 Hz)
    I would like something like this: if I get 50 images and 1 multimeter reading
    in a certain period of time, set up some kind of buffer so that the 50 values from the camera are plotted as well as the one from the multimeter reading repeated 50 times. I´ve tried resampling but to no result.
    Sorry if something is not quite clear, please tell me if I should be more specific. Thanks in advance for your help
    Alberto Foronda

    Try putting the data from each souce into a waveform (see the waveform pallete). Make sure you write the t0 of the waveform. Do this for each reading, and then build an array of these waveforms and then present this to your chart.
    THe Chart will use the t0 of your vaeform to plot your data. It will not matter that the time are different, that chart will figure that part out. If you have data from your camera but no new reading from your multimeter, just make sure the waveform for the multimeter has an empty "Y" array. This will plot the camera data but it will leave the multimeter trace alone.
    Trying to help,
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • HT1386 my ipad won't sink; I continually get message:  itunes was unable to load data class information from Sync Services. Reconnect or try again later.  I have done both several times and still receive same messaage.

    My iPad won't sink with my computer.  I continually receive this message: "iTunes was unable to load data class information from Sync Services.  Reconnect or try again later."  I have tried this over a number of days and receive the same message.  Any suggestions??

    IOS: Syncing with iTunes
    http://support.apple.com/kb/HT1386
    Apple - Support - iPad - Syncing
    http://www.apple.com/support/ipad/syncing/
    ITunes: Syncing media content to your iOS devices
    http://support.apple.com/kb/ht1351
    There are some similar posts on the right side of this page (More Like This). Look at those posts.
     Cheers, Tom

  • HT1766 I keep getting the following message, Unable to load data class information from Sync Services

    I keep getting the following message when I try to sync. Unable to load data class information from service. Reconnect or try again late

    Try this
    iTunes for Windows: "Unable to load data class" or "Unable to load provider data" sync services alert

  • I am receiving an error message when starting up iTunes: iTunes was unable to load data class information from sync services. Reconnect or try again later. (what does this mean?)

    I recently updated my iTunes to the most recent version and I am receiving an error message when starting up iTunes: iTunes was unable to load data class information from sync services. Reconnect or try again later. (Does anyone know what this means and if it is going to cause me issues?)

    http://support.apple.com/kb/TS2690?viewlocale=en_US&locale=en_US

  • Why am I getting the following message - itunes was unable to load data class information from sync services

    Has anybody received this message when trying to sync? - itunes was unable to load data class information from sync services.  All purchased apps were lost.  Do you know how to recover them?

    Sync Your iOS Device with a New Computer Without Losing Data
    http://www.howtogeek.com/104298/sync-your-ios-device-with-a-new-computer-without -losing-data/
    Syncing to a "New" Computer or replacing a "crashed" Hard Drive
    https://discussions.apple.com/docs/DOC-3141
     Cheers, Tom

  • I keep getting the following message every time i plug in my Iphone to Itunes on my windows vista computer  Itunes was unable to load data class information from sync services. reconnect or try again later.  any suggestions pls  Mario

    I keep getting the following message every time i plug in my Iphone3gs to Itunes on my windows vista computer
    Itunes was unable to load data class information from sync services. reconnect or try again later.
    any suggestions pls
    Mario

    The article says that I should upgrade to the latest iTunes. I am on the latest iTunes version.
    If you could read just a tiny little bit further, under the "Additional Information" section immediately after that, it says:
    If you are still experiencing this issue when syncing, or have not installed Xcode 4 and get this alert:
    Follow the troubleshooting steps in Mac OS X v10.5, v10.6: Resetting the SyncServices folder.
    If the issue is still unresolved, follow steps in Sync Services: Advanced troubleshooting for contact and calendar syncing.
    Have you tried those measures?

Maybe you are looking for

  • Oracle and Kernel 2.6

    Hello, do Oracle Database 9iR2 and 10g run on Kernel 2.6? Bye

  • XI unable to access SLD

    I'm receiving the following error description in TS SM21: <i>In the function module LCR_GET_OWN_BUSINESS_SYSTEM, the attempt to read XI data from the System Landscape Directory has failed. If the data is still in the local cache, XI can continue to u

  • VPN Plug-in issue with BM 3.9 SP1 and iManager 2.7

    Hi, We have a Netware v6.5 SP7 server with iManager 2.7 . We have just installed BorderManager v3.9 SP1 and have configured in iManager and have running ACL's/Proxy. This is working as designed. We now wish to setup VPN for the first time but each ti

  • Hardware Test on MacBook Pro running Mavericks not working, Help!

    Hi Folks, I am hoping someone can help me get the Apple Hardware Test working on my Mid-2012 MacBook Pro (model 9,1) running OS X Mavericks v10.9.5. It came with Mountain Lion pre-installed.  I successfully ran Apple Hardware Test when I received it

  • Search constraint for field of type name

    Hi, I am using MDM 5.5 sp 06 patch 2. I am using webdynpro with MDM java API. I have a field of type Name. What should i use as the search constraint for the field of type name like we use textSearchConstraint for the field of type text. Thanks.