Using VI Example Basic Serial Write Read to send AT commands to Cell phone modem error 1073807360

I am using the NI Example VI: Basic Serial Write and Read to send AT commands to a Cell phone acting as a Modem.  I can send AT commands to this phone using Hyperterm when I select the modem driver by name in the hypert port selection field but not as com 7 which it occupies according to device manager modem properties. The basic serial vi does not show the modem driver as a selection, only ports by comX are shown. I get error 1073807360.

Have you tried to put the name you enter in Hyperterminal in the VISA resource control? If Com 7 doesn't show, you can simply type "COM 7" in the VISA resource control. Or use "ASRL::INSTR 7".
Also, make sure the connection in hyperterminal is closed, before you open the port in LabVIEW.
Hope it helps,
Wiebe.

Similar Messages

  • Merge a intensity graph to a Serial write/read

    Hey.
    I am doing my bachelor in Labview, and are using a arduino 2560 as a microcontroller for a thermal sensor.
    After many attempts on connecting the arduino to labview using LIFA.BASE I get connection sometimes, and sometimes not.
    I tried the Serial write and read program on the forum, and got much better reliability.
    I would like to use VISA, instead of Arduino int.vi
    I was hoping I could change the Serial write and read(removing the string) with putting an intensity graph in it?
    I have added the bachelor program along with the Serial write and read, can someone please help me??
    Attachments:
    bachelor_2013.vi ‏259 KB
    Modded Advanced Serial Write and Read_test.vi ‏40 KB

    There is the Simple Serial Write Read example.  That should get you started with talking over a serial port with VISA.
    It seems like you have an array of bytes that you need to send.  You just use the Byte Array To String to convert directly into a string and send it.  For reading, there is the String To Byte Array that you can use to start parsing your data.
    Show us what you have so far.  Be sure to include any sample data you may have and expected results.  Things get really confusing when stating ASCII and Hex since people can interpret that in 10 different ways.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Asynchronous serial message read

    Hi, everybody.
    I have the message based device. I don't know when the device will send the message, so I didn't know how should I create the VISA read function to read whole string from the device(because it reads only data, which are enabled at serial port buffer).May be it can be done by using VISA bytes at port in while loop, but I don't know exactly how.Can you explain it to me?Or do you have any other solution?Thank you for your help.
    Solved!
    Go to Solution.

    Hi
    I reworked the basic serial read and write example, just to give you some programming hint. Also remember that then reading from the serial buffer, you do not need to read all the content. Read the number of bytes you need. The serial buffer is FIFO type. So the oldest content will always be first in the queue to read. 
    My example is somewhat simple, and I did not test it but should work. Check out queues and notifiers (in example finder) for more advanced programming techniques.
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)
    Attachments:
    Basic Serial Write and Read async.vi ‏33 KB

  • Inconsistent serial write

    hello,
    I'll be brief. I'm a novice, still trying to get the feel of labview. Somehow there's an inconsistency of the serialwrite.vi in my program. Using a protocol analyzer, I could see that sometimes the serial write doesn't send all the strings in the command text box. (For instance, the value of the command textbox is "send 200", and sometimes the serial write only sends "se"). I followed the guideline for serial communication: initialize (baud = 9600, databits = 8, stopbits = 2, parity = none), flush the buffer before writing to the serial port, send the string to the port, have a serial port break to wait for response, and count the number of bytes on the serial port before reading them. I use R-232, and I also have checked the "updat
    e value while typing" on the pop up menu of the command textbox. My program is attached. I will appreciate any help in any way. Thank you!!

    Try using VISA instead of serial VIs. VISA is lot better to use in almost everyway. There is a VI on your computer ( that has Labview on it )named, serial communication.vi That VI will help you understand the use of VISA in serial communication. But for some reason if you have to use Serial VIs then attach your VI on this developer exchange and I will try to troubleshoot the problem.

  • X230 bluetooth does not work - unable to use cell phone as personal hotspot

    I am trying to use the bluetooth in my X230 to pair my laptop with my cell phone. I want to be able to use my cell phone as a personal hotspot, in case I am in an area with no secure wi-fi. I would have thought that this would be standard feature in a laptop that is touted as a business device, but apparently this is not the case.
    I installed both the bluetooth driver and the latest system update, as suggested by Sarbin...
    http://support.lenovo.com/en_US/research/hints-or-tips/detail.page?&DocID=HT073834
    and
    http://support.lenovo.com/en_US/downloads/detail.page?DocID=DS012808
    ... but it is still not working for me. I am now able to connect my cell phone to my X230, but instead of enabling me to access the internet via bluetooth, a dialogue box appears enabling me to play songs that are on my cell phone using the laptop speakers.
    I am disappointed that the bluetooth driver did not come pre-installed on the x230, and I am disappointed that I am not able to use my cell phone as a personal hotspot for my x230.
    Solved!
    Go to Solution.

    There is a key step missing from the prior post, but is shown on the link.
    After the steps described in the prior post (e.g., disabling all services on the Bluetooth device except NAP), go to <Control Panel<, <Devices and Printers>, right click on the Bluetooth device (e.g., iPhone) that you want to connect to for your internet hotspot access point, and then click on <Connect Using> and then <Access Point>.
    Using this method, the Lenovo's Access Connections program does NOT control this internet connection, thus the icon in the system tray will show NO connection in the Lenovo wireless access icon (even though the computer is connected via the Bluetooth connection to the iPhone).
    Disconnecting requires going back into Control Panel and disconnecting from the Access Point.
    Kinda clunky in my opinion, but I could never get a connection to the internet via a Bluetooth/iPhone Hotspot combination using the Lenovo Access Connections software despite claims in that software's help section saying that such a connection was possible.  (The Lenovo Access Connections Help section even gives instructions to use tabs that don't exist in the software.)

  • How do I monitor serial port activity without first sending a command?

    In my application I am sending a command through the serial interface and I want to monitor the response. The response is not instant, in fact it is a timeout response indicating the requested action did not work. How do I monitor so I can parse what is coming in over the serial port without necessarily sending a command?

    You can always place a loop where you monitor the number of bytes at the serial port.
    After configuring your VISA serial port session, you can create a Property Node to get the number of bytes available at serial port.
    You can then process this information, for instance:
    1. Establish a timeout because you never get a response.
    2. Do serial port read if there is data available.
    You can exit the loop with a timeout condition or having processed the data.
    -JLV-

  • Can I use my MAC (G5 & OS 10.4) to send SMS from the UK?

    (The third of my first set of postings!)
    When I used an earlier PowerMac and OS 9, I was able to dial a Vodafone number (using the communications module of Claris Works) to send SMS messages to mobile phones.
    I have recently seen Widgets advertised which seem to offer such a facility, but not, apparently, in the UK.
    Is there any way of sending SMS messages from a Mac in the UK?
    Many thanks for responses/comments.

    I'm pretty sure this supports the UK:
    http://www.smsmac.com/en/index.html

  • How do I use serial port read and show text, but not have it scroll off screen?

    I am new-ish/returning amateur user of Labview and I am trying to edit the example VI "Advanced serial write and read VI" that is part of dev suite 2012.  I need to use the string box to show ALL text received from serial port, always appending and only rolls off screen when more real data arrives at serial port. 
    What is actually happening is as more bytes (or no bytes AT ALL!) arrive during read time, current text rolls off the string box.  Even when 0 bytes are received, screen is blanked out.  I am not very familiar with functions locations and even worse at understanding obscure references to functions, so please keep replies very basic so I can follow.
    Just to be clear, I need the string window to behave like hyperterm does-always shows data and it is not pushed out of window arbitrarily.
    Thanks,
    Steve  
    Solved!
    Go to Solution.

    OK- lets start back at the beginning.  I have a few questions...
    WHy does incoming txt get placed at top of txt box and then scroll up?  why would it make more sense to input at the bottom and scroll toward the top.  I have created this huge txt box that appears to be impossible to use.
    I have attached example of txt boxes I have tried, and pic of VI I have edited.  Bad marks for uglyness....
    Attachments:
    Capture_VI.JPG ‏117 KB
    Capture_VI2.JPG ‏133 KB

  • How to select two strings and send to a serial write using case loop

    I had a serial write which have to take different commands at different cases. The same serial read should read both. How can I do it. Means if I have a string 500\r\nZ. I one case it should be -500\r\n Zand other case +500\r\n Z. But boyh of these cases have to be read with one serail write . How can I do iit . Please help
    Solved!
    Go to Solution.

    You can't gaurantee that both conditions won't hit at the same time.  You will need to send a separate command for each condition.
    Plus, using EQUALS on floating points is dangerous.  You might never get the condition because a really low bit could be off.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • VISA Flush I/O Buffer doesn't work on my Serial Write and Read VI

    Hello,
    I've been working on a serial interface .vi that communicate with simple GPRS/3G modems via AT commands.
    This VI is working very well except when its used repeatedly:
    Even if I use "VISA Flush I/O  Buffer" or "VISA Clear" or clear the "Response" control string, the VISA Read keeps delivering the response concatenated after previous responses. Can you spot the bug in my VI? 
     I've had searched this forum for smiliar topics, but none of them were related. 
    Thanks,
    Antonio

    RavensFan escreveu:
    You are going to keep seeing previous messages because you are storing them in a string in the feedback node.  It doesn't matter what you do with the serial port or its buffer, you've created your own buffer with the feedback node.
    Well... and it's working fine! Thank you very much RavensFan!
    I started develloping this code as my first steps into Labview, and it's based on previous and bad programmed serial.vi that my coworker had done.
    Right now, I have less than 3 months of LV experience and, believe it or not, I'm the company's specialist. 
    It's hard to solve all these little bugs! 
    Why are you using VISA events?  I don't find them very commonly used, and I don't see where you are using them anywhere else.
    Why are you using Bytes at Port?  I don't see where you are controlling the speed of your loop, so you probably wind up reading the serial port a byte at a time or something like that.
    Where are you sending your commands?
    Why don't you use the termination character to determine when to stop reading on a VISA read so it will responde quickly, but guarnatee you get a complete message.
    I used VISA events because I wanted to get rid of the constant "wait for X ms" function between read and write. This way I read the answer at the time it arrived. I can't remember why I used Bytes at Port, probably because the program required it. I got to take a look on this later.
    The commands are sent through the Command control.
    And about using the termination character, It's not garanteed that the device will always respond with a termination character. But I will talk again with the hardware team about this.
    Again, thank you!

  • Give me some examples for functions for read POST, write POST, modify POST

    Give me some examples for functions for read POST, write POST, modify POST, create and delete theme in forum. This functions have to be make like Remote Methods

    Give me some examples for functions for read POST, write POST, modify POST, create and delete theme in forum. This functions have to be make like Remote Methods

  • Need example vi using AT commands for dialing the modem at the remote end

    Can any one give example vi for dialing up a modem and sending data to remote end

    Hi sindhu6,
    Presuming that you are connected to your modem via a serial connection:
    I did find a forum related to your enquiry: http://forums.ni.com/t5/LabVIEW/AT-commands-in-labview/td-p/1213335
    And I did find an example from ni.com: http://zone.ni.com/devzone/cda/epd/p/id/2577
    Basically, what you need to do is to find out what are the AT commands used for your modem and send the command over using VISA related functions (e.g. VISA Read VI). You can send the command in a sequantial method. You can do this by using the method found in the first link. The best would be that you can create a state machine where by each case/state will consists of commands that you need to run in a sequence (let's say a sequence of AT commands for sending a message via TCP/IP communication).
    You can also use a sequence structure but I would not suggest that since you cannot stop the sequence half way and if your command is very long, this may look pretty messy for your code.
    The main question is:
    What is the version of your LabVIEW?
    What is the modem that you are using and how is your hardware setup is going to be (e.g. how did you communicate with your modem)? 
    Thank you
    Warmest regards,
    Lennard.C
    Learning new things everyday...

  • How do I stop Serial "VISA Read" from giving me packets instead of available bytes.

    Dear Labvillians,
    Highlight:
    How do I stop serial "VISA read" from giving me packets instead of bytes?
    Background:
    I have a system that serially publishes 14 byte packets on a semi-regular interval.
    At busy times, the producer of these these packets queues the data, effectively producing super-packets in multiples of 14 bytes sometimes as large as 8 packets (112 bytes).
    My protocol handler has been designed to processes bytes, packets or super-packets.
    My application now has multiple devices and the order of message processing is critical to correct functionality.
    My observation is that the VISA read waits until the end of a packet/ super-packet before passing the data to the application code. (See Plot Below)
    My expectation is that VISA read should give me available bytes, and not get too smart for itself and wait for a packet.
    I have observed this on PXI, Embedded PC, cFP and most recently, cRIO
    I have experimented with the cRIO's Scan interface rate, which helps with reducing the packet backlog but doesn't resolve to sub-packet byte read.
    I understand that one solution is to Write FPGA code to handle it and pass the bytes through R/T-FIFO, and there are some great examples on this site.
    Unfortunately this doesn't help with non FPGA devices.
    I have also dabbled in event based serial reads but it is diabolical on vxWorks devices.
    Any Help is appreciated
    iTm - Senior Systems Engineer
    uses: LABVIEW 2012 SP1 x86 on Windows 7 x64. cFP, cRIO, PXI-RT
    Solved!
    Go to Solution.

    Sometimes Talking to yourself is helpful.
    I hope this is a useful Nugget for someone in the future
    iTm - Senior Systems Engineer
    uses: LABVIEW 2012 SP1 x86 on Windows 7 x64. cFP, cRIO, PXI-RT

  • Strange serial write problem in labview 8.5

    I'm having a very strange problem with simple serial port write in labview. I'm running the 'Advanced serial write and read.vi' program from NI examples. I connected a microcontroller board on the device side. The board has been programmed simply to blink an LED fixed number of times. For example if I want my LED to blink 13 times, that is specified in the labview 'string to write'  field. I ran the program in hyperterminal window. It runs successfully. But whenever I'm running it in labview it is giving strange response, for example if I give input in 'string to write' field 18/13/15, it blinks 11 times, similarly if I try to run it 21/26/29 times every time it runs 22 times. That is the controller only acknowledges the MSB and duplicates the other bit with it. Since it is running fine in window's hyperterminal, There must be some adjustment need to be done in labview. And that I cannot figure out. Please anybody give some solution.Any suggestion is appreciated.
    With Regards,
    Tapabrata

    Please post your program or a stripped down version (we probably do not need all the signal processing) which shows the problem.  Make sure that all the controls for the serial port are set to your default values. Also, provide the exact communication protocol you are using.
    When you say you want to write in "real time," please specify what you mean. That term is used in several different ways and is often misinterpretted as a result. How often do you wnat to write? How much timing jitter or error can you tolerate?
    Most likely what you want can be done, but without seeing the code it is difficult to say what might be wrong.
    Lynn

  • Example VI BasicWriteandRead.vi reads back junk.

    Hello All,
    I am new to LabView, and I am currently trying to talk to a device connected through a serial port. (I am also new to working with serial ports…) When I use the BasicSerialWriteandRead.vi provided as an example, the data I read back is always a bunch of junk. The number of bytes read that is reported always matches the number of characters I entered, but the data read back does not match. Here is an example:
    --> string to write: hello
    -->read string: nunoo
    (hit run again, and next string read is: nenno; next time it reads: oenno)
    This connection uses the RS232 standard. When I use the example .vi mentioned above with another COM port listed, the input is echoed correctly, so I guess the problem has something to do with the specific device I’m talking to—maybe I don’t have the settings correct or something like that?
    Any suggestions?
    Thanks

    Get the correct communication specs for your device, if needed, contact the manufacturer.
    Try communicating in Hyperterminal 1st before trying LV code, this way you know you have the correct baud, stop bits, parity, flow control.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~
    "It’s the questions that drive us.”
    ~~~~~~~~~~~~~~~~~~~~~~~~~~

Maybe you are looking for

  • HTTP Error 403.14 - Forbidden

    I am running Vista Ultimate SP2 and Visual Studio 2008.  I am getting the following error and would like to know how to fix it and how to fix it so that I am not asked for admin privilages all the time.  I am the administrator,  Here is the error I a

  • Link to a file in a grid

    Hello, I want to create a grid in screen painter. One of the columns in that grid has to be a link to a file.

  • Access denied to a folder; running as Administrator with backup, restore, takeown, and security privileges

    I am running as an Administrator with SE_BACKUP_NAME, SE_RESTORE_NAME, SE_TAKE_OWNERSHIP_NAME, and SE_SECURITY_NAME enabled on my application. My group information is listed below. The item's path and ACL are C:\tests\test_acl_null\src\1d: O:BGG:SYD:

  • Incoming Invoice (MIRO)

    Hello, We execute into a stock transaction using MB1C, by using the moviment 501. I can make a review of this invoice entry in SAP with this moviment?  If i can, would like know how. thanks Daniela

  • What is the final step in the Adobe Acrobat XI Install?

    I have installed Adobe Acrobat XI and I see the directory on my desktop (That was the default location but I thought it odd). However it isn't fully installed because Reader is not an option when I try to open a PDF. What do I still need to do? I am