03.04.2006, 13:25
Hallo zusammen,
ich bin dabei einen Kalibrator (SIKA microcal2000+) in LabVIEW 7.1 einzubinden der per RS232 am Rechner hängt. Zur Instrumentensteuerung habe ich eine .DLL die mit VBasic 6.0 sp5 generiert wurde. Man muss dafür wohl objektorientiert Instanzen der Klassen generieren und schliesslich Methoden aufrufen. Kann mir jemand sagen ob und wie das in LabVIEW gehen kann?
Besten Dank und Grüße,
Christoph Wolz.
Hier die Programmbeispiele des Herstellers:
Example of use in VBasic 6.0:
Set objdrv = CreateObject("eurodrv_mcal200.clsdriver")
In order to manage the protocol there is a set of the publics methods {you see CAP 4.3.0} that list all the possible
actions available for the instrument.
Important: note that the DLL always mast be registered with the command : regsvr32 pathname.dll
· Example of use in VB .Net 2003:
Dim objdrv As Object objdrv = New eurodrv_mcal200.clsdriver
objdrv.AppPathDebug = Application.StartupPath & "Debug"
If objdrv.opencomm(("Serialport"), ("combbaudrate")) Then
Message (objdrv.IsDriver) ‘ {you see CAP 4.1.0}
End if
In order to manage the protocol there is a set of the publics methods {you see CAP 4.3.0} that list all the possible actions available
for the instrument.
4.3.0 Driver function structure
Methods Parameters Results Description
Getdirection 1 or 2 Boolean If Ch1 or Ch2 -> In or Out
Getscaleinfo String String setting chanel
Serialport Boolean Return true if OK opencomm
baudrate
closecomm
idchn Boolean {you see CAP. 5.1.2}
muxchn
direction
.. (others parameters for set)
Setchn
idchn Boolean
muxchn
direction
measure()
Getmeas_output
errornum()
idchn Boolean Compeer sernum with mcal200 GetSN
sernum
bDebug Path file Boolean Your Path file + DebugMcal200.txt
IsDriver String
DestinationDir+Filename SendFile
OrigineDir+FileName
OrigineDir+FileName
DestinationDir+Filename
ReceiveFile
Overwrite
FilesName NomeDirectory InstrumentFile ()
{you see CAP. 5}
ich bin dabei einen Kalibrator (SIKA microcal2000+) in LabVIEW 7.1 einzubinden der per RS232 am Rechner hängt. Zur Instrumentensteuerung habe ich eine .DLL die mit VBasic 6.0 sp5 generiert wurde. Man muss dafür wohl objektorientiert Instanzen der Klassen generieren und schliesslich Methoden aufrufen. Kann mir jemand sagen ob und wie das in LabVIEW gehen kann?
Besten Dank und Grüße,
Christoph Wolz.
Hier die Programmbeispiele des Herstellers:
Example of use in VBasic 6.0:
Set objdrv = CreateObject("eurodrv_mcal200.clsdriver")
In order to manage the protocol there is a set of the publics methods {you see CAP 4.3.0} that list all the possible
actions available for the instrument.
Important: note that the DLL always mast be registered with the command : regsvr32 pathname.dll
· Example of use in VB .Net 2003:
Dim objdrv As Object objdrv = New eurodrv_mcal200.clsdriver
objdrv.AppPathDebug = Application.StartupPath & "Debug"
If objdrv.opencomm(("Serialport"), ("combbaudrate")) Then
Message (objdrv.IsDriver) ‘ {you see CAP 4.1.0}
End if
In order to manage the protocol there is a set of the publics methods {you see CAP 4.3.0} that list all the possible actions available
for the instrument.
4.3.0 Driver function structure
Methods Parameters Results Description
Getdirection 1 or 2 Boolean If Ch1 or Ch2 -> In or Out
Getscaleinfo String String setting chanel
Serialport Boolean Return true if OK opencomm
baudrate
closecomm
idchn Boolean {you see CAP. 5.1.2}
muxchn
direction
.. (others parameters for set)
Setchn
idchn Boolean
muxchn
direction
measure()
Getmeas_output
errornum()
idchn Boolean Compeer sernum with mcal200 GetSN
sernum
bDebug Path file Boolean Your Path file + DebugMcal200.txt
IsDriver String
DestinationDir+Filename SendFile
OrigineDir+FileName
OrigineDir+FileName
DestinationDir+Filename
ReceiveFile
Overwrite
FilesName NomeDirectory InstrumentFile ()
{you see CAP. 5}