Quantcast
Channel: Measurement Studio for VB6 topics
Viewing all 323 articles
Browse latest View live

Measurement studio

$
0
0

how can i install  "Measurement studio 1.0.1"  in windows 8 - our new
computer- we program with VB6
or download "Measurement studio  9.1" ?! -i forget how i get last time
and Ni_DAQmx 9.0.2 ( you suggest for windows 7 and VB6)  work well with
windows8 too?!


nidaq32.dll not found windows 7

$
0
0

I am getting the error nidaq32.dll not found.

I see the dll but not able to register it either.

Is this the issue with the Windows 7 compatability?

how to post a questions

$
0
0

OPC Client Application Using Visual Basic

 

 

i need some suggestion for developing opc client application using visual basic . Can any one explain the basics .. 

9264

$
0
0

hello,

 

is there some example of program to control a NI 9264 (or NI 9263) somewhere, in VB6 or C (not labview)

That would be very helpfull as a starting point

thank you

Best

 

Fabian

Cannot write I/O Shared Variable with VB6

$
0
0

Folks,

 

I have a cRIO 9073 with an NI 9474 plugged into slot 6 (other stuff too).  I created a project in LV2012 that uses the scan interface.  All the devices were recognized and the I/O Variables were created for each I/O point.  My VB6 app binds a pushbutton to one of the 9474 channels via the Wizard created I/O variable Mod6 DO0 (Network Published).  When I toggle the push button, the output does not change.  If I create a Shared Variable and bind it to the I/O variable and in turn bind the pushbutton to the newly created Shared Varible, it works!  Why does one method work and the other does not?  I don't have an issue when binding an LED to the I/O Varible.  I really don't want to duplicate every I/O Varible with Shared Varibles.  Any insight would be helpful and appreciated.

 

Blaine

How to convert a VB code(Comm1.Output=Chr$(7)+"R"+Chr$(13)) to labview code

$
0
0

Hi,

I have a question about serial communication.

The code was written by VB, and I want to transform them to labview.

One of the code in VB is: Comm1.Output=Chr$(7)+"R"+Chr$(13), it means 'bell+R+carriage return' were sent to com1 port.

But I don't know how to write this code in labview.

Could anyone help me?

Great thanks

Is CWPID (Component Works) control working on Windows 7?

$
0
0

Is CWPID (Component Works) control working on Windows 7?

XITRON 2801

$
0
0

Does anyone know how to use the VB to capture the date from Xitron 2801 through USB port? Thanks a lot.


CWPID Confirmed not to work on Win 7. Any workarounds?

$
0
0

Component Works PID activeX  gives constantly 0 as return of CWPID.NextOutput( ) function. on win 7

Same piece of code returns non-zero values on win XP.

 

NI's provided PID sample code demonstrates this issue very well.

 

Any ideas on workarounds? (they officially not support win7)

Understand ReadStatusByte return values in VBIB32, VB6

$
0
0

Hello,
When I perform the below function GetData, Call ReadStatusByte(0, GPIBAddress,
spr%)  returns many responses.  I would like to understand what these number
mean.  Can you expand on this?

The definitions of the Hierarchy is found below. The final call,
ReadStatusByte32,  is within the VBIB32 Module.

 

I get values such as 128, 4.....and am looking for a list of what these all mean.  

 

Thanks,

********************************************************************************
***
Public Function GetData(GPIBAddress, sendstring) As String
ErrorLocation = "GetData"
On Error GoTo errorhandler
    Dim ReadThis As String, spr As Integer, ReadTemp As String
    Dim ReRead As Integer
    Dim ReReadCnt As Integer
    'Dim ErrorLocation As String
    ErrorLocation = "GetData"
    ReReadCnt = 0
    ReadThis = ""
    ReadThis = Space$(200) 'space$(180)
    spr = 0
resend:
    Call Send(0, GPIBAddress, sendstring, NLend)
    Call ReadStatusByte(0, GPIBAddress, spr%) '144= ok, 208=ok,
128=trouble(empty), 148= ? , 132 = ? 20 = ok 16 = ok 4 = ?
   
    Do While (spr% <> 208 And spr% <> 144 And spr% <> 148 And spr% <> 16 And
spr% <> 20 And spr% <> 132 And ReReadCnt < 20) ' 0 ' give readstatusbyte a
chance to switch
        If ReReadCnt > 10 Then ' if readstatusbyte does not correct clear the
device and resend to retrieve data after 10 tries.
            Call DevClear(0, GPIBAddress)
            Call ibclr(GPIBAddress)
            Call ErrorLog("Error Tracker: Read Status Byte returned a " & spr%
& ". DevClr/ibclr handled the error. " & FormatDateTime(Now, vbLongDate) & " ,
" & FormatDateTime(Now, vbLongTime))
            ReReadCnt = ReReadCnt + 1
            GoTo resend
        End If
        Call ReadStatusByte(0, GPIBAddress, spr%)
        ReReadCnt = ReReadCnt + 1
    Loop
   
    Call Receive(0, GPIBAddress, ReadThis, STOPend)
   
    GetData = Trim(ReadThis)
   
Exit Function

errorhandler:
    Call ErrorLog(Err.Number & " , " & Err.Description & " , " & ErrorLocation
& " , " & FormatDateTime(Now, vbLongDate) & " , " & FormatDateTime(Now,
vbLongTime))
    Select Case Err.Number
        Case 13
            msgbox (ErrorLocation)
        Case Else
            msgbox (Err.Number & ", " & Err.Description & " , " & ErrorLocation)
    End Select
    Resume Next
 End Function
************************************************************************


*********************************************************
Sub ReadStatusByte(ByVal ud As Integer, ByVal addr As Integer, result As
Integer)
    Dim tmpresult As Long

' Check to see if GPIB Global variables are registered
    If (GPIBglobalsRegistered = 0) Then
      Call RegisterGPIBGlobals
    End If

' Call the 32-bit DLL.
    Call ReadStatusByte32(ud, addr, tmpresult)

    result = ConvertLongToInt(tmpresult)

    Call copy_ibvars
End Sub
*******************************************************
Declare Sub ReadStatusByte32 Lib "Gpib-32.dll" Alias "ReadStatusByte" (ByVal ud
As Long, ByVal addr As Long, result As Long)

Go to local

$
0
0

I am using VBA excel with GPIB command.

Two instruments A and B talk to each other through buses controlled by firmware in A and B seperately. After talk, results displayed on screen of instrument A.

 

I can read result through GPIB connected with A correctly: 

 

I used VBA:

call GPIBinit

call ibwrt (xxx,xx)

call ibrd(xxx,xx)

But I noticed part of the screen on A is blank now.

 

I understand I have to release control, so A and B will talk to each other correctly. I used:

call ibwrt(xxx, "*CLS")

call ibwrt(xxx, "*RST")

call ibwri(xxx, "GTL")               

close visual basic code window

None of them working, I have to close excel sheet.

 

Can any one tell me which command to used at the end of sub to release the control? I don't want to close excel each time.

 

Thank

 

Mindy                     

inputting parameters to a VB based program using lab view

$
0
0

i have bught a new stepper motor driver from a local vendor...the vendor has provided me a vb program to access and program parameters into it...but i have to synchronise it with other devices like measurement devices which i m accessing through lab view is there way i can access and input parameters to the Vb program using lab view so that i can integrate both of them and synchroize them using lab view?

 

Meas Studio eval-only controls have stopped working error on legacy installation but system still runs fine.

$
0
0

Gang:

I know I'm a dinsour.  I'm a small business man who bought a couple of production machines that were built in 2003 from a local engineering contractor.  Each has a couple of NI boards that run the machine running under Win XP.  A nice little VB6 program was created when the machines were new.  We've been really happy with the reliablity of the systems which have run 5/24 for the last 11 years...in fact we've never needed to repair the cheap PCs, although the parts were always at the ready.  So now I've built a couple of replacment systems using the same NI boards, with a fresh install of Win XP SP3 using the Traditional NI-DAQ (Legacy) 7.4.4 driver and the replacment systems boot right up and the machines work perfectly except...

 

I keep getting the "Your Measurement  Studio Evlauation-only controls have stopped functioning" message.  Great!  Let them stop functioning!  My machine works fine with out them--whatever they are.  However the error message keeps popping back up again, and again, and again.  What do I need to do to make this message go away for good?

--Steve

Automation error 30000 ... might be frame grabber issue?

$
0
0

I'm getting an "Automation Error -30000" error in a dialong box when I click a button that is supposed to begin the data acquisition process using a Basler Camera and a PCE-1428 frame grabber.  I can't find any documentation on what might cause an error 30000 (or perhaps it is -30000)

 

This is a fresh install on a Win7 platform.  The application was written in VB6 many years ago and has run non stop on Win2K machines ever since it was written and ran during development on XP.

 

I've attached the camera file (that will successfully grab data using NI-MAX on Win7).  I've also included a process monitor log from the Windows 7 install showing what happens when we begin trying to acquire data.  This appears to show that all of the DLL/OCX/s have loaded correctly and that the correct ICD file is being loaded based up on the use of the img1 configuration.  An error occurs in a rather strange location that seems to refer to a KnownClasses item deep in the registry.

 

The camera file works fine with NIMax but we did need to manually generate it, because of this I'm posting under VB6 instead of a hardware thread (I'm assuming the config and hardware are correct since your code seems to get data fine)

 

There is a screen shot showing the versions of all of the NI code and showing that we are using img1.

 

Is it possible that newer versions of the NI software aren't compatible with the old VB6 code?

 

vi conversion from 8.5 to labview 10 regarding.

$
0
0

hello sir,

    The source code was originally built in labview 8.5, but after
that updated to labview 10.The os is windows7.


Problem: the Pc reboot or shut down automatically once in 2 days
,especially night time.

Pls change this application compatible to labview10 drivers,win7.


with regards,
uma maheswari,
Application Engineer.
Elnix Technologies(chennai)Pvt.Ltd.


Message shown "Evaluation licence"

$
0
0

Hello

 

N.I. authorizes using of the software components (CWanalysis.ocx) included in the developed code and naturally it works correctly. Nevertheless, for this one used in Excel macro-commands, it raises a problem because it is necessary to copy manually components on all PC using Macro-commnds. In this case, when launched the macro-command works but indicates that it's a case of N.I. evaluation license !

 

You already have met this problem : in this case how did you solve it ? My be with an encapsulation of CWanalysis.ocx in a personnal ocx or DLL ? Does it work correctly ? In that case I would like an example or explanations ?

Any help will be welcome, By advance thanks


 

Claude

VB6.0andPCI-4474

$
0
0

Hello,everyone.My DAQ is PCI-4474.Dose it support VB6.0?I just want to write a softerware in VB6.0 to get data from the sensor.By the way, my sensor is PCB-106B.

CWGraph1.PlotXvsY X_Date, Data, False got the message:xdata and ydata size mismatch

$
0
0

   CWGraph1.PlotXvsY X_Date, Data, False

QQ图片20140224115857.jpg

pls  help to sovle,thanks!!!

I can't get my PCI-6032e to show up under 'Devices and Interfaces'

$
0
0

I have two computer testers.  One I replaced back in 2009 and the other I'm replacing now.  I've installed the same software Ni-DAQ 6.5.1 and ComponentWorks 2.0.1.  Everything is ready except my VB program can't find the PCI-6032e under the 'Devices and Interfaces' category.  I've looked in this folder and its empty.  On the 2009 computer its populated with the card.  I can right click and there is an 'insert' feature but none of these say my model number, just items like SCXI-1000.  I had to call National Instruments to help last time but I don't remember what I need to do.  I've uninstalled and reinstalled the software and explorer twice now.  The card is showing up fine under the computer device manager.   

 

Can anyone help me?

 

Thanks,

Darren

where i can download cwanalysis.ocx

$
0
0

Hi all,

i got an application developed in vb6 that misses some components and in the specific the cwanalysis.ocx .. VB says that National instruments CW analysis 6 is missing...

i'm wondering if this file is part of labview runtime engine or some king of package that is available to download..

 

Thanks in advance for your help:smileyhappy:

Viewing all 323 articles
Browse latest View live