Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

PXI-6682 will not show on VISA (C++) but will on MAX

Solved!
Go to solution

First off, I got informed that the PXI-6682 doesn't use DAQmx calls on this thread:

http://forums.ni.com/ni/board/message?board.id=250&message.id=53078#M53078

 

So I remembered that I needed VISA for MAX to see this device.

 

So I tried VISA and used some C++ code (in the example) (and replaced the regular expression with "?*"

status = viFindRsrc (defaultRM, "?*INSTR", &findList, &numInstrs, instrDescriptor); if (status < VI_SUCCESS) { printf ("An error occurred while finding resources.\nHit enter to continue."); fflush(stdin); getchar(); viClose (defaultRM); return status; }

 

It returned to me this:

PXI0::1::BACKPLANE
ASRL1::INSTR
ASRL2::INSTR

 

Now what puzzles me is...it should have returned something more PXI-ish like:

PXI0::15::INSTR

 

I think anyway...

 

Now I also need a way to know if the device is the PXI-6682....looking for calls in VISA, but if anyone got any idea please let me know.

 

Thanks,

Seb

0 Kudos
Message 1 of 5
(4,848 Views)
Solution
Accepted by topic author Sebastien Dupere

Hi Sebastien,

Open Measurement & Automation Explorer (MAX).  Go to Tools » NI-VISA » VISA Options. Under PXI/PCI and FireWire Interfaces, select the "Show all devices accessible to VISA". Click Save and close MAX. Then close and reopen your ADE. That should allow you to see your PXI resources with the VISA find resources call.

Matt
Applications Engineer
National Instruments
Message 2 of 5
(4,814 Views)

That is EXACTLY it.....

 

thanks,

 

Now I'll try to find a way to find it's type (pinpoint that it is indeed a PXI-6682)...I'll browse the visa api, bound to find something

 

But one problem out of many solved.

 

Thanks 🙂

0 Kudos
Message 3 of 5
(4,811 Views)

The best bet is to use the model code, not the model name since that can change.  It should be 0x72B8 for the PXI-6682.

 

-Josh

0 Kudos
Message 4 of 5
(4,754 Views)

Well actualy what we found to be a nice compromise is to find the device in slot 2

 

Try a Sync_Init, if it fails then it's not a time card...

 

not the wonder approach but it does its job

0 Kudos
Message 5 of 5
(4,749 Views)