Seial port Communication

Is it possible to make an application in labview that autodetects the srial ports that are being used by the computer, and can this be made with events?
Can labview monitor a computer's power state, such as shutdown, restart, etc..
Can an application be made so that it auto starts with windows?
Is it required to install a module to use serial communication in labview?

Hello Nando88,
Q: Is it possible to make an application in LabVIEW that autodetects the srial ports that are being used by the computer, and can this be made with events?
A:
How Do I Programmatically Determine Available Resources at Runtime in LabVIEW?:
http://digital.ni.com/public.nsf/allkb/FA9073730B255BE586256E54005B13C4?OpenDocument
Q: Can labview monitor a computer's power state, such as shutdown, restart, etc.
A: On your other Post:
Monitor computer power events:
http://forums.ni.com/t5/LabVIEW/Monitor-computer-power-events/m-p/3082503
Q: Can an application be made so that it auto starts with windows?
A:
Running a VI when Windows Boots:
http://digital.ni.com/public.nsf/allkb/45455665A28AE87E862569CE0077583B?OpenDocument
Q: Is it required to install a module to use serial communication in LabVIEW?
A: Answered above by RobertoBozzolo.
David P.
National Instruments
Applications Engineer
www.ni.com/soporte

Similar Messages

  • 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

  • Forms6i and port communication

    Hello everybody.
    Our organization plan to develop a forms 6i application. But the problem is that a TPE ,"Terminal de Paiement Electronique", is to be used with it. The process is like that : a person inserts his card into the TPE , then all the card data will be sent to the form applicatiopn , or also the application modify data of the card.
    But I noticed that forms6i does not have built-ins to communicate with such machines via port communication.
    So I want to get help how to solve this problem.
    Thank you very much indeed.

    If I use USER_EXIT, should I put the dll file in the same directory as the fmx files ? You know there are also user_exit examples shipped with forms6i : they are located in %forms6i_home%/form60/userexit. I tried to execute the sample form Ue_samp.fmb but there was an error that the user_exit does not exist ,although all the C files was copied in the directory where I work.
    And if I use user_exit with the card reader, do you think that there will not be any problem of communication between forms and the TPE ?
    Thank you.

  • 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 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 very slow in RDP on windows server 2012

    Hellò, we have installed a new server 2012 and connected some thinclients via RDP, since that moment all peripherals connected to the imported com ports of the thinclients are running very slow, for example the cash register issue any receipt only after
    15-20 seconds!!. We have try to connect via RDP also a personal computer with many other OS like windows 8, windows 7, or XP but the result is the same: 15-20 seconds for a receipt!! We solve the problem only changing the server 2012 with a old server
    2008 or 2003!. How is possible window server 2012 is so slow on RDP imported com ports??. There is something to set for speed up the com ports on rdp? For us this is a great problem, all of our customers are using cash register via RDP and they can't wait
    all this time for a receipt. For your information we have tried to connect the cash register to the same com port of the same thinclient to the same server 2012 without RDP and the issue of the receipt is fast, so the problem is something on RDC of the new
    OS windows Server 2012. Also note this is a bi-directional communication because the cash register use a bi-directional communication for printing each one of the voice on the receipt, this problem wll not affect other printers unidirectional where the
    print process starting in less one second. Please help us to solve this problem, otherwise we will not more install windows server 2012.

    Hi,
    Thanks for your posting in Windows Server Forum.
    When the slow performance issue occurs on server 2012, check the Windows Logs – Application category of the Event Viewer (eventvwr.msc) on both the client and server sides. If there is any logs recorded, please let us know them. Please also check the
    driver is properly installed on server and check the compability guide with the cash register machine, whether it support server 2012 with remote session. If there is particular requirement then you need to solve them first.
    In addition, would like you to try connecting with RDP 8.1 and check whether it faces same issue.
    Remote Desktop Protocol 8.1 Update for Windows 7 SP1 released to web
    Hope it helps!
    Thanks,
    Dharmesh

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

  • Port communication and installation setup

    Hi,
    We are going to install MBAM 2.5 in our environment in before that I do have 2 queries which I would like to clarify -
    1 - What the ports require for MBAM communication.
    2 - From where I can download the MBAM 2.5 setup. For set up should be have the license for MDOP?
    Please advice.
    Regards
    Govind

    Hi,
    2 - In order to download it on your MVLS portal you must be eligible to the SA with MDOP
    1 - the following common port are :
    1433 between the webservices and the SQL server
    80/443 for the reporting server role
    80/443 between the endpoints and the webservices server role
    the sccm agent common port
    Regards,
    Follow me on Twitter http://www.twitter.com/liontux | My Blog (French/English) :
    http://security.sakuranohana.fr/

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

  • URG help on mobile port communication!!!!!

    I for my college project hav built a j2me application to send data though the mobile phones port into a switching circuit to control hardware. I am using a motorola phone SLVR L6. The problem is it has a mini usb port n the switching circuit i hav built is for serial communication. How do i join these 2! a usb to serial cable dosnt work.
    If i replace the L6 with motorola E398 which has a serial port will it work!!!
    I hav used midp2.0 and the CommConnection to communicate to the port!
    Please reply urgently, any one with any knowledge in thes regard please contact me at [email protected] or on yahoo messenger ID indohuman!

    I would recommend that you go on ni.com and search for 'serial'. Also, have a look at the Example Finder in LabVIEW; Help -> Find Examples. There is an entire directory that should help you understand how to design serial applications.
    Adnan Zafar
    Certified LabVIEW Architect
    Coleman Technologies

  • Basic serial port communication

    Hi-
    I am trying to use javax.comm API to transmit a byte array to a RS232 port (COM2) which is connected to an RF transmitter for wireless communication (the program just outputs the array, and doesn't recieive anything), and unfortunately a) I'm using windows, so i'm using the 2.0 API as opposed to the 3.0, and b) I have absolutely no I/O experience, so I'm grasping at straws at the moment and googling for possible examples. Any help/leads in the right direction? Thanks :)
    -james

    Try this:
    http://jstampu.systronix.com/tutorial/serialecho/serialecho.htm

  • 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

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

  • ? Port Communication

    How can I run samples from 'javacomm20-win32'? I have good jdk1.3.1 and Forte 2.0, but such "crazy" example as SimpleRead does not work, - "java.lang.NoClassDefFoundError: commapi/samples/Simple/SimpleRead (wrong name: SimpleRead) at java.lang.ClassLoader.defineClass0(Native Method)..." and other error messages comes..
    Other example - SerialDemo - shows window, but does not detect ports, where is a problem?

    You need to run the SimpleRead with
    "java commapi.samples.Simple.SimpleRead"
    from the path under the directory commapi/samples/Simple or, if the classes are in the samples.jar jar file, "java -classpath samples.jar commapi.samples.Simple.SimpleRead"

  • Parallel Port Communication

    any one can tell me how to change the mode of parallel port from " out put only" to input....

    Apparently so (I don't have access to solaris at the
    moment but looking around the net it would appear
    that
    a mode change is possible in solaris.
    Try using the rxtx library
    http://www.rxtx.org/
    It apparently supports Windows now. It provides a
    commapi interface and it may provide more
    functionality
    then suns commapi implementation. (although I would
    not hold my breath)
    There are also a few comercial vendors of commapi
    complient libraries out there but they appear to have
    problems with parallel ports also. One suggestion is
    to buy a cheap serial to parallel port adapter and
    use that (nasty hack though).
    matfudThank so much for help. I will try to use the rxtx library and I'll inform you about it.
    Further, I agree with you regarding the use of a serial/parallel adapter, it seems a last solution.
    marco

Maybe you are looking for

  • Hi all ,progrm created need to be transported to prodn does sele.txt go

    Hi All,   Pls provide the information  ASAP . When a program is created and need to be transported to prodn does selection texts always go with it? if not how do you make sure? Can you change the CTS entries? How do you do it?  Thanks&regards. Bharat

  • How can I output frequency readings of my signals using FFT?

    Hi there, I need help in regard to the topic stated. Currently I have accquired a sine wave with frequency that vary, using one of the accquistion card by NI. I had converted it to a digital signal so that labview can read it. Now, I will like labvie

  • How to dispaly large images?

    Hi! I have a simple problem, hope somebody could help me! I would like to display images from a LONG RAW type column of an Oracle database (Oracle8i Enterprise Edition Release 8.1.6.0.0) in a BC4J application. I use JDEV 9.0.3. The wizard generated e

  • Cant add jabber account to messages app

    Hi, When I try to add a new account to Messages the only option for an account is yahoo.  My other machines allow jabber, aim etc but the only option i get on this machine is yahoo. Perhaps the preferences have gone awal I have tried deleting them in

  • Can't download the additional components needed to install mac os x lion

    I recently upgraded the RAM in my MacBook Pro (13-inch, Early 2011) to 16gigs.  The process went smooth at first.  Then the Computer would not boot and stayed on the white Apple screen with the circle spinning. A progress bar would appear and disapea