universal serial port communication, I have no idea

Hi buddies! I'm trying to think about how I can configure VI writing a message on this subject and if possible send it via the USB port on the USB device.

Please help me with ideas on how to get there as I'm new to LabVIEW

Hi precious1,.

What USB device you are trying to use?  What is your application?  How do you control the device?

As a first step, take a look at the white paper OR to the following address: USB Instrument Control tutorial

It should help you to configure your USB device for use in a LabVIEW VI.

Tags: NI Hardware

Similar Questions

  • Another question on serial port communication

    Hi all!

    I started working with tools of communication series LV (actually, I'm a newbie in LV at all).

    The question is - how I effectively detect y at - he new data arrived in the read buffer VISA?

    I mean, in the examples I found, there is always a fixed delay between writing series and the read operation - it makes the instrument depends on the speed of communication and (worse) on the response time of the required device. I want to implement is a vi that writes a (or different applications) via a serial port and then check periodically (with the relatively small period, say, 1ms) series read buffer for the response data until new data stops arriving. For this I need to know the number of bytes of data into the buffer, or a property (if any) detecting the arrival of new data.

    As I read on this forum (and figured out from my own experience)-using VISA bytes to the Serial Port is ' t a good idea also I have found a solution without delay set by the user between the writing and the read operation in the recent previous topics.

    Can you give me an opinion?

    Thnx in advance.

    Use VISARead with a number of bytes to read and a timeout.

    When your data is received it will play instantly. When no data comes in, you will get a time-out error, which you can manage!

  • NEITHER 9870 Serial Port Communication

    Hello

    I have the module 9870 serial rs232 on 9073 cRIO chassis. I have watched the series loopback example, added to my project, changed the entry node to point to the serial port on the right. It works fine when I use a closure connected the cable to the serial port.

    However, when I connect the port to the serial port on the back of my pc (using the cable series of woman to woman) and run the "Serial Loopback DMA Rd (host) .vi" I see no data being sent on my PC com port hyperterminal. Also if I type any character on hyper terminal I see their receipt by the LabView program.

    Why is this happening? that is, the example works well with a loopback adapter and not when it is connected to other serial port?

    Any help will be appreciated.

    concerning

    Bastien

    Hello

    You have all the details on the cable you are using? You may need a null modem cable.

    All in hyperterminal settings the cRIO? IE: Baud rate/parity/start and stop bits etc.

    Could you take a screenshot of the hyperterminal settings and the windows serial port settings? Could you attach your cRIO VI?

    Thank you very much

  • Serial port communication

    Hello world

    I have a very disputed project.  What I have to do is to transfer a text file from a computer to my laptop with some constraints:

    1. The OS of the computer is just Windows XP Professional (not .NET, no programming language)
    2. It is not allowed to install software or this (working only on this computer) computer programming languages
    3. Some USB and RS-232 ports are available.
    4. No external storage device can be used (e.g. USB stick).

    So, I wonder if there is a way to do it.  For example, we succeed in VBScript or JScript that are available in WIndows XP?  We can transfer the file text on serial port or something (I don't know).

    I'd appreciate if someone could give me some suggestions.

    You can get help with the scripts here: http://social.technet.microsoft.com/Forums/en-US/ITCG/threads

  • Wire bachground for Bluetooth Serial Port Communication

    Hello

    I want to make a request which should be as a background thread to run after that BB has been activated.

    I tried something:

    1. I used BluetoothSerialPortListener and as a normal application. After I chose the menuitem, it begins to listen to the bluetooth serial port. When the data are arrived through the port, it extracts the data and write a response to the sender. Then he out the value and display it on the screen, where I used an object of class screen. But, after posting a value, it cannot display the value came second. I tried, what the old screen pop fist, then puschup the new screen. But it does not work. How can do it, when the new value, they can be diaplayed on the screen?

    2. then I did the BluetoothSerialPortListener in thread and used the autostart flag such as:

    Public Shared Sub main (String [] args)
    {
    If (args! = null & args.length > 0)
    {
    if(args[0].) Equals ("autostartup"))
    {
    Starting the device we want to start the thread SycareBluetoothPortListener
                 
    sycare_synergy ss = new sycare_synergy();
    }
    }

    This time around the Listner should take only data is arrived and then sends a response to the sender. But after downloading, BB has always shown that he was unable to generate a new object of the thread class and the thread could not be started.

    Someone tell me, how can I fix it and make it possible, that after each new start of the BB, the bluetooth serial port can always in the background arrivals data receive and display automated according the data arrived?

    Thank you in advanced and Merry chiristmas!

    Monternet

    1. update the user interface.

    It is possible that you are trying to do.  In fact, you don't need to replace the screen, you should be able to simply update a field on the current display of data.  As an example of a background thread to update the user interface, please see the code of httpdemo.

    2. Thread context

    When you say things like:

    "that he could not generate a new object of the thread class.

    It would be much better if you can cite exactly what makes the Blackberry.  In this case, I assume that it has generated an Exception, so the Exception and the associated detailed message that Exception must be included when you report a problem like this.

    In any case, it is possible to implement a background task in the way you need.  Search the Knowlegebase for articles that talk about background Applications and display updates to the user interface of the task in the background and auto-start applications.  There are a few pieces of confusion to this process, so there are a few to get your head around, but I think that everything is in the articles.

  • Communication serial port IRP_MJ_READ

    Hello, I would ask you serial port communication. I am currently apply for communication with my engine not to not (Microcon), but it does not work. If I try to connect with the original software, my serial port monitor gives me values

    IRP_MJ_WRITE when I write some values and

    IRP_MJ_READ when I try to read from the serial port

    But when I'm using LabView, I can only send IRP_MJ_WRITE function by using the component to write VISA (if this one works well), but when I use VISA component read my serial port monitor gives me only IRP_DEVICE_CONTROL. Do you have any sugestion where can be a problem? I don't know how to get this function IRP_MJ_READ using LabView VISA component.

    You watch the using PortMon software? The only thing I see here is that the order that you send, there could be a space that you could have made while typing,

    or

    You're still motor control software running step by step when running the labview? In this case, there will be conflict.

    When you use software original stepper motor and when you send the command wirte down the hexadecimal value (see portmon or any other monitoring software) and try to send back the same hex values using labview. Sending a command, sending of hex are the same but just give it a try,.

    Use bytes depending on the port before VISA to read all available data.

    Search for Microcon network drivers driver Instrument in the Web site OR if you want a quick and simple solution.

  • Problem: read bytes to serial port

    Hello, I need to communicate with an external device with serial port. I have to write a command to my device string, and then it should play with 64 bytes of data. I built a function of READING-WRITING and I use it in a loop (I have to read a lot of 64-byte block)

    Sometimes, I have the following problem:

    (1) I have send the command string, I wait with "Bytes to the serial port" whereas I have more then 60 bytes, then I read.

    (2) sometimes happen that the read function cannot read all 64 bytes, so the net for cycle, I have in the receiver buffer mor than 64 and the program to stop working. (does not work well)

    I need to be sure that after writing the command I have 64 bytes, so I red all the 64 bytes so the next loop for, I have the buffer of the empty receiver.

    I enclose my writing reading function. Please refer to the block diagram (there are a few notes).

    Thank you

    In no place in your program see the VISA configure the Serial Port. It's always a good idea to include this that even if you use the default settings. I suspect this is one of the default settings which is wrong with you. By default, playback is set to end when a character is considered. This means that if you have a 10 hex (ASCII LF) in your stream, playback stops until the specified number of bytes is read. Put in a VISA set up the Serial Port and connect a constant False to the stop character allow entry.

  • Need 16 to 115 200 serial ports, can not get more 8 then

    I try to get 16 to 115 200 serial ports send/receive data. I have a NI PCIe-8431/16 (RS-485/422).

    I managed to get 8 ports will at the same time but not anymore. I tried 9 ports at a time and I get timeouts on port 9.

    PC: Dual core 2.4 GHz, 4 GB of Ram. I'm not more taxing on the CPU, I mean its 115 200 what treatment he would need.

    I'm already talking with OR to the care, but so far they don't have a definitive answer of fix. I thought that maybe windows XP can handle 8 ports?

    I also tried to use 8 of 16 channels and 1 another card 4 ports, I've had. Always the same results. I can do 8 simultaneous connections, sending data. and it seems that I can get the 9th to send to 2400 baud, but when I switch to port to 115 200 speed it fails / timesout?

    More information about my project: I am trying to update firmware on 16 devices at once. To 115 200, it takes 6 minutes to push all the code of the device.

    Process is: 2400 baud get version and check if a new version is necessary. 2400 baud say im switching machine for 115 200 2400 baud response. 115 200 baud send start download receive response to 115 200 baud rate. Send the bytes start and spell then line of the file at a time. Send end. done bytes.

    Anyone know of possible limitations under XP or with the device OR? Any help or idea would be apreciated.

    worst case I limit to 8 at a time. which is useless then. Might as well buy a controller at 8 ports and make a smaller device...

    Well, I fixed my problem with the help of using NI SPY on serial ports. Thanks for this idea of troubleshooting, first time I had to use or spy.

    First problem was my 100msec device timeout of 2400 baud to 115200 baud of switching. I added a loop for, 5 time, delays from 20msec (total 100msec) to send 'start download' and also to receive a response, after the transmission change. This allowed the unit to wait for firmware.

    Then I noticed that I had a ton of failure during the download. Process is send receive some line of code 0 x 01 that the code was excluded, then send the following line of code. If she gets 0 x 01 has not received or 0x02, and then send it again (forever if you want, well I think that several seconds until the device stops data receiver)

    My problem here is that I sent the data line, then read 1 byte. Timeout is set to 500msec. My code would get a timeout, so I'll send the data once again, since I have not received of 0x01. For some reason, it does not. After that I get the timeout I can't send/recieve on this port. I have then close and restart.

    Fix was a loop (20 times?) for 500 msec and check the receive buffer. If the receive buffer is empty after 500msec I try again. If the receive buffer has data then I read and check to 0x01. If I don't get 0x01 I try again. Otherwise, send the following line of code. It works very well.

    Finally, I can picture 16 devices in less than 7 minutes. This should normally be one at a time for 7 minutes each using a matrix of series 48.

    Next challenge 48 serial ports!

    Thanks for the help.

  • Lack of Z - 400 serial port

    Hello

    I have a number of product Z-400 SG637UC #ABA

    Just updated to the latest version of the BIOS, was 1.17, I think.

    Manual maintenance and each user's guide I can find a reference to the serial port header (15-pin) construction which

    My motherboard has.

    However, I can't understand how to turn it on.  The security settings of the Bios do not list the serial port, and the Advanced Settings tab lists only the floppy drive and not the serial port.

    Are the parties other than the header not installed on the motherboard on this particular product number?

    Do not connect the pins of the rider 2 header and tell the BIOS the material is there?

    PIN 12 of the 15-pin header is labeled 'detect the com' on page 168 of the Z-400 maintenance manual.  I do not think it is a standard pins for communications series name.  Is it being stretched up or down to activate the port?

    I don't particularly want to spend money for the "2nd serial" material, when the first serial port is not working.

    Thanks for any help.

    PM

    AP_M,

    The Z400 has a 2 x 8 serial port header, you have found.  To access the serial port, one needs the HP, the PA716A Option kit serial port adapter.  This kit, described here, has a small PCB attached to a PCI card and cable to the PCB of the card mother Z400.  This PCB contains the RS232 serial port transceiver integrated circuit, so it is necessary to make the serial port work - a straight through cable from the motherboard to a will of connector serial port not working, to not try.

    Option kit that pa716a can be ordered as an option Z420.  The kit is not listed for the Z400, but the Z400 (and many other HP computers) use the same kit.

    To answer your technical questions:

    -IIRC, Windows requires masking devices that are not accessible.  That's why the serial port does not appear in the device without this option installed kit Manager.

    -12 axis, as you can imagine, is a "detect the com' which tells the system that the serial port kit is installed.  He is shot down (the Earth) when the cable attached to the motherboard.

    -If you want to experiment and see if the serial port becomes active, turn off the Z400, then put a jumper between the P52 12 serial port connector pin and ground.  Soil is on pins 8 and 7.  (The pins are numbered with strange pins on one side (row) and evens on the other kind of pin 2 pin 1 opposite.)  To determine which line is even or odd, pin 16 is the last pin and the missing key on the 'same' line).

    Then turn on the system.  After the Earth axis 12, the serial port should appear in the BIOS settings and certainly in the windows.

    * I think this is how it works, I have tried for a long time. **

    Does that answer your questions?

  • Questions get windows 98 hardware serial port to work on a windows machine 7 using dosbox

    Hi I am trying to run a piece of hardware (which is currently working on a windows 98 computer) to work on a windows 7 Enterprise 32-bit computer. The material is a bike trainer KingCycle that measures power output and who connects via the serial port. I have the hardware connected to the serial port COM1 on the windows machine 7. The software has been configured for compatibility mode in windows 98. I checked on Device Manager to make sure that the port COM1 series works well and that the drivers are up to date. I installed DosBox to run the application Kingcycle and I restarted the pc several times.

    The issue I'm having is that when the software tries to communicate with COM1 it stops and gives the error "No. Interface fitted, error return Code (HEX) = 8000'. Is there something in particular in the COM Port settings / which must be amended to properly synchronize with the material? I don't know if this setting needs to be changed, but baud rate is currently set to 9600.
    Any info would be great.

    It is perhaps that just may work correctly on W7, everything works 100%.

    However, in looking at this article - http://www.dosbox.com/wiki/Configuration:SerialPort you configure the COM in DOSBOX port, first? More here - http://www.f15ijp.com/2013/04/dosbox-using-a-serialport/

    Whatever it is, it may be a good idea to ask on the DOSBOX forum, which seems to be - http://www.vogons.org/viewforum.php?f=53

  • Re: Portege R830-19 t: cannot find the Win XP PCI Serial Port driver

    Hello

    Creating a win XP to image for the machine above and can not find a driver for Win XP PCI Serial Port.

    everyone has ideas... looks like a pilot intel.

    any help appreciated

    Hello

    All Win XP drivers are available on the European driver Toshiba page and the serial port driver is also available.

    I found this one:
    [Win XP Serial Port Driver v1.00.000 | http://eu.computers.toshiba-europe.com/innovation/download_driver_details.jsp?service=EU&selCategory = 2 & selFamily = 4 & selSeries = 151 & selProduct = 6470 selSh ortMod = null & language = 13 & selOS = 10 & selType = all & yearu pload = & monthupload = & dayupload = & useDate = null & mode = a llMachines & search = & action = search & macId = & country = al l & selectedLanguage = 13 & type = all & page = 3 & ID = 78794 & OSI D = 10 & driverLanguage = 42]

  • PCMCIA card as a serial port RS232 on Satellite Pro 4200

    I think to use a PCMCIA card as a serial RS232 port. The program that I need to use runs under DOS and needs two serial ports. My question is that I need to run the program and the serial port to be recognized by the system. I have a satellite pro 4200 laptop PC series.

    Thank you

    Why on Earth if you want that?
    Your laptop computer with a serial port doesn't have it?

    Well for the serial ports are standard supported on Windows. In a back box that should be no problem.

    But pure back could be a problem.
    I guess you must also BACK drivers for your PCMCIA card...

  • Reading and saving data of two serial ports

    Hi, I googled similar questions in the forum, but I don't have an answer for my problem so I'm posting it here.

    I would read and record data of two balances throgh serial ports. I have a drop down menu in VI, I can choose the availabe ports on my pc. But it is still only one that works. So I only get one data scales them.

    I usually get to choose 6 ports, but only one of them works. So I'm wondering if this is something that has to do with my pc or the VI?

    I've attached a screenshot of my VI.

    Thank you =)


  • Serial port PCI and Communications Simple driver (s)

    I just reinstalled windows 7 Pro X 64 and I have all the drivers, but these two. Any ideas on what they are, and where I could get them?

    PCI serial port

    PCI Simple Simple Communications controller

    I have a HP Elitedesk 800 G1

    Hello:

    You need this driver...

    http://h20565.www2.HP.com/portal/site/hpsc/template.page/public/PSI/swdDetails/?sp4ts.Oid=5387468 & spf_p.tpst = swdMain & spf_p.prp_swdMain=wsrp-navigationalState%3Didx%253D%257CswItem%253Dvc_131760_1%257CswEnvOID%253D4059%257CitemLocale%253D%257CswLang%253D%257Cmode%253D%257Caction%253DdriverDocument & javax.portlet.begCacheTok = com.vignette.cachetoken & javax.portlet.endCacheTok = com.vignette.cachetoken

  • is serial port pci and pci simple communications controllor used to and are they necessary as mine do not work

    they have a yellow sign next to them I don't have any idea what they are if anything

    signed

    would like to know!

    Hi William,.

    1. do you have a code error message when you click on the yellow Board?

    2. What is the brand and model of the computer/motherboard?

    3. which card has been inserted into the PCI slot?

    PCI stands for Peripheral Component Interconnect. It's an industry standard bus to connect devices to a computer.

    A serial port is a serial communication physical through transfers of information inside or outside a bit at a time. The term "serial port" usually identifies hardware more or less conforms to the RS-232 standard, designed to interface with a modem or a similar communication device. The serial port used to be widely used to connect to a variety of devices external and is essentially a two-way communication port. There are still devices using a serial port connection. These are often marked as RS232 and would include devices such as TELEVISION receiver cable boxes.

    The PCI of Simple Communications controller is a generic label given by Windows for PCI cards installed in a PC when the drivers for the device are not installed.

    You probably received this error because you have not installed the driver for your PCI device.

    If your computer came with a motherboard driver disc, put the CD in and install the chipset drivers from Device Manager browse the CD. This would update the drivers for those devices.

    Steps to follow:

    a. right click on the entry in the Device Manager and select Properties.

    b. in the driver tab updated some drivers.

    c. Select Browse my computer for driver software.

    d. click on browse and look for DVD player option.

    e. follow the instructions on the screen and restart the computer after installing the drivers.

    If you don't have the motherboard drivers CD then please download and install the chipset drivres for the manufacturer's website.

    I hope this helps. If you have any other queries/issues related to Windows, write us and we will be happy to help you further.

Maybe you are looking for

  • Multitask acquisition using NI USB 4432

    Hello Is it possible to perform tasks DAQ of tension HAVE (1) and (2) accelerometer at the same time using NI USB 4432? I am trying to program a LabVIEW GUI to read analog voltage and acceleration at the same time with the device. As the nature of th

  • How to replace (assign) a part of the elements of an array in TestStand?

    Hello I would like to replace or assign values to the elements of an array. For example, I have a local variable with 6 elements, Locals.A = {1, 2, 3, 4, 5, 6}, and I would do it is {1, 2, 13, 14, 5, 6}. Accordingly, I add an expression and write "Lo

  • Automatic update system does not recognize the successful update.

    Regarding automatic updates.  I have 36 log entries to show the successful update of Windows Vista with Service Pack 1.  However, at least twice a day, I receive notifications that Windows Vista SP1 KB936330 is an important update, available for down

  • SE W960i where I can find a new software?

    I don't see my camera from my phone on this site. I want to download the new software of my phone what can I do? Please give me a link where I can find a new software. Because my phone is necessary a refreshing new. PLS, I want too!

  • Deskjet 820 CSE

    Deskjet 820 CSE works correctly when it is connected locally to XP and Vista PC however when I connect it to the W7 PC, I am not able to get prints.  W7 recognizes the printer and installs it.  Everything seems to be good.  Print requests will enter