Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

the ibwrt() pass in VS2005 but fail at vs2010

Hi All,

We used ibrd() and ibwrt() when GPIB communication to save time for our customer. It is  no problem in  VS2005.

 But for VS2010, it always pop up this dialog box when executing ibwrt() as the attach.
 
Could you help try to find why the dialog box was found and how to fix it, thanks! 
Below is the sample code

> int Device = 0;                   /* Device unit descriptor                  */
> int BoardIndex = 0;               /* Interface Index (GPIB0=0,GPIB1=1,etc.)  */


> int   PrimaryAddress = 2;      /* Primary address of the device           */
> int   SecondaryAddress = 0;    /* Secondary address of the device         */


>   Device = ibdev(                /* Create a unit descriptor handle         */
>         BoardIndex,              /* Board Index (GPIB0 = 0, GPIB1 = 1, ...) */
>         PrimaryAddress,          /* Device primary address                  */
>         SecondaryAddress,        /* Device secondary address                */
>         13,                    /* Timeout setting (T10s = 10 seconds)     */
>         1,                       /* Assert EOI line at end of write         */
>         0);                      /* EOS termination mode                    */

>   ibclr(Device);


>   ibwrt(Device, "*RST", 4);//the dialog box pops up here.

 

0 Kudos
Message 1 of 4
(2,698 Views)

Hi cdu123456,

 

Are you using Measurement Studio on top of Visual Studio?  If so, which version are you using?  

Matt | NI Systems Engineering
0 Kudos
Message 2 of 4
(2,657 Views)

Hi Matt,

What is Measurement Studio? Could you help introduce it more detail?

0 Kudos
Message 3 of 4
(2,648 Views)

Take a look at this page. It is an add-on for Visual Studio developed by NI.

Ren H.
Applications Engineering
National Instruments
0 Kudos
Message 4 of 4
(2,628 Views)