GPIB and serial port communication errors via an executalbe file.

I have a data acquisition program that communicates with instruments via the serial port and GPIB bus. When I create an executable file and run it on another PC I get GPIB and serial port errors when the program tries to initialize these ports. Are there additional vi's I need to include when I build the executable?

When you installed the GPIB board on the other pc, did you install just NI-GPIB? Did you configure the GPIB board? You also need NI-VISA if your're using VISA calls in your program. You can either install the full NI-VISA or just the run-time version.

Similar Messages

  • Java and serial port communication

    Hello,
    In my code i have parsed a file through which i have extracted the port name and baud rate .
    Now i want to open the port with this portname and baud rate.
    I have a device moxa card which has 16 port and want to open each and and read and write data into it.
    thanking you.

    RXTX seems to be a decent library for serial/parallel communication using Java.
    [http://www.rxtx.org/]

  • How can collect the data from laptop sound card and serial port at the same time?

    I'm working on a project, I need to collect the data from laptop sound card, and also from serial port at the same time.
    The attachments are my VIs for sound card and serial port communication, I'm wondering that can I combine these two VIs together? Or can I run these two VI at the same time?
    Thank you!
    Attachments:
    AC_Radar_Receive.vi ‏46 KB
    RadarAudioPlug.vi ‏774 KB

    A smarter way is just to put all your code in the same VI.
    Two parallel loops if rates are different.
    Attachments:
    RadarAudioPlug.vi ‏450 KB

  • IDoc_02_Error passing data to port-Communication error when  sending with HTTP

    Hello All,
    We are receiving the error "02_Error passing data to port-Communication error when  sending with HTTP", when sending the idoc to PI from ECC system.
    Observation:
    1. Some idocs are failing and immediately after sometime the same type of  idocs with different idoc numbers are getting successful.
    Eg: Orders. One purchase order is failing at one point of time. later another purchase order is getting successful after some time to the same partner.
    2. If i perform the reset of idoc, then it is getting delivered during next scheduled job run.
    please help me in resolving the issue.
    Regards,
    Ch. Venkat.

    status 02 is     Error passing data to port ...it simply means your port setting has some problem. do configure your port setting and also in partner profile
    Thanx and Regards
    Arpan Maheshwari

  • Serial port communication IRP_MJ_READ

    Hello, i would like to ask you about serial port communication. I am currently trying to make application for communication with my stepper motor (Microcon), but it doesnt work. If i try to communicate with original software, my serial port monitor gives me values 
    IRP_MJ_WRITE  when i write some values and
    IRP_MJ_READ when i try to read from serial port
    But when i am using LabView i am only able to send IRP_MJ_WRITE function using VISA write component (so this one works good), but when i use VISA read component my serial port monitor gives me only IRP_DEVICE_CONTROL. Have you any sugestion where can be problem? I have no idea how to get this IRP_MJ_READ function using LabView VISA component.
    Solved!
    Go to Solution.

    Are you monitoring the using PortMon software ? Only thing I can see here is that check the command what you send, there might be some space which you might have introduced while typing,
    or
    Are you still running stepper motor control software while running the labview ? In this case there will be conflict.
    When you are using original stepper motor software and when you send command wirte down the hex value (see in portmon or anyother monitoring software) and try sending same hex values using labview. Sending command, sending hex are same but just give it a try,
    Use bytes at port function before VISA read to read all the available data.
    Search for Microcon drivers in Instrument driver network in NI website if you want easy & fast solution.

  • Serial Port Communication Class

    Hi
    Does anyone know if there is a java class doing serial port communication using RS485 4 wireport.
    Thanks

    There's the Java Communications API that does serial port communication. Don't know whether it handles whatever it was you said.

  • Updated iTunes and now get an error message that the file iTunes Library.itl cannot be read because it was created by a newer version of iTunes. ??

    updated iTunes and now get an error message that the file iTunes Library.itl cannot be read because it was created by a newer version of iTunes. ??

    hello!
    i have a similiar problem:
    i upgraded my mac from 10.6.8 to 10.7.something recently, but i did NOT update itunes, still running version 10.4.1. now i wanted to open itunes but it tells me, that my iTunes Library.itl was created by a newer version of iTunes - which i never used!
    its annoying since i dont want to be forced to download a 720MB pckage of itunes every month - even more so, if the system start "lying" to me.
    or is it another problem? anyone got the same? any solution? maybe an erratic prompt?
    thanks, florian

  • Unable to connect to SRW224P via web base and serial port on the front until reboot switch

    Just installed new SRW224P switch 4 days ago and we lose connectivy to the SRW224P manage switch. Try to Web in to device and also direct serial port unable to get connected, reboot and it works for a little bit but then we loose connectivity again. Also the computers connected to the switch loose their IP address and sometimes unable to get a DHCP address assigned back from are server.
    Any suggestions?
    (Edited for guideline compliance.Thanks!)Message Edited by JOHNDOE_06 on 05-14-2007 09:20 AM

    I ended up doing a replacement with linksys, the new one has been in place for 2 weeks and it seems to be running ok.

  • GPIB and Serial together

    Is it possible to control GPIB and read off a serial
    port at the same time ? I need to read off the serial
    port before any GPIB function takes place
    Sent via Deja.com http://www.deja.com/
    Share what you know. Learn what you don't.

    In article <7s8orv$t4p$[email protected]>,
    [email protected] wrote:
    > Is it possible to control GPIB and read off a serial
    > port at the same time ? I need to read off the serial
    > port before any GPIB function takes place
    >
    > Sent via Deja.com http://www.deja.com/
    > Share what you know. Learn what you don't.
    >
    Hi,
    If the serial ports are not connected to the same instrument, it is
    possible to.
    If the serial port is connected to the instrument where GPIB is
    connected, it is possible to ... but not with all gpib instruments: I
    use one witch must be configured for serial communication 0R GPIB
    communication but not both at the same time.
    Laurent.
    Sent via Deja.com http://www.deja.com/
    Before you buy.

  • Cisco Router 2600 Serial Port communications

    I am working on configuring communications Router to Router through serial port. I have seen some videos and read some documentations. My configuration is as follows: 
    R1 (DCE) -> f0/0 192.168.1.1/24 - s0/0 192.168.2.1/24 <-----> Router2 ->(DTE)  S0/1 192.168.2.2/24 f0/0 192.168.3.1.
    I have configured the routing tables at both routers. It works when I ping from router to router and router to hosts successfully. Nevertheless, I can ping from hosts to the default gateways, but I cannot ping from hosts to the serial ports (adjacency). In short I cannot communicate from Network1 to Network2. Please do I have to do any extra configuration.

    Router 1 (KelliR)
    KelliR#show ip interface brief
    Interface                  IP-Address      OK? Method Status                Protocol
    Ethernet0/0                192.168.1.1     YES manual up                    up
    Serial0/0                  192.168.3.1     YES manual up                    up
    TokenRing0/0               unassigned      YES unset  administratively down down
    Serial0/1                  unassigned      YES unset  administratively down down
    KelliR#show ip route
    Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
           D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
           N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
           E1 - OSPF external type 1, E2 - OSPF external type 2
           i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
           ia - IS-IS inter area, * - candidate default, U - per-user static route
           o - ODR, P - periodic downloaded static route
    Gateway of last resort is not set
    C    192.168.1.0/24 is directly connected, Ethernet0/0
    S    192.168.2.0/24 [1/0] via 192.168.3.2
    C    192.168.3.0/24 is directly connected, Serial0/0
    ============================================
    Router 2 (HelderR)
    HelderR#
    HelderR#show ip interface brief
    Interface                  IP-Address      OK? Method Status                Protocol
    Ethernet0/0                192.168.2.1     YES manual up                    up
    Serial0/0                  192.168.3.2     YES SLARP  up                    up
    TokenRing0/0               unassigned      YES unset  administratively down down
    Serial0/1                  unassigned      YES unset  administratively down down
    HelderR#show ip route
    Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
           D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
           N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
           E1 - OSPF external type 1, E2 - OSPF external type 2
           i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
           ia - IS-IS inter area, * - candidate default, U - per-user static route
           o - ODR, P - periodic downloaded static route
    Gateway of last resort is not set
    S    192.168.1.0/24 [1/0] via 192.168.3.1
    C    192.168.2.0/24 is directly connected, Ethernet0/0
    C    192.168.3.0/24 is directly connected, Serial0/0
    ============================================
    Even with  f0/0 and s0/0 configured with the addresses in any router, no host at its respective routers is able to ping the s0/0. Hosts are able to ping its ethernet ports.
    See ping comand below:
    From router KelliR
    KelliR#ping 192.168.3.2
    Type escape sequence to abort.
    Sending 5, 100-byte ICMP Echos to 192.168.3.2, timeout is 2 seconds:
    Success rate is 100 percent (5/5), round-trip min/avg/max = 32/33/36 ms
    KelliR#ping 192.168.2.1
    Type escape sequence to abort.
    Sending 5, 100-byte ICMP Echos to 192.168.2.1, timeout is 2 seconds:
    Success rate is 100 percent (5/5), round-trip min/avg/max = 32/34/36 ms
    KelliR#ping 192.168.2.101
    Type escape sequence to abort.
    Sending 5, 100-byte ICMP Echos to 192.168.2.101, timeout is 2 seconds:
    Success rate is 100 percent (5/5), round-trip min/avg/max = 32/33/36 ms
    KelliR#
    ==================================================================================
    From router HelderR
    HelderR#ping 192.168.3.1
    Type escape sequence to abort.
    Sending 5, 100-byte ICMP Echos to 192.168.3.1, timeout is 2 seconds:
    Success rate is 100 percent (5/5), round-trip min/avg/max = 32/33/36 ms
    HelderR#ping 192.168.1.1
    Type escape sequence to abort.
    Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds:
    Success rate is 100 percent (5/5), round-trip min/avg/max = 32/32/32 ms
    HelderR#ping 192.168.1.101
    Type escape sequence to abort.
    Sending 5, 100-byte ICMP Echos to 192.168.1.101, timeout is 2 seconds:
    Success rate is 100 percent (5/5), round-trip min/avg/max = 32/34/36 ms
    HelderR#
    ====================================================
    From Host connected to KelliR
    C:\>ping 192.168.1.1
    Pinging 192.168.1.1 with 32 bytes of data:
    Reply from 192.168.1.1: bytes=32 time=2ms TTL=255
    Reply from 192.168.1.1: bytes=32 time=1ms TTL=255
    Reply from 192.168.1.1: bytes=32 time=1ms TTL=255
    Reply from 192.168.1.1: bytes=32 time=1ms TTL=255
    Ping statistics for 192.168.1.1:
        Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
    Approximate round trip times in milli-seconds:
        Minimum = 1ms, Maximum = 2ms, Average = 1ms
    C:\>ping 192.168.3.1
    Pinging 192.168.3.1 with 32 bytes of data:
    Request timed out.
    Request timed out.
    Request timed out.
    Request timed out.
    Ping statistics for 192.168.3.1:
        Packets: Sent = 4, Received = 0, Lost = 4 (100% loss)
    =====================================================
    From Host connected to HelderR
    C:\Users\Helder>ping 192.168.2.1
    Pinging 192.168.2.1 with 32 bytes of data:
    Reply from 192.168.2.1: bytes=32 time=3ms TTL=255
    Reply from 192.168.2.1: bytes=32 time=1ms TTL=255
    Reply from 192.168.2.1: bytes=32 time=1ms TTL=255
    Reply from 192.168.2.1: bytes=32 time=1ms TTL=255
    Ping statistics for 192.168.2.1:
        Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
    Approximate round trip times in milli-seconds:
        Minimum = 1ms, Maximum = 3ms, Average = 1ms
    C:\Users\Helder>ping 192.168.3.2
    Pinging 192.168.3.2 with 32 bytes of data:
    Request timed out.
    Request timed out.
    Request timed out.
    Request timed out.
    Ping statistics for 192.168.3.2:
        Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),

  • Serial port communication problems

    Hello.  I am trying to control a MKS Instruments 651C Pressure Controller via RS-232.  Right now, I am just trying to establish basic communication with the device over the serial port.  I can connect to the device with windows hyperterminal using the following settings:
    Bits per second: 9600
    Data bits: 8
    Parity: None
    Stop bits: 1
    Flow control: None
    Once I connect, I go to File-->Properties, Settings tab,and click on ASCII Settings button.  I must check the following boxes (not checked by default) for any communication to occur:
    Send line ends with line feeds
    Echo typed characters locally
    Append line feeds to incoming line ends
    Force incoming data to 7-bit ASCII
    Once I have all that set, I can communicate with my device via hyperterminal.  What I would like to do now is to use LabVIEW to control the device, so I need to be able to send/receive data over the RS-232 connection via LabVIEW.  I have been using the Basic Serial Write and Read vi, but I am not getting any response from my device.  Looking at the block diagram for the basic read/write, I saw that  Enable Termination Char was hardwired to false, so I changed it to a control and set it to true.  I also changed Termination Char to a control and set it to 0xD for CR.  I still cannot get a response from the device.
    I'm guessing that I am still not setting everything for the serial port setup correctly.  Can anyone give me some suggestions on what else to modify to match my hyperterminal settings?  Thanks!
    Solved!
    Go to Solution.

    Have you tried running NI-Spy to see what is actually happening on the serial port? This may help you narrow down what is happening. I also wonder if you are having an issue since you are using 8-bit ASCII when you open the port but in hyperterminal you are telling it to use 7-bit ASCII to read the data.
    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

  • Serial port communication on Mac OS X with netbeans environment?

    I'm new to java. i wrote a cross platform application with realbasic that communicates with a serial port. i am trying to rewrite this application using good OOP technique using java and netbeans. i am developing on Mac OS X with netbeans. I am having a very difficult time finding some sample code and documentation on the best way to communicate with a serial port on OS X. i have looked into javax.comm and rxtx but am having trouble finding good docs and examples for OS X. also what ever the solution ends up being it needs to be cross platform.
    Any help would be greatly appreciated.
    thanks
    Jeff

    Same error here: I've tried building in both 32 and 64 bit modes, following the instructions above, and still receive the same error. Both LD_LIBRARY_PATH and DYLB_LIBRARY_PATH are set, as well as JAVA_OPTS pointing to the appropriate directory (in this e.g., /opt/dbxml/lib).
    Is there a way to get the "next" version of dbxml as a beta? Or is there another workaround in addition to what's posted here?
    Thanks,
    B
    Stats:
    java version "1.6.0_07"
    dbxml-2.4.16
    OS X 10.5.7
    tomcat 6.0.18
    <error stack trace below>
    ava.lang.UnsatisfiedLinkError: /opt/dbxml/lib/libdb_java-4.6.jnilib:
         at java.lang.ClassLoader$NativeLibrary.load(Native Method)
         at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1822)
         at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1739)
         at java.lang.Runtime.loadLibrary0(Runtime.java:823)
         at java.lang.System.loadLibrary(System.java:1030)
         at com.sleepycat.db.internal.db_javaJNI.<clinit>(db_javaJNI.java:52)
         at com.sleepycat.db.internal.DbEnv.<init>(DbEnv.java:264)
         at com.sleepycat.db.EnvironmentConfig.createEnvironment(EnvironmentConfig.java:1023)
         at com.sleepycat.db.EnvironmentConfig.openEnvironment(EnvironmentConfig.java:976)
         at com.sleepycat.db.Environment.<init>(Environment.java:29)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
         at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:100)
    </end stack trace>
    Edited by: hamhoagie on May 28, 2009 12:28 PM
    Edited by: hamhoagie on May 28, 2009 12:29 PM

  • JVM serial Port communication

    I am would like my java stored procedure to communicate with my serial port. I have a problem with relative pathnames are not allowed(com1:). how do I bypass this? Source code included:
    # Java source code
    package com.bannasoft.serial;
    import java.io.*;
    public class SerialTest {
    public static void sendit() {
    Runtime rt = Runtime.getRuntime();
    Process p = null;
    String portname = "com1:";
    String cmd[] = {
    "c:\\winnt\\system32\\cmd.exe", "/c",
    "start", "/min",
    "c:\\winnt\\system32\\mode.com", portname,
    "baud=9600", "parity=n", "data=8",
    "stop=1",
    try {
    p = rt.exec( cmd );
    if( p.waitFor() != 0 ) {
    System.out.println("Error: " + cmd );
    System.exit( -1 );
    byte data[] = "Serial Text.".getBytes();
    FileOutputStream fos = new FileOutputStream( portname );
    BufferedOutputStream bos = new BufferedOutputStream( fos );
    fos.write( data, 0, data.length );
    fos.close();
    catch( Exception e ) {
    e.printStackTrace();
    # Java Compile and load
    C:\work>javac SerialTest.java
    C:\work>loadjava -user scott/tiger@wc-sbenna2:1521:ORA817 -thin -resolve \
         -resolver "((* SCOTT) (* SYS))" SerialTest.class
    # modify the init.ora
    utl_file_dir = c:\winnt\system32
    # As System in oracle grant promisions
    I don't know that all of these grants are required.
    SYSTEM: ORA817>call dbms_java.grant_permission('SCOTT','java.io.FilePermission','c:\winnt\system32\cmd.exe','execute');
    SYSTEM: ORA817>call dbms_java.grant_permission('SCOTT','java.lang.RuntimePermission','c:\winnt\system32\cmd.exe','execute');
    SYSTEM: ORA817>call DBMS_JAVA.GRANT_PERMISSION('SCOTT','SYS:java.io.FilePermission', '*', 'read,write,execute');
    SYSTEM: ORA817>call DBMS_JAVA.GRANT_PERMISSION('SCOTT','java.lang.RuntimePermission', 'writeFileDescriptor', 'execute');
    # Create procedure as scott
    SCOTT: ORA817>create or replace procedure test1
              as language JAVA
              name 'com.bannasoft.serial.SerialTest.sendit()';
    # Set output on
    SCOTT: ORA817>set serverout on size 4000;
    SCOTT: ORA817>call dbms_java.set_output(4000);
    # execute procedure
    SCOTT: ORA817> exec test1();
    java.lang.SecurityException: relative pathnames are not allowed(com1:)
    at
    oracle.aurora.rdbms.SecurityManagerImpl.checkFileIsAbsolute(SecurityManagerImpl.
    java)
    at oracle.aurora.rdbms.SecurityManagerImpl.checkWrite(SecurityManagerImpl.java)
    at java.io.FileOutputStream.<init>(FileOutputStream.java)
    at java.io.FileOutputStream.<init>(FileOutputStream.java)
    at com.bannasoft.serial.SerialTest.sendit(SerialTest.java:27)
    PL/SQL procedure successfully completed.

    http://java.sun.com/developer/Books/javaprogramming/cookbook/11.pdf

  • Communication error via USB to Mitsubishi Outlander sport with iPhone 4 4.2

    I just bought a brand new 2011 Mitsubishi Outlander Sport with all the bells and whistles. I tried connecting my iPhone 4 running firmware 4.2.1 and it gives me a communication error. We have 3 iPhone 4 at home and all the same problem. When we used an iPod nano it worked fine, do what's the deal with the iPhone 4? Very disappointing, any ideas?

    Gonna try this fix with my Mitsubishi outlander !!! 2011 !!! "FUSE System allows you to update your system software and new software is now available. It will allow you to enjoy USB audio connection with an iPod /iPhone with operating software of 4.0 or above." from this website                                                                             http://www.mitsubishifuse.com/support.taf?p=7&n=1
    booked an appointment to get this firmware update
    will report back after it is done
    Lets hope this works !

  • HELP IN KEITHLEY output source PROGRAM!(how to change GPIB to serial port)

    As the topic suggest,can anyone help me in changing from GBIP to serial port?The file is found inside the .lib that i attached.
    filename:2400 swI Linear Stair MeasV - LED.vi
    thanks!
    Attachments:
    KEITHLEY PROGRAM.zip ‏434 KB

    zzz(yawn)!!!!!!  I did not expect people to help me COMPLETE my work;i was just seeking advice on small portion of that program.Isn't what forum is used for?For posting questions and seeking advice from professonals and those willing to help?If you're just idling around here and doing stupid things just to show that you're an active forum user,i would think that you're a pathetic fool that have no life.Please seriously re-consider your words CAREFULLY next time before you post stupid things.Thanks=D
    PS:btw i did try out the program;if not how can i ask a question?You expect the question to just pop out of my brain without thinking?and thanks the person for giving me INVALUABLE advice(the person before that lame "nyc aka joker") as it did worked,and i'm still trying out the test.Thanks for it again=D

Maybe you are looking for