Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

EARG (4) error when using ibrd() in Visual Basic 6.0

Oops, don't know what happened with the zip file.  Hope this works...
0 Kudos
Message 11 of 13
(1,376 Views)
Woo hoo!  So I checked the latest niglobal.bas and vbib-32.bas files.  Their version information is EXACTLY the same as the ones I was using, HOWEVER - the ibrd() funtions pass Len() in the count parameter instead of LenB() !!!!  This seems to fix the problem!  Thank you very much, saikey, you were exactly right.
 
OK, I'll keep running this app and see if I can get any of these errors back, but I'm hoping that the problem is now solved.  Thank you to EVERYONE who was helping me with this!  Our code has had this problem for over a year!!
 
Cool.
 
0 Kudos
Message 12 of 13
(1,487 Views)
Sedgwick,
 
That's great news.  Pretty interesting problem.  I was talking to our oldest GPIB group member and she was telling me about the difficulties of making the language interface both backwards and forwards compatible once VB switched to Unicode for all its strings.  As you found, there are many subtleties that can cause weird issues.
 
Scott B.
GPIB SW
National Instruments
0 Kudos
Message 13 of 13
(1,359 Views)