Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with LicenseLevel

Hello,
I have made my software with the ocx  National Instrument CW Analysis 6.0
CWMatrix1
CWArray1
 
It work when I try it but not when I make an executable (.exe)
Do you know why?
 
I try the exemple with the function that I use: GenEigenValueVector
When I work with Vb, My LicenseLevel is 3, but when I make an .exe it is 1 Why??
And With this LicenseLevel 1 I can't use this function whereas I have pay for the good Licence Level.
The Exe stop with a run time error '30008'.
 
I give you the code for the exemple that I use. I have juste add the Print.
 
 
Private Sub Command1_Click()
  'Generate a 2D array with random numbers and compute both its
  'eigenvalues and eigenvectors.

Print "cwanalysisAdvanced:" + Str(cwanalysisAdvanced) '3
Print "cwanalysisBase:" + Str(cwanalysisBase) '1
Print "cwanalysisDSP:" + Str(cwanalysisDSP) '2
Print "cwanalysisEvaluation:" + Str(cwanalysisEvaluation) '0
Print "My LicenseLevel: " + Str(Me.CWMatrix1.LicenseLevel)
 
  Dim x As Variant, evalreal As Variant, evalimag As Variant
  Dim evecreal  As Variant, evecimag As Variant
  ReDim x(0 To 3, 0 To 3)
  For i = 0 To 3
    For j = 0 To 3
      x(i, j) = Rnd
    Next j
  Next i
  outputtype = 1  'Compute both the eigenvalues and eigenvectors
  CWMatrix1.GenEigenValueVector x, outputtype, evalreal, evalimag, evecreal, evecimag

Print "It Works"

End Sub
 
Thank You,
Y. Goyer
0 Kudos
Message 1 of 2
(5,722 Views)

Please have a look to the following thread:

http://forums.ni.com/ni/board/message?board.id=230&message.id=2521

Hope this helps.

Matthieu G., NIF

0 Kudos
Message 2 of 2
(5,696 Views)