Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot connect to RIO using C#

Trying to make a C# NI VISA windows application by following the instructions from "Getting Started with Measurement Studio" Support for Visual Studio 2010. After choosing my "RIO0::INSTR" as instrument, at add step i chose query and parse, as written in the tutorial but after runing the command *idn? gives me the error : "The given session or object reference does not support this operation.   VISA Status code : bfff0067"

I would like to continue my project but i cannot establish a communication with the module. I verified from "Measurement & automation explorer" and it says there that my RIO0 device is working properly.

I would appreciate if you could give me an advice.

 

Thanks.

0 Kudos
Message 1 of 4
(6,672 Views)

What is your rio device? How is it connected? Serial, Ethernet, or GPIB? The National Instruments Instrument I/O Assistant organizes instrument communication for a serial, Ethernet, or GPIB instrument into ordered steps.

0 Kudos
Message 2 of 4
(6,657 Views)

Through this module i wold like to connect to my digital circuit

https://www.ni.com/en-us/support/model.pxi-7811.html

PXI-7811R

I have the cable a connector block and i would like to give digital signals to my circuit which i would like to test.

0 Kudos
Message 3 of 4
(6,654 Views)

Zoozo,

Take a look at this tutorial:

 

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000x5DNCAY&l=en-US

 

You will need LabVIEW FPGA to program the FPGA on the PXI 7811R. But the pins already have custom code associated with them. The C interface (FPGA Interface C API Generator) takes a bitfile and pulls out items like FIFOs and Read Write controls. You can talk to yout R series card, but won't be able to program it without the FPGA module. And you will also need LabVIEW because there is no scan engine on the R series card. Hope this helps!

 

Jordan

0 Kudos
Message 4 of 4
(6,632 Views)