Working with INTERRUPTS with SERIAL com port ?

Hello all.
I need to monitor a com port ( to use with a gsm modem siemens m20) while
doing something else
or to be interrupted when something is available on the com port.
I want to do it with interrupts in NT operating system. I could do a device
drivers to do that, but, is possible to do it in a simple way?
Thanks.

Ive been trying to do something similar
so far I launch a new thread, which sets up a comcallback to trigger on
0x05 comming through the serial port (ENQ)
unfortunately, this seems to ltake like 100% CPU
Grahh!
im doing this in cvi...but i should think you can do the same in labview
andy
jerry wrote in message
news:7sqnad$45u$[email protected]..
> hi guys !
>
> here is the deal :
>
> my app needs to
> monitor a com port while doing something else
> or to be interrupted when something is available on the com port.
>
>

Similar Messages

  • VISA unable to communicate with or see RS232 serial com port

     I have a Dell Optiplex GX260 which has recently had Windows XP (Service Pack 2) re-installed on it.  National Instruments VISA is unable to communicate with the single RS232 serial com port on the computer.  Neither the "VISA Resource Name" control in LabVIEW 8.5 nor the "Measurement and Automation Explorer" can see the serial port.  Refreshing the list does not help.  "HyperTerminal"is able to both see and communicate with instruments connected to the serial port.  In Windows "Device Manager, the serialport appear in the list of hardware without any warnings.
    Can anyone please help with suggestions as to how I may be able to get VISA in LabVIEW to 8.5 to see and communicate with the serial port?
    System Details:
    Dell Optiplex GX260 (One RS232 serial port)
    Windows XP Home Edition Service Pack 2
    LabVIEW 8.5
    Solved!
    Go to Solution.

    AKA_TG wrote:
    Just passing by but I gotta say
    Guyts who answer like that do really irritate me
    Someone oughta apologize to the porr guy trying to get some help here.
    Go ahead and put me on your ignore list please!
    First, there is a plethora of messages on this forum and a plethora of information in the NI KnowledgeBase. If someone doesn't make the simple effort to take 5 minutes to perform a search what does that say? The issue being raised has come up, literally, dozens of times. Do you like answering the same question over and over and over and over and over again?
    Second, my feelings are not unique. You will find that the irritation of people not bothering to do a simple search is shared by most of the regulars here. Why do you think search engines are available? Just so that ads can be sold?
    Third, posting the SAME question in multiple threads is self-defeating. People who try to answer don't know what's already been suggested, and end up wasting their time as well as the poster's time in providing the SAME answer and/or suggestions that were provided in the other thread. 
    Fourth, simple forum netiquette. In both threads the poster essentially hijacked someone else's thread. This is frowned upon in just about every forum that I've ever seen.

  • Adding Serial (COM) Port

    I need to add a single 9-pin serial (COM) port to hook up a device that has a serial connector.  The MB has an 16550A electrical connection but no serial port. What should I be looking for?  Most of what I see online are PCI serial cards or ISA-slotted ones.  I assume that if there's an electrical connection there's no need for a PCI board.  Thanks. 

    Quote from: Built2Last on 14-May-06, 10:16:06
    genegold, I just picked up the same board for my HTPC and it came with the com bracket in the box along with a audio out bracket & tv out bracket. Maybe you should check with your supplier to see if you got short changed.
    Wow, this is getting better.  Mine came from ZipZoomFly and doesn't have one, but does have the others you mention.  The serial header is listed as optional in the manual, but with other parts that means if the board has the connection then there should be a bracket.  I'll have to call MSI Monday and ask (and look all around just to see if it dropped somewhere).  Thanks!

  • Blackberry hijacked my serial com port!

    Hello! I'm new to blackberries! When I tried to sync up my old palm device, it wouldn't connect. Checking into my serial com ports, I saw that the Palm M100 (aka old) was configured for com port 4. Looking on my device manager, I noticed that my Curve took over serial com ports 3 and 4. I intend to still use the palm device. How do I get the computer to recognize it without having to uninstall or reinstall anything?

    change the USB port on which you connect your BlackBerry device.
    The search box on top-right of this page is your true friend, and the public Knowledge Base too:

  • Newbie : working with INTERRUPTS with SERIAL com port ?

    hi guys !
    here is the deal :
    my app needs to
    monitor a com port while doing something else
    or to be interrupted when something is available on the com port.

    Ive been trying to do something similar
    so far I launch a new thread, which sets up a comcallback to trigger on
    0x05 comming through the serial port (ENQ)
    unfortunately, this seems to ltake like 100% CPU
    Grahh!
    im doing this in cvi...but i should think you can do the same in labview
    andy
    jerry wrote in message
    news:7sqnad$45u$[email protected]..
    > hi guys !
    >
    > here is the deal :
    >
    > my app needs to
    > monitor a com port while doing something else
    > or to be interrupted when something is available on the com port.
    >
    >

  • Serial COM Port to TCPIP

    I saw a lot of posts that deal with this, however: I have a test rack with 24 UUTs, each has a usb to Ethernet adapter.  I want to use each adapter to talk to the UUT with the same IP (can't changed it it's static).  I need to be able to go through a com port and communicate to a specific UUT, knowing that I am communicating through this specific com port, not any other of the 24.
    I saw a few virtual drivers, that seem to do this, but has anyone done anything of this nature before?  I know I can create a NI Visa resource in NI MAX but that doesn't help me, because I can't link a com port to that resource, can I?

    rsmrostov wrote:
    ‎You wrote that you have a USB-to-Ethernet adapter. Did you mean the TRIPP-LITE extender?
    yes
    That is simply a USB extender, no conversion to Ethernet. - obviously
    Then why did you describe it as a USB-to-ethernet adapter?
    rsmrostov wrote: 
    Does your device speak TCP-IP or serial? -TCP-IP
    Where is the USB-to-serial adapter, and what model is it? non, there's a driver that comes with the device, that must let you talk to TCP/IP 
    Is it integrated into the DUT? - most likely, not sure to be honest, as I am helping out one of the guys who plain just doesn't know.
    What can you tell us about the DUT? - Linux based device, has a fixed IP
    You showed us a screenshot of MAX, listing several COM ports. So, those COM ports somehow exist on your system. You also said that only one of them is connected to the DUT. If this is true, then the COM port must be created outside of the device (for example, a USB-to-serial adapter). However, if the device doesn't use serial communications, then it doesn't make any sense to have a USB-to-serial adapter at all, because there's no easy way to run TCP over serial.
    It sounds like you need to do some research on exactly how your DUT works, what types of connections it offers, and what protocol it uses. If you absolutely need to connect to multiple devices, each of which have the same IP address, I would recommend that you get a bunch of cheap home NAT (network address translation) devices, often seen as a home/office router (allows you to connect multiple computers to a single internet connection). Assign each one a unique IP address within the same subnet, plug them all into an ethernet hub or switch, and plug one DUT into each router. Configure the router's internet address to match the subnet of the DUT, and set each router to route all incoming connections to the IP of the DUT.

  • HTML DB and Serial(COM) Port

    Hi, everyone,
    Is there any way that HTML DB can communicate with Serial Port (COM Port) directly? I searched the forum, and saw someone mentioned "Visual Baisc", "Javascript", "ActiveX", or "DLL". Could anyone give an example for it if you had successful experiences about it?
    My problem is I'm working on a HTML DB project which will read data from barcode scanner. And request I have is the HTML DB can monintor the Serial Port and read the data from there if there is one. That means some programs need to be embedded in or called in HTML DB page. I known there are some commerial software developed for this purpose on the market, but I am wondering if it can be done by HTML DB itself?
    Thank you. And Regards,
    Ran

    > Is there any way that HTML DB can communicate with Serial Port (COM Port)
    directly?
    There seems to be a misunderstanding or lack of understanding about what APEX/HTMLDB is ito client-server architecture.
    APEX is a server side application. It resides entirely in Oracle as PL/SQL software. It is executed by Oracle server processes that are servicing requests from a web (i.e. Apache) server.
    APEX does not "run" on the client. APEX streams, via the web server, data to the client browser. These MIME streams can be anything from HTML, XML, plain text (like CSV data), to images and so on.
    The browser receives this data stream, and depending on the browser configuration, does something with it - e.g. it renders a HTML data stream, it starts Flash Player plugin for a Flash graph, etc.
    The browser interacts with the client. With the user, the mouse, the keyboard, the printer and any other peripherals the client may have - like a barcode scanner.
    Can HTMDBL use a COM port? The more correct question is, Can PL/SQL in the Oracle Server Process access the COM port of the Oracle Server Platform?. The answer to that is yes - it can be done.
    But in the context of client interaction and the COM port being that of the client platform - no. PL/SQL is a server-side language. It does not execute on the client in the client browser.
    It is important to understand the web client-server architecture - as it is a lot more complex and inflexible and slower than the "traditional" client-server architecture. It is stateless. It uses a very "primitive" client, the web browser. It is bound to W3C standards which is the lowest common denominator. Forget about smooth and slick client GUIs using and supporting the latest desktop GUIs standards and controls. Forget about easily interfacing with the client platform's file system and peripherals and so on.

  • Bluetooth over serial com port

    I was wondering if I could somehow determine the COM port my bluetooth device is on. I have gotten as far as discovering my bluetooth device and extracting the correct address and device name using the Blueooth Discover VI, and I have been able to obtain the correct UUID number from the Bluetooth RFCOMM Service Discovery VI. Is there any way to obtain what com port it is on from what I have?

    CF_eee,
    Thank you for clarifying what you are trying to do.
    I have two suggestions for you. Each of them may be able to accomplish what you are trying to do.
    (1) Use the Windows Registry to look up information on connected hardware.
    On my computer, information about my Serial Port (COM1) is stored in the Windows Registry at HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Enum\ACPI\PNP0501\1.
    Example keys are Class, ConfigFlags, DeviceDesc, Driver, FriendlyName, HardwareID, and Service (amongst others).
    You can access these registry values from LabVIEW using the Functions located at Connectivity > Windows Registry Access VIs. If you walk through the Enum or ACPI folders, you should be able to determine which Serial Port represents your Bluetooth device by parsing and matching against these keys.
    (2) Use the System Exec VI to call the devcon Command-line Utility from Microsoft
    The devcon utility can be downloaded here: http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q311272
    From the devcon download page: The DevCon utility is a command-line utility that acts as an alternative to Device Manager. Using DevCon, you can enable, disable, restart, update, remove, and query individual devices or groups of devices.
    The System Exec.vi can be found on the Functions palette at Connectivity > System Exec.vi
    You can find documentation on devcon at the download page (linked above).
    Jared A.
    Applications Engineer
    National Instruments

  • Streaming Audio over serial com port

    I have a task where I am programming a robotic system and control unit.  I am using a laptop for the control unit.  On the laptop is a microphone.  What I would like to do is capture the audio from the microphone and transmit this via the radio to the robot to play on a speaker.  The radio plugs into the com port on the laptop.  I can transfer a .wav file by using the Flatten to String.vi send and unFlatten on the other side.  What I need to do is stream the audio as it is collected from the microphone.  Is this possible?  If so, any suggestions would be appreciated.

    It will depend on the speed you are using and the resolution. Let me give an example. Say you are using 1 start bit one stop  bit and 8 bit data. This mean for each byte you have to send 10 bit. Given that you are using 16 bit for audio and a 115200 rs232 link the maximum sample speed will be 115200/20 equal to 7760 samples pr second. But I guess your actual max speed will be lower. If you only need 8 bit sound  you may get higher data rates. That is perhaps the reason for the strange voice on robots in motion pictures 
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)

  • Simple Serial Com port

    I have an external device that I need to write and read simple ascii commands to through a serial port. For some unknown reason I can not get Labview or for that matter M&A to com to it. I can com to it through a terminal (putty) with no problems. I have tried through M&A and also several labview basic read & Write Serial example VIs. No luck. All I need to send is  $1RD  This tells the external device to send a measurement back. Its basic ascii. The device coms on 19200 baud 8 bit words no party or flow control and 1 stop bit. Anyone have any ideas?

    Bkasper wrote:
    It works fine in putty. Yes I have to press the enter key to send the $1RD. I have tried adding \r and \s to the end of the command in labview, but no luck.
    Try adding a \r\n or just a \n to the end of the line. A carriage return by itself is not a normal line termination.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot

  • Task initialization thorough serial com port

    I want to initiate a task by passing a string suppose "y" (from serial port) and it should remains active until vi doesn't receive another string suppose "n". Please tell me how can I do it?
    Attachments:
    smplserl.llb ‏29 KB

    Provide some details please. I don't understand what you mean by ' remains active'. What are you connecting your serial port to?
    What is the point of attaching an llb that comes with LabVIEW?

  • Flash Desktop App with Com Port

    Does anyone have any idea how to build a Flash desktop
    application for windows that basically provides a nice GUI to
    send/recieve very basic data to/from a serial/com port?
    Cheers,
    Chris :-)

    Thanks rritchey,
    I'm also looking into running Flash inside VB. Looks like the
    easiest solution so far, although I was hoping for something more
    simplistic.
    http://www.adobe.com/devnet/flashslideshow/
    http://www.anim-fx.com/flash-tutorials/insertvb6.html
    Other ideas still welcome.
    Cheers,
    Chris.

  • Create Communication Reference for UART Serial COM and ETHERNET

    Hi All,
    I am developing a LV drivers for the device for which works on the both Serial COM and Ethernet. Commands used for both protocol are same just the commumcation choices are different.
    As it would be difficult to maintain, I do not want to develope drivers separtely for Serail COM and Ethernet so I must use the communcation reference for that, I plan to generate this reference in Initialize.vi  and further this reference is used for the communcation.
    How to generate this communcation rference ?
    Thank you.
    -Amit

    amitwadje wrote:
    Hi,
    Thank you for your answer, I do not want to use ONLY VISA, I agree most of the driver user knows about VISA very well but here my concern is to
    make the common driver both for COM port and Ethenet, just in Init.vi, I will select the COM or Ehtenet with proper inputs and accordingly
    communciation reference will be generated and the same communcation reference I will use for the further functionality (at that time, I do not
    care aobut what I am using COM or Ethernet as I have reference genered in Init,vi and I did input this reference for further VIs).
    is it possible to do so  ?
    Thank you.
    And VISA was speciifically designed to abstract the actual hardware interface away. It incidentially supports serial, GPIB, USB, AND TCP/IP for exactly that reason. Your Iniitilize.vi has to do only a little work to initialize certain aspects of VISA according to the used interface such as possible message termination and serial port parameters and the rest of the instrument driver simply gets the VISA reference and does its thing and doesn't have to worry at all if it should use the Serial COMM reference or rather the TCP/IP reference. In LabVIEW accessing Serial COMM without VISA is anyhow quite a bit of extra work.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Data transmition using serial com

    Hello everyone,
    I'm new to JAVAME, and would like to ask how can I send numeric value 1-3 to the pc serial com port, I'll be using the hyperterminal to see the value recieved. The phone I'm using is Nokia N95..any link or ideas will be appreciated.
    Thanks in advance,
    joseph

    LuI wrote:
    >
    > Hi all,
    >
    > I am frustrated on VISA serial comm. It looks so neat and its
    > fantastic what it supposes to do for a develloper, but sometimes one
    > runs into trouble very deep.
    > I have an app where I have to read large amounts of data streamed by
    > 13 µCs at 230kBaud. (They do not necessarily need to stream all at the
    > same time.)
    > I use either a Moxa multiport adapter C320 with 16 serial ports or -
    > for test purposes - a Keyspan serial-2-USB adapter with 4 serial
    > ports.
    Does it work better if you use the serial port(s) on your motherboard?
    If so, then get a better serial adapter. If not, look more closely at
    VISA.
    Some programs have some issues on serial adapters but run fine on a
    regular serial port. We've had that problem recent
    ly.
    Best, Mark

  • Using DLL in LV for a serial com

    Hi,
    I'm trying to implement in LV a software involving a pan-tilt-zoom motor control, which works with a pretty large communication protocol but have C++ written DLL.
    I have tested the DLL with a c++ program, and it works fine, but when I try to use it in LV it doesn't work at all!
    To start with, i'm trying to run a basic program, with 2 vis from the dll:
    The first VI (Init.vi) Configures the serial com port receiving the name (for example COM4) and the baudrate (9600) and returns the handler for the port
    The second (TiltUp.vi) vi receives the handle, and sends the packet through the port
    The problem is that the first Init.vi doesn't seem to initialize the port. I'm using C calling convention for every vi, and running them in the UI thread.
    Do you have any idea of what could be my problem? It is possible to configure and get the port handler any other way in LV?
    Thank you very much!
    Attachments:
    lv-ptz.JPG ‏41 KB
    library-call-conf.JPG ‏50 KB

    nyc escribió:
    LabVIEW has built-in serial port functions.
    I'd start with those before trying to use a DLL.
    I know, but i was trying to use the c++ library to avoid the entire protocol coding in LV...
    I will modify the library to avoid the entire implementation of the protocol.. but using the VISA Serial lib
    Thank you nyc! 

Maybe you are looking for

  • How do I change the URL to the Remote Web Access server in Windows Server 2012?

    Hallo! I have set up a Remote Dexktop Service using the "Quick" deployment method in Server Manager and everything is working greate internally, but I cannot start an app published in Remote Web Access from outside our network. The problem is that it

  • Call Transaction (BAPI) in ABAP Web Dynpro

    I'm developing a ABAP WD application which make use of a RFC BAPI. The BAPI will then use call transaction to perform certain operation on R3.  <b>CALL TRANSACTION 'IQS12' USING bdcdata MODE 'P'   MESSAGES INTO itab.</b> It works fine when I tested i

  • When transferring HR data from ECC to CRM via change pointers

    When transferring HR data from ECC to CRM via change pointers ,certain data is getting earsed in CRM paricularly the last name and first name of BUT000 Do you have any idea why this could be happening Thanks in advance

  • How to synchroniz​e two pxi ni5112?

    Now in my system there are 2 PXI NI5112.Both NI5112 have the same configuration and all their inputs are connected to the same pulse signal source(10Hz).Both NI5112 use analog edge triggering and the trigering source is the channel 0.So all the NI511

  • I Think I have a keylogger on my mac. Need Help!!!

    ok so i was watching a youtube video, and I clicked a link by accident in the bottom. a grey screen came up and it looked like java was trying to do something. I quit safari and turned off my internet, however, I am worried about this. I followed the