RS-485: PC can send/receive data from PCI card, but LabVIEW can only send to card.

I have a master/slave setup with a 2-wire RS-485 connection via a StarTech PCI2S485 card  http://www.startech.com/product/PCI2S485-2-Port-PCI-RS-422-485-Card-with-DB9.  A Vista PC running LabVIEW 2010 is acting as the master to 6 slave devices.  I am running a driver VI supplied by the company that made the slaves. 
I've used a terminal program called Termite to monitor the ports during operation and have concluded that both the PC and the slaves are sending correct data packets (i.e. correct protocol and reasonable data).  Termite indicates that the slave's response is being received by the PCI card, but the problem is that LabVIEW simply isn't reading the response from the card.  Each time the driver VI is run it returns a "timeout waiting for slave to respond" error.  
The VI and slaves I am using are designed for both RS-232 and 485 communication.  I've verified the VI to run in 232 mode on a different COM port.  I also wrote a simple VI using the VISA functions to test the ports on the PCI card, but I've had the same results.  Hardware connections have been looked over carefully, but the fact that the card actually sends a correct message and receives a correct message indicates a different problem.
Any idea why LabVIEW can talk to the PCI card but can't hear it?  Is there anything I can do about this, or does LabVIEW generally not like StarTech's PCI2S485 cards?
Thanks,
Tim

Tim359 ha scritto:
I have a master/slave setup with a 2-wire RS-485 connection via a StarTech PCI2S485 card  http://www.startech.com/product/PCI2S485-2-Port-PCI-RS-422-485-Card-with-DB9.  A Vista PC running LabVIEW 2010 is acting as the master to 6 slave devices.  I am running a driver VI supplied by the company that made the slaves. 
I've used a terminal program called Termite to monitor the ports during operation and have concluded that both the PC and the slaves are sending correct data packets (i.e. correct protocol and reasonable data).  Termite indicates that the slave's response is being received by the PCI card, but the problem is that LabVIEW simply isn't reading the response from the card.  Each time the driver VI is run it returns a "timeout waiting for slave to respond" error.  
The VI and slaves I am using are designed for both RS-232 and 485 communication.  I've verified the VI to run in 232 mode on a different COM port.  I also wrote a simple VI using the VISA functions to test the ports on the PCI card, but I've had the same results.  Hardware connections have been looked over carefully, but the fact that the card actually sends a correct message and receives a correct message indicates a different problem.
Any idea why LabVIEW can talk to the PCI card but can't hear it?  Is there anything I can do about this, or does LabVIEW generally not like StarTech's PCI2S485 cards?
Thanks,
Tim
RS232 interface consist of 2 indipendent communication crossed lines between 2 devices (9DSub connector: Pin 2-RX  Pin 3-TX pin 5-Gnd)
RS485 interfaceis a bus, shared between 2 or more devices. (like ethernet or CAN Bus)
This means that an incorrect use of the bus can lead to a "packet collision" if 2 or more devices try to send a message on the bus at the same time or at least their messages, partially "overlap"
About 10 years ago I have used a PCI 2 RS485 port: I remember  that I have to change the status of RTS serial control line to switch between transmit and receive mode.
This can be done using the serial VISA property:
Serial Settings --> Modem Line Settings --> DTR State
or using the VI
<LabVIEW dir>\vi.lib\Instr\_sersup.llb\serial line ctrl.vi   (LV 8.6.1)
The result was that the slave device connected, send me the response after few nanosec. causing the lost of the answer.
because LabVIEW use more than some  nanosec. to change RTS property after sending message on the 485 bus calling a VISA Write.
So for me there was 2 possibilities: 
- use 2 RS485 port (1 for transmit 1 for receive echo transmit included)
 - use this converter  
         http://www.advantech.com/products/ADAM-4521/mod_2E78D425-8B08-43F6-81B0-1B924E53E075.aspx
 this converter, after sending a message on the bus, electronically switchs back to receive mode without losing a byte.
But the question is :
what does it means
"RS-485 mode supports Auto Transceiver turn around (ATTA)"
of your card?
bye

Similar Messages

  • HT1277 I can send & receive email from my ipad but for some reason I can no longer do this from my i mac.It keeps telling me that the password is not valid with the imap server.I keep entering the password but it won't accept it.

    I can send & receive email from my ipad but for some reason I can no longer do this from my i mac.It keeps telling me that the password is not valid with the imap server.I keep entering the password but it won't accept it.

    Do you have one, two or more entries in the left colum of Mail.app for your mail server(s)?  That is, do you have your Mail.app set up with either a btinternet entry, with a btyahoo entry, or both?  Or more?
    I'm guessing that you might have one account (btyahoo?) listed for incoming (IMAP server) mail, and with the outbound (SMTP server) mail is configured and named btinternet.
    Based on what little I see posted, it looks like BT uses both btinternet and btyahoo, but I'm not exactly clear on how they have their stuff set up, and their web set gets helpful and tries to help configure my mail — I don't immediately see a single web page with the mail server set-up details.  The BT email client set-up starts here.

  • Can calendar entries from an iPhone be pushed up to the cloud for iPad and computer updating? My phone only seems to be receiving updates from the cloud, but not able to send them.

    Can calendar entries from an iPhone be pushed up to the cloud for iPad and computer updating? My phone only seems to be receiving updates from the cloud, but not able to send them.

    Under Settings->Mail, Contacts, Calendars, What do you have set for the Default Calendar? Personal?
    If you don't have it set to a Cloud Calendar it will only create the entry locally.   You would need to select the iCloud Calendar specifically when creating the Calendar entry to have it sync.
    Otherwise set your default calendar to be the iCloud Calendar so all entries are created there by default. And as such get synced to other devices.

  • Why mail can't receive email from gmail today, but yesterday was fine and yahoo is fine.

    why mail can't receive email from gmail today, but yesterday was fine and yahoo is fine.

    It's a risk if you're using POP3 mail. You can archive mailboxes to another location for safe keeping.
    Or, just try adding new versions of the accounts without deleting the old ones (you can have duplicates, name them different so that you can tell them apart). If the new ones work, then you can just drag the mail folders from the old to the new and then delete the old.

  • Can I retrieve data from my iPhone 4 hard drive without the SIM card?

    Can I retreive data from my iPhone 4 hard drive without the sim?

    There is no hard drive in an iPhone, it is all solid state memory. If the phone is working you can always copy content from it. If it is not you will need to restore and activate it, and that requires a SIM card.

  • Why can't I send or receive iMessages from one person but I can from all my other friends?

    As of Last Monday I haven't been able to send or receive iMessages for one of my friends when I send the message it says delivered but that person dosent receive it but it works for all my other friends and it work if I send a normal SMS text help pls I'm really confused thanks in advance :)

    It sounds like your or your friend had gotten hit by the "iMessage bug" that Apple has confirmed.  They state it is only impacting a fraction of a percent of the iPhone users (which means it could be over 90,000 iphone users since 9 million were sold recently).  I would have both you and yoru friend restart your iPhones (hold the home and sleep/wake buttons until the Apple logo appears - it shoudl take about 10-20 seconds) then wait for the iPhone to restart and try sending an iMessage again.

  • Can't receive messages from just one group. Can receive messages from each of the individuals in the group separately

    I am not receiving messages from one particular group of people on my phone.  I am receiving other group messages and can receive messages from each person in the group individually.  iPhone 5c.

    I am right there with you. This describes my problem to a T. Only other issue I am having is group texts. Iphone users who include me in a group text still send as imessages as well, so even if I text them first and they reply, it send as an imessage. Get it together apple.

  • I can't receive email in Mac Mail but I can send them

    I use two email programmes on my Mac Mini - Thunderbird and Mac Mail. I can receive and send emails on Thudnerbird and I can send emails on Mac Mail but I can't receive the. Next to the mailbox is a squiggly line like a wave which I presume is the promblem but I don't know what that problem is.
    I don't have this problem on my MacBook Air.
    The Mac Mini is using Mac OS X Lion 10.7.5.
    Thanks
    roger

    If an option exists on networksolutions to allow you to log in to your email via your web browser then access your mail via webmail then try deleting the offending message that way.
    Chris

  • I can't receive my gmail messages anymore but I can send them.I have an IPad mini

    Ii

    Hi HollyH47,
    Thank you for using Apple Support Communities. 
    The following article provides some troubleshooting for the issue you descrebe about not receiving email from Gmail. 
    Gmail account cannot get or send email in iOS - Apple Support
    Cheers,
    Jeff D. 

  • HT4993 I have switched from Iphone to galaxy and I can't receive messages from  anyone using an Iphone.  I have contacted sprint and they thought they resolved the issue, but I still can't receive messages from iphone user. How can this be resolved

    I am having trouble receiving messages from friends that are using Iphone.  I recently switched from Iphone to Galaxy Note 3

    http://support.apple.com/kb/ts5185
    You'll need to contact Apple Support if you no longer have the iphone.

  • I can't sent mail from "live.fr" but i can recive it .

    All is in the title , I would now , how i can send mail from "live.fr" because i can recive it but i can't send it .
    I'm from france , using a brand new iphone 3GS 8go 4.3.3 on "bouygues telecom"
    Thx

    I search on other forums and i see i have to change the port 587 to the port 25 on the smtp server it seems that is working
    Thanx for the fast reply

  • Why can i receive emails on my iphone, but I can't reply to them

    I can receive emails, but when I go to reply to them I get an error The smtp service smtp.eastlink.ca is not responding.  check yur network connection and that you entered the correct info in the outgoing mail service field.  Everything looks fine to me.  My phone is through BEll and my internet is through Eastlink.  No matter what I do I can't get it to work.  I am so fed up right now.  I checked with Bell and they had no idea.  I am still waiting for a reply from Eastlink.

    would say your smpt settings are incorret or if it's over 3g your isp are blocking the ports that smtp use

  • Can not get data from actionscript db operation class?

    DBOperation.as:
    import flash.events.*;
    import flash.net.NetConnection;
    import flash.net.ObjectEncoding;
    import flash.net.Responder;
    import mx.collections.ArrayCollection;
    import mx.controls.List;
    import mx.rpc.events.ResultEvent;
    import mx.collections.ArrayCollection;
    public class DBOperation
    private var nc:NetConnection;
    private var responder:Responder;
    public var list:ArrayCollection;
    public function DBOperation():void{
    nc = new NetConnection();
    nc.objectEncoding = ObjectEncoding.AMF0;
    nc.connect("rtmp://localhost/ins");
    public function getSolutionData(sql:String):Boolean
    responder=new Responder(getSolutionList,null);
    nc.call
    ("dbo.getSolutionData",responder,sql);
    return true;
    public function getSolutionList
    (solution:Object):void{
    var solutionList:Array = new Array();
    for(var items:String in solution)
    solutionList.push
    ({label:items,title:solution[items].title,owner:solution
    [items].owner,submitTime:solution[items].submitTime,image:solution
    [items].image,imgInstruction:solution[items].imgInstruction});
    list = new ArrayCollection(solutionList);
    datagrid.mxml:
    <mx:Script>
    <![CDATA[
    import DBOperation;
    import mx.collections.ArrayCollection;
    [Bindable]
    private var solutionList:ArrayCollection;
    private function initDG():void{
    var dbo:DBOperation=new
    DBOperation();
    dbo.getSolutionData("some sql
    strings");
    solutionList=dbo.list;
    ]]>
    </mx:Script>
    my problem is I can get the data using DBOperation class,but
    I can not
    assign it to solutionList by "solutionList=dbo.list;"
    The debug information says dbo.list=null, however inside
    DBOperation
    the "list" is full of data.
    What's wrong with it??
    Thanks!

    hi,
    if u r  using bukrs and hkont as parameters in selection screen then
    SELECT * FROM bsis INTO CORRESPONDING FIELDS OF TABLE it_temp
    WHERE bukrs = p_bukrs
    AND hkont = p_hkont.
    this will work.
    if u r using then as select-option then the above does n't work.
    bcoz select-options work as internal table bcoz of that u have use the query like this
    SELECT * FROM bsis INTO CORRESPONDING FIELDS OF TABLE it_temp
    WHERE bukrs IN p_bukrs
    AND hkont IN p_hkont.
    <REMOVED BY MODERATOR - REQUEST OR OFFER POINTS ARE FORBIDDEN>
    Edited by: Alvaro Tejada Galindo on Aug 15, 2008 5:25 PM

  • I can record midi data from my Mason & Hamlin Piano Disc Pro Record through my MOTU Traveller into Logic but Logic won't send midi data out to the MOTU Traveller to the Piano Disc player

    Hello All,
    I can record midi data from my Mason & Hamlin Piano Disc Pro Record through my MOTU Traveller into Logic Pro 9.1.8  but Logic won't send the midi data back out to the MOTU Traveller and thus to the Piano Disc player. I got it to playback one time but have no idea how and when it did it was looping or something because the velocity was way high coming back in and the damper pedal was slamming down. When I play a key on the piano the midi "in" light on the Traveller lights up. When I play the track back on my computer no lights blink on the Traveller and when I did the apple midi studio test in utilities when I play a key I get the confirmation signal noise and the Traveller blinks when I click on the down arrow of the Traveller in the Apple midi studio test the midi out light on the traveller never lights and the signal light on the piano does not blink either. No outbound signal at all...
    I have messed with every possible parameter I can find and and have had help from one of Piano Disc's premier editors but no luck. The piano was prepped for me on Logic so it would work with my studio.  I'm positive it's my fault and I'm overlooking something really simple and stupid but what!??!
    Somebody please help.  Thank you all in advance for ANY ideas you might have!

    Blues Piano,
    I'm not sure if this will be a help or not.  I'm so Logic Pro wet behind the ears that I make newbies look experienced.  However, I'm not expecting many on the Apple support forums have a PianoDisc system, much less one with the new optical record strip.  While I don't have any record strip on my PianoDisc, I do have a PianoDisc iQ that's only a month old.  I've been playing converted paper scrolls from hundred year old player pianos through it via the MIDI in port of the PianoDisc CPU.  I've found I have to open the MIDI file in Logic Pro (10.0.4) then go to <Track><New External MIDI Track> then copy the existing track to that new external track.  Only then can I see in the Track inspector (defaults left side of screen with the Icon for the instrument) the "Port" parameter.  Then I can select my external MIDI device in that Port selector. 
    I've also encountered problems with the PianoDisc not using enough force on the notes or using too much force.  To get around this problem, until I understand Logic better, I've been setting minimum and maximum volicities.  To do that I right click on the track and select "Select All."  Then I right click again and select "MIDI" then "MIDI Transform"  then "Velocity Limiter."  In the resulting pop up window in the center is a drop down and you can play with the velocity from "MIN" to "MAX" along with "ADD" "SUBTRACT" etc. 
    I hope this helps.  I envy you your Mason & Hamlin.  If you need more help on this just email me at pfleischmann at mac dot com.

  • Why is my texting using data? When I have data turned off I can't send/receive. Texting is "unlimited" but it's using up all my data- help!

    Why is my texting using data? When I have data turned off I can't send/receive. Texting is "unlimited" but it's using up all my data- help!

    Texting longer text messages or any media (pictures/video/sound etc) being sent requires data to be active. However, it does not count against your data caps.
    Since you have an iPhone, you must also be aware of the difference between iMessage and SMS Text messages. The iPhone, by default, will send an iMessage when sending another text message to anyone else with an iPhone, iTouch, or iPad. This does use your data if you are not connected to wifi. In Settings, you can turn iMessage off, and then all of your texts will go through Verizon.
    Also understand- iMessage will use wifi when connected to wifi, but would need cellular data connection to work when not connected to wifi. Regular SMS text messages that are long or any media will always use the cellular data and not wifi, so will not send if cellular data is turned off, even if on wifi. However, this does not count against your cap.

Maybe you are looking for