VISA USB

While NI-VISA supports three types of USB pipes: Does control, in bulk and interrupt, this means that we can develop any device driver USB on this three types and we must not any other low level layer of knowledge? For example, if write us raw data, we simply use the essential mode of writing, and then outgoing data usb would be out of our written data.

I do not understand your question.

VISA takes in charge three of maximum 4 eligible different available for USB transfer mechanism.  Isochronous is not supported and a transfer with loss that is not interesting to test and measure in any case.  It is intended only for audio and video where a few lost packets are not so bad.

All USB devices may support ONLY these four types of transfer.  Note that this does not describe WHAT needs to be transferred by using these methods, only HOW the data is transferred.

Each device implements its own mix of commands that can be received by transfer of control (all devices are supported on a certain set of commands on the control endpoint zero for the configuration of the device), in bulk or interruption or a mixture of the three.

If a device does something different than is described in the specification of USB protocol document is not USB conform.

Shane.

Tags: NI Hardware

Similar Questions

  • VISA USB RAW buffer

    Greetings,

    I have a USB device, I need to communicate with the help of Labview. There is no drivers for this device so I put in place as a device USB of VISA GROSS. I am able to communicate with him, fine, for the most part, but I have problems with data loss.

    This device to stream to the host at a rate relatively high (~1MByte/sec) and I have 3 of them I need to get data of continuously. Data is sent in packets of 512 bytes. When calling VISA Read I Specifies the amount of data I want to read from the device (for example 512 000 bytes approximately 0.5 seconds of data) and the data is received without problem since all 3 devices.

    My problem is that it takes a little short of time nothing to do with the data I just read and read the next time I do a different reading VISA, I lost the data that should have been included while I was managing the data from the old. I simplified my Labview code so that it doesn't the data analyze a few bytes and paste the rest in a queue to be processed in another while loop, but even this bit of transformation takes a few milliseconds. Milliseconds that few data are lost when I next read VISA.

    I think the problem is that USB transfer must be initiated by the host, which means that any buffering must be done in the camera itself, and that this device is not all the buffering. Is this correct? Y at - he tips that I can use to make "continuous play" from a VISA's USB device?

    I might be able to shorten the processing time a little more by not doing ANY analysis on the data, just read and paste it into the queue, but even that will probably take long enough I'll miss a few packets of data (each packet is less than 500 of data).

    Thanks for your suggestions.

    Dave

    You can have several USB readings operate in parallel feeding a notifier data.  Can manage data notifier later in your code.

    I did it with HID before calls to no HID updates were missed.

    Shane.

  • visa usb communication in bulk - several end points

    Hi all

    I'll put up a spectrometer optics USB2000 + ocean and want to use visa instead of the dll that I had with the spectrometer (I had a lot of stability problems, moreover, this is not supported by the ocean optics and I won't have to pay for the new version).  I have documentation for the spectrometer and were able to set the integration time and receive ghosts as quickly that the dll has been able to.  But I was not able to read the information of calibration of the spectrometer.  All controls use the transfer block, so I use visa read and write to send/receive.  I think it's the difference between the spectral data and calibration data, that the data comes from different points of termination.   The spectrometer has 4 endpoint addresses (3-PC = IN, 1 PC = OUTSIDE).  The spectral data returns to the first endpoint and the calibration data is on 3rd in.

    Is there a setting I need to change to read from a different end point?  They are all in bulk type according to the documentation.  Any suggestion would be appreciated.

    Thank you!

    Hey gharris,.

    It seems that there is a parameter, you can change by a property node that will change reading from what endpoint. If you use a text-based program, the property, you need to change is VI_ATTR_USB_BULK_IN_PIPE. If you are using LabVIEW, follow these steps:

    First of all, to ask a VISA property on your block diagram node (really any node property works). Then, right-click on the property node and select Select class-> VISA-> / o Session-> USB Raw. This step can be found in attached below EndpointSS1.png and change the property node to a node property USB Raw. Thirdly, left-click on the property and select settings USB-> pipe in bulk. This step can be found in EndpointSS2.png, attached below. It is the property that defines at what endpoint to read from. To change the value of the present, right-click on the property node and select change all to write, which will allow you to connect to an endpoint value.

  • LabVIEW Visa Usb VI

    I send you a picture of samples using usb visa communication. The sample size is 12 bits, due to the resolution of the ADC and the size of the buffer

    of USB is 8-bit. The program must divide each sample to two bytes (each sample must

    be divided to the valuable part less and more) in order to use the USB buffer. There for each

    sample occupies two buffers of the USB and it can send in 32 samples of the signal for each

    transaction, because the USB port can just transact 64 bytes set to maximum speed. I have developed a program to rebuild analog signals of these samples.

    If I send the table consist of four different signals separated by a few special characters and I have to show four different signlas, separated by special characters. Please suggest me any changes in VI attached to four signals to separate and display. The attached vi is to display a single signal

    Hi, you can parse the string and cut with the chain of research/Split. The wire of the output to an indicator of the string string. You can follow these steps to use this feature:

    1. Add Research/Split String function in the block diagram.
    2. Thread the string to split at the entrance to a string of the search/Split String function.
    3. Enter the text that shows where the string should be split at the entrance of the research/Split String function string/char to search .
    4. Offset, enter the number of characters in the string to pass before the function of research/Split String begins to search text in the Search/char string.
    5. Connect the substring before game and out of game + rest of string of the function of research/Split String String of indicators or the screws or the functions that accept a string as input.
    6. Run the VI.

    Kind regards

    Miguel Fonseca

    Technical sales engineer

    National Instruments

  • acquisition through VISA & USB scale

    Hello

    I try to acquisitionning the value of my scale of KERN, via a USB port (the output of the device is RS 232) with the attached vi. My problem is I want to make an acquisition about every hour. If I put a waiting time in my moment of loop than even 1 second, it seems that the device remains set until we ask for it. So more time is running, more the offset is. Any idea on what I am doing wrong?

    Thanks in advance for your help :-)

    Sylvian

    Thank you all for your suggestions. I finally found a way (see VI) attached.

    Sylvian

  • driver usb visa problem

    I have a usb controller, I want to connect with labview... I did successfully usb raw driver using driver development Assistant... and it works well in my pc in which NEITHER labview is installed... now I want to run a labview application in a pc in which no labview (nothing not related to NOR) is installed... then I copied the visa to this pc... usb driver after plugging the device and install the driver it says unable to install driver completely... I tried with 2 PC... so I wondered outside the visa usb driver... y at - it something to install on a pc that does not have labview so it can communicate with the pc?

    I don't know the length of LabVIEW. I want to talk about the VISA duration.

  • VISA (serial port) commands fail in VI, but working in the VISA test Panel

    Hi, I have an instrument that has a usb connection. When I connect it to a Windows 7 PC, it picks up the driver automatically and presents itself as a "USB Serial Port (COM7) (manufacturer's FTDI).»

    When I opened NI MAX, this feature appears as COM7 (ASRL7::INSTR) under "series and parallel. And when I click on open visa Test Panel and try it "* IDN?" command, it works OK.

    However, the VI (which sends just a command VISA "* IDN?") give me a timeout error (0XBFF0015) or a resource/device absent error (0XBFFF0011). A screenshot of VI is attached.

    No idea why?

    Thank you.

    PS: I went through the process to create the VISA-USB driver, who has another question, but I'm trying to understand why this happens. This device has also a GPIB port and when I use a USB-GPIB adapter, it works very well.

    N ° your first string to write sends a literal backslash and a literal n.  Your watch \n control, but it is in Normal display mode.  Change it to \codes mode and delete the extra backslash it.

    Your second string to write is set correctly for the mode \codes.

    Because the wrong string is written, the timeout error occurs and prevents the VI downstream on this same error running thread.

  • USB interrupt timeout event management

    Hi all

    I am new to labview, I do PIC and PC USB data transfer. I was wondering is there a way I can handle the event time-out generated by "VISA wait event" VI, so that when there is no data to come within some time, it would continue the process other code rather than generate an error. I think why VISA USB intterupt has a timeout. Interruption can trigger each time it is requested, no matter what method to connect a USB interrupt event EVENT Structure rather than polling stations, which seems more logical to me.

    Thank you & best regards

    Yes, sorry to be so cryptic.

    Indeed, I meant the nuggets USB linked in my signature.  I took once I had mentioned that they would...  I'm sorry.

    You will find an example on using the features of interruption in there.

    Shane.

  • grabbing the mouse usb speed

    In brief: I want a usb mouse for it's X and Y of the speed of queries on a regular interval.  How do I?

    What I have: My current attempt is to configure the mouse as a device GROSS VISA and grabbing the data via a suspending VISA USB on the loop (attached) event.  It works fine; My problem with this approach is that it returns stamps on uneven intervals, i.e. each time that an event is raised or the time-out occurs.

    My ideas: Although I certainly would not stifle all other solutions to the original problem, I have some ideas of my own, that you may be able to help with, too, if you think that one is in fact the correct approach to the original problem.  Ideas:

    1. I read through chip communication practical USB (here and here), and I can't say I learned enough of a gentleman to understand in all, they gave me the idea that maybe instead of an interrupt event, I could use a USB Control VISA Office to enter the data on demand.  Nugget #2 described the Warlock-ery (i.e. %valeurs and so forth at the entrance) necessary for the VISA USB Control in the GET_DESCRIPTOR vi.    I have attached my simple VI for how to do this.  I have not the slightest idea of what are the values to provide to catch X speeds and there, however.
    2. It may be heresy to some or you, but I heard there may be some device or other which converts the digital output of the mouse in the analog signals, which could then be simply recorded by my DAQ card.  This could also be done via some creative arduino-ing (i.e. program arduino to interpret digital trains of the mouse, and then convert them them interpreted speeds X and Y on its analog ports).

    I think once I am able to set up "on-demand of sampling", so to say, X data and there, this is a pretty simple question for this tie in the bigger than the mouse recording system clock will be a part of.  I look forward to hearing it as the input and ideas you all have.  Fire away!

    Best,

    ZOB


  • Name of resource issue VISA with Hameg HMS1000

    Hello

    I have a HAMEG HMS1000 Spectrum Analyzer and I want to communicate with him using NI VISA and SCPI commands.

    First, I created a driver for my device with the information provided here: http://www.hameg.com/0.563.0.html. my device showed in under «NI-VISA USB Devices» device manager

    The problem is when I run the application NEITHER MAX I can see my camera and communicate with them using 'PANEL TEST of VISA's ', but when I switch to labview, visa resource name does not display the name of my device.

    I did something wrong? Help, please

    You should always use the driver provided by the seller.

  • Empty the USB buffer

    We use VISA usb for a USB from our data.

    Everything seems to work properly, we can read and write to the thin device.

    We run into a problem however: If we lose the connection with the device, until we read all the bytes in the RX buffer and close the device, these bytes is achieved when we re-open the device.

    VISA flush doesn't seem to work on USB (like all the 4 predefined masks are refised). Clear VISA does not seem to help either.

    What is the right way to empty the remaining USB unit bytes when you open the interface of bulk VISA usb?

    Serge.

    Well, if VISA Clear does not work and, the bytes to port doesn't work we'll need to dig into the manual for the device at the other end and see how bad some massacred FW engineer a simple message base protocol series and what is really supported by the device.

  • Can LabVIEW control a device series (RS232) via a USB port on a Mac?

    Using LabVIEW 6 and operation of G4 Mac OS 9, it was once possible to use a USB port for control and acquisition of data of a pH meter in our laboratory. Only, we used "Serial Port Init.vi" and wired to port #0, which referred to the USB port. We connected the connector DB9 to the pH meter to the Mac's USB port via a USB-to-DB9 adapter. LabVIEW 6 could then send commands to the pH meter and acquire pH values of him using the serial port, reading and writing icons. I try to do the same thing now using LabVIEW 8.6 on a Mac Pro OS 10.5.6 and leads nowhere. The simplicity of LabVIEW 6 is long gone, and it seems to be necessary to use VISA icons. When I write the vi using the icons series VISA, three potential serial ports appear to be available. However, the vi gives an error message, except when I choose a specific of these, ASRL2::INSTR, under the name of the resource, in which case the vi runs, but there is no communication with the pH meter. I can't understand what physical connector on the chassis Mac corresponds to ASRL2::INSTR, but it is does not seem to be the USB key. I tried to write the vi using the icons of VISA USB of LabVIEW, but which requires knowledge of USB communication protocols which is beyond the expertise of this chemist. So, I'm almost at a loss what to try next. I could buy a serial RS232 card to install in a PCI Express slot in the Mac, hoping that he will be recognized and can be resolved by using the icons series VISA. However, as it was once trivial to perform this task of communication via the Mac's USB port, it seems that it should not be necessary to buy another card. LabVIEW continues to become more and more complicated, and if she doesn't get any more improved, it may not work at all. I've been programming LabVIEW on Mac for almost ten years and she became gradually more frustrating. In any case, is - anyone out there fought USB / communication series battle on a new Mac and won? If now it is impossible, no matter which allowed to pass through a RS232 serial installed in a Mac Pro card? Any help will be appreciated. Thank you.

    Ken1,

    I don't have a chance to see the USB-serial last night.  I'll make a note to try it again tonight.

    Dennis is right.  You need to focus on the determination of what works or not in communications.  Look at the system information (Apple menu > about this Mac > more info...).  Then select the USB item in the list of the contents of the left column.  See if USB devices to look like they could be serial port emulators.  I don't remember exactly what they are called.  If the device doesn't appear like USB Raw, it probably means that no driver has been installed.  You can unplug the unit and see what are the changes.  This will tell you if the operating system sees the device.

    Lynn

  • Cannot see the usb device manager devices or windows Explorer.

    I use windows 7 64-bit. I have a certain external drives connected vis USB everything works OK when lit.

    I have a video camera Digital Sony connected to usb, which gives a 'bong' sound to indicate that it is connected, but I do not see in windows Explorer or disk management. The camera itself acknowledges that it has been connected to my PC OK. I tried the camera using usb different positions, still no visibility? Help, please!

    Have you selected the right mode of the camera for connectivity? For example, the PictBridge and mass storage mode are usually present in a camera. If not select any mode, Windows shows a device is connected, but it cannot access anything whatsoever to the camera.

    Also, have you tried to change the cable?
  • Connection to the Internet by Satellite C650-110

    Hello

    I'm no computer expert, but I thought kind of that set up internet on my new laptop would not be a problem... I have the Satellite C650-110. My NET connection is a connection broadband Virgin hard wire Medis and currently, I connect to the internet vis USB as my old office does not have an ethernet port. I tried to plug the USB into the laptop and it does not work. I also tried the ethernet port screw.

    I tried to set up new connections in the Panel, I downloaded the driver from this site, I phoned Virgin who say that the bandwidth is fine but there is no network LAN on the PC. Is it possible to buy a new PC without a network lan installed?

    Anyone have any suggestions?

    Thank you

    Your laptop's LAN and WLAN cards inside, so it shouldn't be any problem on the Internet connection.

    To check first if it please the Device Manager and make sure that the LAN and WLAN cards are listed under network adapters. Can you confirm this?

    I put t really understand what you do but the connection to the local network is simple. Take the LAN cable and connect your computer laptop o the router. After a few seconds, you should be able to access the internet.

  • Connect the sbRIO amulet monitor

    I have programmed my amulet display and have a VI RT on my 9636 sbRIO which must communicate with the amulet.  I have the amulet the sbRIO-related uses the USB port.   I also installed the software on my sbRIO:

    (1) NI-VISA 15.0.0

    (2) passport OR VISA-USB 15.0.0

    When I run the RT.VI, it is not the USB port on the sbRIO.  I guess I'm missing some software on the sbRIO but can not understand.

    Thank you

    Craig,

    To dispel confusion, you shouldn't see your amulet device in MAX, you should see the sbRIO. In addition, you cannot communicate via USB between the sbRIO and amulet device, but you can communicate over the serial (RS232).

    You are right in saying that you are missing on the sbRIO software because there is not a driver for the sbRIO use USB.

Maybe you are looking for

  • Favorites do not appear in the sidebar save/open dialogs (El Capitan)

    The question The problem is that the sidebar first SAVE / OPEN Windows is missing from the list of favorites. Some people also report they are absent in the side bar of the Finder itself, but in my case, it was not the question. In some cases reboot

  • need help to copy the profile and find the menu bar.

    I am trying to move my files of thunderbird etc to a new computer and need to do it manually due to hardware problem causing no internet. I tried going in C file and found Thunderbird. No other success find the bar of menus or profile. This is why I

  • Portege R600-13Z - Toshiba utility SMS - slow / stop when the SIM is in!

    Hello Portege R600-13Z running XP Pro. Recently updated the firmware and the Wireless Manager to try to get 3g / GPRS comms to work at all. Updated worked a treat and have now great comms. Utility of SMS does not work too well if. Very, very slow or

  • Satellite L550 - DVD player-help you need

    Hi all I use a computer Satellite L550-10N. Question 1 / hand: while watching a movie on DVD yesterday, the computer seems to loose contact with the DVD and did not want to read any more successful after one or two trial. I tried with other DVDs toda

  • HP envy 13-d003na: brand new gel randomly laptop

    I got my new laptop for only 10 days so far and it froze on me at least once every day since I got it. When it freezes, absolutely nothing works, I have to perform a hard shutdown by pressing the power button. All drivers are confirmed to date. I mad