Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

NI 5640R visa commands

Hello!!
I want to try to work with NI 5640R using VISA commands. Does anybody know, where I can get them? I am not sure, that they are right in Instrument Driver.
This device does not work with FPGA, I don't know why:)
I will be also very thankful  very for any help at
Thanks!!:):):)
0 Kudos
Message 1 of 6
(5,611 Views)

Hello Call,

The 5640R has two personalities which can be used by the 5640R driver or LabVIEW FPGA.  If you install the current version of the 5640R driver and would like to use that personality, then you will not be programming the FPGA.  I would suggest using the compiled driver to interact with the 5640R because the VISA commands would give you the same functionality.  You would not gain anything by using VISA over the driver.  However, the VISA commands are going to be a lot harder to implement. 

What development environment are you using?  There are shipping examples that could help you program the 5640R.  Were you able to communicate with the 5640R previously?  What are you trying to get the 5640R to do?

Respectfully,

Rob F
Test Engineer
Condition Measurements
National Instruments
0 Kudos
Message 2 of 6
(5,525 Views)

Hi Robert F!!

There is the error, when I'v trying to work with the 5640R driver:

Error -1073807346
Possible reason(s):
VISA:  (Hex 0xBFFF000E) The given session or object reference is invalid.

I that, that I have wrong commands inside the 5640R driver, but I understand, likely that this is not the case/

I am using LabVIEW 8.2.1 Full, FPGA modul, instrument driver 1.0(I think)

Examples does not work too

I wasn't able to comunicate.

I want to do some like the spectrum anakiser example:)

Pleese, look the other post, probably you could understand, what's happening^)^)
http://forums.ni.com/ni/board/message?board.id=270&message.id=4113&jump=true

Thank you for any help!!:):):):))))))

0 Kudos
Message 3 of 6
(5,513 Views)

Hello Call,

There are two sets of examples, one for FPGA and the other set uses the 5640R driver.  Were you ever able to get any of the examples to work?  I would recommend using the 5640R driver before trying to modify the FPGA examples. 

How many versions of LabVIEW do you have on your computer?  If you have LabVIEW 8.0 and 8.2 with the 5640R 1.0 driver, then you may need to change the directory of some files.  

The installer only installs in LabVIEW 8.0, so you would need to manually copy the files from LabVIEW 8.0 folder to LabVIEW 8.20 folder.

Here is the list of steps you should follow to get the IF-RIO 5640 card working in LabVIEW 8.20 with NI-5640R Driver version 1.0:

1. Copy labview 8.0\instr.lib\ni5640r to labview 8.2\instr.lib\ni5640r.

2. Copy labview 8.0\targets\ni\fpga\pci-5640r to labview 8.2\targets\ni\fpga\pci-5640r.

3. Copy labview 8.0\vi.lib\labview targets\fpga\pci-5640r to labview 8.2\vi.lib\labview targets\fpga\pci-5640r.

4. Copy labview 8.0\examples\fpga\ni-5640r to labview 8.2\examples\fpga\ni-5640r

5. Run labview 8.2\targets\ni\fpga\bin\lvfpga_make_resource_cache.exe.

That error (-1073807346) is identifying that the resource name is incorrect.  However it seems that you might just need to move some files around.

Respectfully,

Rob F
Test Engineer
Condition Measurements
National Instruments
0 Kudos
Message 4 of 6
(5,377 Views)
I had the 7.1 before, but now it is updated to 8.2.1, I have allways had the problem like this, and I have been mooving files from the libraries, but from the other libs, now I'll try theese!!:)
Thank very very very much you for the reply and for the detalis!!
I'll try tomorrow (we have 2:17 am now)
Have a good day!!:):):):):):):):):):):):):):)
0 Kudos
Message 5 of 6
(5,347 Views)

Hello again:)

thank you very match for all help!!!:):)

I have almost work, it was my diploma project, it have been compiling, and there was an error after it, I think it was the computer (slowly mashin:):))

But It has almost work!!

Thank you, Robert F !!:):):):):)

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