AnsweredAssumed Answered

IEEE Binary Blocks in C

Question asked by mjcoury on Jun 26, 2008
Latest reply on Jun 26, 2008 by odanzy
I am a deadly combination of a C# novice and being born well after the extinction of HPIB / GPIB.

I am working on C# program for a friend of mine that will communicate with a custom device.


Anyway, I am grinding through the process of learning how to bounce commands off of this thing and I am now to the point where I have to send a string of hex characters, (i.e. 25 0x00s)



I have tried to use the

ioobj.WriteIEEEBlock("DWN", objArray, true);

where  ioobj is part of Ivi.Visa.Interop.FormattedIO488Class

and where

            object[] objArray=  new object[25] {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
                                            0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};


I get an error saying, ' IEEE binary blocks cannot be of the type provided in the array argument. '

Can anyone help me out?


Thanks,

Mike  

Outcomes