LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

BAS file generation - error with ViUInt8 types

I am trying to generate a Visual Basic Include file (.bas) from the CVI IDE menu item "Generate Visual Basic Include", and it is reporting the following error when trying to deal with ViUInt8 or ViInt8 types.  There is no problem with ViPUint8 and ViPInt8 types.


Error in header file "....." at line 74, column 75.  Invalid Visual Basic parameter type 'ViUInt8'.

Given that the ViPUInt8 and ViPInt8 versions work fine, I assume there is a problem for the BAS generator with particular types.  Has anyone found this problem/knows of a solution.

Regards,
Darren



0 Kudos
Message 1 of 3
(3,259 Views)

I have also found the same problem simply using char and unsigned char.  But using pointers char * and unsigned char * it is ok.

Darren

0 Kudos
Message 2 of 3
(3,261 Views)
what version of visual basic are you using?

In earlier versions of Visual Basic certain data types do not exist. It might be that the BAS file generation just won't work with these types. However it could also be that you are missing some data type definitions (such as the VISA ones). You might need to explicitly include some VISA header files into the project to define these data types properly.

Alternatively is there any other way you can use your code in VB? Creating an activeX controller for example?

Jon B
Applications Engineer
NI UK & Ireland
0 Kudos
Message 3 of 3
(3,202 Views)