USB/Virtual COM port Communication problem with ESP301/LabWindows/CVI

Hi all

I have gone through different threads posted in this forum for similar issues and all tried, but nothing helped.

I'm trying to communicate to the ESP 301 training monitor via a USB port configured as a serial COM port using a CR. Have it ' command is to get the version of the controller. The "write" "ComWrt" command works fine but the read command throws and error ("-99 operation e/s timed out"). I tried all the suggessions; with delays etc... who has explained (resolved by Mr. RobertoBozzolo) in the thread posted here, which explains an issue similar to that of the mine, but the help couln t.

The code is attached.

I am using 2012 LabWindows/Windows7 64 bit multi-hearts

int Get_Version () {}

comport = 3;

BaudRate = 9600;

parity = 0;

DataBits = 8;

StopBits = 1;

inputq = 512;

outputq = 512;

ctsmode = 1;

xMode = - 1;

Timeout = 5.0;

com_status = 1;

char comstring [6];

DeviceName [] = "COM3".

Int State = 0;

char * error;

int bytes_written = 0;

char Cmnd_String [50] = "";

char Read_String [512] = "";

strcat (Cmnd_String, "ve?")

strcat (Cmnd_String, '\r');  Tried to 0x0d
strcat (Cmnd_String, '\0');

length = strlen (Cmnd_String);

assert (Cmnd_String [length] == you? \r\0'); Tried Cmnd_String [50] = ' VE? \r\0 ".

DisableBreakOnLibraryErrors ();

RS232Error = OpenComConfig (comport, devicename, baudrate, parity, stop bits, inputq, and outputq data bits) ;// tried ouputq = - 1 too

EnableBreakOnLibraryErrors ();

If (RS232Error == 0) {}

com_status = SetCTSMode (comport, LWRS_HWHANDSHAKE_CTS_RTS_DTR);

MessagePopup ("Comport verified',"CTS Mode works very well");

com_status = SetComTime (comport, timeout);

}

bytes_written = ComWrt (3, Cmnd_String, (Cmnd_String) StringLength);

If (GetOutQLen (3)! = strlen (Cmnd_String))
ComWrt (3, Cmnd_String, strlen (Cmnd_String));
  
status = ReturnRS232Err ();      The status is 0
error = GetRS232ErrorString (status); / / error number

Delay (5.0); / / trying to add the time up to 20.0

GetInQLen (3); Returns 0

ComRdTerm (3, Read_String, 512, 13); Read from inputQ

status = ReturnRS232Err ();               Status to return the error code '-99 '.
error = GetRS232ErrorString (status); Error message "e/s timed Opération" out

return the situation;

}

Can anyone suggest where I am doing wrong?

Thanking you in advance.

Another thing you should check is baud rate.  The ESP301 by USB is expected than the baud rate to 921600.  The function for OpenComConfig() group implies that it does not support this baud rate setting, but it seems to work perfectly.

Tags: NI Software

Similar Questions

  • How do troubleshoot you a USB virtual COM port?

    Object

    Send orders of Labview to an Arduino board using the Advanced Serial write and Read.VI.

    The problem is that no orders are received by the Arduino.

    However, I can use the Serial Monitor built into the Arduino IDE to send commands to the Arduino and get the required result.

    I checked baud rate, the designation of COM port and the command is a simple as string 600,0.  The VI shows no error message.

    So, I'm looking for suggestions on how to troubleshoot a USB virtual COM port.

    Howard


  • How can I create a USB Virtual COM Port

    Windows XP Professional / SP3 / 2002 Version

    How do I create a virtual COM Port to USB, so I can run software applications of a Bus USB flash Drive?
    The reason why I am eager to do it, is because I use an audio sequencer and it requires 1 GB of free disk space and at least 1 GB of RAM is recommended. My machine has 0.5 GB of RAM and a total of 6.55 GB of FREE space. My machine has a 256 MB RAM module and I bought another 256 MB RAM module. The manufacturer said that 512 MB of RAM is the maximum that can have my camera.
    My goal is to buy a 4 GB Flash drive and use it to add RAM on my machine. I am also wanting to be able to run software applications that are installed in the USB Flash drive.
    My basic goal is to install the DAW in the USB Flash drive and work with the program that is in the USB Flash drive, and I hope that will release of enough memory on my laptop.

    Hello

    Unfortunately, you cannot use a USB flash as a substitute for the RAM drive.

    Similar topics as an example with the info:

    http://answers.Microsoft.com/en-us/Windows/Forum/windows_xp-hardware/can-i-use-a-USB-flash-drive/70cf81fa-D113-4485-8305-c030665eeac0

    http://answers.Microsoft.com/en-us/Windows/Forum/windows_xp-hardware/can-a-USB-flash-drive-be-used-as-an-external-RAM/d711a70e-6878-4552-933C-423fa04fb222

  • prolific usb-to-serial com port driver problem. I can't load the driver from propper for her. What should I do?

    prolific usb-to-serial com port driver problem. I can't load the driver appropriate for that. What should I do?

    Hello edmcski,

    This thread has been created in the Feedback forum. the Microsoft moderation team has moved this thread on the forums of hardware and drivers.

  • How to create a Virtual Com Port in Windows 7 for Palm HotSync

    I've just updated wo Windows 7 Pro 64 bit.  Because Palm does not support USB synchronization under a 64-bit system, it tells me that I need to create a virtual com port for my bluetooth device to synchronize.  I can't understand how to create this port under Windows 7.

    Hi Sonmox,

    Welcome to the Microsoft Answers site!

    In the Sub in view of the link you need to download the Palm Desktop and HotSync Manager. This software allows you to synchronize your device Palm with your computer, for your info is backed up and easily editable on your computer.

    Visit the following is given link of Palm and configure your Bluetooth device.

    http://KB.Palm.com/wps/portal/KB/common/article/49229_en.html

    When you set up your Palm device to synchronize using Bluetooth technology, you create a 'Bluetooth partnership' between your devices your computer (also known as "pair" or "trusted device"). This allows you to synchronize your device wireless and your computer have to authenticate each other, every time that you synchronize.

    Follow the steps in the document to sync your Bluetooth device.

    Hope this information is useful.

    Amrita M

    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Communication problem with the printer

    I'm trying to print on a printer Lexmark 1200 series of a Toshiba laptop. Laptop computer identifies the printer is the printer is displayed in the control panel. Whenever I try to print even if I get a message that says: "communication problem with the printer. Any help is appreciated.

    Hi Nick,

    1. What is the exact model of the printer number?

    2 is this problem limited to any specific application such as Internet Explorer, Microsoft Word etc.?

    It seems that some of the 1200 Series printers is not compatible with Windows 7. You can enter the number of exact model and research for more information.

    http://www.microsoft.com/en-us/windows/compatibility/win7/CompatCenter/ProductViewerWithDefaultFilters?TempOsid=win7&Locale=en-us&TextSearch=lexmark%2B1200%2B&Type=Both&CurrentPage=0&TotalPages=1&ShowCriteria=0&SortCriteria=Relevance&Compatibility=Unknown&LastRequested=14

    If the printer is compatible and you are always faced with the question, you can proceed with the steps.

    Method 1:

    Run the troubleshooter and update printer drivers.

    Solve printer problems

    http://Windows.Microsoft.com/en-us/Windows/printer-problems-in-Windows-help#fix-printer-problems=Windows-7&V1H=win8tab1&V2H=win7tab1&V3H=winvistatab1&v4h=winxptab1

    Method 2:

    If the problem persists. I suggest you perform the steps described in the article.

    "Communication not available" or "Document Failed to Print" Error Message and the print job hangs in the print queue

    http://support.Lexmark.com/index?page=content&ID=SO4473&locale=en&UserLocale=en_US

    Note: Antivirus software can help protect your computer against viruses and other security threats. Have a computer without any security software can cause a potential danger to your computer. Therefore, make sure to activate the firewall and security software once you are finished with the test.

    Hope this information helps. Response with status so that we can help you.

  • error message "there is a communication problem with the web server."

    I'm trying to connect to three rivers FCU website www.3riversfcu.org and I get the message error "there is a communication problem with the web server." I am running Windows 7 on Toshiba laptop. No idea how to solve this problem? Something in the settings?

    Hi, Mayhem15,

    See if this troubleshooting help.  It was written for Windows XP, but in many cases, these documents still apply for more recent versions of Windows.

    How to troubleshoot possible causes of Internet connection problems in Windows XP

    http://support.Microsoft.com/kb/314095

  • I deleted by mistake com6 usb modem com port, now when I troubleshoot it shows no modem usb driver not found.

    I deleted by mistake com6 usb modem com port, now when I troubleshoot it shows no modem usb driver not found.

    Usually, by unplugging the USB device and plug it in then that she return to should force Windows redo the settings.

  • X230T USB 3 port sleep problem with external Blu - Ray drive

    Hi all

    I bought a new LG external blu - ray drive and I have problems with it sleeps very quickly.  It is recognized in Windows 7 and will be available for a short period of time after I turn it on, but if I don't use it for 30 seconds, it's in a kind of fashion 'sleep'.  It works perfectly on the single WE port 2.0 on the X230T so there must be something with the 3.0 port.  The drive is powered by an AC adapter and USB 3.0 cable included one.

    I tried to disable all the properties sleeping USB in all areas of power management and power options in Windows.  Also enabled and disabled USB hub root energy saving.  Also, I went through the BIOS and threw the USB options as well and can't find why it is go to sleep so quickly.  I have the latest firmware on the drive, as well as the latest drivers Lenovo USB 3.0 for the X230T.

    I guess I'm out of luck at this point because I think I've tried all possible solutions?

    Thank you.

    Hi again,

    I have looked on the specs and do not see why this problem should occur. I would make sure that the BIOS is updated, if you have not already. The latest BIOS for your machine is 2.03 and came out a month ago. This update, you can find here. And if this does not work, can you check and publish what are the settings in your BIOS Config > USB Configuration?

    Best,

    Adam

  • Virtual Com ports never get reused after UN-installing of software that use

    I have install and uninstall the bluetooth drivers (Microsoft, broadcom and bluesoliel) in order to obtain different devices to work. When I started this exercise, used by bluetooth comm ports were low numbers (com 4 and 5 for example). If I uninstall the bluetooth drivers, then reinstall the or some other driver, the com port numbers used become com 6 and com 7).  Old ports com can never get reused and there seems to be any place where I can find them (and I hope that free them from their State of limbo).

    Now that I've got things nearby work properly, I get to com 25.

    This also happens with the bluetooth drivers not as my GPS through a series of USB converter. or my palm for synchronization software.

    That is to say the problem is not just with bluetooth. It's with any program that uses a serial port.

    I'm afraid I might run out of com ports, and perhaps these unused com ports consume resources (are they built during startup?)     Hmmmm... Looks like I ran out of space... Al

    Hi again
    Well, I made a variation on your theme
    1 turned on or plugged in devices that could use a virtual serial port - 3 of them
    com 26 2 with one of them, I have attributed it to 25, then 24, etc. all the way up to 3 comm
    That unlocks (disabled the use in indication) for all of the unused ports.

    reassigned the 2 remaining ports to com 4 and 5

    Thanks for the help
    Al

  • XPS 8500 USB 3.0 Port forward problems

    Ports USB 3.0 on the XPS 8500 give me bad, and from what I can tell, it comes from a physical problem with the port hardware.

    I can acquire and maintain a 3.0 connection when I plug my WD Passport drive or a Rocketfish hub propelled into the ports on the back. Connected to the front, however, I can sometimes 3.0, sometimes only 2.0 and rarely even get no connection at all. Connection I get to the front, if I move to sentence (like touch), the cable or the plug connection can change back from 2.0 to 3.0. Writing on a drive that will prevent mobile 3.0 to the front.

    I noticed that the physical connection of USB plug on the port is more solid at the back than the front. A cable plugged into the rear port 3.0 is able to travel further and the rubber around the contacts of plug of cable on the back of the computer. On the front ports, the connector does not travel in too far, and the rubber of the USB connector is about 1-2 mm of front cover of the computer. A 3.0 cable on the front can move much more than a through the rear hole. I should mention that I have no problem with the USB 2.0 cables or devices in these front ports.

    This isn't a driver problem, it is a problem of the plug 3.0 doesn't not not solid contact in the port. Dell must cease to use the current material in front port and to find a more appropriate part. Then, they can replace all the front ports on the XPS already shipped 8500.

    My problem with USB 3.0 before XPS 8500 ports seems to have been resolved by the new cables. However, my initial assessment of ports before being too loose, making it difficult to get good 3.0 connections still holds upward. To save their customers and themselves from many headaches, Dell needs to find a replacement part for these ports before issues.

    Everything that I had to test this with a WD Passport 3.0 years was HARD and a new Rocketfish powered 3.0 disc hub. Using the cables of original, these devices connected to ports at the back, but not the front. If I held the plug and stuck firmly in a front port, I couldn't sometimes 3.0 connection - although as soon as I let go of the plug I would lose the connection 3.0 and it would immediately reconnect as a 2.0 device.

    I bought a 3.0 a mini-B cable for direct use with the WD drive and a 3.0 extension cable A-male to female for general use. These cables make very positive connections and seem to contribute to compensate ports before release. I can use them in any combination on the front (or back, of course).

    You think that the problem was simply the cables and had nothing to do with the front ports. However, if I plugged the new extension to the front cable, I could then connect the WD drive to that using the original cable that would not connect directly on the front. Which tells me that the strength of the connection of two front port and the original cable was low. Trying to connect these two weaknesses directly was problematic. Solid connectors of the new cable used between two weak points allowed a good connection. This and the fact that the original WD and Rocketfish cables connected to the rear ports 3.0 without problem, points directly to the ports before being part of the problem.

  • How to access a host USB Virtual Serial Port from a VM Application?

    I have a Linux VM running under VMware Player 5.0.2 on a Linux host machine.   I have a development system running on the computer, virtual trying to download the code on an external device connected via a virtual serial port USB host (ttyACM0).   Anyone doing programming Arduino device will be familiar with my software/hardware config.  Dev VM system does not directly hear the ttyACM0 port I need to establish some sort of connection bridge between "ttyACM0" host port and the port of VM-configured "ttySx"?   Someone did something like this with a VM Player?

    FYI, I found the answer to my own question in an old post on a similar topic. Here's a response provided by the user 'Worker' in the former post office that was the solution to my problem.  I followed its general approach and mounted my own virtual *.vmx machine configuration file to change the serial port set of ' / dev/ttyS1 "to" / dev/ttyACM0 ' I can now download code on my device directly from the Arduino IDE running on the guest VM system.

    *************************************************************************************************************************************************************************************

    9 re: USB serial adapter - / dev/ttyUSB0 serial not a device?

    Worker (1 positions since November 23, 2010) November 23, 2010 12:56 am (in response to AnthonySowden)

    A bit of an old thread here, but I wanted to say that I was able to do exactly this yesterday using VMware Server 2.

    It wasn't easy, but I managed to hack in there.  I guess that this trick works also on VM WS but I have not yet tested.

    Here are the steps:

    Start your VM turned off.

    Add a serial port of your virtual machine through the normal interface. -J' I just let it use/dev/ttyS0.

    Go to your virtual machine folder and edit the .vmx config file.

    Find the line:

    Serial0.filename = ' / dev/ttyS0 ".

    Replace:

    Serial0.filename = "/ dev/ttyUSB0 '.

    and off you go.  The guest operating system sees it as a real physical serial port and is fortunately out my system through series console!

    Hope that helps other people.

    ************************************************************************************************************************************************************************************

  • Virtual COM port blocking labVIEW

    I use virtual comport for one of my application and sometimes due to timeout or lack of data processing my grip of labVIEW and I am not able to stop him properly and the only solution is that I UN plug the USB cable and that translates into a fall of labVIEW. Any suggestion for avaiod the crash?

    Well sort the problem and the problem was due to unnecessary data processing and I'm the fft scene and so it crashes if I don't get the appropriate data. Nothing to with the lv. Thanks for the replies

  • Virtual COM port do not get detected using labVIEW Installer


    Sorry for the thread...

    The windows device manager sees a USB port.

    The manufacturer's website indicates that for windows XP it didn't need a driver, windows use its own driver.

    I try older driver from the manufacturer, but I have the same result: the windows device manager sees a USB port.

    1. yes I have tried but it still sees a USB port.

    2. drivers from the manufacturer has not solved the problem.

    3. I will ask to help the manufacturer.

    Thank you for your help Ravens Fan,

    Concerning

  • communication problem with smart cameras

    Hello
    I am currently using VBAI 2010 with my smart camera and for the exchange of variables I use the function CNVCreateWriter to contact CVI 2010. It works fine when I'm in the configuration interface. I can use and modify all the variables with no problems.

    But when I switch to the control interface I can't modify variables more. By using the CNVCreateWriter function, I get the error message: RUN-TIME ERROR NO FATALE: "Camera_Api.c", line 130, col 14, 0x0000107C thread id: CNVCreateWriter function: (is-6345 return value [0xffffe737]). Cannot complete the operation within the specified time

    Someone know why it works in the configuration interface, but not in control in the real world interface?

    by the way: I can't use VBAI 2011 right now because we do not yet have a license for it

    Thanks in advance
    Oliver

    In configuration mode, things run slower on the smart camera because synchronize us execution with the update of Windows information on execution of State step, etc. When you run in inspection mode, it runs as fast as possible, so it may not be as many processor available time to process access requests to your application of C variables. Is the acquisition of your inspection triggered images or go faster the smart camera can possibly go (i.e. not triggered immediate mode)? If you're in free run mode, what happens if you change to wait next... This can give the processor a little more time to update the variables requests while he's waiting for the image to be acquired. Another way to test this theory would be to put one step behind in your inspection and see if it works (starting with 100ms and if it works, check out how small you can do).

    Something that could also help is to define the variables on your host machine and in VBAI a variable of network that binds to the variables defined on your PC. In this way, the variable engine shared on RT doesn't have to manage the updates from your PC, as well as updates of VBAI, as well as the execution of the inspection as soon as possible, and your C application should not have problems to access the variables on the same machine. This means that your PC needs to be up and running when your control is running on the smart camera or there is time-out errors to access variables... but this may be good for your application. Here is a nice document that speaks in depth of shared variables.

    http://zone.NI.com/DevZone/CDA/tut/p/ID/4679

    Another option could be to use TCP, series, Ethernet/IP, or some other variable VBAI read/write Protocol.

    Hope this helps,

    Brad

Maybe you are looking for