RS-232 via TCP/IP with LabView

Hello

I have currently a standard equipment is read through a RS232 converter TCP/IP hardware.

On the computer with labview, I use a third-party serial port virtual that data reads the TCP/IP and converts this COM port data pack

I then read the port COM normally with VISA.

I would like to remove the third-party TCP/IP software RS232 and LabView read the TCP/IP port and convert to series.

How could do?

More details about the hardware and the 3rd party software;

thydzik.com/Monitor-cms2000-Inverter-via-tcpip-usr-tcp232-E4-rs232ip-Convertor/

More information on labview here code;

thydzik.com/log-Solar-generated-to-pvoutput-with-LabVIEW/

I don't think it's as complicated as you seem to expect. Try the VISA TCP approach. Create a resource of VISA TCP, in raw mode, as explained in the white paper. Take your existing code, replace the COM resource with the new TCP one, remove the configuration of the port series, and it might work. Make sure to close the resource when you stop the program.

If you want to go with the TCP functions, look at the examples. You open a connection, read and write strings in it, exactly as you would with a serial port and close it when you are finished.

Tags: NI Software

Similar Questions

  • selection by tcp/ip and labview 1742 smart camera inspection

    Hello everyone!

    I m working with two smart cameras NI1742 where I have an inspection for various products, I m try via tcp/ip and view lab 2010 select inspection for each product. I configured the tcp/ip connection and test it with the vision builder ethernet Terminal, this part works fine, but I can´t do this with Labview where I show images of smart cameras via shared variables.

    If anyone knows how I can do? Please, I will be grateful.

    It's my code, but there is something that's not going to.

    Thanks and greetings

    Hello! Brad

    Thank you, you have all the reason, I ve tested and works but also I need to send a command to run the selected control, isn´t it?

    Yes, you´re great Brad, now I have to just organize all my code, thank you very much.

    Greetings from the Mexico

  • flatten to a string for sending via TCP/IP contains CRLF characters

    Hello

    I use a function 'flatten in string' to send data via TCP/IP.

    To minimize delays, I use CRLF mode so that the receive function returns as soon as it receives a sequence CRLF (stop character).
    I noticed that every now and then that part of the data is transmitted as the flattened string itself sometimes (but rarely) contains CRLF characters.
    I was wondering if this is a correct behavior, or if I'm missing something. I expected to flatten to string in order to get channels pure ASCII without special characters.

    Now I must first parse the string replace the CRLF characters of some known series of characters and do the opposite to the front desk and hope that that particular sequence never occurs.

    Any comment is appreciated,

    Manu

    mkdieric wrote:

    I expected to flatten to string in order to get channels pure ASCII without special characters.

    I don't know why you would think this. A CR or LF is no more extraordinary than any character. In addition, the string you out is not "ASCII" and has never been--check the documentation. The output is entirely dependent on the entry, and it is perfectly possible to get a (hex 13) CR followed by a LF (10 hex) if the entry would produce flattened data which means that.

    A better method, in my opinion, is to precede that you send with the number of bytes to wait. Then beside reception read you a fixed number of bytes for the numerical value that indicates the number of bytes comes, and read you this amount. The examples provided with LabVIEW show you this method.

  • How to send data then other more via tcp

    Well guys, I am having some problems with it

    I have a program to labview that record and show for me in a chart, the voltages and currents

    now, I want to do a software... that I can follow the datas of my company...

    so I do a server/client via tcp

    and I've managed to pass data from one... but I need pass 6 data both

    I tried to make a tab control...

    But if I put the data received as a tab control

    the values do not change x)

    I put the server code and client...

    so maybe if you guys see

    you will understand!

    Thank you guys!


  • The reading of data acquisition via tcp

    Hello

    I am building an application that controls an acquisition of data via tcp.

    I have a JAVA program that communicate with labview, give a command and data acquisition starts. (So, I read the correct Java data at Labview)

    My problem is if I try to read data acquired by data acquisition (continuous sample 1 k samples), I've read strange values.

    I transform of double values in the string and send it via tcp.

    How can I read it in Java? What type of socket should I use? What is a rate problem?
    I also tried to transform small/big-endian byte order, but it does not work.

    I enclose a sketch of this part of the application.

    Please help me, I try for 2 weeks!
    Thank you all...

    I find the solution in the lavag forum.
    I post here, if it can help someone.

    http://lavag.org/topic/16359-sending-LabVIEW-data-via-TCP/page__pid__99983#entry99983

  • sharing data via TCP/IP

    I finished by writing a LabVIEW program that I run in S.C.  It would be nice to watch some variables from my office here in OH.  Although we have several States apart we are on the same network domain.  I suspect that there is an easy way to do it.  Could someone point me in the right direction for the good vi or information?

    There is an example of 'several customers' that comes with LabVIEW. Just look for TCP/IP in the finder of the example. If you set up your code to handle multiple TCP/IP connections, you can have it send data to multiple clients (your computer being one of them)

  • The use of Global Mapper SDK with LabVIEW

    I am really new to the use of any SDK with LabVIEW.The basic idea behind this is to trace the lat and long coordinates in global map cutomized app via Labview.I mean I'm labview data acquisition, but I want to display coordinates in global map. For what I do. I don, t have much abt MFC idea too.

    Hello together,

    I found a few resources on the Global Mapper site that you might find useful. They seem to have the same issues as you, and an employee helped answer a few questions.

    Global Mapper software LabVIEW SDK: http://www.globalmapperforum.com/forums/technical-support/8917-global-mapper-sdk-labview-software.ht...

    Global map and LabVIEW: http://www.globalmapperforum.com/forums/sdk/9116-global-mapper-labview.html

    Using LabVIEW, LabWindows/CVI, and Measurement Studio? It is a Council of Measurement Studio, but if you have any questions of LabVIEW, I suggest posting to the Commission of LabVIEW. (http://forums.ni.com/t5/LabVIEW/bd-p/170)

    Kind regards

    Jason D

    Technical sales engineer

    National Instruments

  • Can what cards I use to develop communication SPI with Labview?

    First of all, I'm an intern is currently working on a project that involves communication with an SPI interface. I have absolutely no experience with SPI, but I finally decided to try. I work for about 6 months with labview and understand the function of basis of a large number of its resources.

    The problem:

    We want to connect Labview to an evaluation Committee that is connected to the PC via USB (but it can also be adapted to connect through SPI). The evaluation board mainly reads and writes if sign up for issuers that are connected to it by a Module assessment. The program which is already which is the Studio of SmartRF (that works via USB), but as we want to link all the functions in Labview we redevelop a platform to do so. If shortly, we want to make a Studio of SmartRF version in Labview. We want to be able to get all the information that makes the program and others... and all this is possible through SPI.

    Here is a link in case you are interested what is SmartRF Studio: SmartRF Studio link

    My question is which card do you recommend for what we are trying to accomplish? We are looking for something not very expensive but who fail to meet our requirements.

    I think of the NI USB 8451, but please make suggestions.

    Thanks a lot in advance and please stay tuned to my many questions coming about how to accomplish this enormous task with no knowledge whatsoever of SPI or how to mix with Labview only one student. I am reading as much as I can find, so all the links will also be very much appreciated. If anyone has any experience with NI USB 8451 with Labview be kind enough to guide me

    Sincerely,

    Gisela

    If you have very little experience with LabVIEW and SPI, the 8451 is a good choice. It's expensive, but it's really easy to use and configure.

    The Aardvark is also a good choice. There pilots LabVIEW is also easy to use in LabVIEW. The disadvantages is that it doesn't have a lot outside of simply making SPI or I2C - in other words, it doesn't have a lot of GPIO. This can be important when control of multiple SPI devices, because it requires to select them lines individual slave.

    Dinah is really more than a product of laboratory, or something that is meant to be placed inside a camera. It is expensive, compared to the other two, but it doesn't have native drivers in LabVIEW. On the contrary, it comes with a DLL you can call from LabVIEW. I wrote a set of LabVIEW drivers for it, but I can't distribute.

    There are other products on the market, which some will resemble a device series to your computer. For example, you would use VISA to communicate with the SPI controller, and it would appropriate communication of SPI.

    Among the three mentioned here, I would suggest that you go with the neither of the Aardvark, one.

  • With LabVIEW how to control an instrument with a RS232 output, using a USB RS232 converter cable.

    With LabVIEW how to control an instrument with a RS232 output, using a USB RS232 converter cable, since I do not have rs232 ports. I have two instruments I want for the control in this way. One is a guarantee of strength Imada SPAS with RS232 output. The other is a micrometer Panasonic HL-G103-S-J laser sensor which is RS422. I have done significant programming LabVIEW using GPIB, but I have no experience with devices such as these. No matter what tutorial or examples would be greatly appreciated.

    Thank you.

    When you plug the USB-RS-232 converter, it installs a driver under Windows which makes it look like any other RS-232 port.  You may need to install the driver of everything that came on the CD with the converter.  It will get a Com as Com5 port number according to what is the next available number.

  • Sorensen XEL power is compatible with labview

    What Sorensen XEL power compatible with labview? I'm in the automotive field of vehicle dashboard. I want to test and simulate different transient conditions that may generate noise in the pipe I needed of a programmable power supply. Currently I have a NIcompactRIO configuration. I needed voltage output cards higher simulation and test requirements and special conditions.

    I was told that the Sorensen XEL series is compatible with Labview. Is this fair? The other question I have is NIcompactRIO uses IP Ethernet, but Sorensen communication RS 232 communication. Can I have some possible parallel communication with Labview frontend Protocol, controlling all the two from the same unique computer.

    Third, what are the function blocks required in the VI for Sorensen.And programming last but least, where can I get a drivers Sorensen RS 232?

    Nothing in this VI with Ethernet communication so I don't understand what you're asking.

    Rather than add a \r\n with each entry, I recommend you set up VISA to automatically add and I would also recommend that you enable the character to stop playing as well. Then, there was no need for the VISA to the Serial Port bytes and these expectations. Look at the example of advanced series to learn how to set the VISA property to add a termination character.

  • Modbuss problem with Labview 12 DURATION

    Hey guys / girls.

    I have a labview.exe work created with Labview 12 on a PC with the completely installed verstion LV12

    As I said created and built and tested again on the pc

    On another pc I just installed labview RT and the exe to bed

    the program consist of modbus

    but it does not work.

    Y at - it an additional package, I need to add more to the Runtime to get my Modbuss to work

    additional information:

    I tried two different com Modules while both B & B electronics is with drivers other works out of the 232/485 with drivers troubleshooting

    It is on Win 7 32 bit labview is 12 32-bit

    -Kurt

    What modbus library are you using? DSC or VISA? You have the runtimes for what you use.

  • Connect two targets in real time via TCP/IP

    Hello everyone

    I need to connect two targets of RT on TCP/IP protocols

    I have two sbRIO Council related to a single host PC through an Ethernet router

    and I have two IP address of these two targets, how do I RT - RT ping using the TCP/IP protocol...

    Thank you

    Syed irfan

    irfan789 wrote:

    As I am with RT if the IP address of the two targets has a role to play in this communication via TCP/IP

    In order to open a TCP connection, you must provide the IP address of the remote computer. It does not matter what operating system, the remote computer is running. If that does not meet your question, so I don't understand what you're asking.

  • Oscilloscope agilent DSO 80404 B, PB acquisition with labview, URGENT pilot

    Hello

    I used a tilt. Agilent DSO 80404 B, I would like to acquire the trace as represented on l tilt (see figure of the first file oscilloDSO 80404B as an attachment). Pour CELA j use under labview 8.0. Specifications 8000 series labview drivers offered to pay it, I used the instance en VI "only waveform playback. I was supposed to be able to represent this track on my computer no via such labview on the tilt. but it is a problem: the trace n is not parfaiteet represents formed staircase as you can utiiese in the second file called form_byte.

    Could someone help me get the data via labiew correctly IE like the one depicted on the tilt?

    Thanks in advance

    The "revision of the driver: 2.1 with labview 8.0 EST." Yes I used the examples, but the result is without effect.

    I post you used VI.

    Waiting for your answer I immerse myself in the privileges that you sent me.

    Thanks in advance for your repnse.

  • Trying to copy a video on my DVD recorder via AV connection with adapter. Audio is fine, but no video on the screen

    Trying to copy a video to my iPad Pro on my DVD recorder via AV connection with adapter. Audio is fine, but no video on the screen

    Which sector adapter are you using?  The digital adapter AV output is digital, which is not compatible with analog VCR.

    iOS: on adapters AV digital Apple

  • VIMBA with Labview

    Hello

    is there anyone who have successfully used VIMBA SDK with Labview?

    You need to download version 1.3

    Use the LabVIEW import DLL

    Point to the VimbaC dll, not C++

    Put _WIN32 in the compiler directives.  This you will get part of the way.

Maybe you are looking for

  • help me get rid of this!

    This connection is Untrusted You asked Firefox to connectfirmly to support.mozilla.com, but we cannot confirm that your connection is secure. Normally, when you try to connect safely,sites will present a reliable identification to prove that yougo to

  • R series: compared to current output output impedance adaptation

    Hello I wonder about the output impedance specified for SMU-782xR and some other adapter module ike l 6581. The specified output impedance is 50 ohms. To get the best signal integrity, it is imperative to adapt the impedance using a cable (transmissi

  • Can I uninstall the Service Pack 3 on a computer preloaded with XP Professional/SP3?

    I need to uninstall the Service Pack 3 of a delivered computer pre-loaded with Windows XP Professional with Service Pack 3. Is this possible? I read the support page for this, but to see if there is a difference between having SP3 preinstalled or upd

  • Printing from internet using XP, pages are preceded by a page and a half of nonsense characters.

    When you try to print a page or pages of the internet, I get 1 1/2 pages of porridge gobble, start by ': $(modèle dowloadButton).  This happens both of my printers, so I guess it has to do with a setting of XP.  This just started happening.  Help!

  • Windows 7 on a HDX 9010nr

    Windows 7 Ultimate Upgrade from Vista Ultimate stopped and said that that wouldn't work with Bus controllers series DS1M12.  Is the HDX 9010nr supprted?  It was only 18 months old.  I'm stuck in the middle of the installation. Thank you