U12 AIBurstX does not work with EXCEL VBA 2016 | LabJack
 

U12 AIBurstX does not work with EXCEL VBA 2016

2 posts / 0 new
Last post
Leeon
GW's picture
U12 AIBurstX does not work with EXCEL VBA 2016

I use excel VBA 2016 to run U12 AIBurstX, and always get an "error 13--type mismatch", even in the case that all the inputs are given in exact numbers (except three outputs: 2 string+ one long) . I can not find the reason. Can anyone help me to have a look of my code?  It works fine with AISampleX, and AOupdateX. Thanks  in advance!

 

  

File Attachment: 
LabJack Support
LabJack Support's picture
For the first parameter idnum

For the first parameter idnum, pass a variable like you do with your other functions. That parameter is an input and output.

AIBurstX is documented here:

https://labjack.com/support/datasheets/u12/programming-reference/aiburst

There is a Visual Basic 6 example of AIBurstX in this download:

https://labjack.com/support/software/examples/u12/visual-basic

Open the AIBurstX\main.frm in a text editor to view the code. The example code is in the Sub cmdBurst_Click, and is pretty much the same in VBA/Excel.