Using Serial Port for Non-Serial Data Acquisiton

I searched the forums and couldn't find anything related to this topic.
I saw that it was possible to use the parallel port for simple digital I/O and I was hoping the serial port can be configured the same. It seems all the VISA VI's only want to use the serial port to recieve ASCII chars at a given baud rate, but is it possible to simply poll the status of the serial line at my own speed to see if it is high or low, kind of like a single pin DAQ?
It seems it would be possible as long as the serial data is read and controlled by labview and not by Windows. Let me know if you have any ideas how to approach this problem, or any feedback as to why it is not possible.
Thanks everyone!
Solved!
Go to Solution.

Select Property>Serial Settings>Modem Line Settings. For example, the CTS State is an input to the pc.
Using these lines is a very poor replacement for a scope or DAQ board. The only things you can get back is Asserted, Unasserted, or Unknown. The range of acceptable signals is quite large. Anything between +3 and -3 is an unknown state. Your other signals are +/3 to 15 volts. what kind of signals do you actually want to capture?
edit: There is no such thing as VISA Status so I have no idea what you are actually using.
Message Edited by Dennis Knutson on 07-20-2009 11:09 AM

Similar Messages

  • Connection to serial port for communication RFID

    HI,
    I have occurred problem in communication to serial port for accessing the RFID
    through Serial Port COM1 or COM2 . I got garbage values of Card .
    Please give me the code for accessing serial port and indicter the cadr is detected by RFID and read the data on card.

    EHAG microchip 13,56 MHz dual reader and Mifare 1KB contactless smartcard.
    I've succeed to retrieve the data from the transponder (card) but it just only once when i click the button from my application. My question is how do i retrieve the data continuously from the card for every few milliseconds?
    sorry for my language.

  • Serial port for console access to switch

    Just got a Netgear L2 Switch, and need to use VT100 terminal emulation to connect to the switch's serial port.
    Does anyone know how to enable the Xserve's serial port for this type of job? When running Zterm for OS X I get an "Error: 16 opening port" and I'm at a loss for how to do it. I've heard that USB to Serial adapters have been working, but it seems silly that the serial port wouldnt work.

    Thanks Camelot, your advice was spot on.
    Just to close the topic:
    Edit "/System/Library/StartupItems/SerialTerminalSupport/SerialTerminalSupport"
    and change the line:
    ENABLESERIALTERMINAL=$TRUE
    to
    ENABLESERIALTERMINAL=$FALSE
    also, may be redundant with the last step but I edited /etc/ttys and changed:
    tty.serial "/usr/libexec/getty serial.9600" vt100 on secure
    to
    tty.serial "/usr/libexec/getty serial.9600" vt100 off secure
    Finally, dont be an idiot like I am, and leave the XServe case lock on... this will prevent the port from operating, and cause you to go crazy.
    TwoNine

  • Inconsistent prob when adding listeners to serial ports for sending AT cmds

    I have an app that sends and receives SMSs from two different cell phone carriers (lets say verizon and sprint by example).
    For that matter i have two cell phones, exactly the same model, one from each carrier, connected to the PC serial ports, COM, COM6 and COM7 being aware that they are available.
    -The application communicats with the phones through the a serial communication API and sending AT commands.
    -The application can send messages correctly from both phones within the same transaction, this is, i click in send message and the message is sent from both phones.
    The problem is when receiving, getting the SMS received by the phones:
    -When i have ONE phone connected to the PC it work properly for both phones.
    -When i have BOTH phones connected, only Carrier1 phone receives properly.
    When checking, i just find out that the problem rises when i try to add the listeners (see code comments below).
    When both phones connected there seems to be a problem that i cant figure out, and may be its a conceptual misunderstanding from me.
    I attach the code if you can help me,
    thank you,
    fernando
    // class fields
    private static String PORT_CARRIER1;
    private static String PORT_CARRIER2;
    private static CommPortIdentifier portId;
    private static Enumeration portsList;
    private static SerialPort carrier1SP;
    private static SerialPort carrier2SP;
    private static InputStream carrier1_input;
    private static InputStream carrier2_input;
    private static OutputStream carrier1_output;
    private static OutputStream carrier2_output;
    // ... all the code below is from the app method where everything is initializated     
    portsList = CommPortIdentifier.getPortIdentifiers();
    while(portsList.hasMoreElements()){
         portId = (CommPortIdentifier) portsList.nextElement();
         if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL){          
              // try to open ports
              try{
                   if(portId.getName().equals(PORT_CARRIER1))
                        carrier1SP = (SerialPort) portId.open("SMS", 5000);
                   else if(portId.getName().equals(PORT_CARRIER2))
                        carrier2SP = (SerialPort) portId.open("SMS", 5000);
                   else System.out.println("Error " + portId.getName());
              }catch(PortInUseException piue){
                   System.out.println("Exception while opening serial ports: "+piue.getMessage());
                   continue;
              // try to open input streams
              try{
                   if(portId.getName().equals(PORT_CARRIER1))
                        carrier1_input = carrier1SP.getInputStream();
                   else if(portId.getName().equals(PORT_CARRIER2))
                        carrier2_input = carrier2SP.getInputStream();
              }catch(IOException ioe){
                   System.out.println("Exception while opening input streams: "+ioe.getMessage());
                   continue;
              // try to open output streams
              try{
                   if(portId.getName().equals(PORT_CARRIER1))
                        carrier1_output = carrier1SP.getOutputStream();
                   else if(portId.getName().equals(PORT_CARRIER2))
                        carrier2_output = carrier2SP.getOutputStream();
              }catch(IOException ioe){
                   System.out.println("Exception while opening output streams: "+ioe.getMessage());
                   continue;
              // adding listeners
              try{
                   if(portId.getName().equals(PORT_CARRIER1))
                        carrier1SP.addEventListener(new ListenerPuerto(this, carrier1_input, "CARRIER1"));
                   else if(portId.getName().equals(PORT_CARRIER2))
                        carrier2SP.addEventListener(new ListenerPuerto(this, carrier2_input, "CARRIER2"));
              }catch(TooManyListenersException tmle){
                   System.out.println("Error while adding listeners: " + tmle.getMessage());
                   continue;
              // Adding specific event to listeners
              if(portId.getName().equals(PORT_CARRIER1))
                   carrier1SP.notifyOnDataAvailable(true);
              else if(portId.getName().equals(PORT_CARRIER2))
                   carrier2SP.notifyOnDataAvailable(true);
              // Setting params to serial communication
              try{
                   if(portId.getName().equals(PORT_CARRIER1)){
                        carrier1SP.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE);
                        carrier1 = true;
                   }else if(portId.getName().equals(PORT_CARRIER2)){
                        carrier2SP.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE);
                        carrier2 = true;
              }catch(UnsupportedCommOperationException uscoe){
                   System.out.println("Error while setting params for serial communication: " + uscoe.getMessage());
                   continue;
              // ... nothing else important ...thanks in advance

    Thinking of a java application as its what I am most
    comfortable with, but also thinking of having an
    apache server, and using jsp pages or servlets...
    because I hate formatting things in a java frame..
    have never quite mastered that! Any thoughts on what
    I should use?I'd prefer a Swing GUI for a maximum of controls. If you have any problems regarding layout, you can post concrete questions here (or even better: the Swing forum).
    And my main stumbling block would be how do I send
    signals to the green light from the computer? How do
    I get signals from the light beams to the computer?
    How do I use a serial port (for eg) from a java app.There's an additional library for serial I/O, it's named javax.comm ... should be downloadable somewhere on the java.sun.com site.

  • Changing Valuation Type for Non Serialized Material

    Dear Experts,
    May i know how to change the valuation type for Non serialized Material.
    Scnerio :
    Issued New  Material from warehouse with Valuation type -C1,
    Once i used shop floor it damaged and now i want to return back to store with Valuation type C3.
    May i know how can i do this.
    Regards,
    Kavvya

    Hi Seenu,
    Actually when i am using t-code IE4N and changing the valuation type C1 to C3 without changing the valuation type the system return the material to store. But for serialized material first i changed the valuation type through IQ02 then i am using the IE4N.
    But  i dont know how can i cahnge the valuation type for Non serialized material.
    Also may i know why i am facing problem in IE4N, Is it required some configuration to directing changing the valuation type in IE4N itself.
    Kavvya

  • Hello Forum, you need a serial ports for software icprog to program EPROM and Pic

    Hello Forum, you need a serial ports for software icprog to program EPROM and Pic.I was wondering if this or a similar card is compatible with my Lenovo Desktop h50-50 -->  -> PCI-E 2 serial ports and 1 parallel port PCI-Controller Card 3 Port ► http://fli.zz.mu/cut/scheda-pci-e-2-porte-seriali-1-porta-parallela .
    My my Lenovo Desktop h50-50 upgrade to win 10,  If it is not compatible to win 10. I could use it too virtualizing win Xp? Thank since TIME FOR ANSWERS, I apologize for my bad English.
    THANK Joe  

    Unfortunately, no Sanyo phones are iSync compatible so you will not be able to synchronize your Contacts and Calendars with the phone.
    Also, you may have problems with the Bluetooth adapter you purchased, as the only one officially supported by Apple for use with Macs is the D-Link DBT-120.
    The Official Apple list of iSync compatible devices is here:
    http://www.apple.com/macosx/features/isync/devices.html
    It's always a good idea to check this list before purchasing a new phone.
    Other phones are supported by third party plugins from here and here. But still no Samsung, Sanyo, LG etc. who all use thier own proprietary syncing protocols rather than the industry standard SyncML. These manufacturers also don't provide Mac software with their phones like the do for Windows users.
    I'm afraid you're not going to have much luck if you stick with the Sanyo. I would seriously consider taking it back and swapping it for one of the handsets on the above linked pages. Personally I would recommend a Sony Ericsson model. I've always had excellent Mac compatibility with those.

  • Mapping deploy for Non-Oracle Data Source hangs

    Hi All,
    I am trying to deploy mapping for Non-Oracle Data Source and it hangs.
    Oracle version is 10.2.0.3 and OWB version is 10.2.0.1.3.1
    It would be really appreciated if you can help.
    Thanks!
    PS.

    That helpes quite a bit. I still can't get the app to retrieve data, but I am getting a more useful message in the log:
    [Error in allocating a connection. Cause: Connection could not be allocated because: ORA-01017: invalid username/password; logon denied]
    As you suggested, I removed the <default-resource-principal> stuff from sun-web.xml and modified it to match your example. Additionally, I changed the <res-ref-name> in web.xml from "jdbc/jdbc-simple" to "jdbc/oracle-dev".
    The Connection Pool "Ping" from the Admin Console is successful with the user and password I have set in the parameters. (it fails if I change them, so I am pretty sure that is set up correctly) Is there another place I should check for user/pass information? Do I need to do anything to the samples/database.properties file?
    By the way, this is the 4th quarter 2004 release of app server. Would it be beneficial to move to the Q1 2005 beta?
    Many thanks for your help so far...

  • Can you use SQL Developer against non Oracle data bases?

    If so, then how do you define the connection for non Oracle data bases?

    Look, SQL Developer has got to be a 'gateway' into Oracle DBs from other databases. JDBC allows simple introspection and execution of SQL commands. So the 'explain' button won't be available, or some of the DDL stuff, big deal! Let them get a taste of what they are missing by not having an Oracle database.
    If we can get non-Oracle developers (especially MS SQL Server) to use SQL Developer it will expose them to the superiority of the Oracle DB server.
    If they have heterogenous services installed they are already an Oracle customer -- we have little additional DB server sale opportunity there. SQL Developer is a really sweet tool and it could be a real draw into the DB server sales.
    SQL Developer must be easily usable by non-Oracle customers in order to help us sell the DB server to them!

  • I have a Mac OSX version 10.75 with just one Thunderbolt port. and it has been my Thunderbolt port to connect with Blackmagic wear my intensity. and I no longer can use the port for mini-DVI adapter to connect with me. I do not want to ask any other way f

    i have a Mac OSX version 10.75 with just one Thunderbolt port. and it has been my Thunderbolt port to connect with Blackmagic wear my intensity. and I no longer can use the port for mini-DVI adapter to connect with me. I do not want to ask any other way for me to use to use my monitor. I monitor LG FLATRON E2041 brand .. PLEASE Helpp ME

    i have a Mac OSX version 10.75 with just one Thunderbolt port. and it has been my Thunderbolt port to connect with Blackmagic wear my intensity. and I no longer can use the port for mini-DVI adapter to connect with me. I do not want to ask any other way for me to use to use my monitor. I monitor LG FLATRON E2041 brand .. PLEASE Helpp ME

  • Using Appliance Ports for NAS

    Using Appliance Ports for NAS
    Hey all connecting a NAS to UCS. Would like to plug in directly to FI’s using the Appliance Port option.
    Are the steps basically
    Turn on Ports use as Appliance Ports
    Make PIN Group through Appliance Ports (this will only be one port per FI, I am guess Port-Channels can be used if NAS supports that?)
    Make VLAN internal to UCS
    Make vNIC Template and use newly created VLAN and PIN Group
    Boom!
    Right?
    Thanks!
    Craig

    I have made port 20 on each 6120 an Appliance Ports.
    Each port is assigned to a VLAN made under the Appliances tab.
    Cannot seem to make a PIN group using these Appliance ports. They are not a option.
    Is there something I am missing?
    Thanks!
    Craig

  • How can i write a vi in using parallel port for digital inputs

    Dear all,
    i am a beginner user of LabVIEW and i want to write a vi in using parallel port for digital I/O. After reading the article "Using the Parallel Port in LabVIEW
    " and download the parallel.zip, i know how to write the vi for output, but i still don't know how to write the input one.i've try to use a Inport.vi to test, but nothing change when i set pin2-9 to high. (my computer:win2K & LabVIEW 6.1)
    Can anybody teach me how to write it?
    Can anyone write the vi for me too?
    Thanks all!
    p.s.i've already install the "accessHW.exe"

    Are you using VISA or the accessHW VIs? You may need to goto the bios and set the parallel port to run in spp mode or standard mode. This is the simpliest configuration and where you should start.
    As far as writing the VI goes, just copy the diagram out of the tutorial you mentioned.

  • Where can i find the "use audio port for" button?

    I am a Dj and am trying to record. All instructions I have seen, it says to plug my mixer into the line-in input and go to system preferences>sound>input, then change the "use audio port for" option to "sound input". I am not able to do find the "use audio port for" drop down menu, any help??? I have a MacBook Pro that is about six months old and I am running OS X 10 9 4.

    King_Penguin wrote:
    What are hoping to achieve via Bluetooth ? On iOS devices it's mainly for headphones and keyboards, not, for example, for copying content between the devices : supported profiles
    I was actually hoping to use my computer as a DHCP. I am in Iraq and have a very hard time getting a solid connection. However my computer has no issues. I am usualy able to use Safari but can not get to iMessage or Facetime servers. I have Windows 7 64bit a bluetooth compatibility. Not looking for any file transfers or special stuff. Just a ICS set up.

  • HT3625 I have a 2012 macBook Pro 13" and the option "Use audio port for" does not appear at all in the sound menu. why is this? im running  mountain Lion 10.8.2

    I have a 2012 macBook Pro 13" and the option "Use audio port for" does not appear at all in the sound menu. why is this? im running  mountain Lion 10.8.2

    Because line-in has been removed.
    It does allow for an Apple headset with mic., but I don't know if it would work with third-party ones.
    You'll need to use a Griffin iMic or similar to use line-in via a USB port.
    The same goes for the 15" retina, the newest MBA and the new iMac (whenever it finally arrives).

  • Using 40GE ports for VPC Peer Link

    Hi,
    Is it possible to use the native 40GE ports on the N7K-M206FQ-23L module for the VPC Peer Link, or do you have to break these ports out into 10GE ? I have read that 10GE ports must be used for the VPC peer link.
    Thanks in advance.

    You can use 40GE ports for VPC peer-link. No need to break those to 10G.

  • Can time capsule be connected wirelessly and still use ethernet ports for other devices?

    can time capsule be connected wirelessly and still use ethernet ports for other devices? we have it connected wirelessly but devices connected to the ethernet ports are not working.

    Not as an additional router.. the TC will be plugged into the main router via ethernet (or ethernet equivalent)..
    Then the TC is setup in bridge mode. It will simply act as a Switch and HDD.
    The wireless can be setup in a number of ways.
    From your convenience point of view use it in roaming network mode..
    you simply give the TC the same Wireless Name as the existing routers SSID.
    Same security setting and password. WPA2 Personal = WPA2 AES which is the best.
    But they both use different wireless channels.. normally if you leave the TC on auto it will work fine, but I prefer to control the network.. so set the main router to say 1 and the TC to 11.
    You can also use a completely different wireless name etc.. that is up to you. It is still a single flat network and the only thing that is important is only having one router.

Maybe you are looking for

  • Jdeveloepr 11g 11.1.2.3.0

    Hi, I am using jdeveloper 11g 11.1.2.3.0. I have a jspx page where in all the pending contacts are displayed using a web service. I have converted the ouput text(email) to a command link which displays all the pending email id's. When I click on the

  • No sound on movies once burned to disk

    I have no idea if this is the correct place to ask my questions, but hopefully someone can help me. I made an iDVD project consisting of three movies imported from my camera and a slide show. I can view all three movies perfectly when I open from the

  • Scope from variable

    I work with servlets some time, but I don't understand the scope from variable not complete. Like in JSP with Beans you can store objects in differnt scope: 1. request: --> variable within function (get/post) 2. session: --> HttpSession Object 3. pag

  • Png publishing almost 3x the size and cutting most off?

    Okay flash document is.. 1920 px by 1080 px, 1080p resolution for animation, standard stuff. When I go to export the stage as a PNG files, doesn't matter if I specify the resolution as 1920 by 1080 or click match movie, the exported png file is HUGE,

  • Use phone in Europe

    I want to use my iPhone 3 in Europe.  I went thru the process of unlocking it with AT&T in the US.  But I put in a European SIM card and it says "no service."  What else do I need to do? It is model#MB715LL/A I do not know if it is 3G or 3GS but AT&T