Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Den. Inst. and Mettler balance not responding to print command from Visa

Solved!
Go to solution

The manual will provide the commands you would use with all programming languages. Attach it.

 

The example program you are using is not set for hex data. Did you change the VI?

 

You do know that there are different types of serial cables, don't you?

Message 11 of 21
(1,914 Views)

I have connected the RS232 serial cable and the program in labview is reading bytes in the interface. But the mass data is not recorded. How to change the program to incorporate hex data? What changes are to be made in the VI to make the m,ass balance reading transfered to the Labview?

 

 

0 Kudos
Message 12 of 21
(1,907 Views)

I am using the RS232 DB25 to DB9 converter for the communication through the serial port. The cable was provided by Denver to connect the instrument to a hyper terminal and read data through ethernet.

0 Kudos
Message 13 of 21
(1,906 Views)

Hi

 

My problem is kind of similar to the problem listed on the top of this post. He has also used Denver Instrument Mass Balance. The Denver Manual as well as thier correspondents give no clue on how to log data in Labview. I am really in a fix. No code no command....nothing....

 

Subhayan

0 Kudos
Message 14 of 21
(1,901 Views)
You just have to right click on the string control to change to hex display. Programming on LabVIEW is no different than any other language and the manual should not be expected to be that specific. Since you still have not attached the manual, I don't see any way to help.
0 Kudos
Message 15 of 21
(1,897 Views)

I am attaching the manual. I have right clicked on the string control. In LAbview 8.0 there is no such option called hex display.

 

I am new to Labview so i may be wrong but i did not see anything called hex display in right clicking the string control.

0 Kudos
Message 16 of 21
(1,890 Views)

Of course the option is there.

 

 

 

Just where in the manual do you see where you must send "hex 1B+P"? What happens if you send a command that is in the manual such as "Get SV" (without the quotes and appending \r\n)?

0 Kudos
Message 17 of 21
(1,886 Views)

I changed the string control to hex display but it is reading the bytes only and not the mass. I think there is some error in the block diagram i.e. basic serial write and read.vi. How is this block diagram changed when we use it for mass balance instruments? Also where should i type the code "GET SV"?

 

 

0 Kudos
Message 18 of 21
(1,867 Views)

There is no error in the block diagram and you may not need to change anything.

 

I'll ask again why you think you need to change to hex display and send that command. It is NOT listed in the manual. You cannot just make up things to send.

 

You would put the GET SV? (along with a \r\n) in the 'string to write' box. I think you lack the basic understanding of intrument communication besides LabVIEW. According to the manual, if you write this to the instrument, it should respond with the software version. Did you read the section of the manual on the supported commands?

 

Have you even done what I suggested and use a common terminal emulation program such as Hyperterminal or TerraTerm to test basic communication? Please do that before attempting any more LabVIEW and before posting any more questions about the LabVIEW code. If you can't get communication working there, you need to ask the vendor about the problem.

0 Kudos
Message 19 of 21
(1,864 Views)

with hyperterminal the equipment works fine. with get sv it is returning the number of bytes rather than the exact mass....i am sorry for my ignorance though....actually i m a chemical engineer...dreaming of automating my experiment in labview.....sorry for the trouble....

0 Kudos
Message 20 of 21
(1,855 Views)