01-19-2017 08:42 PM
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.
01-20-2017 10:04 AM
Hi cdu123456,
Are you using Measurement Studio on top of Visual Studio? If so, which version are you using?
01-21-2017 05:42 AM
Hi Matt,
What is Measurement Studio? Could you help introduce it more detail?
01-24-2017 08:19 AM
Take a look at this page. It is an add-on for Visual Studio developed by NI.