03-06-2009 01:55 PM
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.
03-06-2009 07:49 PM
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
03-09-2009 09:35 AM
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.
03-09-2009 09:43 AM
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.
03-09-2009 09:48 AM
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.
03-09-2009 11:34 AM
03-09-2009 05:06 PM
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.
03-12-2009 10:14 AM