Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

Question about the Ni-DAQ function used in VB

thanks for the previous answer first!
I found that my computer has not installed the Measurement Stduio. When i wanna add module with file nidaq.bas, it shows nothing. Therefore, i download this file and nidaqcns.inc file from the web. Then i add them into VB project.
When i use the function, as i don't how to use them. I just simply copy the "AI_Change_Parameter (deviceNumber, channel, paramID, paramValue)" and see the effect. But it states that "invalid outside procedure". Thereafter, i try just input 1 instead. same statement arouse.
So, my question is how to use them, because i don't have the example.
Thank you very much
0 Kudos
Message 1 of 2
(3,112 Views)
It's hard to say for sure without seeing some code, but it sounds like you might be calling the function outside of a subroutine or function. Please verify that the call to AI_Change_Parameter is in a subroutine or function and if you're still getting the error, please post the code that's causing the error. Thanks.

- Elton
0 Kudos
Message 2 of 2
(3,112 Views)