I consulted the document "VISA and Serial Communication" from ni.com. It
was helpful. I'm using Labview 6.
I don't know how to get Labview to tell me what it is doing at the level of
viTerminate(), etc., so I suppose I may not be able to contribute anything
to you, but I did get my serial port working in Labview recently.
I used a loopback test, by shorting pins 2 and 3, to verify that Labview was
successfully sending and receiving from the chosen serial port.
I made a .vi that let me do one thing at a time, initialize, write, and
read. This helped me realize that the instrument wasn't very fast at
getting back to me, when I was nailing down what I thought was a receiving
problem.
To get Labview to use the serial port on this system I had to uninstall a
graphics tablet driver that was taking control of the port on bootup. VISA
would report that there was a problem until I did this. Maybe if M&A runs
first your OS still thinks the port is being used and won't let Labview use
it.
Also, depending on what serial .vi I was using, I needed to verify that I
identified the port correctly. Port 0 in Labview, in my case, corresponds
to COM1, this is for the "compatibility" .vis. When using VISA serial .vis,
I discovered that COM1 was identified by VISA as ASRL1. However the default
resource name that came up when putting a VISA serial .vi into a diagram was
ASRL2 which does not exist on this system. Manually changing the "2" to a
"1" in the front panel solved my problems.
Your M&A and Labview VISA seem to agree on ASRL1, which might indicate that
isn't the problem.
I used the VISA interactive control to tell me how VISA was doing
identifying the ports and which ports it thought it could use during any
given session. This is available on my system in the VISA program group. If
there are yellow question marks on ports in this program, the port in
question has wandered away.
There are some examples and functions in the directory:
Labview 6\vi.llb\instr\serial.llb
and also in the directory
Labview 6\examples\instr\simplserl.llb,
as well as
Functions --> Instrument I/O --> Serial
and
Functions --> Instrument I/O --> I/O Compatibility --> Serial
Compatibility
"Felipe Ferri" wrote in message
news:50650000000500000004140100-1042324653000@exchange.ni.com...
> Thanks for your comment, but i tested the serial read and write
> functions that you used on your program and they didn't work...