LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VISA Communication on compactRio 9014

Hello,

 

I have a sample program that I run on my computer to read back a value from a VISA power supply. This works fine. When I try to load this program on a compactRio controller I do not get any results back. Is there anything I need to install on the cRio? I went in MAX and it shows NI-VISA 4.3 (under software > NI-RIO 2.4.1 > NI-VISA 4.3). Is there anything additional I need to do to make this program work on the cRio? Thanks.

0 Kudos
Message 1 of 8
(4,039 Views)

Try making the serial port address the default for the control. That should do the trick.

 

Also make sure the debug switch is off on the controller. Are you getting any errors when you run this VI? Can yu wire the Visa close to an error out and try again and then post the message?

 

Amit 

0 Kudos
Message 2 of 8
(4,018 Views)

Hi Amit,

 

What I did was in Max I went under software for the cRio and under NI-VISA 4.3 I went to options. Under there I added the VISA resource name under Aliases. Not sure why I would have to do this but it seemed to do the trick.

0 Kudos
Message 3 of 8
(3,993 Views)

Well this is strange. The trick above worked Friday so before I turned on my VI today I posted that message. Now it doesn't seem to be working. I hooked up an error indicator and that doesn't return any errors. As soon as I put this VI on my computer instead of the real time target it works just fine.

 

The debug switch is not on. How do I make the serial port address the default for the control? The visa resource is over the ethernet. Thanks.

0 Kudos
Message 4 of 8
(3,992 Views)

Actually I'm sorry, there is an error returned once I stop the VI:

 

VISA Open in rt_read.vi

Code: -1073807343

 

Insufficient location information or the device or resource is not present in the system.

0 Kudos
Message 5 of 8
(3,989 Views)
Also, I just tried to load this on another cRio with LabVIEW real time 8.6 running on it. Worked fine there. It just seems to be this cRio with LabVIEW real time 8.5.
0 Kudos
Message 6 of 8
(3,979 Views)

Pawel,

 

Since you didn't change any of the settings over the weekend, you could try to format the cRIO and reinstall the software on it to see if it'll run your VI. 

 

Misha
0 Kudos
Message 7 of 8
(3,969 Views)
I am working with Misha on this issue over the phone but figured I could post back here in case others have an idea. I reformatted and still can not get the VI to communicate. This same VI works fine on another cRio and it works fine running off my computer.
0 Kudos
Message 8 of 8
(3,937 Views)