I am doing a litle application with Visual C++ and the ComponentWorks++ to
control a GPIB device. I am tring to Plot a CNiGraph with data coming from
the GPIB function generator. I use the code below to write/read the device
and to Plot the graph. It give me some results but for exemple, if I
request a sin wave it give me something that doesn't look like a sin and if
I request a square wave it give me about the same wave... So I want to know
if the problem is in my code or maybe it's because my device is just a
emulator not a real func generator. But I guest I am doing some kind of
convertion error.
CNiInt16Vector vBuffer(100); // Should I try CNiReal64Vector or something
else ?
m_Visa->Write(m_strC
ommande); // Write to the device, this works well
m_Visa->Read(vBuffer); // Is it the right way to do reading ?
m_Graph.PlotY(vBuffer); // This Plot some data, but it doesn't seem right
Could somebody bring the light on this?
Thanks alot!
P.S. Sorry for the bad english...