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

Similar Messages

  • Problems communicating with device over TCP/IP

    Greetings,
    In designing a GUI for a device with both RS-232 and TCP/IP communications capability, I've run into quite a puzzling issue that has me stumped and my brain in pain.  You can query and send commands to this device using ASCII commands.  Developing the serial port communications aspect of the GUI was trivial.  My problem with TCP/IP is this:
    I first establish the TCP connection using the "TCP open" vi.  I then send my ASCII command or query (that is CR terminated) using "TCP write," pause for 250 ms, and then read using, "TCP read" in the CRLF mode (the device does respond with CRLF line termination).  Success using this method in LV is intermittent, especially when I put the write/read vi in a loop and go between querying and sending commands-only.  As a matter of fact, if I am only querying the device, it will run indefinitely without any problems and my front panel indicators display values from the read buffer.  As soon as I send a command (to change a setting, for example), an error is propagated and the GUI no longer receives the data from the read buffer.  More recently, I've found out that the device is definitely receiving the commands even when the GUI fails to retrieve the read buffer, because I can send a query, switch over to hyperterminal, and hit return... it displays my response in HT without my even having to type in a command!  I'm totally stumped here, as I've played around with all kinds of delays in different places, different read modes, opening/closing connections, etc.  I even tried putting in a redunant "dummy" read by itself, and a dummy read following a write with just a CR as the command (I thought this might solve my problem based on the behavior I saw when switching over to hyperterminal).
    I've been searching the discussions for similar problems, but to no avail.  I have read that TCP communications is handled by the OS, so perhaps this is where I am running into trouble?  Any help, advice or suggestions are greatly appreciated.
    (A little bit more information on the device: The way I want the device to work is as a monitor, so it should be querying indefinitely unless the user sends a command to update a setting, at which point it would send the command and then resume monitor status).

    Hello CryoGuy,
    Thanks for the question.
    Your description seems to fit this KB about poor performance in TCP read.  If this document isn't helpful, please let us know the following:
    1.  Which OS are you using?
    2.  Which version of LabVIEW are you using?
    3.  What's the specific error number and message you're getting?
    4.  At which function in LabVIEW are you seeing this error?  (Turn on highlight execution to see where the error starts if the message doesn't say.)
    Thanks,
    Lisa
    Applications Engineer
    National Instruments

  • 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.

  • Digital Fax to Folder Setup gives error message unable to establish 2-way communication with device

    Digital Fax to Folder Setup gives error message unable to establish 2-way communication  with device. I can s end a Fax and I can print documents. I can also, now, scan to computer. I have changed the phone line twice, restarted the router, restarted the computer, and made sure the front panel was lit when setting up the Digital Fax folder. I am on a Homegroup network, with both wireles and ethernet computers.  When I view the network, it sees both computers (wireless laptop and enthernet desktop), the printer, scanner, and router (VerizonDrive). I recently had to reinstall Windows 7, where Digital Fax to Folder Setup previously worked, and now it doesn't.  The network shows up as Network 3. When I try to view the network map, I get the error message that Windows cannot create the network map. Responses from other devices on the network are delayed or there is an  incompatible router on the network.  What am I doing wrong?

    Hello @JiffyFingers and Good Afternoon
    From what you have described, and from the work you did on another thread, I believe you'd get better assistance talking to either Microsoft or your router manufacturer. With not being able to create the network map, that's something a bit more intricate than digital fax setup
    You can have a look at this Windows cannot create the network map. Responses from other devices on the network are delayed or th... Microsoft thread as well, and you may be able to figure it out from there.
    Hope that helps, have a great day!
    Please click “Accept as Solution ” if you feel my post resolved your issue, as it will help others find the solution faster
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    **MissTeriLynn**
    I work on behalf of HP

  • 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.

  • 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

  • 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/]

  • 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

  • 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),

  • Fieldpoint serial port communication?

    Hi,
      I am a researcher from School of Biotechnology, Dublin City University, Ireland. I have been using Labview programming (version 8.2) for bioprocess monitor and control. I am using Fieldpoint (FP2010) module for data acquistion and control.  I've connected analog outputs from various controllers to appropriate channels and found data acquistion working fine using respective VI's. We have few instrument outputs which are need to be connected through serial interface on filedpoint's serial port. We are using  a multiplexer (B & B electronics) for channeling all serial outputs (of instruments) to serial port of Filedpoint. VI's developed for all serial interface of multiplexer ports  found working (data logging ok!) , when it is connected directly to COM1 port of PC. But when multiplexer serial interface is connected to serial port of Fieldpoint, the data values fails to log on the PC. Ethernet cable is used for interfacing filedpoint with PC. It seems the PC recognises COM1 port for serial interface but not serial port of Field point.
    We have a driver software for multiplexer, where we already configured all serial input and output ports as required. How to configure PC to serial port present in Filedpoint instead of it using COM1?
    I tried playing with MAX configuration as wells device manager of PC, but system couldn't recognise serial port of filed point.
    kindly provide me a solution.
    Thanks
    Regards,
    Senthil

    Hi,
    There is a software component that normaly would provide the feature you are looking for. It is the VISA Server. Unfortunately this component is not installable by default on cFP 20x0 controllers because of memory limitations.
    Your controller has enough memory, so you could try  to install the Server by hacking the driver installation configuration file for the NI-VISA server. Keep in mind that this is not an official feature and the usability could be limited.
    Go to your   \\Program Files\National Instruments\RT Images\NI-VISA Server\4.x    folder and open the "install_81xx.cdf" file with your wordpad.
    Add the bold line to the file as shown below:
    <?xml version="1.0"?>
    <?CDF VERSION="1.1"?>
    <SOFTPKG NAME="{E62A7BA2-8ED9-4C4A-AFA1-0DE33A188D61}" VERSION="4.4" TYPE="VISIBLE">
        <TITLE>NI-VISA Server</TITLE>
        <ABSTRACT>Remote VISA Server -- Shares VISA resources over the network.</ABSTRACT>
        <IMPLEMENTATION>
            <DEVICECLASS VALUE="PXI"/>
            <DEVICECLASS VALUE="Desktop"/>
            <PROCESSOR VALUE="7002"/>
            <PROCESSOR VALUE="7063"/>
            <PROCESSOR VALUE="7151"/>
            <PROCESSOR VALUE="7175"/>
            <PROCESSOR VALUE="E002"/>
            <PROCESSOR VALUE="E001"/>
    Save and close the file and close and reopen MAX. Go to your remote target and open the software installation tool. Now you should have the VISA server as an option for installation.
    After installing it and reboot, go back to your remote target in max and go to Software/NI-VISA 4.x and choose VISA Options at the right page. Go to Aliaes and choose "ADD Alias".
    Now enter ASRL1::INSTR into "Ressource Name" and "COM4" as Alias name for example. Now go to VISA Server /Security and add a * to allow access for every Host connected to your target.
    Save your settings and change to MySystem/Software/NI-VISA 4.x and go to VISA Options at the right page. Go to Aliaes and choose "ADD Alias".Now enter visa://your remote IP address/ASRL1::INSTR into "Ressource Name" and "COM4" as Alias name for example. Save your settings.
    Now you should be able to access your remote COM4 interface from your HOST, by using the COM4 alias within the VISA ressource control.
    DirkW

  • 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

  • Error message saying "unable to establish two-way communication with device"

    I have an HP C309a printer/scanner/fax. I have recently reconfigured it to work wirelessly instead of via the USB cable, which it does. But if I try to go on to  the HP Solution Centre/Settings/Printer Toobox to clean the printheads, it tells me that this cannot be done because "the computer cannot establish two-way  communication with the device".
    If I plug the USB cable back in, I can clean the printheads fine.
    Does anyone have a way of allowing me to clean the printheads without using the USB cable?
    roger

    Hi rogercorke,
    I believe you can also clean the printhead from the printer control screen. Press the Wrench button from the printer Home screen and then press Tools>Clean Printhead.
    If you need to use this feature wirelessly, try running the HP network diagnostic utility on your wireless setup and see what it says: http://h10025.www1.hp.com/ewfrf/wc/softwareDownloadIndex?cc=us&lc=en&jumpid=ex_r4155/en/hho/ipg/foru...
    Please click the blue Kudos star in the post that helped you. 

  • RXTX Parallel port communication with Pin Printer

    I have successfully installed and configured RXTX-2.0-7pre1 on Linux platform.
    2 printers, one Laser jet printer connected to the Serial port and the other Pin Printer connected to the Parallel port.
    I can print my files out successfully with RXTX on both my 2 printers. But, there is some problem with my Pin Printer performance. The print job is a little slow and the printing is word by word output.
    While the Laser printer received the whole string of my RXTX output and printed them out asap.
    RXTX read my data and write them to the Parallel/Serial port directly, so, for my laser jet printer, it buffered the RXTX output data and processed them all in one. No problem, laser printer works well. But to the Pin Printer, it got the RXTX output and printed them out with no buffer. I am not authorized to deal with the Pin Printer device driver.
    So, my question is that, is there someone knows how to resolve this problem on RXTX side? That is to say, how to modify the source code of RXTX and customize it?
    I wanna know how to create buffer in RXTX, for example, buffering a whole string line and then sending them to the Parallel port. Then, It supposed to be that the Pin Printer will receive once a whole line output and printing line by line in the paper! Not the problemly slowly word by word output!
    Thanks a lot!

    Simple metrics from google should suffice the SUN team from understand the need/huge requirement for supporting Serial and parallel port programming in windows. Platforms would always change and the team at SUN should remain commited in supporting new platforms.

  • VI Serial port communication unlike HYPERTERMINAL (Agilent 33250A)

    "Agilent 33250A is a function generator. It responds to simple strings vis COM port, such as: "APPLQU", "OUTPUT ON", etc...
    I used the windows HPERTERMINAL with "Send line ends with line feeds" enabled, the instrument worked well.
    But I can't make it work with .vi file. COM setting is correct because 33250A shows "remote" icon immediatly after string sent. It will respon "error" to any mismatched setting (e.g. 9600 vs 115200). So, the connection is there but it just doesn't respond to commands.
    I don't know why. I attached two .vi files that I am using to communicate with the Agilent 33250A. Would someone can help to see what's the bug that make those .vi to send different string th
    an the equivalent string sent by HYPERTERMINAL?
    I apprecite your help. Thank you in advance.
    Jian
    Attachments:
    Write2COM1.vi ‏22 KB
    Serial_Communication.vi ‏40 KB

    In order to append a line feed inside your string control, you have to first enable "\" codes. You do this by right clicking on the control. Without doing that, when you type \n into the control, it gets interpreted as the characters \ and n. To append the line feed on the diagram, connect your string control to the first input of a concatenate strings function and wire a Line Feed Constant to the second input. The Line Feed Constant is on the String palette. Wire the output of the concatenate function into either the serial or VISA write. I've attached a picture to show you what I mean.
    Attachments:
    Concatenate_Line_Feed.jpg ‏6 KB

  • 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.

Maybe you are looking for