Rs232 and TC65

hello everybody, i'm new here and i need some help.
i'm trying to develop an application on SIEMENS TC65. There is a communication using RS232 between the terminal and a coffee machine. The machine is abble to send data randomly. The terminal must receive this data and make others things that's why i'd like to find a way to check the connection and IN THE SAME TIME to launch others methods. I am using the CommConnection interface but i'm not sure it will allow me to do what i want.
thanks

Hi there!
I have moreless the same problem as Emmanuel, I�m searching for code that implements a comunications between the TC65 and any other equipment via RS232. Can you help me in finding the Java-ME code to write and read from the TC65 RS232 port. Is for a telemetry solution, that I have to find if the TC65 is the right modem to do the job.
Regards
Antonio

Similar Messages

  • Device with both RS232 and TCPIP

    Gurus,
    I'm writing a driver for a new instrument I designed.  It has an RS232 port and an internal RS232<>Wifi module from Roving Networks.  I wrote the RS232 vi's using VISA.  Now I'm trying to figure the best way to handle both types of comms within one vi.  So far I added my TCP address into MAX, it shows up in the list of VISA's.  
    I put in a boolean switch on the panel (select TCPIP or RS232) and a CASE in the code to switch between initializing RS232/TCPIP.  Looks sloppy though...  It keeps crashing on a VISA READ ("lost comms"?) even though the init works fines with no errors, but I'll try to debug that..
    I'm a HW guy creating drivers, don't know all the "fun" stuff you guys do 
    1 - What is the best practive way to implement a dual-comms driver?
    2 - Does any PC I install this driver on have to have MAX on it (to configure the TCPIP socket?
    3 - Can anyone share an init / write & get data vi's please who has done this?  My device only has 4 values to read/write, so very simple.
    Thanks!!!!
    Streve

    You can format the VISA resource name directly allowing you to communicate using VISA using either the RS-232 or TCP connection. The piece of your code that will need to care about this is the initialization. Everything down stream will simply use VISA read or write. If you don't know the exact size of the returned data or you don't have a delimiter for your messages a method to read unknown sizes of data is to read a single byte. This read will use a longer timeout. Once a single character is read read chunks of data (some reasonable size) but use a much shorter timeout. The logic here is that there will be a break between messages. The shorter timeout should be less than the expected interval between messages.
    Since you will be using both serial and TCP communications don't use the Bytes At Port method in VISA. This only applies to the serial connection and therefore your general read/write VIs will have to have logic to differentient behavior based on the connection type. You should avoid doing this and limit that to the initialization only.
    I have implemented several variotions of a generic communication interface library. The most recent is LVOOP. I am not at liberty to post these however. But it is very doable.
    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

  • ??? ALARM??? -no connection between rs232 and PC when using serialread.vi

    i send you my code and whats happening when there is no connection with my RS232.the program execution doesnt stop but there is no data flow from the RS232.how to detect that there is no connection.
    Attachments:
    Pita.vi ‏87 KB
    Pitai.ace ‏23 KB

    There is not much execution control in the code; the initialization might be done prior or after the write, and you do a read without knowing how many bytes there really is at the port. Use dat flow to ensure that things execute in the correct order, and use the bytes at port to check whether the 7 byte reply has been received, do not read and decode before bytes at port reports that there is 7 bytes available...
    MTO

  • RS232 and PIC16F877A reading problem

    Hi, sorry my bad English.
    I have pic16f877a and labview 7.0. I try to transfer some information(e.g temperature) to my PIC and view that information on LCD-screen. A communication idea is following:
    Traffic if pic starts communication:
    1. PIC send int (e.g 123) to labview
    2. labview read int(and identify what measurement is equivalent with this int)
    3. labview send back string which includes measure value
    4. PIC prints this string to LCD-screen
    Traffic if labview starts communication:
    1. Labview send int to PIC
    2. Labview send string to PIC
    My problem is that I get wrong values from PIC. If I test algorithm on terminal program that is okay.
    For example if PIC try to send 125, I can see in labview 512 or 215.
    Does anyone have build good vi which reads characters from rs232? (I have downloaded and test labview's examples) What kind of vi structure is good? One difficult is that pic and labview both can start communication so I have to read characters all the time.

    Kheila,
    your problem sounds to me as missed synchronisation. As your protocol seems to contain just plain text, so please add a sync char to the end of ALL your messages. Define it as end_of_message in VISA and read complete messages. I'd suggest 0xA (LF) as sync char.
    You know, serial comm means, that all bytes are sent out in the order they appear at the send command (here VISA_write). AND they are usually read at the UART level in the very same order. But depending on the actual situation (system load, UART buffer size, system buffer size, but more important: your coding style) VISA may miss one or the other byte. If you have no sync mechanism, than you'll have no chance to regain sync state after you've lost it once. If you have a sync mechanism, you'll lose one or two messages in such a case and regain sync with every new complete message.
    Example messages (blank space meant as pause between each message)
    123 123 456 122 123
    read when byt 3 was missed:
    121 234 561 221 23
    If instead a sync mecanism is established, you'd get
    12- 123 456 122 123
    HTH and
    Greetings from Germany!

  • RS232 and Graph

    Hello ! 
    I am new here and I would like to ask a question about Labview. 
    Can you help me ?
    Actually, I am working on a project with a PIC.
    The PIC sent 3 informations (that evolves in time) to Laview (in my case, it is current, tension and time)
    To send these informations, I use RS-232.
    Moreover, I have used examples from Labview called 'Basic Serial Write and Read'.
    It is great ! It works and Labview can display my values thus : 'current;tension;time\n'
    I would like to display these datas on 3 graphs.
    I think my first step should be : De-multiplexing or try to convert my data (string made by RS232) into float.
    What do you think ? How can I do that ?
    Thanks for your help and advices.
    Solved!
    Go to Solution.

    Hello !
    Thanks for your replies !
    I have followed your advices Lynn and the problem seems to have disappeared. Great !
    Actually, I would like to ask just two questions about this topic and it will end my problems (sorry, I asked a lot of questions )
    1) What about sampling and chart ? 
    Thanks to my PIC, I can measure current,velocity and tension. And I send datas every 200 ms. 
    Do the charts display my values every 200 ms ?
    2) When I start "Writing", my charts don't start at 0 second. Why ? It looks like there is already something.
    I recorded another gif in order to show you what's happened.
    About what you did the last time, your method with Index Array is clearer and smarter. I will remember that.
    [QUOTE]The constant array connected to the divisor input for velocity has 9 elements which are zero. Does dividing by zero produce the scaling you want?[/QUOTE]
    About the scaling, I would like to divide each element (velocity, current and tension) by 10. So, I just used the divisor as you did.
    I don't use the part 'Original velocity divisor'.
    [QUOTE]The Read (and perhaps the Write) should be inside a loop. Do not use Run Continuously to operate this VI . That results in the port being configured and closed repeatedly. This could also contribute to your loss of data.[/QUOTE]
    Alright, I added a While Loop instead of the old structure and I have deleted the last part in order to Run Continously
    [QUOTE]Personally, I would use the Scan From String as mentioned by crossrulz. One function instead of two.[/quote]
    Thanks for this advice. I am going to keep that in mind
    Thanks for your help.
    Attachments:
    Basic Serial Write and Read2.vi ‏35 KB
    test5.gif ‏1396 KB

  • RS232 and how to build some datas into a waveform

    Hello everyone !
    I would like to ask you a question about how to build some datas into waveform.
    Let's me explain :
    Actually, I am working on a project with a PIC.
    The PIC sent 3 informations to Laview by RS 232 :'velocity;current;tension\n'
    Lynn and Crossrulz help me to make a diagram that allows to read datas and displays them with charts.
    It works perfectly.
    Now, I would like to display some datas from a sensor (dynamic datas)  and double datas from RS232 on the same chart with different plot.
    So, I have to build double datas into waveform,  convert double datas into dynamic datas.
    I have tried something : I used 'Convert to dynamic data' function but it doesn't work and I don't know why.
    Can you help me ?
    I join you :
    - VI
    - a gif that shows what's happening
    - screenshot
    Notice : I used 'simulate signal' to represent a sensor
    Thanks for your help
    Attachments:
    test5.vi ‏84 KB
    test7.gif ‏685 KB
    diagram.JPG ‏77 KB

    Hello Crossrulz !
    Thanks again for your help.
    I have found Build Waveform but I get a strange result.
    As first step, I have simplified my problem and I have just tried to build a waveform from my datas.
    Since Build Waveform must have an array as input, I have used  Array Subset.
    As result, I don't get a plot but if you pay attention, you can see a little white dot around my value.
    How can I fix that ?
    Thanks again
    Attachments:
    test_build_waveform.vi ‏19 KB
    diagram2.JPG ‏59 KB
    build_waveform.gif ‏597 KB

  • Logging RS232 and analog data

    Hi guys,
    I'm trying to log data from my RS232 instrument, and also include a couple of analog inputs. 
    The vi works "ok", but not great.  First off, the frequency on the daq assistant needs to be set very high to see a resonable refresh rate on the screen.   Secondly, the time sync is off on the data being logged from rs232 (unbundle node) and the analog inputs.
    I like using the daq assistant and the write to file vi only because they are simple to set up.  Not too familiar with any other methods.
    Any thought on how to make these 2 issues (plus a few more) better?
    Formatting the front panel is still being tweaked. see attached.
    This is a modified instrument driver vi, and the instrument driver vi library.  Hope this works for you guys.  Thanks for the help.
    thanks
    Darren 
    Solved!
    Go to Solution.
    Attachments:
    als8v0.llb ‏363 KB
    AlicatReadLooped8V0 trial.vi ‏240 KB

    I've turned the baud rate up to 38600 thinking that may help my problem.  I'm not really clear what that instrument driver vi is sending to the instrument  - I'm simply opening a visa, and getting data streaming from the instrument.....? At least that's what I assumed.
    So I disabled all the other data stuff, including the "set pont" vi which basically just changes the valve opening amount, and I still don't get anything greater than approximately 2-3 points per second.  I was attempting to eliminate everything else from the code to diagnose the source of the slow data rate.  This told me it's definitely the instrument driving the data rate.
    However, when I open up hyperterminal, data streams by very fast.   Seems way faster than 2-3 data points per second.
    I attempted to turn the device ID from A to @, thinking this should turn the data to streaming from polling, but the communication didn't work (referring to  my vi didn't display data any longer).  .
    I'd like to get about 10 per second.  I'm measuring pressure and mass flow, so that's about all I should be logging for a physical parameter
    Thanks for the help.  I need it.  haha
    Darren.
    Ravens Fan wrote:
    If you had absolutley nothing else going on, no DAQ assistant, no logging to file, just reading data from your RS-232 port, how quickly could your loop run?  Dealing with serial ports, it generally takes time to send the command, wait for the instrument to act on it, and then wait for the response to come back.  Three times per second doesn't sound that bad.  What is your baud rate?  If the messages are short, and the baud rate is high enough, I don't think you can really expect more than about 10 readings per second from a serial device.

  • RS232 and LabView: It won't make new lines

    Hi everybody,
    I've got a microcontroller board here which sends some text over RS232. For example
    [quote='HTERM']
    UART'4': Key SW2 pressed<\r><\n>
    UART'4': Key SW2 pressed<\r><\n>
    UART'4': Key SW2 pressed<\r><\n>
    UART'4': Key SW2 pressed<\r><\n>
    UART'4': Key SW2 pressed<\r><\n>
    [/quote]
    In LabView I can see
    [quote='LabView']
    UART'4': Key SW2 pressed
    [/quote]
    I think I need some kind of buffer. I compared my VI to a LabView made hyperterminal. I filtered all the receiving thins out and optimized my own VI but it won't make several lines  like it has to make it.
    I attached my and the terminal (hyperterminal) VI. Maybe someone know why it won't work or rather where the differences are.
    Kind regards,
    Marc
    Attachments:
    Lesen_Und_Anzeigen.vi ‏8 KB
    Terminal.vi ‏82 KB

    I found a solution that works. But the main memory of my virtual winxp is too small to handle it (192MB). Hm after a restart (the program crashed) it works fine .
    [quote="LabView"]
    UART'4': Key SW2 pressed
    UART'4': Key SW2 pressed
    UART'4': Key SW2 pressed
    UART'4': Key SW2 pressed
    UART'4': Key SW2 pressed
    UART'4': Key SW2 pressed
    UART'4': Key SW2 pressed
    UART'4': Key SW3 pressed
    UART'4': Key SW3 pressed
    UART'4': Key SW3 pressed
    UART'4': Key SW3 pressed
    UART'4': Key SW3 pressed
    UART'4': Key SW3 pressed
    UART'4': Key SW3 pressed
    UART'4': Key SW2 pressed
    UART'4': Key SW2 pressed
    UART'4': Key SW2 pressed
    UART'4': Key SW2 pressed
    UART'4': Key SW2 pressed
    UART'4': Key SW2 pressed
    UART'4': Key SW2 pressed
    UART'4': Key SW3 pressed
    UART'4': Key SW3 pressed
    UART'4': Key SW3 pressed
    UART'4': Key SW3 pressed
    UART'4': Key SW3 pressed
    UART'4': Key SW3 pressed
    Welcome to UART4 of the SK-FR-144PMC Evaluation-Board
    ================================================================
    After Reset => 7-Segm. LED-Display shows counter
    Key SW2, SW3 will change count direction
    UART'4' will be echoed
    UART'5' will be echoed
    UART'5' will be send to CAN with ID #3
    CAN ID #2 receive will be send to UART5
    Key SW2, SW3 will result in UART output
    ================================================================
    [/quote]
    Maybe someone would take a look
     By the way: How's my english? Every time I have the chance I try to get some response about it
    Thanks for helping me
    Best regards,
    Message Edited by BlackDevil on 03-02-2010 12:45 PM
    Attachments:
    Lesen_Und_Anzeigen.vi ‏12 KB

  • Need USB to RS232 and USB to LPT adapters

    Hi, My Toshiba Satellite A100 has only 4 USB ports. I need parallel (LPT) and serial (COM) ports. How to solve this problem? I have adapters USB to LPT and USB to COM, wich work on my desktop, but they not work on notebook. Thank in advance.

    I have read on some sites that not all USB adapters work properly.
    You should firstly google around for more informations about such adapters.
    If you are sure that it will work so you can buy it.
    Anyway, the PCMCIA is a good solution
    Check this:
    Serial port:
    http://www.elandigitalsystems.com/interface/sl232.php
    Parallel port:
    http://www.transdigital.net/
    http://www.superlogics.com/parallel/port-expanders/spp-100/99-961.htm

  • How to Extract data from a flat file and how to upload it into table

    Hi
    i want to extract the data from a web page, that data i want to keep in text file.
    from the text file i want to read it and i want to upload into table
    can any one help me its very urgent

    here is my 20min try without debugging (needs a rs232 and loopback connector )
    use the probe and highlight the dataflow to see how it works.
    as always:  there are many ways to solve your problem
    Greetings from Germany
    Henrik
    LV since v3.1
    “ground” is a convenient fantasy
    '˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'
    Attachments:
    read write file to RS232.vi ‏69 KB

  • Tecra S1 doesn't boot and hangs at (boot) splash screen

    Tecra S1 Model PT831E-107EQ-GR
    Problems started a month ago. It randomly didn't booted. After some power off/on tries it finally booted and worked properly. Because it happened more often I've bought a new hard drive (Toshiba 40 GB). I've had Acronis True Image and planned to make a disk clone to the new drive. The problem is that a notebook now doesn't boot anymore so I cannot boot it from A CD nor hard drive. It stops at "In Touch..." logo with "Press [F12] for the boot device selection menu" text and doesn't react any key. I tried to boot with no CD, no hard drive - the same. I also connected internal HD using ATA-To-USB adapter - the same. Does it mean that's not a disk problem but motherboard or other components? Is it possible to enter BIOS before boot selection screen?
    Regards,
    Jacek

    Problem solved. There was a broken PCB under the CPU socket. I've found that pressing with my finger and holding CPU while booting allowed to startup the system while releasing the finger caused system hanging and its total crash. Our local service tried to repair it but with no success. Finally two days ago we've found a working motherboard (a used one) for about 200 USD and now I'm waiting for installing it in the laptop. Th regular price for a new one (about 400 Euro) is too much, but 200 USD is OK. I do like the laptop because of its ports (LPT, RS232). It's used for programming and controlling some older devices. Newer laptops have no LPTs nor RS232s and it's not easy to find a working USB adapter because the software we're using is even from DOS times and has hard-coded IRQs for those ports.
    Anyway, I hope it'll back from the service fresh and new, and of course working ;)
    Thank you for your tips.
    Regards,
    Jacek

  • How do I reset controls and continue or reset controls and stop?

    I am trying to find a way to reset 16 controls and 8 indicators and continue or exit.
    I have a system where a change in input will cause the LabVIEW to contact another processor via RS232 and send the change. There are eight seperate circuits to control and each has an enable and voltage input. I have the individual circuits operation with a change of either input but when I try to reset all 16 inputs and 16 indicators then continue or reset the inputs and indicators and stop (I need to do both) the system hangs up. In the debug (light bulb on) mode the system works but normal operation the system hangs up.
    I have attached the VI's for this system.
    Attachments:
    event_10_28_04.vi ‏230 KB
    Diode_Ctrl_2.vi ‏270 KB

    I changed a couple of things in the way you were doing the reset and stop. Look at these changes and see if they work OK.Also the vi named diode control if there is no dependency as to which one gets set first then the way you have it is ok but if there is a dependency the way you have it wired there is no guarantee which one will run first.
    Hope this helps
    Joe.
    "NOTHING IS EVER EASY"
    Attachments:
    event_10_28_04[2].vi ‏226 KB

  • Help needed with RS232-bluetooth

    Dear all,
    I would first like to thank you for taking your time and reading my message.
    I am using two rs232-bluetooth dongles to communicate wirelessly with two PCs.
    I am trying to send two waveforms from one PC to the other. I am doing this using flatten to string and unflatten from string.
    The company states that the rs232-bluetooth dongles are a direct cable replacement.
    I am doing this having adapted the Advanced Serial Read-Write example that LV provides.
    My problem is that on the receiving PC when unflattening from string i cant find and wire a '1-d array of DBL waveform' to the type of the unflatten vi.
    I have used hyperterminal and i know that these dongles work at distances exceeding 400m.
    I have also managed to send just one waveform wirelessly but i then sometimes get 'junk' data(either +some huge number or -some huge number). I am using the 'bytes at port vi' and it seems to me that i might have a problem with processing the data in the right way.
    I would thus like to know if there is a way to process the 'bytes at port' a few at time.
    I am no Labview expert so i would greatly apprecieate any help, preferably in some example vi's
    or changes on my vi's.
    I have read all the knowledge base on rs232 and have looked at a huge number of other peoples questions on rs232 but to no avain.
    I am using LV8 and both PCs have reasanoble CPU and RAM memory.
    Thanks
    Alex
    Attachments:
    Advanced Serial Read Write.zip ‏100 KB

    bogiasac wrote:
    Dear all,
    I would first like to thank you for taking your time and reading my message.
    I am using two rs232-bluetooth dongles to communicate wirelessly with two PCs.
    I am trying to send two waveforms from one PC to the other. I am doing this using flatten to string and unflatten from string.
    The company states that the rs232-bluetooth dongles are a direct cable replacement.
    I am doing this having adapted the Advanced Serial Read-Write example that LV provides.
    My problem is that on the receiving PC when unflattening from
    string i cant find and wire a '1-d array of DBL waveform' to the type
    of the unflatten vi.
    I have used hyperterminal and i know that these dongles work at distances exceeding 400m.
    I have also managed to send just one waveform wirelessly but i then
    sometimes get 'junk' data(either +some huge number or -some huge
    number). I am using the 'bytes at port vi' and it seems to me that i
    might have a problem with processing the data in the right way.
    I would thus like to know if there is a way to process the 'bytes at port' a few at time.
    I am no Labview expert so i would greatly apprecieate any help, preferably in some example vi's
    or changes on my vi's.
    I have read all the knowledge base on rs232 and have looked at
    a huge number of other peoples questions on rs232 but to no avain.
    I am using LV8 and both PCs have reasanoble CPU and RAM memory.
    Thanks
    Alex
    Bluetooth and >400m. That sounds VERY strange!
    First you should do some protocol. The problem you are running in is
    that on the receiver side you are just reading how many data there is
    and then reading it. LabVIEW is very fast so it is likely to read the
    number of bytes at serial port long before the entire flattened string
    has arrived so you end up with an incomplete flattened string and the
    unflatten function will recognize that the data can't be complete and
    refuses to attempt to unflatten the chunk.
    A good solution would be to first send the length of the flattened
    string by Flattening that number which will result in a 4 byte string.
    Then send the actual flattened string. On the receiver side wait until
    you have at least 4 bytes at the serial port, unflatten those 4 bytes
    to an integer and then read the actual string using this number as the
    number of bytes to read. If you have very large flattened data and the
    serial communication baudrate is slow you may first have to wait again
    until the amount of bytes the flattened string should consist of has (almost) arrived before
    trying to attempt to read it since the read timeout might kick in
    before all data has arrived.
    Even better would be to read in a loop every 10 seconds or whatever
    depending on your baudrate, whatever data is present at the serial port
    appending it to an internal shift register until you have read the
    amount of bytes you have firstly received. Then take out the indicated
    amount of bytes putting a possible rest back into the shift register
    for the next loop to use (if it is already there it would contain at
    the beginning four bytes being the next size of flattened data to
    follow) and pass the extracted data now to the Unflatten from string
    function.
    This last apporach if done correctly is indeed a little more
    complicated but it does make the difference between an application that
    will work sometimes and one that will work continuesly for long amounts
    of time. If you need to run this for very long times such as days it
    would be a good idea to have the receiver send an acknowledgement after
    each flattened string indicating if everything went smoothly and have
    the sender only send the next flattened string AFTER an acknowledgement
    has been received.
    Rolf Kalbermatter
    Message Edited by rolfk on 04-13-2006 11:29 AM
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • How to decode a set of datas received from serial port and display image on a canvas based on CVI ?

    Hi !
    I have received a set of datas via rs232 and it contains picture messages. I have to decode the datas first and then display them on a canvas.
    I have known several functions that may be used . Such as
    int SetBitmapData (int bitmapID, int bytesPerRow, int pixelDepth, int colorTable[], unsigned char bits[], unsigned char mask[]);
    int CanvasDrawBitmap (int panelHandle, int controlID, int bitmapID, Rect sourceRectangle, Rect destinationRectangle);
     However,I don't know how to set the following parameters according to the actual pixel values and color values.
    int bytesPerRow, int pixelDepth, int colorTable[], unsigned char bits[], unsigned char mask[]
     What's more,I have no idea how to decode the datas.
    The  attachment is a incomplete project. I will be very appreciated if anyone could help me .
    Best regards.
    xiepei
    I wouldn't care success or failure,for I will only struggle ahead as long as I have been destined to the distance.
    Attachments:
    Decode and display image.zip ‏212 KB

    Well, things are getting a bit clearer now.
    1. Your image is actually 240x240 pixel (not 320x240 as you told before). The size of image data is 57600 bytes which corresponds to that frmat (I was puzzled by such a data size compared with larger image dimensions!)
    2. The image is a 8-bits-per-pixel one; this means that you must provide a color palette to create the bitmap
    3. You cannot simply copy image data into bitmap fields in CVI: CreateBitmap always produce an image with pixeldepth matched with display colour depth (normally 24 or 32 bpp)
    All that means that you must:
    1. Create the appropriate color palette with 256 colors: it may be a grayscale or color palette depending on camera characteristics. Grayscale palette can be found in my sample project, while sample colour palettes can be found here (here the description of a "standard" 8-bpp color palette)
    2. Create the bits array correctly dimensioned for the color depth of your monitor
    3. Get each pixel value from the camera, lookup in the color palette for the appropriate colour and create the RGB informations into the bits array in memory
    4. Display the bitmap on the canvas
    As a first step, I would configure my system for 256-color display setting, create a bitmap and simply copy image data into it: you should be able to get the correct image back to your screen.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • Can I use RS232 library for RS485 communication? Alternatively, can I use NI Serial with non-NI 485 boards?

    Hi-
    I have successfully used RS232 library to communicate with one RS485 device.  I now have multiple devices using the same Rx and Tx lines.  Three of the 4 devices have their own dll and can communicate effectively despite each other.  My problem occurs when the one device I am talking to using the RS232 library now has to share the lines with the other devices.  Are there any ways around this? All I can think of is to see if I can use the NI Serial library commands with my non-NI PCIe card.  OR, buy the NI 485/422 card and use the NI Serial commands.  Any other suggestions? 
    Thanks.

    The fundamanetal difference between RS232 and RS485 is the ability to connect to multoiple devices. The devices also normally work in a "speak only when spoken to" mode and this is achieve by adding a device address in the protocol. The NI serial library is oblivious to most of this and doesn't care if it's RS232 or RS485. The problem with your 232 device is that it will speak everytime when any other device is adddressed, so you should make it comply to 485 standards. This can be done with RS232 to RS485 convertors. You can do a search on Google for this. The ones I use and have the least amount of problems with is either from Advantech (<http://www.advantech.com/products/search.aspx?keyword=RS-232#search> and <http://www.advantech.com/products/search.aspx?keyword=RS-232#search>) or BB Electronics. (<http://www.bb-elec.com/Products/Serial-Connectivity/Serial-Converters/Port-Powered-RS-232-to-RS-485-...>)
    Best Regards
    Jattie van der Linde
    Engineering Manager, Software & Automation
    TEL Magnetic Solutions Ltd

Maybe you are looking for