10-27-2009 10:27 AM
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
Solved! Go to Solution.
10-29-2009 01:25 PM
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.
10-29-2009 02:08 PM
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 🙂
11-03-2009 03:55 PM
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
11-03-2009 04:04 PM
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