11-27-2008 10:08 AM
Hi Folks,
I'm programming a LabVIEW VI that uses the NI-Scope VIs to talk to a USB-5133. Everything seems to work well, but after calling NI-SCOPE Initialize, I have an 'insturment handle' that needs to be routed to all other NI-SCOPE calls. I'd like to bundle the 'instrument handle' into a cluster to reduce the number of shift registers in the VI, rather than route the handle through its own shift register and as a separate wire everywhere. Can you tell me the data type of 'instrument handle', and where in the palettes to find one, so I can drop it into a cluster?
Thanks!
12-01-2008 02:16 PM
Hey rogersct,
The data type for this instrument handle would be an "IVI session of class niScope". The easiest way to place a constant of this type on your block diagram would be to right-click on the instrument handle output terminal of niScope Initialize.vi and select Create >> Constant. This should give you a constant of the appropriate data type that you can use to initialize your cluster.
You can also create a IVI session control from the front panel under I/O >> IVI Logical Name. You would then need to right-click on the control and select: Select IVI Class >> IviScope >> niScope. I always use the first method however as it is the quickest. This should be what you need but if you have any questions please don't hesitate to ask. Thanks for posting and have a great day!
-John