Problem on WinXP / Labview 6.1 with VISA (serial port)

There is a problem on WinXP / Labview 6.1 with VISA which i use to poll the state lines of the serial port. The only functions that i use are "VISA Open", "Find Resource", line state properties and "VISA close".
On my own machine (WinME) it works fine as a standalone application (with runtime engine in the same direction), even if i rename the Labview directory so that Labview is not found.
From my VXIpnp directory i deleted all but these files:
directory "Win95",
subdirectory "Bin" containing "NiViAsrl.dll",
subdirectory "NIvisa" containing "visaconf.dll".
When shipping this to WinXP (and copying "VXIpnp" to the root directory), the serial port was not found, so i renamed the direction "Win95" to "
WinNT", but this did not work also.
I installed the VISA server, although it seems not to be required -- no result.
Final question:
What must i do for distributing the program as a standalone application for all windows platforms?

Hey Joachim,
In order to create an installer that includes the VISA Run-time engine for serial IO you will have to purchase LabVIEW 7.x. See screen shot. This packages a small compact version of the run-time that can only be used for serial, but it takes up much less space. The installer that I created has my application, the LV Run-time, and the VISA run-time and it is about 26 MB.
That is much smaller than if I had to include the 32 MB LV 7.1 run-time and the 14 MB VISA run-time separately. It would have been even smaller if I would have uncheck some of the items that I wasn't using.
-Josh
Attachments:
advanced.JPG ‏31 KB

Similar Messages

  • Big Problems with the Serial Port

    I'm Spanish and my English is not very good, I'm sorry but I need your help.
    I want to connect two computers (my desktop and my handbook) with the serial port (COM2 in both sides).
    I have the cable.
    I have installed JBuilder 7 in both computers.
    I have installed "commapi"
    I'm running SimpleWrite.java (the example from Sun) in one of them and SimpleRead.java in the other.
    I don't get in any moment receive any data.
    I execute first SimpleRead and I can see what this process is waiting something. After, I execute SimpleWrite (many times), this process star and stop correctly but never the first aplication receives nothing.
    I am trying for four days, I am desespereted.
    I need your help is very important to me. I don't understand what is happening!!!!. This is my e-mail: [email protected]
    Thank you very much.
    NOTE: my handbook has just one serial port, before had a winmodem but it was eliminated.

    hi,
    when your notebook has only one port, how do u know that this port is COM2? I think u gave a wrong parameter for the SimpleReader or SimpleWriter so one send data to a port (say COM1) but the other receives data from another port (say COM2).
    regards,
    eedych

  • Pb with the serial port

    hello
    I'm making a programme that deal with the serial port
    when i press on the button sennd of my serial device ,I get nothing .
    infact i have to press about 4 times to get the output
    I will get 4 outputs result at once
    I believe that my problem come from
    fluxLecture.readLine();I think that my machine is not sending the end of line
    what is strange that the "while" will stop but it wont execute the next line
    System.out.println("I'm ouside ");any idea ?????
    thank you in advance
    try {
                   fluxLecture =
                        new BufferedReader(
                             new InputStreamReader(serialPort.getInputStream()));
              } catch (IOException e) {
              }then somewere else in my class I use this
    public void serialEvent(SerialPortEvent event) {
              switch (event.getEventType()) {
                   case SerialPortEvent.BI :
                   case SerialPortEvent.OE :
                   case SerialPortEvent.FE :
                   case SerialPortEvent.PE :
                   case SerialPortEvent.CD :
                   case SerialPortEvent.CTS :
                   case SerialPortEvent.DSR :
                   case SerialPortEvent.RI :
                   case SerialPortEvent.OUTPUT_BUFFER_EMPTY :
                        break;
                   case SerialPortEvent.DATA_AVAILABLE :
                        try {
                                        while(fluxLecture.ready())
                                            result_output = result_output +" "+ (String) fluxLecture.readLine();
    System.out.println("I'm inside");
    System.out.println("I'm outside");

    sorry for being late but as I have alot of work ,so ......
    Are you using package RXTX or javax.comm?javax.comm
    I tried to chek if the readline is null ,the answer is no
    so my while stop but does not execute the next line
    strange ????

  • Establish a connection with the serial port on ST2510

    Hello guys,
    I have one question about connection on ST2510 with the serial port.
    Is it possible to get the following command prompt during connection on ST2510 through serial port (as described in the document 820-0015-11):
    "Enter password to access shell:"
    instead of
    "Enter password to access Service Interface (60 sec timeout):"
    ?

    stapler wrote:
    Thanks a lot,
    ...and how is it possible to get "Enter password to access shell:" instead of "Enter password to access Service Interface (60 sec timeout):" (wrong cable connection, etc.)?
    I ask about it, because one guy said me, that he tried to establish a connection according to the document 820-0015-11.
    But instead of "Enter password to access Service Interface (60 sec timeout):" he has got "Enter password to access shell:" and the default password kra16wen is incorrect.I won't indicate how to get "Enter password to access shell" because this is a special access as indicated in my previous post. However in order to get "Enter password to access Service Interface (60 sec timeout):" you need to press "S" (capital S) within 5 sec and then the password is "kra16wen".

  • Static VI with Visa serial functions is very slow to display front panel

    THere is a delay time of about 10-20 seconds to "display" the first VI's front panel that has Visa serial functions in the source code.
    All works fine after the first load but the initial delay of the front panel load makes it look like the PC could hang during this time. AFter this other VI's load immediately with no delay. I am concerned because I do not want to have to load a VI manually every time I start the APP which is the only workaround I can do at this time.
    Im wondering if anyone else has seen this kind of behaviour.
    I do not remember this happening until I upgraded my APP to LV7.
    DEll optiplex GX260 with 500MB RAM, Win2k and using N.I PCI-232-16 card w/ LV7 now.
    Attachments:
    RECV_LOOP.vi ‏55 KB

    I would like to resurrect this thread, as I am having the same problem. The problem stems from the VISA resource control on my front panel, because I have many COM ports registered on my system. The last suggestion from Scott B. was to "post the resulting .SPY file and I'll take a look at it". So, here is my .SPY file, and as you can see, it takes far too long. As many of these COM ports were registerd from USB converters, most of them are not actually present at this time on the system. However, even the ports that ARE present take a long time to register (i.e. COM1 is present and shows 3 seconds to register). These COM ports shown in my VISA resource do not correspond to those shown in my Device Manager, nor do they correspond to those shown in MAX under Devices and Interfaces.
    I am using LV 7.0 on WinXP SP2, with VISA version 3.2.
    OK, I just discovered something that mostly cured the delay. When I was getting the VISA version number just now, from MAX in the Software>NI-VISA item, there is a tab "VISA Options", and another tree structure in the middle pane. Selecting "General Settings>Aliases", there was a list of the old COM ports, so I cleared this list and then re-started MAX, checked again, and now only the COM ports shown in "Devices and Interfaces" matched this list (which still doesn't match my Device Manager, but no matter). When I re-opened the LabVIEW FP, it opened quickly, and the ports listed in the VISA resource matched those I saw in MAX.
    At any rate, although I just cured the symptom, the original problem of old aliases in VISA causing unacceptable delay should be fixed by NI.
    David Moerman
    TruView Technology Integration Ltd.
    P.S. the message poster didn't allow my to post a *.spy extension, so here is the *.zip of it.
    Attachments:
    Capture.zip ‏2 KB

  • VISA serial port communication – communication with device too slow

    I am having some trouble with using VISA to communicate with a serial device. I am trying to control an advanced illumination line light. The attached program writes information to it just fine, nothing fancy there. However it seems that if I try to update any faster than about 300mS the line light controller will not properly receive the information and does not adjust the light. The device came with a simple program to control it which can update faster than 100mS. Any suggestions for faster updates?
    Thanks,
    Rob   
    Attachments:
    line light control.vi ‏55 KB

    Looks like this will be a rather useful program...
    I ran the program and the results are in the attached files. 250mS.txt is of course running the LabVIEW application with a 250mS wait and 350mS.txt is using 350mS. As can be seen from the files everything returns a success each time, however the line light does not properly adjust its self when I use 250mS.
    Attachments:
    250mS.txt ‏7 KB
    350mS.txt ‏5 KB

  • VISA (Serial port) commands fail in the VI, but work in VISA test panel

    Hi, I have an instrument which has a usb connection. When I connect it to a Windows 7 PC, it automatically picks up the driver and shows up as a "USB Serial Port (COM7) (Manufacturer is FTDI). 
    When I open up NI MAX, this device shows up as COM7 (ASRL7::INSTR) under "Serial and Parallel". And, when I click on Open VISA Test Panel, and try the "*IDN?" command, it works OK.
    However, the VI (which just sends a VISA command "*IDN?") gives me a time out error (0XBFF0015) or a device/resource not present error ( 0XBFFF0011). Attached is a screenshot of the VI. 
    Any ideas why?
    Thanks. 
    PS: I went through the process to create the VISA-USB driver, but that has some other issue, but I am trying to understand why this occurs. This device also has a GPIB port and when I use a USB-GPIB adapter, it works very well. 
    Solved!
    Go to Solution.
    Attachments:
    problem_vi.JPG ‏24 KB

    SysB1 wrote:
    Hi, I have an instrument which has a usb connection. When I connect it to a Windows 7 PC, it automatically picks up the driver and shows up as a "USB Serial Port (COM7) (Manufacturer is FTDI). 
    When I open up NI MAX, this device shows up as COM7 (ASRL7::INSTR) under "Serial and Parallel". And, when I click on Open VISA Test Panel, and try the "*IDN?" command, it works OK.
    However, the VI (which just sends a VISA command "*IDN?") gives me a time out error (0XBFF0015) or a device/resource not present error ( 0XBFFF0011). Attached is a screenshot of the VI. 
    Any ideas why?
    Thanks. 
    PS: I went through the process to create the VISA-USB driver, but that has some other issue, but I am trying to understand why this occurs. This device also has a GPIB port and when I use a USB-GPIB adapter, it works very well. 
    Look up the examples that ship with LabVIEW.  What you have there isn't quite complete - for serial VISA.  While GPIB will work great with what you have, serial VISA requires you to configure your serial port and is a little more complicated to read.
    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.

  • How can I control a HP 33120A waveform generator with the serial port of my PC?

    Hello,
    I want to control a HP 33120A waveform generator with my PC using the serial port. I don't have any idea about how to do it. If you've done it or if you know how I can do it, please give me some indications.
    Thanks
    Jean-Baptiste Paillet
    PS: I don`t have G PIB port

    The answer to your cross-post in the LabVIEW General group seems to be right on the money:
    http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=50650000000800000032200000&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0
    Regards,
    John Lum
    National Instruments

  • Using USB Printer on Beige G3 with Localtalk/Serial Port - How?

    I have an Epson Stylus 740 which has both DIN 8/Serial port and USB connections, but the serial quit showing-up, so I want to connect via the USB connector. Is this possible?
    Is there an adapter from DIN 8 Serial/Localtalk connector on Beige G3 to USB for Printer?
    Or do I need to buy a PCI to USB card?
    Other solution?
    thanks

    Russo:
    If you tried to connect an adaptor to the serial port that had a USB connector on the end, it probably won't work since the serial port isn't currently working. You'd need a USB PCI card to connect to the USB.
    I have this same printer, originally used the serial port and then switched to USB when I got the PCI card. This has worked great.
    You should see if something got turned off. Look at these:
    Under the Apple Menu>Control Panel > AppleTalk - make sure the printer port is selected
    Under Apple Menu>Control Panel > Remote Access > Modem (from the drop down menu) - make sure that the printer port isn't selected
    Under Apple Menu > Control Panel > USB Printer sharing - make sure that is turned OFF.
    You might also have to install drivers for the Epson from the disk that came with it. If you insert the CD and choose "custom install" you'll get another screen that allows you to choose the serial driver package.
    Post back if you get it working (or don't).
    HTH.
    A

  • How to control an Xserve G4 with the serial port

    I have an Xserve G4 first generation, and was wondering exactly how you would go about connecting to it via serial port incase I need to change something when there is a network issue. I have looked around the internet without much success. It has Leopard Server on it, so Apple says the baud rate is 56700, and 8bit, no parity. So that's all set in the client machine, which is a MacBook Pro with a USB to Serial adapter on it, which shows up in Zterm. Once I'm in Zterm, it just sits there, and pressing enter doesn't prompt a log in. Does anyone see what else I'm most likely missing?
    Thanks

    Thanks for the reply Cemelot. Yes, I did create a profile in ZTerm. This is what I have it set to.
    I also read that you're supposed to run the command "/usr/libexec/getty serial.57600 /dev/tty.serial" on the Xserve itself.  It made no difference if I did that or not. I also checked to make sure tty.serial was inside /dev/. Anything else I'm missing? Thanks again.

  • How to communicate two PC's with the serial port with Netbeans

    Do you know how to do it?
    Do you know how to communicate with the parallel port too?
    Could you give some ideas?
    What commands or instructions I have to use?

    What does NetBeans have to do with it?
    All these "people" today that start out in Java using all these "nifty" IDE's. All it does is produce exactly this. They think their IDE is Java. Once they no longer have their one specific IDE in front of them, they can no longer function. They have no idea what the classpath, what the compiler actually does, how to package a jarfile, hell, most of the time, they don't even know how to execute a simple application.
    As far as your question. Did you even try to Google for some Serial port API package? Assuming you did, did you download it and read the documentation that comes with it? Did you search for a few examples on the web? Did you read them? Did you try them? I can almost guarantee that the answer to everyone of those questions is "no". So, my question for you is, "Why should we help you?" You obviously have no desire to help yourself, so I think we should reciprocate in kind. Don't you?

  • LabView 8.0 - Windows 8 - serial port

    I have LabView 8.0 working under Windows 8, but cannot install the original device drivers because the new operating systemis not supported.
    I need to use the serial comunication port; is there a solution? Maybe some dll library?
    Thank you.

    Dennis is inferring that you need to install the latest version of NI VISA that is compatible with Windows 8.  I'm actually surprised you managed to get LabVIEW 8.0 working.  It didn't want to work for me on Windows 7.  I highly recommend moving to LabVIEW 2012 or 2013 since those are supported for Windows 8.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Problems with VISA and the serial port

    Hello,
    i have a little problem with the serial port and VISA. I have changed an existing LabView- Software in that way that I have replaced the serial- module by the VISA- module. The function of the program is to communicate with different devices by RS232. After changing the modules to VISA the software doesn't work probably. The problem is, that when I try to communicate with one of the devices first I get no answer. When I try it a second time after some seconds the communication works perfect. After about a minute I send another message to my device but there is no answer again. I have to send the message again.
    I hope someone in this forum can help me with my problem
    cu Marco

    Marco,
    this sounds very much like a problem with the termination of your messages. You may have to tell VISA to add a termination character. Please follow the instructions in this document.
    Best regards,
    Jochen
    National Instruments Germany

  • Is it possible to communicate with two different devices using two seperate serial ports in the same labview program?

    The two bits of the program will talk to each instrument successfully if the other part of the program is not running. i do not need them to communicte with both serial ports at the exact same time, just within the same program, one after the other. i am using labview 6. any ideas of what i could be doing wrong?

    Hello,
    If you are using the Legacy serial VIs, you should really switch to the VISA VIs. Also make sure you are opening a session to each of the com ports at the beginning of the program and closing each at the end of the program. Problems can arise if your try to open a session to a port that already has a session open. Also you should update LabVIEW to 6.0.2
    If you are still having problems post the error code and error message you are getting.
    Ray K
    NI Applications Engineer

  • Creating a drop down menu configured with VISA write

    Hi I'm using the Basic Serial Write Read example vi in LabVIEW to communicate using the serial port. Instead of having a write box on the front panel connected to the VISA Write in the program I want to create a drop down menu on the front panel to be able to choose from a variety of commands. Is there a way I can program multiple commands into the block diagram and choose one of them on the front panel to send to VISA Write? For example, the commands to choose current are I/E\s0\r for 1 A, I/E\s-1\r for 100 mA and so on. I want to be able to choose between 1A, 100mA, etc on the front panel and have the code send the corresponding function to VISA Write. Is this possible?

    Okay, please let us know the solution you came up with, so we might be able to use it sometime.
    Cameron
    To err is human, but to really foul it up requires a computer.
    The optimist believes we are in the best of all possible worlds - the pessimist fears this is true.
    Profanity is the one language all programmers know best.
    An expert is someone who has made all the possible mistakes.
    To learn something about LabVIEW at no extra cost, work the online LabVIEW tutorial(s):
    LabVIEW Unit 1 - Getting Started
    Learn to Use LabVIEW with MyDAQ

Maybe you are looking for

  • Error in writing to directory /tmp/OraInstall2009-09-18_09-03-18AM. Please

    Hi all, oracle Unbrekable linux 32 bit oracle 10.2.0.1 i got this error while installing oracle universal installer [vishal@localhost database]$ ./runInstaller Starting Oracle Universal Installer... Checking installer requirements... Checking operati

  • QuickTime Crashing--AviImporter Plug-In problem?

    First off, an advance apology if I've posted this to the wrong category...I didn't see any groups for QuickTime. After a friend used my Macbook Pro, my .avi movies quit playing. In fact, if my Finder is in a directory with avi files in it, it resets

  • I want to connect a DataBase(oracle) through Tomcat5.

    i want to connect a DataBase(oracle) through Tomcat5. pls tell me the steps how can i do this .or pls give me any link thanks previously

  • Software bug or !!

    Hi Every one .. I have a couple of 3750 switch, that are running 12.2(20)SE3, and I'm trying to use the command Switch01#show idprom interface Gi2/0/7 ^ % Invalid input detected at '^' marker. Switch01#show idprom ? interface Specify an interface for

  • Linking a button to a pdf file

    hi all i m new here and new to flash i m building a website and lately i am facing a lil problem i have placed a button from windows--->components---->button with movie type button property now the issue is i am unable to link that to a pdf file i wa