Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

I'm trying to use VISA with LabWindows CVI to access the PXI DMM 4060, when I call the:

46 views
Skip to first unread message

bfattouh

unread,
Oct 14, 2004, 4:58:34 PM10/14/04
to
Help for VISA programming with C to control the PXI DMM NI4060.
Icould not use some functions within the VISA library.
niDmm4060Service.c

bfattouh

unread,
Oct 15, 2004, 5:35:17 PM10/15/04
to
Thank you Logan S. for your message. The reason I Don't want to
programm the DMM in LabVIEW, is that I have a graphical user interface
for the NI-4060 device developed with Java, and which is intended to
control this device remotely, so I need a wrapper as a an interface
between java code and C code based on VISA Library to access and
control the VISA device, that is N-4060. Possibly the interface can be
developed using JNI (Java Naming Interface).
Now, I run some C code using VISA library to communicate with device,
I could access the device using its description string
(PXI2::13::INSTR), but I want to read the measuring data, I figured
out that : viRead(ViSession vi, ViPBuf buf, ViUInt32 count,ViPUInt32
retCount) is not supported by the PXI INSTR class, so how can I read
data using VISA library.
In the extent to this issue, when it is useful to use either IVI or
VISA libraries?
Thank you for the help.

LoganS

unread,
Oct 18, 2004, 2:33:24 PM10/18/04
to
Thanks for your quick reply, but I'm still a bit confused. You
mentioned using a wrapper to interface the C code and Java. So you
are calling the VISA functions from the VISA dll, correct? Assuming
that's your situation, there is no reason why you couldn't access the
NI DMM dll and use the function calls therein to program your board.
Please advise.

Logan S.

bfattouh

unread,
Oct 19, 2004, 11:34:18 AM10/19/04
to
Thank you for reply. That's right I'm calling VISA functions from VISA
dll, I could communicate with the device and retrieve (Manufacturer
ID, Model Name, etc.)
I tried to use functions like viRead, viVScanf and others to retrieve
a voltage value from the NI PXI 4060, I figured out that these
functions and others are not supported by the class INSTR PXI
correspnding to my device.
So my question which method can I use to read values from the device
and what kind of information to pass to the device: commands,
formatting, etc..
I checked out the examples that come with National Instrument software
distribution but there's not much more information.
You help is appreciated !
0 new messages