Serial Port and MSC1200

Hello, I´m tried connect the serail port at MSC1200 microcontroller. The program performed perfect, but no message is show in string variable.
Anybody know works with any project like this?
Attachments:
programa.JPG ‏60 KB

I guess it's not perfect if you don't get any data.
You have an indicator for number of bytes read. Is it greater than 0? If it's not, then the reason the string is empty is because there was nothing in the serial port buffer to read. Is the micro constantly sending out data? Have you tried using Hyperterminal to read the micro. If it is constantly transmitting, then the Hyperterminal scree will just fill up as long as you are connected. If the micro requires you to first send a command to request data, then you need to do a VISA Write of that command before doing the read.

Similar Messages

  • Send command to modem using serial port and capture the response in the labview

    hello.
    I am doing my shool project.
    I want to send command to modem using serial port and get the response in the labview.
    When i run my program and enter"AT", only messy code will be displayed.
    can anyone help me? thanks 

    Dora0512 wrote:
    Thanks for you all. My partner got it already.
    I am doing send sms part.
    Can anyone tell me why my program is not so steadily?
    It means this program can run. But somtimes I cannot receive sms. sometimes can
    Basically, it is not well-written from both a LabVIEW and a communications point of view.  Unfortunately, I can't elaborate because today is an exrtremely busy day at work.  I'm hoping this bump will prompt someone to help you with your problem.  If you could also provide us with the programmer's guide or the manual for your equipment, that would be extremely helpful.
    Bill
    (Mid-Level minion.)
    My support system ensures that I don't look totally incompetent.
    Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.

  • "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

  • Write to serial port and digital port at the same time

    hello,
    I need to write to the digital port and the serial port at the same time. Right now I have the two vi's (to write to the serial port, write to the digital port) in the sequence structure. First I write the digital port, then write the serial port. Using the oscilloscope, the interval between these two executions is 10 ms; and I need to reduce this interval to as small as possible. I would appreciate help in any way. Thank you.

    Hello;
    This is a little tricky. Since the transition from one sequence to another is completely Software timed, and windows manages all tasks that are running at one given time, there isn't a method to reduce that transition time.
    The most you can do is try to optimize your code so all the time expent on the transition is due only to the task management.
    Hope this helps.
    Filipe A.
    Applications Engineer
    National Instruments

  • 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

  • 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.

  • Serial port and modem

    Hi,
    I want to know whether a modem is connected to any of the serial ports in my system. Is there any way I can detect the presence of a modem connected to my desktop?
    Thanks in advance,
    Varun

    Dora0512 wrote:
    Thanks for you all. My partner got it already.
    I am doing send sms part.
    Can anyone tell me why my program is not so steadily?
    It means this program can run. But somtimes I cannot receive sms. sometimes can
    Basically, it is not well-written from both a LabVIEW and a communications point of view.  Unfortunately, I can't elaborate because today is an exrtremely busy day at work.  I'm hoping this bump will prompt someone to help you with your problem.  If you could also provide us with the programmer's guide or the manual for your equipment, that would be extremely helpful.
    Bill
    (Mid-Level minion.)
    My support system ensures that I don't look totally incompetent.
    Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.

  • Efficient optimized way to read from serial port and GPS data display using map

    Hi,
    I have a custom h/w which reads the data from GPS Rx and after parsing send it to PC over RS232.
    Each second it sends 201 bytes to PC. I have developed a VI to read the GPS data and display it. Project file is attached.
    Fulctionality of different loops are as following:
    1. LOOP 1: 1.1 Reads the serial data from com port.
                   1.2 Synclonize the frame using start bytes "a" and "z".
                   1.3 Reads next 4 bytes containg receiving error information.
                   1.4 Reads next 195 bytes. in which initial 80 byes are GPS data. rest are others.
    2. LOOP 2: 2.1 Extarcts the GPS information and put them in an array.
                      2.2 Extarcts the receive error infor and counts the total error by incrimenting the variable using shift reg.
    3. LOOP 3:3: 3.1 Displays the GPS data in chart and log the data in a file.
    4. FLOW : Uses the GMAP .NET based API to creat a MAP and display.
    Problem statement:
    1. Functionality acheived.
    2. However in between data set is being missed by the programm. 
    Quesitions:
    1. Is the developed VI is efficient in terms of using queue loacl variables etc.
    2. What are the improvments I can do to solve the problem.
    Any other suggestions|
    Thank you
    jayant
    jayant
    Attachments:
    Telemetry_Receiver_v2.zip ‏3075 KB

    One of the most common problems in serial communication is the need for an adequate timing: how much time is expected your device to spend before answering? Have you put and adequate pause in your code before reading from the serial port?
    Hope this helps
    Roberto
    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?

  • Reading ascii codes from serial port and plotting them

    Hello
    I am trying to build a VI that reads data (ascii values) from the serial port.
    I am trying to build a wireless phonocardiogram. I have a microphone that acquires heart sounds. these signals are amplified and sent to a A/D converter to digitize them. the digital signal are sent to a base unit. The digitals signals received at the base unit have to be sent to a computer (over a serial port to view them).
    I would like build a VI to plot ascii data received over the serial port.
    I would like to plot those values so that the plot just looks like a analog signal (the one I had before A/D conversion).
    Can anyone provide me some help?
    Thanks in advance.....
    Solved!
    Go to Solution.

    Hi chaitu209
    What is your transmission speed,  samplerate, and bandwidth needed in your project? The bandwidth of the serial port is somewhat limited. Let me give you an example
    Say you are using 115200 Kbit per second as transmission speed, one start bit/stop bit and parity bit, and 8 bit data. This will give you 115200/11 bytes pr second as the maximum theoretical transfer rate/sample rate. But if you are using up to 16 bit AD your  maximum samplerate will be 115200/(2x11). So my advise to you is to use a binary transfer protocol not ASCII based protocol. This is not a problem in Labview with serial transmission.
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)

  • Serial Port and light LED

    I have build a device for the serialPort(COM2) This device use the pin 2 and 3. Ok. Now, my question is:
    To light this one LED, is it enough to open the serial port?
    Thanks
    T.P.

    This won't work. Pins 2 and 3 are for sending data (2 is transmit, and 3 is receive.) You would be much better off using pins 5 (9-pin connector) or 7 (25-pin connector) for GROUND and then using DTR (pin 4 on 9-pin and pin 20 on 25-pin) as your signal. This will give you a 12V difference between the pins - you'll need a resister in series with the LED as well (from memory, LEDs aren't very happy with 12V over them for long.)
    There may, or may not be enough current to drive the LED as well. And you'll have to get the polarity correct.
    As for the software, if you simple open the port then DTR will raise giving you a signal.

  • How to configure visa to adquire dat from serial port and then converted to numeric value from a home embedded device

    I already stablish communication with my serial port using VISA, selecting COM1 as the resoure name.
    After that, I tried to read the data from the port (as we know the data was in string format )but I need to convert the data to numeric value to hadle it (no arrays).
    Another main thing is that I'm develoing a new based Embedded design and tthe info that will trhow out from the device to the PC is binary.
    How can I solved the problem, and if I want to make bidirectional communication with my system how can I do it? The VISA intructions as *IDN? and so forthetc can be recognize by the external system if the COM1 port is recognized by NI Max as ADSRL1::I
    NSTR1?

    Hello,
    For an example of bidirectional serial communication in LabVIEW, please see the shipping example LabVIEW <-> Serial.vi. This can be found from LabVIEW by going to Help >> Find Examples. From the example finder, select Hardware Input and Output >> Serial >> LabVIEW <-> Serial.vi.
    Once you are able to read the string data in, you can use the VIs in the String/Number Conversion palette to convert the data to numeric format. To access these, right-click on the block diagram >> All Functions >> String >> String/Number Conversion.
    Let me know if this does not help.
    Regards,
    Sean C.
    Applications Engineer
    National Instruments

  • How to read serial port and substring

    I am new for labview .I send data from microcontroller with C languange every 1 minute this codeprintf("T%3.2f,H%3.2f",fTemp_true,fRh_true);
    And I read data with Hyperterminal it show this T29.11,H67.88 I want to show 29.11 and 67.88 only and stroe in database. I study connect serial port in example and I have a question. If I use this code.Can I auto read every 1 minute or this code can read 1 time only and I have to click every 1 minute.How to auto read when I send data to serial port with microcontroller every 1 minute. And I cannot substring 29.11 and 67.88 because %3.2f can show T29.11,H67.88 or T129.11,H100 . and  How can I simple send data to database. Thank you . 

    No, you don't have to click run every minute. You just need to place a while loop around the VISA Read. You could use Wait (ms) but it would be better to use something like the Elapsed Time function and wire the time has elapsed output to a case statement with the VISA Read inside the true case.
    This is one way to parse the string:
    If you have the database connectivity toolkit, you can easily write to a database. There is also something called LabSQL.
    Message Edited by Dennis Knutson on 01-22-2010 01:42 PM
    Attachments:
    Parse String.png ‏16 KB

  • SERIAL PORT and PC COMMUNICATION And Arrays

    I Made RF transmitter and receiver. I'm taking data from rs232 port and I can make monitor in Hyper Terminal or RS232 Analyzer. I want to make monitor in Labview. I can see DATA in labview. but İt is coming so slowly and while byte count 10, Labview take 10 bytes after then data is slide. For example;
    First coming 127127225 after 271272251 after that 712722512 after that 127127225
    I want to take data as seperate and ı want to give name to data. for example;
    Pulse = 127 ; OXYGEN Saturation = 127 ; Temperature Room = 22.5
    What can I do? Am I use should array? Thank you...

    duplicate post
    Al B.
    Staff Software Engineer - TestStand
    CTA/CLD

  • Simultaneous execution of time critical parts(one is the drive connected to serial port and the other is the DAQ) in a vi

    We are developing a software for a cyclic spin test using Drive.
    The drive software consists of a profiler part which should be running in a 50ms
    interval.(every 50msec th operation should happen).
    This Part uses a DAQ card.
    To get some digital status we use serial link .
    The status update can be every 250msec.
    The problem is that the status read takes a minimum of 70msec to complete
    (The serial protocol for the drive specifies some delay b/w operation).
    We would like to have the status without affecting the 50msec operation.
    How can we do this?
    We run Labview 6.0 on Windows2000.

    I`m not sure how the serial VIs affect the mutithreading of the LabVIEW environment, but setting LabVIEW to run multithreaded and running the two operations independent of each other (in two while loops without data-dependency between them) might do it. You will find the option for multithreading under "options". Bear in mind that a re-start of LabVIEW is necessary before the changes come into effect.
    I would time-stamp the reply of the drive with the time of the request, not after receiving the data.
    Hope this helps
    Shane
    Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)

  • Have a new p6-2100 desktop that I'm trying to add a 1 serial port and 1 Parallel port

    Installed Win7 Ultimate and attempted to plug in a 3rd party PCI Express car with ports. The computer does not boot if this card is in the pci slot. (Port card Mfr StarTech.

    pozburn,
    What is the exact model # of this StarTech card. Is it PCIE(-x1) or PCI. You mentioned both.
    I am a volunteer. I am not an HP employee.
    To say THANK YOU, press the "thumbs up symbol" to render a KUDO. Please click Accept as Solution, if your problem is solved. You can render both Solution and KUDO.
    The Law of Effect states that positive reinforcement increases the probability of a behavior being repeated. (B.F.Skinner). You toss me KUDO and/or Solution, and I perform better.
    (2) HP DV7t i7 3160QM 2.3Ghz 8GB
    HP m9200t E8400,Win7 Pro 32 bit. 4GB RAM, ASUS 550Ti 2GB, Rosewill 630W. 1T HD SATA 3Gb/s
    Custom Asus P8P67, I7-2600k, 16GB RAM, WIN7 Pro 64bit, EVGA GTX660 2GB, 750W OCZ, 1T HD SATA 6Gb/s
    Custom Asus P8Z77, I7-3770k, 16GB RAM, WIN7 Pro 64bit, EVGA GTX670 2GB, 750W OCZ, 1T HD SATA 6Gb/s
    Both Customs use Rosewill Blackhawk case.
    Printer -- HP OfficeJet Pro 8600 Plus

Maybe you are looking for

  • Can't view document in library and I have View/Read Access

    Hello,  I have a document library that has unique permissions to edit and above but our "AllUsers" in our Active Directory has Read/View permission but those users cannot see 1 particular file in that library.  This issue is driving me crazy and I fe

  • Games that came with Windows Vista

    I just recently had a system recovery completed and an increase to the PC performance (more speed).  Prior to this, games such as FreeCell, Spider Solitaire, etc. worked just fine; now they are "lagging".  I have all the recent driver/devise updates,

  • My itunes is not picking up any updates for my iphone

    i have a old iphone not sure wat generation. will update untill ios 4.2.1 and then when i want to update fearther itunes states the version of the iphone softwear is(4.2.1) the current version. please help trying to get facebook and whatsapp but it d

  • Mode Aggregate function in Oracle

    The function Should give the most frequently occurring, or repetitive, value in the group of data. Example, if say rate column as following values.... 6,3,3,5,6,7,3,3. The function mode(rate) should return 3, since 3 occures 4 times in the stream all

  • I can't sync my iPod with iTunes, iTunes says waiting for changes to be applied.

    Hi, I've been experiencing problems with my iPod touch 5g, the problem is that when I updated it to iOS 7 some of my songs were deleted, so I went to iTunes and unsync it, but now I can't add the music again, iTunes says waiting for changes to be app