LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Serial: VISA or not?

What are the differences to implement serial comunication with VISA Serial
or normal?

more precision? Less errors?

Thanks
Dery
0 Kudos
Message 1 of 5
(3,216 Views)
Carola Celeste wrote:
> What are the differences to implement serial comunication with VISA Serial
> or normal?

In LabVIEW 7 you have no real choice. Even the traditional Serial VIs go
ultimately through VISA.

> more precision? Less errors?

A common API which works the way I would expect communication to work.

Also an API which allows you to write one single driver for an
instrument which has one or more of the GPIB, RS-232, VXI11 (TCP-IP), or
USBTMC interfaces.

Also an API which is the same on all platforms of LabVIEW, supports more
properties and aspects of the serial port than the traditional VIs ever
could and an API which is not just LabVIEW but can be used from any
programming environment.

Rolf Kalbermatter
Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
Message 2 of 5
(3,216 Views)
But what is the best way (the faster) to permit LabVIEW to comunicate with a
microcontroller, by RS-232?
VISA or VIs?

Thanks



"RolfK" ha scritto nel messaggio
news:40a5ea9e@newsgroups....
> Carola Celeste wrote:
> > What are the differences to implement serial comunication with VISA
Serial
> > or normal?
>
> In LabVIEW 7 you have no real choice. Even the traditional Serial VIs go
> ultimately through VISA.
>
> > more precision? Less errors?
>
> A common API which works the way I would expect communication to work.
>
> Also an API which allows you to write one single driver for an
> instrument which has one or more of the GPIB, RS-232, VXI11 (TCP-IP), or
> USBTMC interfaces.
>
> Also an API which is the same o
n all platforms of LabVIEW, supports more
> properties and aspects of the serial port than the traditional VIs ever
> could and an API which is not just LabVIEW but can be used from any
> programming environment.
>
> Rolf Kalbermatter
0 Kudos
Message 3 of 5
(3,216 Views)
I prefer VISA for all the reasons that Rolf mentions. There is no difference in speed - 9600 baud is 9600 baud whether it's VISA or the obsolete serial functions. VISA suits me perfectly because I also do a lot of GPIB programming and I have greater control of serial port properties with VISA - termination characters, control lines, etc.
Message 4 of 5
(3,216 Views)
Carola Celeste wrote:
> But what is the best way (the faster) to permit LabVIEW to comunicate with a
> microcontroller, by RS-232?
> VISA or VIs?

I'm not sure I understand your question. Fast in terms of development or
in terms of communication? Development would mostly depend of what you
already know. I prefer VIS because I know it quite well. As far as
reaction time to VISA communication is concerned I would say there is no
real difference even nowadays where the Traditional Serial VIs in fact
go through VISA anyhow when you go into the VIs and look deeper.

The only thing which would be really faster is directly programming the
serial port chip on register level through a device driver for the
device you want. But device driver developme
nt is a tricky business and
there is no way to do without C programming, low level system debugging
and such, so I'm quite sure it is not what you are looking for.

Rolf Kalbermatter
Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 5 of 5
(3,216 Views)