Serial Port not accessible until I run MAX

Hi!
On my machine I can access all Serial ports perfectly. I put a Vias Resource in my VI and get a drop down menu with all my serial ports. But on other machines (Runtime v7 and VISA runtime installed) I don´t get the names (e.g. com1 com2) but only
ASRL1:****
ASRL2:****
ASRL10:****
I know that ASRL1 is COM1 but when I select it it dowsn´t work.
If I now install MAX on the machine and run it once without changing the configuration my ports work.
Can anybody tell me how to use the ports without using MAX??
regards
hmann

Hi hmann,
When you run MAX it is configuring your VISA alias list behinf the scenes. See "JB" answer to this question to find out how to do this without using MAX. It basicly requires editing an INI file.
http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=506500000008000000238D0000&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0
I hope this help,
Ben
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction

Similar Messages

  • Serial ports not appearing in MAX - VISA installed.

    Hi All,
    Had a rather strange issue today that I couldn't resolve with serial ports not appearing in MAX (and hence being inaccessible to LabVIEW). Under the windows device manager it shows 4 COM ports and I have verified with an external program that they are functioning correctly.
    I had the LabVIEW 2011 SP1 f2 runtime installed, DAQmx 9.6.1 and NI-VISA 5.3 (5.2 also didn't work).
    Things I have tried:
    - Updating VISA from 5.2 to 5.3
    - Reinstalling the COM port devices under device manager
    - Changing the COM port numbers
    - Verifying that the COM ports are functioning correctly
    - Tried adding a USB to Serial converter as a new COM port
    - Reinstalling MAX
    - Reinstalling NI-VISA
    - Reinstalling everything (reboot each time when prompted)
    - Resetting the hardware configuration from within MAX
    - Run installers / MAX as administrator (this is running from the local admin account)
    - Checked that NI-VISA appears under software in MAX
    - Repaired MAX/NI-VISA
    Is there anything else that could cause the COM ports not to appear in MAX when they appear (and work correctly) in device manager when a reinstall of NI VISA / MAX won't solve?
    Certified LabVIEW Architect, Certified TestStand Developer
    NI Days (and A&DF): 2010, 2011, 2013, 2014
    NI Week: 2012, 2014
    Knowledgeable in all things Giant Tetris and WebSockets
    Solved!
    Go to Solution.

    I found the solution - it turns out that the serial ports were available to LabVIEW, they just didn't show up in MAX because installing just the runtime does not show the devices in MAX.
    Despite doing a lot of googling earlier, it didn't throw up this knowledgebase article until I searched for it under a different phrase - http://digital.ni.com/public.nsf/allkb/766FD80DAE42E52886256A0200619CFE?OpenDocument
    Certified LabVIEW Architect, Certified TestStand Developer
    NI Days (and A&DF): 2010, 2011, 2013, 2014
    NI Week: 2012, 2014
    Knowledgeable in all things Giant Tetris and WebSockets

  • I am trying to upload dives from my dive computer onto my macbook pro but program says serial port not found - dive computer is listed on macdive

    I have a dive program called Macdive and am trying to upload my dives from my Sherwood Wisdom dive computer via usb lead. The dives will not upload and program says that serial port not found.  does anyone know how I can activate?

    Try a new post in the appropriate iPhoto forum.
    DALE

  • Call logs for August are not accessible until the 22nd when my bill is ready but I need this info today

    Call logs for August are not accessible until the 22nd when my bill is ready. I need them before the 22nd and Verizon chat operator was unable to access these files. Is there anyway to obtain this before the 22nd?

    Log onto your account at verizonwireless.com and click on the bar that shows the minutes. Then select the line and you can download it to a spreadsheet.

  • Serial ports not showing up as COMs

    Hi,
    I currently have the problem where my serial ports don't show up as COMs when I use the VISA resource block. Instead they show up as ASRL1::INSTR for port 1 etc. While this still works ok when I select them manually for running some VI's, some executables where I'm prompted to select a COM port, no com ports show up at all. This is strange because previously I used to be able to see serial ports as COM8 instead of ASRL8::INSTR. Device manager from Windows XP says that the ports are working properly and there are no conflicts. Using Hyperterminal to see information from the serial devices works fine. So i'm not sure what is going on.
    One thing I did notice is that in Measurement and Automation Explorer (MAX), three of the ports have the yellow caution sign next to them. One of them is a serial port which says that "VISA port settings are different from the Windows port settings. Go to the Port Settings Conflict tab to resolve the inconsistency." However when trying to resolve this error I cannot save the changes, an unknown error message will come up (maybe because I don't have admin rights on the comp?). The other two ports with the caution sign are Toshiba bluetooth comms. with the device status: "VISA returned this device when finding resources, and MAX could use VISA to parse the resource name. MAX could not succesfully open a VISA session to the device" with no clues on how to fix.
    Has anyone had any experience with these sort of problems and how to resolve them.
    Thanks,
    William

    Hi
    Thanks for the quick replies. The VISA Aliases from MAX seems to be set up properly, just that when I go to select a com port in LabView, they show up as ASRL1:INSTR etc. This isn't such a big problem as selecting ASRL still works ok, just that some executables and VI's i'm trying to run is written so as to scan for the string "COM" while they search for com ports so when that happens I can't run them since there's nothing to select.  I've attached a couple of screenshots of what I see (note that some of the serials ports, the device status says device is working properly, just the ones I took screenshots off, it seems to have an error).
    Attachments:
    VISA select screenshot.JPG ‏55 KB
    MAX com screenshot.JPG ‏64 KB
    MAX ASRL screenshot.JPG ‏63 KB

  • KM2M serial port not working in Linux

    I noticed a few Linux postings so I thought I'd give this a shot. I'm running Fedora Core and for some strange reason I can't seem to send any communications out to the ttyS0 (COM 1) or ttyS1 (COM 2) ports.
    Does anyone have any suggestions on making it work?
    Thank you.

    No, your code had no termination characters at all - automatic or not. The enable termination character for the VISA Configure Serial Port is only for reads. Just like the help explains.
    And while you should check the download page for updates, LabVIEW comes with the 34401 driver.
    Message Edited by Dennis Knutson on 12-19-2009 05:49 PM

  • Tecra A11 - Serial port not working

    I have a Tecra A11 running windows 7 professional (32 bit).
    My serial port does not appear to be operating as I am no longer able to connect to industrial automation PLC's which require connection to the serial port for programming.
    Some of the software I am using is RSLinx, Easysoft and the like.
    Any assistance with this matter will be greatly appreciated.

    Hello
    I assume you need the notebook at your company and normally in every company there is a local IT-Support that you can ask all questions if you have any problems.
    So I would recommend contacting an administrator. Usually the guys know how to connect the computers to all important industrial components/computers and how to configure the port for that.

  • Serial port not reading after few seconds PLZ HELP...

    Hi,
    I have developed a GUI using Swing in NetBeans IDE 4.0 on Windows 2000 professional for one of our products.
    It communicates with the associated Hardware through serial port.
    The GUI sends commands to the H/W to perform some functionality. After receiving response from the H/W, GUI displays the necessary messages.
    Since the H/W does require some time to perform the indicated operation, it sends the response after 10-11 seconds but my GUI is not reading the response.
    Both the command and response are single byte (8 bits) wide.
    The GUI can read the response if sent within 3-4 sec.s but not after that.
    I have disabled the Receive TimeOut on the serial Port.
    Following is the code I use to Open and use the SerialPort.
    public void OpenPort(){
             portList = javax.comm.CommPortIdentifier.getPortIdentifiers();
            while (portList.hasMoreElements()) {
                portId = (javax.comm.CommPortIdentifier) portList.nextElement();
                if (portId.getPortType() == javax.comm.CommPortIdentifier.PORT_SERIAL) {
                    if (portId.getName().equals(Welcome.CommPort)) {
                        try {
                            serialPort =  (javax.comm.SerialPort)portId.open("FCAT-01 ATE", 20000);
                        } catch (javax.comm.PortInUseException e) {}
                        try{
                            serialPort.addEventListener(this);
                        }catch (java.util.TooManyListenersException e){}
                            serialPort.notifyOnDataAvailable(true);
                   try {
                            outputStream = serialPort.getOutputStream();
                        } catch (java.io.IOException e) {}
                            try {
                                inputStream=serialPort.getInputStream();
                            }catch (java.io.IOException e){}
                                serialPort.notifyOnDataAvailable(true);
                   try {
                            serialPort.setSerialPortParams(Welcome.Speed, javax.comm.SerialPort.DATABITS_8, javax.comm.SerialPort.STOPBITS_1,
                                javax.comm.SerialPort.PARITY_NONE);
                        } catch (javax.comm.UnsupportedCommOperationException e) {}
                             serialPort.disableReceiveTimeout();
           Pls help me how to solve this problem as its really very urgently necessary to release the product.
    Thank u for ur time and consideration,
    Umesh Balikai

    Sir,
    Here is the complete code.
    The H/W takes about 10 seconds to reply. The GUI is responding to first response from ATE H/W and not to the subsequent ones. The ATE responds after the GUI sends command when the user clicks OKButton.
    package my.ate.pkg;
    import javax.swing.*;
    import java.util.*;
    public class PingTest extends javax.swing.JFrame implements javax.comm.SerialPortEventListener{
        /** Creates new form PingTest */
        public PingTest() {
            initComponents();
        private void initComponents() {                         
            // create and initialise  various buttons, labels, etc.
        private void OKButtonMouseClicked(java.awt.event.MouseEvent evt) {                                     
            // TODO add your handling code here:
            OKClick();
        public static void main(String args[]) {
            java.awt.EventQueue.invokeLater(new Runnable() {
                public void run() {
                    new PingTest().setVisible(true);
        // Variables declaration                     
        private javax.swing.JLabel AN;
        private javax.swing.JButton OKButton;
        public static java.io.OutputStream outputStream;
        public static java.io.InputStream inputStream;
        public static java.util.Enumeration portList;
        public static javax.comm.CommPortIdentifier portId;
        public static javax.comm.CommPort commPort;
        public static javax.comm.SerialPort serialPort;
        public static byte[] readBuffer=new byte[20];
        public static int numBytes=0;
        private java.awt.Color Fail=java.awt.Color.red;
        private java.awt.Color Pass=java.awt.Color.blue;
        public static int requestCommand;
        public static int receiveCount=0;
        public static boolean portOpen=false;
      // End of variables declaration 
        public void serialEvent(javax.comm.SerialPortEvent event){
                switch(event.getEventType()){
                    case javax.comm.SerialPortEvent.BI:
                    case javax.comm.SerialPortEvent.OE:
                    case javax.comm.SerialPortEvent.FE:
                    case javax.comm.SerialPortEvent.PE:
                    case javax.comm.SerialPortEvent.CD:
                    case javax.comm.SerialPortEvent.CTS:
                    case javax.comm.SerialPortEvent.DSR:
                    case javax.comm.SerialPortEvent.RI:
                    case javax.comm.SerialPortEvent.OUTPUT_BUFFER_EMPTY:
                         break;
                    case javax.comm.SerialPortEvent.DATA_AVAILABLE:   
                        try{
                                 numBytes=inputStream.read(); 
                                     if(numBytes==0x54)  {
                                        // display some message
                     else if(numBytes==0x41)  {
                                        // display some message
                                    else if(numBytes==0x46)  {
                                         // display some message
                      else if(numBytes==0x42)  {
                                             // display some message
                        }catch (java.io.IOException e){}
                        break;
        public void OKClick(){
            if(portOpen){
                        serialPort.close();
                        portOpen=false;
            OpenPort();
            try{
               Thread.sleep(500);
            }catch(java.lang.InterruptedException e){//display error}
            try{
                outputStream.write(0x39);
            }catch(java.io.IOException e){//display error}
            //display some Progress Message
        public void OpenPort(){
             portList = javax.comm.CommPortIdentifier.getPortIdentifiers();
            while (portList.hasMoreElements()) {
                portId = (javax.comm.CommPortIdentifier) portList.nextElement();
                if (portId.getPortType() == avax.comm.CommPortIdentifier.PORT_SERIAL) {
                    if (portId.getName().equals(Welcome.CommPort)) {
                        try {
    serialPort =  (javax.comm.SerialPort)portId.open("FCAT-01ATE",2000);
                                           } catch (javax.comm.PortInUseException e) { //display error}
                        portOpen=true;
                        serialPort.notifyOnDataAvailable(true);
                        try{
                            serialPort.addEventListener(this);
                        }catch (java.util.TooManyListenersException e){ //display erro}
                        serialPort.disableReceiveTimeout();
         try {
                            outputStream = serialPort.getOutputStream();
                        } catch (java.io.IOException e) { //display erro}
                            try {
                                inputStream=serialPort.getInputStream();
                            }catch (java.io.IOException e){ //display erro}
                                serialPort.notifyOnDataAvailable(true);
         try {
                            serialPort.setSerialPortParams(Welcome.Speed, javax.comm.SerialPort.DATABITS_8, javax.comm.SerialPort.STOPBITS_1,
                                javax.comm.SerialPort.PARITY_NONE);
                        } catch (javax.comm.UnsupportedCommOperationException e) { //display erro}
    }Probably the command after clicking OKButton is not reaching the H/W. because the ATE will surely respond if it receives the command and that is tested several times.
    Thanks.

  • Random text not clear until mouse runs over text

    When using Firefox some letters or words are not clear until I pass the mouse over them; then they appear normal. Letters seem broken and slightly faint until they are "moused." Other parts of the screen are fine. This only happens on my main monitor with a DVi-D connector to the PC. It doesn't happen with my second monitor which has an analogue connection. My main monitor also has a D-SUB socket but not on my graphics card. No problem with word files or graphics or videos.

    I couldn't update my graphics driver so i tried your alternative suggestion.Seems to have worked. Thank you. I didn't have this problem with Internet explorer which I tried, so it must have been the Firefox acceleration. Thanks again.

  • Desktop software. serial port not configured properly

    i cant seem to configure my serial port. actually i just dont know how.....ive went into serial setting but i cant seem to find a port number. it doesnt detect anything.....????? can someone with some patience pleeeeeeeese help me. thx alot

    Port is supposed to be auto detected!! Have you tried detecting the port manually by going to connection settings and pressing detect button ? Which version of desktop manager your're using?
    tanzim                                                                                  
    If your query is resolved then please click on “Accept as Solution”
    Click on the LIKE on the bottom right if the post deserves credit

  • Detecting serial ports when program is already running

    hi, i've tried detecting the available ports of my computer usingEnumeration portList = CommPortIdentifier.getPortIdentifiers ();
    while (portList.hasMoreElements()) { ... }, i use it when my program starts to run and it works well. but i have a button which can give users option to change the port for which he wants to use.. and a port may not be available when the porgram started and may be available when the program is already running (i'm using a serial-to-USB cable so i can just plug and unplug it), i'm using the same code as above but it only detects the ports that i detected from the beginning, not including the new ports... does anyone know what i'm doing wrong? thanks!

    just found my solution in one of the threads, i inserted try{
    CommDriver cd= (CommDriver) Class.forName("com.sun.comm.Win32Driver").newInstance();
    cd.initialize();
    }catch(Exception e) {System.out.println("No available daw"); }before my Enumeration... my problem is solved!! Thanks for taking time to reply.

  • PS Elements 12 - Serial key not accepted on MacOSX, running internet access not recognized by PSE 12

    Hi, I just bought a full version of PSE 12 for Mac OSX. The given serial number will not be accepted as valid, why ? - I tried it many times ! - Even the workaround trying to install the 30 days trail could not done because the internet access could not be used by PSE 12, but the internet access is running very well, otherwise I could not send you this question.
    I bought this PSE 12 at Amazon, so I can give back and get back my money.
    I don't want to spend any time trying to fix this.
    Michael

    First go to system preferences>security & privacy>firewall>firewall options and be sure that PSE is allowed to have incoming connections:

  • USB drives not accessible until I join a domain

    Hi,
    I´ve been struggling with this problem for a loong time now.
    Simply put, I want to use a usb drive in a laptop running Windows 7, and the device is detected correctly but Windows says that I need to format it. And in My Computer the drive has got a letter but when I doubleclick it it says it´s unaccessible. But if
    I join the laptop to my customers AD it suddenly works as it should.
    Since I discovered that, I just ignored it since all computers would join the domain, but now I need to install several laptops that´s not going to be ad-joined. So I need help solving this usb problem.
    The customers uses laptops(Dall Latitude Exxx models) only and we install these using WDS. I think that all models of laptops have this issue and all usb drives. I haven´t been able to narrow it down to a certain model or anything else.
    Everything else works as they should. The usb ports works fine using mouse and keyboard and similar. It´s only usb drives that are the problem.
    I know that the hardware isn´t faulty since I can boot up using Linux and everything is fine, plus when I join the domain everything is also fine.
    I have tried reinstalling chipset/usb drivers but nothing has helped. Also sfc /scannow doesn´t help.
    Using gpedit.msc I set everything in "Users/Administrative/System/Access to removable storage" to inactive but this makes no difference.
    I have not had this problem outside this customer.
    Does anyone have any ideas? If so, please help!
    Regards,
    //Andreas..

    Hi,
    we should figure out what’s the difference between the two situations.  I have the following thoughts to narrow down this cause:
    Do you have preinstalled any security applications in your image?
    Does this issue occur to all USB devices?
    After  you join the domain, can you log on with a local account to access USB devices?
    You can get the security policies via rsop.msc as well.
    If you have any feedback on our support, please click
    here
    Alex Zhao
    TechNet Community Support

  • Problem in Accessing serial port using java comm Api

    I have installed java comm Api in my pc.
    i have gone through the instalation instruction which comes on this package.
    I have done the instalation like this
    Copy win32com.dll to my <JDK>\bin directory.
    Copy comm.jar to my <JDK>\lib directory.
    Copy javax.comm.properties to my <JDK>\lib directory.
    and restart the system.
    But when i run the BlackBox , it is giving me message
    "serial port not found".
    Can any one tell me , what is the exact problem ?

    I'm not sure what you mean by BlackBox, but I have used the COMM api extensively.
    The majority of problems is that the api cannot see the serial port (which is what you are describing) and this is caused by incorrect placing of the javax.comm.properties file.
    As well as <JDK>\lib, try putting it into <JRE>\lib as well. That has often solved problems on my setup.

  • Serial Ports, is it supported on MAC & Linux ??

    Hey all...
    After a long process of doing an application that runs a serial port connection to a server and upload a file to it, i could'nt find the comm package that i could download for both MAC and Linux.... There is one for Windows and Solaris though... So i was wondering, is serial ports not supported by MAC and Linux. And if not, what other than the comm package can i use to have serial ports on those 2 platforms .......
    Thanks

    Yes, there is third party support for linux and MacOS-X. It's released under GPL and can be found here -> http://www.rxtx.org/

Maybe you are looking for