RS232 communicat​ion with cDAQ

Hello,
I am about to commence a project which will require my LabVIEW application to communicate with an RS232 device.  I am planning on using an Ethernet 4-slot Compact DAQ module, but can't see a way to connect through.
Is this possible? Is there a C-Series module I can buy for RS232 comms?
Dave 

So you mention you have a ethernet cDAQ.  Would it then be possible to add an ethernet switch, and a Ethernet to Serial device?  I have never used one but it appears that a quick google search finds lots of modules that can take ethernet from an RJ45 and convert it to RS232 in a DB9.  Here are a few links.
http://www.perle.com/products/RS232-to-Ethernet.sh​tml
http://www.lantronix.com/device-networking/embedde​d-device-servers/xport.html
http://www.bb-elec.com/Products/Ethernet-Serial-Se​rvers-Gateways/Ethernet-Serial-Device-Servers.aspx
http://www.digi.com/products/faceted?keywords=prod​ucts/serialservers/
Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

Similar Messages

  • VISA: Communicate​ion with "imar sensor " via serial port[

    Hello
    I have problem in communication. I have one sensor imar sensor that can be easily communicate in Hyperlink but if I send same command for example "show conf" it doesn't responses It is connected with rs232 in com port 1.  it will be nice if you give me some suggestion thanking you
    regards
    Solved!
    Go to Solution.

    Yeah I can't open that (needs to be 2010 or earlier - see my first post)
    Is 57600 baud rate the one specified in the manual for your device? This needs to be absolutely correct for the serial communications to work properly.
    "If anyone needs me, I'll be in the Angry Dome!"

  • Desperate questios on RS232 Communicat​ion

    Hallo all expert,
    The attachment is a vi which is expected to write/read data to/from COM1 of my machine. For verification, I simply short circuited pin 2 and 3 of the RS232 port. However there are some questions following my experiment:
    1. In the chart the label of x-axis can not be restored to be 0 to 100, it automatically increases without limits. I wish it start from 0 instead resuming a time instant;
    2. In the "read string" field the display is not updated during my typing characters in "string to write", although I have enabled "Update Value while Typing";
    3. The display in the chart doesn't correspond to what I have typed. Should I need more functions in order to show up the data?
    My final purpose is to use this interface to communicate a pic chip which I programed to realize A/D conversion. At begin, a value is ought to be sent to the chip where the value is compared and if it is "1"f, then the conversion is initiated, and the value is read in the chart and could be also saved a excel file for documentation.
    I'm wondering how to input value "1", instead string "1". I successfully type "Ctrl-A" in HyperTerminal, but have no idea which function is due to be used to realize the corresponding conversion.
    Attachments:
    myrs232r_r.vi ‏36 KB

    There are several ways to send a hex 01 with the VISA Write, and all have been explained numerous times onn the forum. One wya is to simply right click on your string control/constant and select Hex Display. You can right click and select '\' Code Display and enter \01. You can have a numeric control and use the Byte Array to String. You can have a numeric control and use the Typecast function to convert to a string.
    Your error can be due to the device not sending any data back, hence the VISA Read times out waiting for non-existant data. If you sometimes get data and are unsure of the length, you need to use VISA Bytes at Serial Port wired to the byte count input of VISA Read. This has also been discussed numerous times on the forum.
    Message Edited by Dennis Knutson on 04-19-2007 06:15 AM
    Attachments:
    write hex to serial.PNG ‏4 KB

  • It's better or necessary open and close communicat​ion with instrument every loop?

    I must communicate with my instrument, but I must change its value, for example temperature, every loop. See the Figure to understand:
    I think that it is better if I open communication with my instrument out of while loop so I many operation: if I put Open VISA in While loop I open VISA session every loop, instead I think it is not intelligent. Can I open VISA SESSION out of the while loop or it is an error for EXCELLENT LABVIEW VI and I must open and close VISA SESSION every times I must talk (and set) with instrument? What is the better way?
    Message Edited by Michelle1892773 on 02-22-2010 02:00 PM

    Something like this?
    I do have to say, i don't know what is happening in the false case of yours, but if nothing happens with the 100 that is wired to the shift register, once you enter the true case, the value in the shift register will always be great than "i". You might as well do what I have done then. However, if something does happen with that number in your false case, then keep it the way you have it.
    That being said, why is the condition there to see if it has looped 100 times before doing the visa write??
    Message Edited by for(imstuck) on 02-22-2010 04:45 PM
    Message Edited by for(imstuck) on 02-22-2010 04:46 PM
    CLA, LabVIEW Versions 2010-2013
    Attachments:
    visa.PNG ‏13 KB

  • PLC Communicat​ions with Labview

    How do I view and record data from my plc to labview, currently we are using autmation directs DL205 with the 260 processor

    If the DL 205 communicates through the Modbus protocol, you could use the Modbus library. This library consists of a bunch of VIs which can be used for Modbus communication. Think of them as advanced Serial read/write VIs. However, if you are looking into monitoring, datalogging and controlling the registers, then I would recommend the LabVIEW Datalogging and Supervisory Control Module. Using shared variables, you can then easily bind, control and talk to the registers and most of the work is taken away from you.
    If the DL 205 doesn't communicate throught the Modbus protocol, then you would need an OPC server (like the NI Industrial Automation OPC Servers) and the LabVIEW DSC Module. You can then communicate from the LabVIEW DSC Module with the OPC server.
    Message Edited by Adnan Z on 03-15-2007 10:27 AM
    Adnan Zafar
    Certified LabVIEW Architect
    Coleman Technologies

  • OfficeJet 8500-A910 unable to establish two-way communicat​ion with the device

    I have an HP OfficeJet 8500 A910 installed a couple months ago.  On first install the HP software could communicate with it from two computers--one XP and one Win7.  Now I can scan to the locations I setup before and print from both computers, but when I try to run the HP software that was installed and working on either computer, I get "...unable to establish two-way communication with the device".  I have tried all the troubleshooting and downloaded the diagnostic tool.  I have disabled both the Norton and Windows Firewalls. 
    Any suggestions would be appreciated.

    I have a similar problem. Brand new HP Officejet Pro 8500A Plus, wire-connected to router.
    I am unable to print/scan/fax on my Windows XP when Symantec Endpoint Protection is turned on.  I have to disable it to be able to print/scan/fax. 
    I can do all capabilities with my Win7 computers.  This seems to be a Win XP related problem.
    I have checked for HP PML service...not listed.  I show HP Port Resolver and HP Status Server and PML Driver HPZ12 started.
    Doesn't bode well for keeping Viruses and other malware at bay.  Any suggestions?

  • Problems on serial communicat​ion with an instrument

    Hello everybody!
    I'm having some problems interfacing with an Optical Spectrum Analyser from Anritsu via RS232. It has a GPIB interface that works well already, but i need to make communication work thru the serial port. If i use Measurement and Automation, i can write and read the commands alright. But, if i use a self made Labview vi, it doesn't work at all.
    My vi consisted on:
    ViOpen - ViWrite - ViRead - ViClose
    Normally, i can know when the communication initialized alright with the OSA because the instrument enters a "communication state". When i use M&A, it enters on that state. When i use Labview, it doesn't.
    I used NI Spy to see what differences were between the M&A and Labview. Here is a list of comm
    ands issued by M&A:
    viOpen(...,"ASRL1::INSTR",...)
    viInstallHandler(...) *
    viEnableEvent(...)
    viWriteAsync(...)
    viReadAsync(...)
    viClose(...)
    My Labview VI issues the following commands:
    viOpen(...,"ASRL1::INSTR",...)
    viWriteAsync(...)
    viReadAsync()
    viWaitonEvent()
    viWaitonEvent()
    viWaitonEvent()
    viTerminate()
    viClose()
    Labview returns a "problems in serial read" error, but i know that the program doesn't even begins communication with the OSA. I suspect that the error lies on that viInstallHandle function, that is ran in the M&A routine but it isn't on Labview, but i can't find a way to make a vi that runs this function.
    Anyone can help??? I am really frustrated because i know that serial communication works, but on M&A only!!!
    Thanks in advance
    Felipe

    I consulted the document "VISA and Serial Communication" from ni.com. It
    was helpful. I'm using Labview 6.
    I don't know how to get Labview to tell me what it is doing at the level of
    viTerminate(), etc., so I suppose I may not be able to contribute anything
    to you, but I did get my serial port working in Labview recently.
    I used a loopback test, by shorting pins 2 and 3, to verify that Labview was
    successfully sending and receiving from the chosen serial port.
    I made a .vi that let me do one thing at a time, initialize, write, and
    read. This helped me realize that the instrument wasn't very fast at
    getting back to me, when I was nailing down what I thought was a receiving
    problem.
    To get Labview to use the serial port on this system I had to uninstall a
    graphics tablet driver that was taking control of the port on bootup. VISA
    would report that there was a problem until I did this. Maybe if M&A runs
    first your OS still thinks the port is being used and won't let Labview use
    it.
    Also, depending on what serial .vi I was using, I needed to verify that I
    identified the port correctly. Port 0 in Labview, in my case, corresponds
    to COM1, this is for the "compatibility" .vis. When using VISA serial .vis,
    I discovered that COM1 was identified by VISA as ASRL1. However the default
    resource name that came up when putting a VISA serial .vi into a diagram was
    ASRL2 which does not exist on this system. Manually changing the "2" to a
    "1" in the front panel solved my problems.
    Your M&A and Labview VISA seem to agree on ASRL1, which might indicate that
    isn't the problem.
    I used the VISA interactive control to tell me how VISA was doing
    identifying the ports and which ports it thought it could use during any
    given session. This is available on my system in the VISA program group. If
    there are yellow question marks on ports in this program, the port in
    question has wandered away.
    There are some examples and functions in the directory:
    Labview 6\vi.llb\instr\serial.llb
    and also in the directory
    Labview 6\examples\instr\simplserl.llb,
    as well as
    Functions --> Instrument I/O --> Serial
    and
    Functions --> Instrument I/O --> I/O Compatibility --> Serial
    Compatibility
    "Felipe Ferri" wrote in message
    news:50650000000500000004140100-1042324653000@exch​ange.ni.com...
    > Thanks for your comment, but i tested the serial read and write
    > functions that you used on your program and they didn't work...

  • Serial Communicat​ions with Allen Bradley PLC 2.30

    Does any one know the required pin outs for the serial cable from the PC com port to the Allen Bradley 1771-KG card or directly to the Allen Bradley processor? Any samples on writing TAGs to the registers?
    Roy L. Costa
    Email: [email protected]
    Catalyst Test Engineer
    General Motors Warren Tech Center (R & D)

    Hello Chad
    Thanks for the pin out information. I tried that pin out configuration Monday and it did not work. I am pasting a copy of a communication with Allen Bradley in this comment box as well as a communication with another programmer that commented in here as well. Please read it and let me know what you think. Thanks again Chad.
    Roy
    Everything works well, from the LPD OPC Server to creating TAGS..to using the HMI wizard on the front panel,...but there is no communication with my hardware. An NI Application Engineer came by yesterday and we concluded that this was a hardware ware communication problem. I talked with an Automation Engineer in Austin yesterday and he told me to try RSLinx and see if I could get it to communicate with the hardware. I like that HMI wizard, it is pretty cool! I am pasting a copy of an email I sent to Allen Bradley so you can see a little bit more information about my hardware. thanks for your help again Khalid.
    {{{I am having much difficulty in communicating to my PLC 2 communication port or through my RS-232 port on my 1771-KG card. I am using a serial (null modem) cable on com port 1 on my PC. I have Win98 operating system. I am using LabView Datalogging and Supervisory control (Lookout) software to create several HMI?s. Can you please give me the pinouts that I need to communicate with the processor port on the PLC and or the 1771-KG card? Please contact me as soon as possible for I really need to get this to communicate so I can get started on this HMI upgrade. We are using PanelMates as HMI?s, but they are 13 years old and are failing frequently as well as being obsolete. At the present time I am creating new HMI?s but we are planning to do one fuel processing line at a time and replacing the PLC 2.3 with PLC-5 and then we can use the Ethernet module. Please call me at 313-972-4635 I do not have my own email at work so you will need to email any communications to my supervisor Fred Jacobsen he then will pass it on to me. Email: [email protected] If you have something you can fax me, here is the fax number: 313-871-2835
    Roy L. Costa
    Email: [email protected]
    Catalyst Test Engineer
    General Motors Warren Tech Center (R & D)

  • Labview : No USB communicat​ion with the DLN-2 adapter board.

    Hi,
    I am trying to use a Diolan DL2-N USB to I2C/SPI/GPIO adapter (https://diolan.com/dln2). This manufacturer provides Labview drivers for the board as well as example VIs. I just want to use them to access to all interfaces via Labview. After that I will design a test setup for our last product line using this adapter board.
    What i did:
    1) Fresh install of Labview 2014 (evaluaton version). System: DELL Precision M6800 (i7) , Windows 7 Professional SP1.
    2) Install NI VISA drivers and NI-488.2 drivers (14.0).
    3) Install manufacturer drivers as explained in NI website.
    4) Run Labview.  I can see instrument driver VIs under the Function Palette and run example VIs. So far, ok (I guess)
    5) Run NI MAX. No USB ports listed. Only COM1 and LPT1 (printer port).
    6) I ran some windows test apps provided by the manufacturer to access to all the interfaces of the NXP microcontroller in the DLN2. Everything works. I can read analog/digital inputs, force digital out values and use the SPI and I2C (I see the SPI/I2C frame sin a scope).
    I have spent one day going through different links in NI website (have watcheing almost every demo video on the site) and still are not able to guess why Labview can't see my USB device.
    Any hint?
    Regards,
    Jose
    Solved!
    Go to Solution.

    Hi again:
    I' m putting pressure on the manufacturer to provide support, but still I have some very basic questions that I think a Labview expert should be able to answer.
    Attached are the driver files provided by the manufacturer along with install instructions (which I do not fully understand). I assume the iinstall description is based on a standard procedure to install third party instrument drivers , but still don't know what to do with the dln.net.dll file (I just copied it in the /Labview 2014/instr folder). Any hint?
    The manufacturer website says that the driver has been developed for Labview 2012 . I' m using Labview 2014, and assuming backward compatibility. Is that correct?.
    One more question: Is there a way of seeing within Labview which third party instrument drivers do you have installed? 
    Regards
    Jose
    Attachments:
    DlnLibrary.Net.llb ‏574 KB
    readme.txt ‏2 KB
    dln2_drv.zip ‏338 KB

  • The computer is unable to establish 2 way communicat​ion with the device (Officejet 8500)

    My printer is printing with lines running through it and sometimes in yellow (even though I'm only printing in black & white) I was going to try to use the troubleshooter but it's unable to establish 2-way communitcation... Can you let me know how to establish this communication or do you have any ideas why my printer is acting up this way?
    Thanks so much for taking the time today to be on this forum!

    Hi, try aligning the printer. Follow the instructions provided in this link to align the printer.
    http://h20564.www2.hp.com/hpsc/doc/public/display?​docId=c01615965
    You might need to reinstall the printer software to establish 2-way communication. You can download the latest software from this link.
    http://h10025.www1.hp.com/ewfrf/wc/softwareDownloa​dIndex?softwareitem=mp-110033-1&cc=us&dlc=en&lc=en​...
    If my answer was helpful please click on the "Thumbs up" button on the left to say "Thanks".
    Click "Accept as Solution" if it solved your problem, so others can find it.
    Although I am an HP employee, I am speaking for myself and not for HP.

  • Hp officejet 4500 g510n-z computer is unable to establish two-way communicat​ions with the device

    Control panel shows the printer is ready and online.  Error says computer is unable to establish communication with the device?  Solution Center says 'disconnected'? Windows firewall is disabled.

    If you are using Snow Leopard, Lion or Mountain Lion and have HP software for pre-Snow Leopard (either from a CD not marked as compatible with 10.6 -10.8 or you recently upgraded to Snow Leopard, Lion or Mountain Lion and had the HP software on your Mac before you upgraded - even if you did a standard uninstall of the old software or installed new software over the top of it) you must uninstall the software using the 'scrubber' option:
    Go to Applications/Hewlett Packard/ click on HP Uninstaller
    Click on Continue
    Highlight your device on the left pane
    Press and hold Control + Alt + Cmd keys on the keyboard simultaneously while you click on Uninstall <<<< This IS the Scrubber Option, there is no button labeled "Scrubber"
    There will be a pop up that asks if you are sure you want to uninstall ALL hp software. (At this point, if you continue, any HP printers you have installed will need to be reinstalled)
    Click Continue and let it finish
    Restart your Mac
    Now reset the printing system:
    - Sys Prefs, Print & Fax
    - Right (control) click in the rectangle listing your printers and select Reset Printing System.
    WARNING - this will delete ALL of your printers!
    - Select the plus sign to re-add it. Look for the printer, select it and wait until the "Add" button becomes available. Click it.
    Say thanks by clicking "Kudos" "thumbs up" in the post that helped you.
    I am employed by HP

  • HP Laptop Computer, computer is unable to establish two way communicat​ion with the device (printer)

    HP Laptop Computer, Windows 7-64bits, no changes made to the system before issue occured.
    Printer: HP Photosmart Plus all-in-one B210a series.
    When I click onto my Ink Levels for my printer in my computer it goes to 63% and stops. Then it says; The computer is unable to establish two way communication with the device. All systems are up and running and there is no reason I should be having a problem.
    I can print, Fax and Scan, I don't get blank paper from printer, printer is not jammed, nothing in Queue to stop it from printing. It just won't show my Ink Levels from my computer.
    This question was solved.
    View Solution.

    @marymay222, I will be glad to assist you on how to uninstall the software and drivers for the printer. 
    1. Click on the start menu
    2. Choose all programs
    3. Select the HP folder
    4. Highlight the printer name
    5. Select the UNINSTALL tab
    This will uninstall the software and drivers. After it completes, reboot the computer. 
    When it comes back on, insert the CD, if you still have it. If you do not have the CD, you can download the drivers from the website. 
    http://www8.hp.com/us/en/support-drivers.html
    **Click the KUDOS star on the left to say 'Thanks'**
    Please mark a reply "ACCEPTED AS SOLUTION" if it solved your problem, so others can find it.

  • Unable to establish two way communicat​ion with this device

    I have an HP Officejet 6500A Plus E710n-z. When I try to check the ink levels, it gives me this message on my computer. It used to work, but now it doesn't. My husband's computer is also hooked to this printer, and he cannot check the levels either.

    Hi,
    Does it happen again after you reboot your PC
    Although I am an HP employee, I am speaking for myself and not for HP.
    ***Say thanks by clicking the "Kudos! Star" which is on the left***
    **Make it easier for other people to find solutions, by marking my answer with "Accept as Solution" if it solves your issue.**

  • Communicat​e with LIN device via RS232

    Hi,
    We have a project to communicate with a card containing the LIN bus. I seek a solution to communicate directly with the card via the RS232 port. I think use an rs232 adapter and a rs232-LIN transceiver directly to the card. The links below containinformation of material:
    http://www.mikroe.com/eng/downloads/get/1276/max23​2_manual_v100.pdf
    http://www.mikroe.com/eng/downloads/get/1507/lin_m​anual_v100.pdf
    I want to know if anyone has used this solution before. Do you think this is feasible.Thus, the problem is that Labwindows allows easy implementation of code ofcommunication with the card (functions, examples ...).
    Thank you for your opinion about this solution.

    Hello,
    Sorry for the delay. Can you describe me your solution. I thought of another alternative. Can I communicate directly using the rs232 port, a LIN  transceiver and a power adapter (rs232 to TTL). Can you tell me what library I should use because I do not know really what is the principle.
    Many thanks

  • How do I use WINSOCK with VB6 to communicat​e with a Fieldpoint FP-1600 module ?

    I have a Fieldpoint system connected via a FP-1600 ethernet module to our local network. I can use CWDataSocket with Visual Basic 6 (under WinNT 4) to communicate with the fieldpoint hardware via the fieldpoint explorer and OPC server. But if I try to read multiple channels from say an analog input module, only one reading is returned (i.e. a single float).
    It would appear that in order to read multiple channel simultaneously, I need to by-pass the OPC server and communicate directly with the FP-1600. The FP100x programmers manual explains what commands to use and what responses to expect etc. There are also exampls on the NI web site using the MSComm VB control to co
    mmunicate with fieldpoint RS232 comm modules. But can't find anything that specifies how to configure the WINSOCK conection in order to achieve communication with an FP-1600.
    If someone could post an example of a VB application that can do this, or explain how I should go about it, I would be very grateful.

    Ben,
    The FieldPoint OPC Server will publish only the first element of a multi-channel analog signal. What you should do is use multiple DataSocket connections (URL's), one to each channel to get all the data that you desire. There is no drawback to doing this method (other than needing to code additional connections using the same CWDS object). The information will not be any better or worse synchronized and all the data is independantly time-stamped.
    I would not recommend that you try to bypass the OPC Server. The FieldPoint Ethernet modules use a NI ethernet protocol that is proprietary so there is no information or examples on doing direct communcation using winsock.

Maybe you are looking for

  • On Yahoo Groups, Internet Explorer show a clipboard function for posting photos. When using Firefox the clipboard doesn't show up, so you can't post photos.

    On Yahoo Groups, using Internet Explorer, one can use a clipboard function to post photos to messages. When using Firefox, the clipboard doesn't appear and you cannot post photos on group messages.

  • Render PDF to Image and Mail

    I have been trying save the following workflow as a Folder Action Plug-in: 1. Render PDF Pages as Images (To produce a jpeg of a PDF) 2. New Mail Message (To create an e-mail with the jpeg attached) 3. Send Outgoing Messages (To send the e-mail) When

  • Photoshop slow when volumes are mounted

    A few people are reporting this problem over on the Adobe forums, thought maybe someone here might be able to shed some light. Essentially, Photoshop CS2 is very slow to open files whenever network volumes are mounted. Even if the files are local, ju

  • HELP iTunes is messing up my music

    for some reason, iTunes changes the song length of all my music and either cuts the song off or makes it super long, like a 5 minute song says its 24 minutes. And when i download it to my ipod it is cuttin off songs and others say they are longer tha

  • How to refresh the tree

    hi I am using jdev 11g in my page ,i use <af:panelSplitter> panel , left is my tree ,right is tree node details with dynamic region , because the different level has the different details page, so i use dynamic region But when the node details update