LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Rs232

Hi : I am using BK PRECISION instruments , I want to control it using labiew , using RS232 … I see the this device connected at com1 ,, can I use visa to control this device ,, … I trey to control it but I didn't succeed … can any one tell me why ,, I look in it user manual … this is how they suggest to control ,, really if any one can help me I would be very thankful

 

thanks

 

0 Kudos
Message 1 of 8
(3,240 Views)
You should be able to use VISA to control the device, if the protocol that the device uses to communicate is supported by VISA. What exact model do you have? Have you tried contacting the manufacturer to see if they have LabVIEW drivers developed for this device? Also, have you had a look in the Instrument Driver Network? If your device is not listed, you can download drivers for an almost similar device and can replicate most of the behavior from there.
Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
0 Kudos
Message 2 of 8
(3,234 Views)

elyan wrote:
I trey to control it but I didn't succeed … can any one tell me why ,,

What did you try, and what didn't succeed? You basically need to create a byte array that corresponds to the commands that you want to send. A partial example:

0 Kudos
Message 3 of 8
(3,216 Views)

Is this device RS232? Just a quick look at the protocol you attached shows an address block, which might indicate RS485.

 

If you have LabVIEW installed on your machine that would indicate that you probably have Measurement and Automation Explorer (MAX) installed as well. MAX will allow you to try using visa to communicate with your device without writing any LabVIEW code. Also, are you able to talk to the device using any other programs, such as "Hyperterminal" which comes with Windows?

 

 

Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



0 Kudos
Message 4 of 8
(3,215 Views)

Which instrument specifically anre you trying to control via the serial port?

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 5 of 8
(3,200 Views)

Hi:

 

 

can you tell me please how you set the Format ,,, attach see file so you can see what i mean ?? how do you set AA IN HEX

 

THANKS

0 Kudos
Message 6 of 8
(3,190 Views)

Hi :

 

can you fixed my mistake in attach  file

0 Kudos
Message 7 of 8
(3,186 Views)

elyan wrote:

Hi:

 

 

can you tell me please how you set the Format ,,, attach see file so you can see what i mean ?? how do you set AA IN HEX

 

THANKS


  1. Right-click on a numeric constant and select Properties...
  2. On the Appearance tab check the box "Show radix".
  3. On the Data Range tab change the representation to U8.
  4. On the Format and Precision tab:
    1. Select Hexadecimal
    2. Check the "Use minimum field width".
    3. Set the numeric control right below this to 2.
    4. Select "Pad with zeros on the left" from the dropdown.
0 Kudos
Message 8 of 8
(3,144 Views)