LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to create multiple instances of an instrument?

Hello,
 
1) I've generated an instrument by creating an activex controller for controlling a meter (the activex component was created in VB specifically for controlling this type of meter).
2) I've created an object handle and id by using the "New_meter" function.
 
Through this handle I can successfully control 1 meter, but I want to control 2+ meters.  I've tried generating more handles & ID's using the "New meter" function but it doesn't work as when I try and call one of the new handles it tells me my meter is already connected though I'm using different handle & ID and different settings for the different handles?
 
Any thoughts on what I'm doing wrong or how to get this to work are greatly appreciated!! Smiley Happy
 
Thanks
Mike
0 Kudos
Message 1 of 2
(2,733 Views)
Hello Mike,

After generating two handles with the New Meter command, are you able to successfully call subsequent functions with the first handle, but only get errors when you call these same functions with the second handle?  You mentioned that this controller was created in VB, if you created a VB test application and performed the same tests you did in CVI, would you get the same results?  If so, I suspect your instrument driver might restrict this functionality.  You might want to check www.ni.com/drivers to see if another CVI instrument driver is available for your meter.  This might help you work around this issue.

Thanks.
Wendy L
LabWindows/CVI Developer Newsletter
0 Kudos
Message 2 of 2
(2,695 Views)