05-13-2009 01:12 AM
Hi all,
Im quite new to labview nad im using LV6.1 for a couple of days.I ve got a task to set up a serial interface for a board previously done by some unknown fellow.Ok i ll explain everything in detail..
I ve got an electronic board that does some say an X function.It already have a RS232 communication interface to PC with some specified baud rate
(It has only 3 wires RX TX GND) Till now this interface is done via hyperterminal or equivalent software..Im supposed to develop(in future ) a customized labview interface to do the same.
My first attempt was to try to send some commands that are stored in the firmware of the board and to expect will labview respond in same manner as in hyperterminal.I ve wrote a basic VI ,it ll open the serial port write the command specified and then ill read back..
I wrote a command named "flash" it is expected to return the state of the board in hyperterminal but wat i got is some junk values ...
I ve a doubt also in the "requested byte count " in "serial port read" i ve given some high value since i dont know howmany letters it is going to return..
Can some body suggest me where to proceed??
regards
Steeve
05-13-2009 01:33 AM - edited 05-13-2009 01:34 AM
First check the no of bytes available at the port and read the bytes that avail.
05-13-2009 01:43 AM
05-13-2009 01:53 AM
05-13-2009 02:29 AM
05-13-2009 03:42 AM
hi all,
i ve been writing the program wihout using visa till now..Is there any advantage/disadvantage for using VISA over ordinary serial port module in labview..Does VISA requires any aditional hardwares or softwares??
05-13-2009 04:26 AM
VISA stands for Virtual Instruments Software Architecture. It gets installed when LabVIEW is installed in the system.
It is a generic driver platform that can be used to communicate with RS-232, GPIB, Printer port, USB and numerous other platforms. So when your device changes the code does not change meaning only the configuration specific to each device needs to be changed, the VISA r/w remains constant, not much code changes are required to move the code from one platform to another- this is the greatest advantage of VISA.
Hope this helps