![]() Click the OK button 2 to end the program and release the port.Īdd the picture path: File I/O-> File Constant-> Application Directory, PASS.png is the file name of the picture, and the picture should be in the path. If the number of bytes is greater than 0, it will be read and displayed. ![]() Instr is the number of bytes in the VISA serial port. Click the OK button to write the contents of the write buffer to the serial port. VISA serial port read and write: VISA resource name out is a local variable. VISA resource name out is the output name of the port resource (it is convenient for the next-level read and write serial port to use local variables to call). VISA configuration serial port: VISA resource name is port selection, 9600 is the baud rate, 8 is the bit, None is the parity bit, and 1.0 is the stop bit. Since the serial port driver was not installed when labview was installed, the NI-VISA driver must be installed before using VISA (labview2013 is used this time, and the driver is NI-VISA14.0.1. Labview develops serial port use: Instrument I/O–>Serial port–>VISA module.
0 Comments
Leave a Reply. |