Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Communicating third party daq with rs232 in labview

Hi LAVA,

 

I am using HBM MGCplus ML01 amplifier http://www.hbm.com/en/menu/products/measurement-electronics-software/laboratory-test-stand/mgcplus/?.... I am using Hall sensor to measure the voltage values as the magnetic field varies. So i have connected output of the hall sensor to the input port of the DAQ and my daq is connected to my laptop through rs232 to USB (rs232 in daq and usb in laptop)

when i inserted this cabel, it showed New hardware found and I installed the drive and i installed. In device manager i am able to see COM5...

 

Since it is USB - RS232 cabel, will this acts as serial communication?

 

I have attached my program, pls tell whether i shud use VISA Flush I/O buffer, else this program will work properly.

Every Expert was once a Beginner!!
0 Kudos
Message 1 of 6
(4,186 Views)

As long as it shows up in MAX as a com port, you can use it.

 

A flush buffer is not always required but it can get rid of any spurious data in the buffer before you start doing a read.

 

Why aren't you using the driver?

 

p.s. If you are going to post to both Lava and here, you might not to be so obvious.

Message 2 of 6
(4,182 Views)

thanx for the reply...

 

My DAQ driver is too old and it supports only GPIB.. I have to update the driver from gpib to serial once i successfully tested this program (that is acquiring the hall voltage)

 

That was my first post in lava, just curious to have solutions from many brainies..

 

Thanq once again Denis

Every Expert was once a Beginner!!
0 Kudos
Message 3 of 6
(4,177 Views)
The driver from NI's site supports both GPIB and serial. You've already been told that.
0 Kudos
Message 4 of 6
(4,167 Views)

yes!! but its not working properly, so  i decided to do from the scratch by myself...

Every Expert was once a Beginner!!
0 Kudos
Message 5 of 6
(4,155 Views)

hi,

 

with this program i started execution by connecting usb-rs232 between laptop and my hardware.. i didnt connect my sensor to be calibrated in the input of the DAQ..

 

i got an error, "VISA: (Hex 0xBFFF003E) Could not perform operation because of I/O error"

 

 

 

Every Expert was once a Beginner!!
0 Kudos
Message 6 of 6
(4,151 Views)