Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

BFG500n

Hi guys and gals

 

Ive got a BFG500n Mecmesin force gauge. I have a rs232 lead for  it to connect to PC, I have been in contact with mecmesin and they said to their knowledge no one has used it with labview. I want to be able to read in coming data from RS232 constantly. the Mecmesin  has setting, if you want one reading sent at a time the baud rate 9600, parity is set to 0, bits is 8, flow control is none. If you hold the TXD button the BFG500n it puts it in to continous mode and the baud rate changes to 57600. In the data sheet for the BFG500n it says if i send a ?  command it will allow displayed readings to be sent over RS232.  I am a bit stuck because that is all the information i can get from Mecmesin. I have made a VI using Visa configure Serial port and a serial read.

0 Kudos
Message 1 of 10
(4,677 Views)

Before trying to automate with LabVIEW, use a program like Hyperterminal to communicate with the instrument.

Once you are able to do so, *then* automate with LabVIEW.

 

 

0 Kudos
Message 2 of 10
(4,670 Views)

without sounded dumb is hyperterminal the cmd promt window. also how do i find out which com port i have it connected to. thanks

0 Kudos
Message 3 of 10
(4,668 Views)

No, the Command prompt window is not Hyperterminal.

 

Most modern PCs if there is a COM port has only one so it is by default COM1.

 

 

0 Kudos
Message 4 of 10
(4,664 Views)

ok i had a look into this hyperterminal stuff and it says its not windwos 7 which is what im using, is there another way of communicating with com ports thanks

0 Kudos
Message 5 of 10
(4,654 Views)

Google Hyperterminal Windows 7

0 Kudos
Message 6 of 10
(4,647 Views)

Two free alternatives are Tera Term and PuTTY.

0 Kudos
Message 7 of 10
(4,644 Views)

ok so got a hyperterminal and got it working on hypertermiinal being able to read data from it and also controll the time its sends a command by pressing ctrl and A, next thing is how to get this to work in labview. i opended one of the basic examples in labview for serial i can send read whats comming from the port but its not the same as hyperterminal. in hyperterminal it \displays whats on the BFG but in labview it just displays 40\r\n when its meant to read 160, can any one help me understand how hyperterminal reads the serial data. so i can implement that in LabView

0 Kudos
Message 8 of 10
(4,623 Views)

With LabVIEW, you have the option to display data as Normal, '\' Codes Display, or Hex. The examples are set for '\' Codes Dispaly so the only major difference is that you will control characters CR and LF as \r and \n, spaces as \s, etc. The 40 you are seeing is no different. Perhaps what you are sending is incorrect. Are you sending both CR/LF (\r\n) like Hyperterminal does?

0 Kudos
Message 9 of 10
(4,618 Views)

its ok got it sorted, tried sending a command and reading 1024 bytes instead and it now works a treat. thanks

0 Kudos
Message 10 of 10
(4,613 Views)