Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

using cwgraph to interface with a Axion DAQ card( not NI card)

i'm working a a software program to interface hardware using VB 6.0. currently i'm using an Axiom DAQ card, which is not a NI DAQ card. i would like to know what is the coding to interface cwgraph with the card. currently, i've succesfully interface it using RTscope, but RTscope can only plot 2 lines per graph.. thus i am thinking about using cwgraph, but i've a bit problem with the coding.please help.thanks.
0 Kudos
Message 1 of 7
(6,747 Views)
Hello,

The Measurement Studio CWGraph control can plot arrays. So assuming you have an array of data, you can plot that data to the CWGraph using the CWGraph.PlotY method. If you have both X and Y data that you would like to plot, I would recommend using either the CWGraph.PlotXvsY or the CWGraph.PlotXY method. I hope that this information helps you out.

Regards,
Kevin L.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 7
(6,734 Views)
Hello

Just to clarify, the CWGraph control is a User interface control for visualizing data. By itself, it cannot interface with any hardware. The Graph control displays data that is passed to it. The first step would be to acquire data from the Axion DAQ card, Im sure they provide some kind of device driver for use in VB 6.0. Once you have the acquired data, you can chart or plot the data to the CWGraph.

Hope this helps
Bilal Durrani
NI
0 Kudos
Message 3 of 7
(6,723 Views)
Hello

I want to use cwgraph in VB6 but when I integrated this object in my form, a message said me it's a evaluatin copy! I don't understand why ?
And I have another question : if I didn't have this problem I can created with VB6 a application (exe) which use this graph. And after, I can installed this application (exe) in all PCs that I want without installed measurement studio for VB6 ?

Please can you help me to understand what is exactly the goal of measurement studio for VB6 ? Is it just a tool to have more tools (like cwgraph) in VB6?

Thanks

And I hope my english is not so bad, because I'm french.

GBA
0 Kudos
Message 4 of 7
(6,706 Views)
hello..thank for the reply.

i'm having problem with my coding using cwgraph. can anyone help. everytime i do the full compile, there's error.but it can still can run, but can't convert to application form.for your info, i'm using RTscope and cwgraph to plot graph.the error is in the cwgraph coding.below are part of the coding with error. and can somebody tell me how to add cwgraph component in the VB? i try adding component, but it's not in the list of component,and i've browse for it already too.i'm doing the software at home, but i'can run it at my lab cause cwgraph component is not listed.please help.

'--------------------------------------------------------------------------

Dim countTime As Integer, count1 As Integer, countFreq As Integer, countVolt As Integer


Private Sub cmdRun_Click()
If cmdRun.CausesValidation = True Then
cmdPause.CausesValidation = False
tmrOsc2.Enabled = True
tmrOsc3.Enabled = True
Else
cmdPause.CausesValidation = False
tmrOsc2.Enabled = False
tmrOsc3.Enabled = False
For count1 = 0 To 100
Data1(count1) = 0
Data2(count1) = 0
RT1.Value(1, count1) = 0
RT1.Value(2, count1) = 0
RT1.Refresh


CWGraph2.Plots(1).PlotY count1 ' THIS CODING HAS AN ERROR ...
CWGraph2.Plots(2).PlotY count1 ' THIS CODING HAS AN ERROR ...

Next count1
End If
End Sub
0 Kudos
Message 5 of 7
(6,692 Views)
Hello,

Measurement Studio is a set of add-on tools to Microsoft Visual Studio which cater to test and measurement applications. If you have installed Measurement Studio and are getting a message which says your controls are an evaluation version, look to the following link for instructions License Fixer. I hope that this information his helpful.

Regards,
Kevin L.
Applications Engineer
National Instruments
0 Kudos
Message 6 of 7
(6,678 Views)
Besides User Interface controls, Measurement Studio also provides ActiveX controls for Advanced Data analysis and Instrument Control (using GPIB and VISA). It integrates with the VB 6.0 and VC++ 6.0 IDE's to allow you to rapidly develop test and measurement applications. The current version of Measurement Studio also provides support for Visual Studio 2003.

If you have purchased a copy of Measurement Studio, the license fixer should correct this. Otherwise you might have an evaluation version of the controls installed on your system.
Bilal Durrani
NI
0 Kudos
Message 7 of 7
(6,660 Views)