USB communication

Hello

Is it possible to read and write a text file using a flash normal usb drive in labview? If so, please suggest ways to achieve this.

Thank you

Can you be more specific about what you mean? Looks like a flash drive USB, at least on my machines, as virtually any other R/W disk space, so reading and writing to it is no different (other than any considerations of max R/W cycles, what a flash drive includes in his life, or even a fast hard drive R/W speed). What challenges do you face?

Tags: NI Software

Similar Questions

  • USB communication failed by MAX but not by ACE

    Hello

    I'm trying to control U2600A i/o Modules of Agilent connected via USB with NI-Visa. I was able to establish communication using ACE, but when I tried via MAX, orders failed every time. I have gone through the tutorials and double checked my connections. The code used for the control panel are the same. What I'm missing? Help, please. Thank you in advance.


  • Urgent: oscilliscope Tektronix TDS 2014 B USB communication interface

    Changed the code from a GPIB interface to the oscilliscope to a USB (Tektronix TDS2014B) and now the code will not work. The VI is not the scope triggering. I checked the USB interactive control of VISA address and it matches the block diagram. I get this error:

    VISA write to Tektronix TDS 200 1000 2000 Series.lvlib:Error Query.vi-> Tektronix TDS 200 1000 2000
    Series.lvlib:Close.VI-> 200 1000 2000 Tektronix TDS Series.lvlib:Initialize.vi

    Help, please!

    Do not take account of this post, I left my signed account and a graduate, decided to ask a question on my behalf. The oscilloscope just need a reboot.

  • 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.

  • How to activate the RS232 and USB communication on the guest operating system in vmware ESXi 4.0

    I installed a software in the OS (redhat 5.0) invited to vmware, it must communicate with the device via RS232 or USB

    but not to communicate.

    Vmware tools is installed.

    I try to change the attribute of vmware, add the com port and USB, but still, it does not take effect

    What is the RS232 or USB available on the operating system called?

    How to activate RS232 and USB?

    USB and series are not available in a prompt. There are IP network series and usb IP devices that can be used.

  • LabVIEW: No communication with the RAD-2 USB adapter table.

    Hello

    I try to use a DL2 - N adapter USB to I2C/SPI/GPIO Dinah (https://diolan.com/dln2). This constructor provides drivers for the Council as an example Labview vis I want to just use them to access all interfaces through Labview. After that, I design a test configuration for our latest range of products using this adapter card.

    What I did:

    (1) new installation of Labview 2014 (version evaluaton). System: DELL Precision M6800 (i7), Windows 7 Professional SP1.

    (2) install the drivers OR VISA and NOR-488. 2 (14.0).

    (3) install the drivers from manufacturer as explained on the Web site of NOR.

    (4) run Labview.  I can see instrument pilot screws under the range of function and run the example screws so far, ok (I guess)

    (5) run NI MAX. No listed USB port. Only COM1 and LPT1 (printer port).

    (6) I ran a few windows test applications provided by the manufacturer to access all the NXP microcontroller interfaces in the DLN2. Everything works. I can read the analog/digital, power digital input values and use the SPI and I2C (I see the SPI/I2C frame Sin a scope).

    I spent a day through the various links in the Web site of NOR (have watcheing almost every video demo on the site) and are still not able to guess why Labview can not see my USB device.

    Any clue?

    Kind regards

    Jose

    Hello

    Problem solved. After contacting with Dinah (the manufacturer of the adapter card) they updated the driver library. Now the USB communication and all peripheral work of the microcontroller. I have a UART, SPI/I2C (master and slave), GPIO 48 and 8 inputs analog (10 bits to 1 MHz). All accessible via USB and for less than $ 200 USD (that's way less the HW OR equivalent).

    With Labview, it can be used without any problem. Not a Council weird at all, if you know something about the material.

    Bravo for Dinah!

    Jose

  • Tektronix AFG 3253 USB question

    I'm having some problems with running a test of long duration (100 + hour) with a Tek AFG 3252.  I was using a converter USB / GPIB to communicate with him.  For some reason any USB port down and he refused to communicate after that and the settings are pasted on the AFG.  The issue seems to occur at random times and after a while.

    I checked the USB sleep on the port settings and it is not permissible to put he's asleep.  I also tried to use a hub USB powered and it does not solve the issue.

    I will try to convert the right USB communications today or tomorrow and see if that makes a difference.  If I can't make it work reliability with USB I'll try Ethernet.  We had a problem like this with a range of Tektronix finally had to convert the comms in Ethernet.

    Has anyone else had a problem like that?  If so what did you do to solve?

    Does anyone know if there is a sniffer software and/or hardware that can be used for USB ports?  I would like to know if there are any detectable reason this port is stalled.

    The problems get fixed if the USB cable is unplugged and plugged in the back.  I saw an article on the realization of a software new departure of a USB port.  Has anyone tried this before?  If it works, I'll have to make sure I can detect an error indicating that a reboot is necessary.  Is it possible a hardware switch that I can put in line with the USB port which will create the physical disconnect with digital or software control and does not interfere with the characteristics of the physical layer?

    Thanks for your help.

    You run Windows by chance? I had a similar problem a while crossing a field of Tektronix USB. After a few hours the connection would be deleted and I had to reconnect the USB and restart LabVIEW to resume the connection. In my case, the solution was to turn off the selective suspension of USB in Windows power settings. My understanding is that Windows, in an effort to save energy, turn off USB ports apparently at random. On Windows 7, go to the Power Saving settings > change Plan settings > change advanced power settings > USB settings > USB selective suspend framework. Of course, this might be different in other versions of Windows. If you do not use Windows, then your question is probably something different altogether so feel free to ignore this message.

  • Unable to remote control Tektronix TBS1062 with USB Interface

    Hello

    I recently downloaded IVI Driver for Tektronix TBS1062 of national instruments.  I use the USB communication. I have configured the instrument NI Max and can identify the instrument successfully. However I'm unable to use other functions using the driver of the IVI. Stage of IVI to NI TestStand always runs without error and Trace of e/s OR watch VI_SUCCESS but I don't see any channels settings horizontal scaling and scale veritical configured by the IVI step. The horizontal and vertical scales are always the same.

    I'm not really sure, but would it be because of the USB interface? The driver supports USB?

    Anyone have the same mistake or could someone please help solve this problem.

    Thank you very much

    First thing I would do, is to ensure that the instrument is configured correctly to accept orders via the USB.

    After that, try to send commands through MAX to see if the range reacts.

    Make sure that you are not using a simulated IVI session.

  • Interruption USB Raw: flow of data between USB Raw Device and Labview!

    I do the USB communication between device (Microcontroller) Labview and USB RAW. I did all the things like the raw driver OR USB and I am able to get the 8 bytes using getusbinterrupt.vi, but my application requires continuous data transfer between pc and microcontroller, inorder to achieve that I put continuous loop in the microcontroller, so it transfers the data of continuos on pc, (in this case e.g.0 to 255 and again from 0 to 255 and so on.) , but I'm not able to get increment of 1 as written in my program, instead of that I'm getting increment of 5 to 10... is it because Microcintroller is very fast as my pc? If so how can I get continuous data without breaks...

    I enclose... graphic instant with output vi this jump of the variable data... I run my vi continuously on mode...

    Like, I would also like to write to the device with labview, can you also suggest for this also? I read messages like:

    http://forums.ni.com/ni/Board/Message?Board.ID=170&message.ID=382144&Query.ID=445342#M382144, but I am facing the same problem as this user...

    Thanks in advance.

    MRS.

    26314362 wrote:

    I enclose... graphic instant with output vi this jump of the variable data... I run my vi continuously on mode...

    MRS.

    Run a quick code continuous mode is completely unnecessary.

    In your code you continiousely who and unregster events, it takes a while, maybe the following will help to improve the code:

    I don't know, but you might be able to reuse the event.

    Tone

  • How to access any USB device in LabVIEW?

    I have Labview 8.5.It has a few blocks to directly control the port series, but I don't see ANYTHING to let me control devices connected to the USB ports. When you use the functions VISA the USB port is not available in the control of VISA Resource Name list. I have a device with a USB port. I would like to transfer data to and from the device via USB using LabVIEW.Does anyone has any suggestions for how I can access the USB port in a way that will allow LabVIEW communicate directly with the device connected to the USB port?

    Hello

    Looking on the USB communication with labview?

    You must first configure your VISA to recognize the USB

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

    Here is a starting point...

  • Help! USB mpusbapi.dll library

    Hello!.
    I am having some problems trying to manage the USB communication in BULK.
    I have no VISA but tries by library (specifically mpusbapi.dll). I did everything right (tell me if I'm wrong) and I can run the program and it ends without any problem, but I did not receive the communication.

    something causing me strange is that when he gets back to the MPUSBOPEN of the library function, it gets the same number for the entry and exit, something like "4294967295". so I guess that the problem may be in the hole in the pipe.

    occasionally I send you the number '5' in an 8-bit integer of a PIC18F4550 in accordance with the code of the CCS:

    usb_put_packet (1A, 8, USB_DTS_TOGGLE);

    the configuration of CEB to the USB header is:

    #define USB_HID_DEVICE FALSE / / deshabilitamos el uso las directivas HID
    #define USB_EP1_TX_ENABLE USB_ENABLE_BULK / / put the EP1 (EndPoint1) for IN bulk/interrupt transfers
    #define USB_EP1_RX_ENABLE USB_ENABLE_BULK / / put the EP1 (EndPoint1) for bulk/interrupt transfers
    #define USB_EP1_TX_SIZE 32 / / size to allocate the endpoint buffer 1 tx
    #define USB_EP1_RX_SIZE 32 / / size to allocate the endpoint buffer 1 rx

    If it is necessary I can download also the descriptor C define; tell me; and of course I am downloading of the VI.

    After working, I will solve the problem. I developed a vi, thatâ throw the microchip usb library sends and writes the data to a pic18f4550 (it doesn't matter witch CPU it is, just takes a one chip).

    Bye and hope it helps someone.

  • 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

  • Install a USB driver

    Hei,

    My goal is to establish communication USB in bulk between a USBdevice and Labview. I followed this procedure: http://www.ni.com/tutorial/4478/en/ and Assistant driver used NI-VIsa.

    Everything went well until I have to create cat file. What I have to do because my OS is 8 and in oder to get "allowance" to install the drivers, I need to digitally sign. Appereantly, it should be at the location:

    C:\Program Files (x 86) \Windows Kits\8.0\bin\x86

    But I can't find the exe nowwhere in2cat. I reinstalled the windows kit where the inf2cat appereatly is twice. Thus,.

    How do inf2cat?

    Are there any other 'cosy 'of how to set the USB communication?

    Recommendations or advice are also enjoying.

    Thanks for the help

    Hello

    It works if you try to disable the setting 'Safe Drivers' 8?

    http://www.MakeUseOf.com/tag/how-can-i-install-hardware-with-unsigned-drivers-in-Windows-8/

  • Direct access USB of Labview?

    A USB port may not be comparred to a serial port or RS-232 connection, but is it possible with LabVIEW or similar, to have the two pins on the port data generate a camera digital power signal or even a PWM signal. The USB communication protocol is rigid for this use?

    Soeren

    Soeren,

    in LabVIEW, you can access directly through VISA features USB port, but this gives you direct control over the lines of USB. USB is still based on two-way communication, so I can't think of a way to use as a general-purpose digital output.

    If you are looking for an inexpensive solution for USB-based digital i/o, you will have a look at the NI USB-6501. For rapid generation of PWM this device is not a good solution, because it provides no material clocked pins i/o. Digital clocked material e/s are provided by the outputs of counter/timer on NI USB - 621 x devices and correlation DIOs all the M Series devices.

    I hope this helps,

    Jochen Klier

    National Instruments

  • Pavilion dv8000: win7 usb ports dv8000 for has stopped working

    all 4 of the usb ports on my dv8000 has stopped working. Ive tried to update the drivers, no luck. He originally had XP as an operating system, but it has been upgraded to windows 7, I don't know if usb disks are corrupt or what. When I plug anything into the usb ports, it does nothing. Ive been trying to get this fixed for so long and his frustration, someone knows how to fix this?

    Hi again bigd4747,

    It is good to hear from you!

    I have conducted research on software and compatible driverscommits and have found that your laptop has no compatible drivers for Windows 7.

    Alternatively, you can try to update the drivers of USB port in Device Manager by following this document on How to install a driver in Device Manager. If it does not install the necessary drivers for the USB communication, you may need to downgrade to Windows Vista (32 bit).

    I hope this helps!

    Best regards

Maybe you are looking for