Play input data in serial connection in speakers ?

Hi.
I want to play input data with system speakers. Data receive from Serial Port and I want to play it realtime. my data frequency rabge is between 10 to 500 and it;s amplitude is up to 1. I use this Subvi that I right it for put in final Vi. 
Sampling frequency is 2000. 
anyway, I put this subvi in my final code, but It doesn/' work !!
anybody has idea ?
Thanks.

I send my final desin which play input signal from VISA read function. as you can see, in program this VI doesn't work !!
I use notifier for play a specified song when input signal cross over 3.1 , it worked correct when I don't use first post VI, and when I put first post VI into above VI, LV show an error.

Similar Messages

  • VISA Read gets incorrect data from serial connection

    I am having difficulty using the VISA functions in LabVIEW to read data from a virtual COM port. Data is being sent from a serial to USB chip via a USB connection using OpenSDA drivers. I have a python program written to read from this chip as well, and it never has an issue. However, when trying to achieve the same read in LabVIEW I am running into the problem of getting incorrect data in the read buffer using the VISA Read function.
    I have a VISA Configure Serial Port function set up with a control to select the COM port that the device is plugged into. Baud rate is default at 9600. Termination char of my data is a newline, which is also default. Enable termination char is set to true. A VISA Open function follows this configuration, and then feeds the VISA Resource Name Out into a while loop where a VISA Read function displays the data in read buffer. Byte count for the VISA Read is set to 20 so I can read more of the erroneous datat, however actual data will only be 6-12 bytes. The while loop has a wait function, and no matter how much I slow down the readings I still get incorrect data (I have tried 20ms thru 1000ms). 
    The data I expect to receive in the read buffer from VISA Read is in the form of "0-255,0-255,0-255\n", like the following:
    51,93,31\n
    or
    51,193,128\n
    And occasionally I receive this data correctly, however I intermittently (sometimes every couple reads, sometimes a couple times in a row) get incorrect readings like this:
    51,1\n
    51,193739\n
    \n
    51,1933,191\n
    51,,193,196\n
    51,1933,252 
    51,203,116203,186\n
    Where it seems like the read data is truncated, missing characters, or has additional characters. Looking at these values, however, it seems like the read was done incorrectly because the bytes seem partially correct (51 is the first number even in incorrect reads).
    I have search but haven't found a similar issue and I am not sure what to try from here on. Any help is appreciated. Thanks!
    Attachments:
    Serial_Read_debugging.vi ‏13 KB

    The first thing is that none of the error clusters are connected so you could be getting errors that you are not seeing. Are you sure about the comm parameters? Finally, I have never had a lot of luck looking for termination characters. You might want to just capture data and append each read into one long string just to see if you are still seeing this strangeness.
    What sort of device is returning the data? How often does it spit out the data? How much distance is there between it and your computer? Can you configure it append something like a checksum or crc to the data?
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Storing Data from Serial Connection

    Hello All,
    I am fairly new to LabView, I am trying to store and anaylze values from a non-Labview hardware via an rs-232 connection.
    I have two devices on COM1 and COM2 ports. COM2 sends a value which I would like to store in an array. COM 2 points will form a somewhat sine wave within a few seconds. I would like to compare these values live to generate: max and min peak values, peak to peak values, and mean (I know LabView has signal icons for this, I'm just not sure how to wire it up).
    I have attached the vi.
    Thank you for your time and help.
    Kelvin R.
    Solved!
    Go to Solution.
    Attachments:
    krreadwrite.vi ‏74 KB

    kore101 wrote:I believe I need to use a for loop along with shift registers, but I just don't know how to.
    LabVIEW Basics
    LabVIEW 101
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Developed VI for data input from a Serial RS485 S. Himmelstein 700 Series Signal Conditioner

    Has any one developed a VI for data input from a serial RS485 connection with S. Himmelstein 700 series signal conditioner. Multiple displays and channels. Labview 2009

    Hi 
    I am using the same vi which you have suggested and i have selected proper com port and other settings, but i am not getting any data,but if i send "ADC0" and "*IDN?\n" command alternatively then it is giving the data...but if i do that i will get zero and data alternatively.I want to get data without zero in between.. any solutions on why i have to send *IDN?\n?
    Expand.Evolve.Influence
    Attachments:
    Hammltn.jpg ‏91 KB

  • Reading data from serial port needs optimisation

    Hi,
    We have got a class which reads input from some hardware connected to the serial port.
    The data coming from the device can cross over 1mb at a time.
    We would like to optimize the speed of the program such that no data is lost during the readings.
    Hence, we would like to store the entire reading into memory such that it can be stored into a file or database once the readings have been completed.
    The serialport class returns a byte[] of the current data in the buffer. There could be over 8000 such readings.
    Would it be better to convert the byte[] into a char[] and append into a StringBuffer
    or append the byte[] as is into an ArrayList and perform the conversions and operations on it later?
    Reg,
    Chetan

    The ArrayList will not only be much faster but it will preserve the original data. Unless the incoming data really is a String there is no point in converting it.

  • Reading/Writing character commands to serial connection

    Hey! I'm currently working on a project where part of it is to write a labview program to read and write commands through a serial connection to our PIC24F16KA304 board.
    I basically have no knowledge on labview, I've been messing around on it for a few weeks trying to get myself familiar with it but I'm not having much luck.
    Essentially I'm programming a train simulation control box. The PIC board will have a sensor that is connected to a train track that sends the character 'A' (for arrived) when a train stops at the station to lab view. I then want to be able to tell Labview to turn a LED on relevant to the station and then respond with the character 'M' for move. I need to repeat this situation for 6 stations
    I also need to be able to 'R' for reversing the simulation, 'J' for jump (miss a station) and 'E' for end
    If anyone with a bit more experience and knowledge then me can help I would be eternally grateful!

    ChrissyC87 wrote:
    I suggest that you read some of the LabVIEW basics: http://www.ni.com/gettingstarted/labviewbasics
    A state machine would be a good starting point for this project (and your understanding of LabVIEW).
    You can always wire constants to VI inputs on the block diagram instead of having controls on the front panel that you have to type into. Just right click on the VI >> create >> constant.
    The LabVIEW basics will help you out with all of these simple problems. 
    Good luck,
    -CC 
    Mega-Dittos!
    My thoughts exactly. Adding to what Chrissy posted...
    Your question reads like "How do I unlock the door to my car and win the Daytona 500?" The first part is simple (use the constants like Chrissy said) but the second part is much more invloved.
    plese take the advise posted above and go thorugh the tutorials and learn to use state machines. AS yo udo this other questions will come up and you should feel free to start a new thread on ech question. Stick with it, play nice and we'll get you to the finish line.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • My Blu-Ray player has a USB input but it doesn't have an HDMI input. Can I connect my Apple TV to the Blu-Ray using an HDMI/ USB adapter? It would allow me to run the audio through my stereo. Thanks to all for your help.

    My Blu-Ray player has a USB input but it doesn't have an HDMI input. Can I connect my Apple TV to the Blu-Ray using an HDMI/ USB adapter? It would allow me to run the audio through my stereo. Thanks to all for your help.

    Can I connect my Apple TV to the Blu-Ray using an HDMI/ USB adapter?
    If you can find such a thing.  I really doubt that exists since USB is a data connector not a video connector.
    would allow me to run the audio through my stereo.     
    That would depend on this adapter.

  • Write data to serial port every two minutes

    Hi,
       I use VISA-Write to write data to serial port. I want to write a byte every two minutes. What should I do?
      Thanks!

    hengfo,
    that question is not connected to LV nor to VISA. Its more a systematic question....
    So let's view at this a bit more abstract:
    You want to "toogle" between two different messages sent to your interface. So you have to know:
    - What was the last state i sent?
    - When do i have top send the new state?
    Even more abstract:
    - How can i switch between the states?
    Since the states are known before your program is executed, you can insert them into an array. Next, you have to read out the appropriate index from the array which contains your new state. Send the state and go to the next state. Propably you want to change timing, but that's easy too.
    See attached screenshot for a possible solution:
    hope this helps,
    NorbertMessage Edited by Norbert B on 09-11-2007 07:57 AM
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.
    Attachments:
    StateSwitching.PNG ‏8 KB

  • EPM add-in problem with input data,retrieve dimension or members

    Hello everyone,
    I am trying to use data write back (input data) function with EPM add-in in Dashboards. I managed successfully bringing results of an EPM report. I've created a local connection at EPM, and created a  connection at data manager for"Planning and consolidation, version for SAP netweaver platform". And i could get the values via refreshing connection at preview mode, so far so good. Now i want to add a connection which will serve as data write back function to a specific BPC cube. The problem is,  I can retrieve data source name and environment name. But when i click to retrieve model names, it retrieves empty results. The problem exist in, "retrieve dimension" and"retrieve dimension members" functionalities too. I realized that i could retrieve model names for only one specific environment, but even i could get these, when i try to retrieve "cell definition" i am facing an error. You can see related screenshots below.
    I am using Dashboards 4.1 SP2,  EPM connector 10 SP 17.  I created two connections as local and business planning and consolidation for netweaver. I selected same environment and model name for these connections. Neither did work.  Any ideas?
    Update: The reason i could see some model names and some others not  was i didn't specified the model as data source at: 
    Enable BPC Model as reporting data source
               Logon to BPC 10.0 NW web client -> Planning and Consolidation Administration -> Dimensions and Models -> Models -> Select the Model -> Edit -> Features Used with the Model -> mark check box 'Use as Source of Data' -> Save.
    I will update here if i could find a solution for the other issue. (First screenshot).
    Update_2: The problem was occuring because i wasn't connecting to transient cube, created automatically by applying the step at Update_1. While creating a local connection, you shouldn't connect to the original cube, but to the transient one instead to use input data functionality.
    Regards,
    Onur
    Message was edited by: Onur Göktaş

    HI,
    I believe it is definitely the support pack. I posted an issue on this forum and I saw your post.  Your issue is very similar to mine. I saw Andy's reply to you about the SP 18 and looked into it.  Thanks Andy.  SP 18 resolved my issue.  See my post.  Kathy

  • 'Input data length not a multiple of blocksize' error in CUP

    Hello All
    I receive the error below when trying to configure CUP. I got this error whilst trying to define the password for the RFC user created in the Connector screen in CUP. CUP doesn't accept the SAP password maintained in SU01. CUP only allows a 4 character password but SU01 is configured to only accept 8 characters. Full error message below.
    'com.virsa.ae.commons.utils.StringEncrypter$EncryptionException: Input data length not a multiple of blocksize.'
    Can anyone shed any light on this?

    Hi All,
    This issue is in Version 5.3 SP 7.1 of CUP. It occurs when we are trying to change the password for the CUP connector.
    Please note that testing the connectors within the Content Administrator --> Maintain JCO Connections screens works fine and the risk analysis from RAR also works without issue. However, whenever we attempt to enter the password for CUP connecotr setup, it returns an error saying "Action Failed" with the 'Input data length not a multiple of blocksize' error showing in the trace logs.
    We seem to be able to store a password of 4 characters e.g. 1234 but this then naturally fails the connection test.
    Can anyone suggest a parameter setting to check or a resolution for this particular issue?
    Thanks,
    Simon

  • 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

  • Connecting Yamaha Speakers/Monitors

    I have a Firewire 410 soundcard and the new IMAC. Does anyone know how to connect the speakers to the soundcard. What ports am I suppose to use? Also how can I have the speakers connected to the Firewire 410 and still have the Mac use those speakers for everything, such as Itunes and YouTube? Thanks a ton guys and girls!!

    yoyo,
    glad it worked out. i also have a $50.00 2.1 computer speaker system on my tower's line-out jack for when i'm web surfing & the site/page has video/audio and/or for the HD monitor/2nd display. i can turn it on w/ 1 button. so i have 2 sets of speakers on my DP G5 tower. the speakers on my MOTU 828 FW interface are Alesis M1 mkii & i have to turn ea. one on as well as the power strip that drives them, plus the 828, so they pretty much come on when i need them for serious work-FCP, DP4 & sometimes iTunes radio when i'm cleaning the house 'cause they can play louder than the 2.1 system(quicker tthan hoking up my MacBook to the home theatre system).
    p.s. if this solved your issue, please mark it as such, so that others who may have same issue will know. thanks.
    Message was edited by: Donna Jones1

  • How send data to serial port from forms 6i

    How send data to serial port to activate hardware connect.
    The hardware is a drawer for cash the point of sales.

    Andres,
    I do the exact thing you are looking for,
    I spool out a text file using text_io
    the file will either contain a double ^G or an epson escape sequence, depending on the drawer type connected.
    I then copy this file to the port using a copy function id d2kwutil
    Works perfectly, but god knows how I'll do it if we want to run the point of sale over the web :)
    John

  • Read data from serial port or TCP port of frontend PC

    Hello Friends,
    I have requirement to read data from device connected to frontend PC which will provide meter reading data.
    Vendor has given me two option.
    1. Device can be connected to seiral port and data transfer will be done through MODBUS RTU protocol.In that case data need to capture from serial port.
    2. Device can be connected to TCP port and Socket program can be provided for data transfer. In that case SAP will act as client and communicate with TCP port.
    There will be multiple workstation with individual meters connected to them.
    I am aware of text file interfacing through front end tools using custom code using VB,JAVA or others.
    Is there any solution availble  to achieve above things using  ABAP other than text file , like direct communication?
    I am using ECC 6.0.

    Hello,
    Socket programming in not available on ABAP, but you may use RFC for the same.
    Use the below links for more details
    [Link 1|http://help.sap.com/printdocu/core/print46c/en/data/pdf/BCFESDE2/BCFESDE2.pdf]
    [Link 2|http://forums.sdn.sap.com/thread.jspa?threadID=1820233]
    Regards,
    Abhishek

  • Exe behaves inconsistently with input data into a cluster

    I'm on Labview 2011, SP1, so this may have been updated, but here's a quirk I discovered.
    I was reading a network shared variable on a remote machine (with 7 integers) into a labview built app (exe) and passing those integers to a cluster used for control.  Sometimes it worked, sometimes it didn't, so I figured I didn't understand shared variable enough (even though I had used them in the same situation many times).
    I switched to writing a file on that remote system, then reading that info into the same cluster.  Sometimes it worked, sometimes it didn't.  Tried all kinds of tricks, but any time there was a direct connection between that variable input data and the cluster, it was inconsistent.
    Turns out that the problem seemed to be the exe halting without error upon bundling the data into the cluster, but not every time. 
    So what finally got around the problem was writing the integers to a duplicate cluster, then using a local variable of that cluster to bundle those values into the  controlling cluster. 
    Once the path between network passed input data and controlling cluster was "double blind" to the application builder, the problem was gone.
    In case it makes some difference, the controlling cluster originated as a user control.

    Do you have a simple example that demonstrates the problem. I would like to test it on later versions.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

Maybe you are looking for