LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VISA driver for Serial Connection

Solved!
Go to solution

When I try to open the Instrument I/O assistant, I get an error telling me it is not installed correctly. I believe this is because I am using a serial port, not GPIB. I can't seem to find the correct driver. Can someone point me in the right direction?

0 Kudos
Message 1 of 20
(4,071 Views)

Have you looked at the examples for serial communications? Everything you need to know is there.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 2 of 20
(4,067 Views)

And it does not matter at all to the Instrument I/O Assistant whether you are using a com port, GPIB, Ethernet, or USB. If you don't have the Instrument I/O Assistant installed correctly, you will get the error. If all you installed was LabVIEW, you did not install it correctly. Did you install NI-VISA?

0 Kudos
Message 3 of 20
(4,063 Views)

Yes, I've re-installed it twice.  Should I try manually uninstall it before I do so?

 

Also, I found an example of a very simple serial read/write program. When I try to run that, I get the error code that I've attached. Is there a way to see the Block Diagram associated with the Front Panel for the example I downloaded?

0 Kudos
Message 4 of 20
(4,059 Views)

I've re-installed VISA twice now.

 

When I try to open the Assistant in LabView, I get the attached message.

When I try to write to my device with the VISA Write command, I get the other attached message.

 

I've tried communicating with my device via the Measurement and Automation Explorer. The commands don't seem to be sending.

 

I can successfully communicate with my device via HyperTerminal so I know my device/connection is not faulty.

Download All
0 Kudos
Message 5 of 20
(4,046 Views)
The VISA Write error indicates that you have another program open that is using the port. Windows does not allow two programs to access the same port at the same time. Close Hyperterminal.
0 Kudos
Message 6 of 20
(4,037 Views)

It doesn't seem to matter what programs are running. If Labview is the only thing running, I get the same issues. I believe it has something to do with my VISA, but I've already tried re-installing it. Any other options?

0 Kudos
Message 7 of 20
(4,004 Views)

The error comes from windows, which does not allow more than a single application to access a port. Check your services, etc. Check with task manager. Check if there was software installed from the vendor.

0 Kudos
Message 8 of 20
(3,994 Views)

Now when run it, nothing happens at all. I am VERY new to LabView so perhaps something is wrong with my code. I've attached my simple write file. Can you find any errors? The text I have (1PA45) is the string that should make my rotation stage move to 45 degrees. When I put this string into HyperTerminal, it works. With HyperTeminal closed, nothing happens. I've even tried restarting my computer and running LabView without running HyperTerminal prior. My motion controller is in COM1. I still cannot open my instrument I/O assistant. It tells me to reinstall it, although I've already done so twice.

0 Kudos
Message 9 of 20
(3,986 Views)

The file is here...

0 Kudos
Message 10 of 20
(3,985 Views)