Installing and Setting up LabView

Setting Up LabView

Download and install LabView

To set up LabView to work with the serial port you need to install the NI-VISA runtime engine for the relevant operating system.

This can be found by going from the LabView Website www.ni.com/labview/

Navigate to find the driver by selecting Support --> Drivers and Updates

Under "Narrow Selection By" choose "Instrument Connectivity" and then "Serial".Old version of labview stuff

The NI-VISA run time engine 4.6.2 will be high on the list. Down load and install the version for the relevant operating system.

Notes on Reading over Serial

Termination character on configure serial VI must equal true (so that it reads a line at a time). You may wish to reduce the value of the time out, which is defaulted to 10secs.

Note on writing over serial to Mbed

To prevent Error:-1073807298 (could not perform operation due to I/O error) when attempting to write to serial do the following.

Insert a VISA Set I/O Buffer Size  just after configuring the COM port. Set the mask to 48 and the size to 4k or the maximum number of bytes you will ever need to read or write. The VISA set IO buffer is found under Instrumention I/O --> Serial --> VSet Buffer Size

You also need to add an Instrument I/O assistant this allows you to enable a write termination character (ie \n) and

The Advanced Serial example can be used with mebed if you change the "Set Buffer Size" mask to 48 and the size to 4k, it includes the instrument assistant for configuring the write termination.


1 comment

18 Sep 2011
hello, interesnting . I have the Labview and VISA installed in my PC, but I dont know how stars. I download the example of http://mbed.org/cookbook/Interfacing-with-LabVIEW , but when I want run the "mbed Write Hello World" appears "Remember to open mbed-vi to configure the serial port" and I dont know how make this.

You need to log in to post a comment