Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Serial Communication Problem

I am trying to control my XItron 2801 Power Analyzer through LabVIEW. I am connecting via rs232, sometimes I am able to do everything I want through the VISA interactive control and other times I get the VISA:  (Hex 0xBFFF0015) error. Uninstalling the driver for my USB to rs232 cable and then reinstalling fixes the problem but I don't want to have to do that every time. I have a simple VI made that starts the integration function on the machine and grabs some values from it but I can't seem to get that to work and I'm thinking it is an issue with the VISA:  (Hex 0xBFFF0015) error that  I am seeing. I know I have all of my settings correct so I don't know where to go from here. Any help would be greatly appreciated!

 

Also, my VI is attached.

0 Kudos
Message 1 of 19
(4,422 Views)

Also, the VI seems to not be working at all because once I get past the connection errors in the VISA interactive control I can submit the commands I want in the Interactive Control and see the correct results but I get nothing when I run my VI

0 Kudos
Message 2 of 19
(4,418 Views)

@jstrike21 wrote:

Also, the VI seems to not be working at all because once I get past the connection errors in the VISA interactive control I can submit the commands I want in the Interactive Control and see the correct results but I get nothing when I run my VI


Then there is something wrong with your VI. Do you even know what it is in it?

0 Kudos
Message 3 of 19
(4,411 Views)

I posted my VI in the first post and I followed close to how things are done in the LabVIEW example Serial Read and Write. This is why I am confused as to why my program is not working.

0 Kudos
Message 4 of 19
(4,409 Views)

I can't read your VI since I only have LV 8.6

0 Kudos
Message 5 of 19
(4,407 Views)

Here is the VI:

 

[IMG]http://i47.tinypic.com/ayq37.png[/IMG]

0 Kudos
Message 6 of 19
(4,402 Views)