Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Can't Find CWARRAY Examples ..

Can anybody tell me if there is example program available for using CWArray control? I have Measurement Studio Eval Copy and DAQmx on my system. And I am using VB 2008 for programming.
0 Kudos
Message 1 of 4
(3,680 Views)
Hey vjuno,
Is there any reason why you are using CWArray instead of the .NET Array functions? The CW controls are legacy controls that were released with VB6. There is an equivalent in VB.NET that can be found in the System namespace with the Array class. Here is a link to the Measurement Studio help file that also includes an example:

http://msdn.microsoft.com/en-us/library/system.array.aspx

Hope this helps!

Lars
0 Kudos
Message 2 of 4
(3,662 Views)

Hello Lars,

 

Thank you for your reply.

I am new to VB .NET. My previous application was written in VB 6, and it made use of CWArray. There I could put my acquired data direcctly into a single array

using: LogData(l) = CWArray.Index(binary,(0,Null) .. where 0 is my channel to be read.

I think that was very fast and I hardly had to lose data while writing the Binary collection fron DAQ to the computer.. I am not sure if the .NET Array Class is that efficient. Moreover, being new to the language, I am having trouble understanding the concept.

 

Vijay

0 Kudos
Message 3 of 4
(3,649 Views)
Hey Vijay,
After looking further into your issue I found the ArrayOperation class which if you compare with the CWArray class it actually shares all of the same methods. You can find this class and the available methods associated with it by going to the Measurement Studio 8.5 Help and searching the Local Help for "array" and it is the 4th or 5th result. If you are familiar with the functionality of CWArray then you should be able to implement the ArrayOperation class just like you used to in VB6. Try this out and see how it works.

Lars
0 Kudos
Message 4 of 4
(3,642 Views)