VISA bug with serial communication on MAC !

Hello to you all again,
I have appreciated all feed back from you about a problem encountered with serial communication on the MAC (see earlier questions)
To situate the problem:
One can only read 63 bytes back from the serial port using VISA calls (without handshaking). With the old serial VIs you can read everything back. In addition the exact same VIs do not show this problem on windows platform.
I have now performed extensive tests with a loopback on the serial port and the problem still stand.
I attach two VIs to an answer to this question (for some obscure reason I can not attach them to the question?) which do the basic loopback, one uses VISA the other the old serial VIs. Please try them out o
n your computer (for Mac RS422 miniDIN you should connect pin 3 to 5 and 6 to 8 to do the loopback)(for windows RS232 DB9 connect pin 2 to 3) in loopback configuration (see also resource library).
Please post a message if the described problem also occurs on your MAC.
Thanks to all of you for your cooperation!!

here are the VIs a promised
Attachments:
serial_loopback_test.vi ‏65 KB
visa_loopback_test.vi ‏70 KB

Similar Messages

  • Problems with Serial Communication using Labview 6 and Solaris 8

    I am working on a Driver for a Temperature Controller. But I am stuck at the very basics. I am using Labview 6 and the platform is Solaris 8 on a SUN Ultra 60 Workstation. I can not get the Serial communication to work. When I am running raw (uncompiled) code it works (I can read from and write to ttya and ttyb) but once compiled I get error code 37 (device not found). I have tried the following steps to fix this with no luck.
    1) I made sure that the "serpdrv" file is in the same folder with the executable. I also make sure the serpdrv file is added as a support file when building the app.
    2) I changed from using traditional serial VI's to labview 6's new visa functions. With these "new" VI's when
    I try to initiliaze the visa device and wire a control to the "visa reference" input only 1 serial port shows up (ASRL2, missing ASRL1). I am not sure if this is part of same problem or whole new issue.
    3) I reinstalled both visa and labview 6.0.2 update hoping this would help with no luck
    4) I placed the following entry into the ".labviewrc" file
    labview.serialdevices: "/dev/ttya:/dev/ttyb"
    If anybody has had the same problem I would love to hear about it and if you have any solutions
    Jamie Shea

    Hi Jamie,
    1. Do you have NI-VISA driver installed on the machine on which you are running this executable?? If you are trying to run the executable on the same machine on which the development program has ran fine, then you can ignore this point.
    2. If you have done all the changes that are suggested by other discussions related to this topic, then try changing the Port input to Visa Serial Configure.Vi from a control to a constant and try it. In some case, I have seen this to do the trick. I think this point should solve your problem. If it does do tell me. :-))

  • How to code this with serial communication?

    Here's What I Want To Do.
    There are two computers A and B. I send some variational data, 1.2,3.4 for example, from A to B once per second. If B has received the right data, he will send "Yes" to A, otherwise he will say "No". If received "Yes", A will get ready for the next data-sending. If "No", A will send the data again.
    The examples with LabVIEW for VISA communication are all like that one computer is listening and the other one is writing all the time. So can you help me with two simple VIs for computer A and B?
    Regards.

    You need to connect the two computers' serial ports with a Null Modem Cable (Tx/Rx, CTS/RTS, DTR/DCD reversed). The put the attached vi on computer A. It will send a command from an array, and wait for a response from computer B. If the response is Yes, then the next command will be sent. If not Yes then A will send the same command again and wait for a response. There is an Abort button if you want to abort, but it will only abort the current command. You can modify it to abort the whole thing by using a while loop to replace the for loop, and using the abort button to exit the while loop. I'll leave the coding up to you. You will have to write a vi to reside on B. I'll describe it but you can code it, good practice. Computer B should start off initializing the com port, like in the attached vi. Then loop at Bytes at Port until some bytes come in, then read the bytes. Use a comparison (equal) to check if the data is good. Use a case structure to define what to send back to computer A (Yes or No). Then write it back using Visa Write. Loop around the entire thing except for the com port init. Close the Visa after the main loop.
    - tbob
    Inventor of the WORM Global
    Attachments:
    COM_AtoB.vi ‏50 KB

  • Seekbar bug with firefox browser on Mac

    hi.
    i found a bug in seekbar using Mac with mozilla firefox (but not with safari who works fine and also windows pc with IE and mozilla work fine).
    i tried to visit www.opensourcemediaframework.com and to drag the seekbar and with the mouse clicked i exit from the flash stage where the video is playing.
    i release the mouse but the seekbar dont't receive the mouse released event (and the stop drag) and if i try to move the mouse (not clicked) into the video area the seekbar continue to follow the mouse.
    thanks a lot.

    hi.
    only with mozilla on Mac, i have this:
    page: http://www.opensourcemediaframework.com/
    1. click whith button left of the mouse the thumb (the arrow) of the seekbar (button left clicked)
    2. the player go to pause and i start to drag (button left clicked)
    3. i move right the mouse (the thumb follow the mouse and video is paused - correct) (button left clicked)
    4. i move down the mouse outside the stage of the video (button left clicked)
    5. i release the mouse (unclick the button left): the video don't start because dont't receive the stop drag event
    6. i move the mouse on the stage area of the video and the thumb of seekbar follow the mouse (continue the drag but the button left is not clicked)
    7. so, i have to click on the thumb to stop the drag and the video go to play.
    i don't receive any error message, it's only a not so correct behavior of seekbar drag.
    With Windows IE and mozilla works fine, also with Mac Safari.
    The problem is only (i think) for Mac platform with mozilla.
    Thanks.
    flavio

  • Also Problems with Serial in PSE12 - Mac

    I have also the Problem in PSE12 with the serial. It say, that it is not valid.
    System: OSX 10.8.5, MacBookPro
    Adobe is becoming a real annoyance!!!!!!!!!!!!!

    We've been working on this and it should be resolved by now.
    The hope at this point is that the serial numbers you ALREAY have will work after we changed some things on our end, and the changes were propogated to the servers.
    This was potentially to be fixed by noon PST today, but we already have reports of users having success with their serial numbers now.
    I'd recommend trying to Help > Sign In and see if the serial number is accepted for you guys.
    Let me know how it goes,
    Regards
    Pete

  • Simple Serial Communication

    Hello there, I`m working on a project which involves me having to control a large number of servo's via a serial servo controller board. It's a very simple board which communicates using simple ascii commands.  I`ve tried running the examples associated with serial communication but none of them work. No devices are detected which I can link to the VISA rescource name. In matlab I can connect to the board quite easily using two simple commands:
    port = serial('com6','BaudRate',19200)
    fopen(port)
    I would assume this would be almost trivial in Labview but so far I have failed misserably. A possible source for the error would be that I`m running the student edition of labview v7.0 and it doesn't even include MAX (or if it does I haven't found it yet). Do I need another version of Labview (if so which ?) or am I forgetting something critical in the examples ?

    I don't believe that the student edition comes with any drivers. If nothing shows up in the VISA Resource Name control, you just probably need to install NI-VISA.

  • Fatek serial communication???

    Hi,
    i am working on fatek plc 20MA. i am confused how to communicate fatek plc serially with computer. i am using labview as HMI software...i am unable to connect labview with plc...even i didnt read the value from fatek communication server....is i need the ladder logic program for communication??? in which register plc stores the value which is recieve from serial port???
    how can i communicate the plc with fatek communication server??
    and then how i communicate fatek communication with labview??
    i need help....
    Thanx in advance,

    Hi Nabs,
    If I understand your post correctly, you are trying to communicate with your PLC over serial.  From the LabVIEW side, this is no different than communicating with any other serial device.  In LabVIEW, go to Help>>Find Examples then search for Basic Serial Write and Read.  This example should help you get started with serial communication.  Another thing that can be helpful is using HyperTerminal to ensure the device is properly responding to Serial commands.

  • Visa error handling in serial communication

    Greetings,
    I have a problem with the serial communication in my Labview program.
    I have made an application that reads from serial port, searches for beggining characters, and later counts data after that beggining characters into variables in Labview program.
    Everything work fine, but problem starts when I unplug the device from computer.
    Program blocks and I could not do anything. Even Visa Close does not do anything.
    I need to restart my computer to make my application works.
    I made some indicators in subVi, and I see that when I unplug the device the error from READ VISA changes.
    My question is:  How to handle this event(error) to restart or unblock my serial device.
    I am attaching a SubVi, that searches for starting characters " KBON,"
    Best regards,
    Chris
    Attachments:
    find_start.vi ‏12 KB

    Hi Chris,
    From the standpoint of VISA capabilities, you should be able to programmatically handle the desconection of the serial port. I am however not certain that your specific serial port hardware is OK with that.
    As to how to handle disconnection using VISA:
    I recommend using the "timeout" pin of the VISA Configure Serial Port VI
    when the timeout is reached and no data is transferred, you will get a timeout error on the error wire.
    You can then programmatically handle this error case in your code in a very similarly to this example.
    I recommend experimenting to see what error codes your application throws, or alternatively you can use the VISA error codes documentation to create the case structures needed to hande these errors.
    In all cases, you should close the VISA reference. Leaving the serial port rescource "open" in your operating system may be the reason why you need to restart your computer every time (as restarting will for sure free up the serial port rescource).
    Best Regards,
    T Simon
    National Instruments
    Applications Engineer
    Certified LabVIEW Developer - Certified TestStand Architect

  • Having issues with simple serial communication.

     I followed a tutorial online to start learning basic serial communication. The tutorial involved shorting pins 1 and 3 on the Comm 1 port, and writing a simple program (attached). I edited the program a little, to show the varied results that I get when trying to write and read a simple phrase via serial port. 
    Could someone explain what causes the kind of result shown in "Serial Comm Example.png"? I believe it has to do with timing. Why would only parts of the phrase be transmitted?
    Thanks,
    Sarah
    Solved!
    Go to Solution.
    Attachments:
    Serial Comm Example.vi ‏30 KB
    Serial Comm Example.png ‏139 KB

    sarahzig wrote:
    The tutorial involved shorting pins 1 and 3 on the Comm 1 port
    Shouldn't that be pins 2 and 3?  On a standard DB-9 serial port, pin 2 is the Recieve and pin 3 is the Transmit.
    Now for your code...
    1. Move the Configure Serial Port to be before the loop.  You only need to configure the port once.
    2. Close the port after the loop.
    3. Handle your error after the close.
    4. Stop your loop on an error or the stop button was pressed.  You will need an OR in there.
    5. No need for the Flush Buffer function.  Remove it.
    6. Using the Bytes At Port is a dangerous thing.  It introduces all kinds of interesting race conditions.  Instead, tell the VISA Read to read the number of bytes you expect to read.
    6a. Alternatively, be sure to send an End Of Line character at the end of your sent data and set the number of bytes to read to something a lot more than you would ever expect to read.  The VISA Read will stop reading when it a) sees the number of bytes it was told to read, b) sees the termination character (currently enabled and set to a Line Feed, which is part of the End Of Line), or c) the timeout happens.  Whichever happens first.
    7. With 6, the wait is no longer needed.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions

  • I have Adobe Design Standard CS6 purchased 2013 with serial number but cannot find to download it onto a new mac laptop. When I try and add the 24-digit serial number to my account it doesn't seem to work?

    I have Adobe Design Standard CS6 purchased 2013 with serial number but cannot find to download it onto a new mac laptop. When I try and add the 24-digit serial number to my account it doesn't seem to work?

    CS6 - http://helpx.adobe.com/x-productkb/policy-pricing/cs6-product-downloads.html
    You can also download the trial version of the software thru the page linked below and then use your current serial number to activate it.
    Be sure to follow the steps outlined in the Note: Very Important Instructions section on the download pages at this site and have cookies enabled in your browser or else the download will not work properly.
    CS6: http://prodesigntools.com/adobe-cs6-direct-download-links.html

  • I bought adobe creative suite prem actual cds, with serial yet when i put its serial in to redeem it and download it onto my new mac it says on your site it is invalid, the serial

    i bought adobe creative suite premium actual cds, with serial yet when i put its serial in to redeem it and download it onto my new mac through your adobe site it says on your site it says my serial is invalid, when my serial is not, it is clear you adobe advertise you can use your old software on new apple computers but clearly this is not the case; forcing me and all to shell out vast amours of money just to use your products i have already bought????.......i will never buy your product again!!!!

    Your post makes no sense to anyone. you have not provided proper technical information or version information. rather than going off on a tangent, you may want to read this:
    Error: Activation Server Unavailable | CS2, Acrobat 7, Audition 3
    Sign in, activation, or connection errors | CS5.5 and later
    Redemption Code Help
    For anything else contact support by web chat.
    Mylenium

  • VISA Read function Read buffer problem in serial communication

    Hi,  I use VISA write and read function in serial communication app, the device continuously sends 0x00 if it is not receive a request from Labview program running on PC.
    And the request sent by labview is programmable. I met a weird problem, each time the request changes, the VISA read buffer output port still shows the last request firstly, from second time, shows the right request.
    It works like: Req code: ... 50, 51,51,51,50....;  VISA Read buffer: ...50, 50, 51, 51, 51, 51, 50....
    Please refer to the program.
    Attachments:
    readOne_test.vi ‏21 KB

    How are you running this?  You don't have a while loop around it.  Is it part of a larger VI?  Please don't tell me you are using the run continuously button.
    You don't have any wait statement between you VISA Write and your bytes at port.  So it is very likely the receive buffer is still empty since you didn't give your VI time to wait for the device to turn around and give a reply.  If you read 0 bytes, your VISA read string will be empty.  How does your decoder subVI (which you didn't include) handle an empty string?

  • Midlet with access to IrDA/serial communication on PDA urgently needed!

    Hi folks,
    our solution needs access to the IrDA or serial communication from within a midlet. Unfortunately this is not possible with the current MIDP implementation. The mobile we are using has additional vendor specific classes, but still IrDA fails when connecting to other mobiles or PDAs. Therefore, we are looking for a KVM on WinCE/Palm which provides access to the IrDA or serical communication channel in order to develop our application on a PDA while waiting for MIDP 2.0 to come.
    Please send me some feedback ;-)
    Cheers Harald

    Indeed the serial port access to the IR port is supported in the latest WSDD releases.

  • Communicator for Mac crashes with Lion

    Microsoft Communicator for Mac 13.1.1 crashes when using Lion. Any idea for a workaround or fix?

    Hello chrisr1965,
    If it's helpful, have a look at http://blog.officeformac.com/office-for-mac-2011-and-mac-os-x-10-7-lion/ - Microsoft's Mac team are working to resolve this known issue with Communicator in the Lion's environment.
    Hopefully it won't be too long before it's remedied.

  • I have a problem with my i phone ,   My i phone 4 with serial no.  84040U7UA4S is closed to American communication network AT

    I have a problem with my i phone ,
    My i phone 4 with serial no.  84040U7UA4S is closed to American communication network AT&T  and now I live in Cairo Egypt so is there any way to convert it to be opened international to be able to use in Egypt
    kindly please if you are the key person of this problem please help and if not please forward this e-mail to the right person.
    Thanks in advance for your positive action , and we do appreciate your prompt reply.

    Sell that iPhone to someone going to US or already in US
    and buy one locally. AT&T does not unlock iPhones for any one
    for any reason. You cannot use that iPhone in Egypt. There is
    no problem with your iPhone - it is working as intended: it was
    locked to AT&T and still is.

Maybe you are looking for