From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

ComponentWorks & IVI Scope Control

Could somebody directs me towards a good source of information or examples
on the CWIviscope object. I'm no quite sure how to work with the Load, Store,
Export and Import method of this object. Do you have to use them in conjunction
or are they exclusive to each other? Does a configuration apply to all properties
of a CWIviScope object or to just some of them? I'm not connected to an external
device, can it pose a problem? I have Measurement Studio v1.0 installed on
my computer. The help file of IVI Scope Object doesn't provide examples and
I have searched the NI web site and the "PDF Library of Hardware Product
Manuals" that comes with the Developer Suite 2000 without finding something
that could help me out. Thank you
.
0 Kudos
Message 1 of 3
(3,480 Views)
> Could somebody directs me towards a good source of information or examples
> on the CWIviscope object. I'm no quite sure how to work with the Load,
Store,
> Export and Import method of this object. Do you have to use them in
conjunction
> or are they exclusive to each other? Does a configuration apply to all
properties
> of a CWIviScope object or to just some of them?

The methods that you are speaking of reside on the CWIviConfiguration
object. The methods are all exclusive, however Load/Store and Export/Import
would frequently be paired. A CWIviConfiguration object is a generic object
which is a holder for CWIvi properties. For example, suppose you wanted to
use your scope in a particular application where it needs to operate using
two different triggering mo
des at different times during the app. One
option would be to use the properties on the control to set it up for a
given mode. The second would be to preconfigure the two states and store
(using the Store method or the store button in the property pages) them into
CWIviConfiguration objects. They could later be recalled by using the Load
method (or the load button in the property pages) . When Load is executed,
the contents of the CWIviConfiguration object will overwrite the existing
state of the properties.

Import and Export provide a way to persist these CWIviConfiguration objects
to a file. This might be useful for sharing configurations between
applications or for storing off "known good" configurations for a given
device.

> I'm not connected to an external device, can it pose a problem?

You can use the methods without having a live connection to a device. They
can be used with an IVI instrument driver in simulation mode but by
themselves they actually don't even require a
valid instrument session. A
CWIviConfiguration object is strictly a storage mechanism and the
Load/Store/Export/Import methods provide a way interact with the storage.


Regards,

Jason White
National Instruments
0 Kudos
Message 2 of 3
(3,480 Views)
Hi Jason White:
I use NI-6601. Please direct me how to use CWIVI Scope to display the wavefrom output from Counter 2. If you prove the sample code in VB that would be very helpfull.
Thank You.
0 Kudos
Message 3 of 3
(3,480 Views)