07-06-2011 03:18 PM
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?
07-06-2011 04:38 PM
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?
07-06-2011 04:40 PM
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.
07-06-2011 05:43 PM
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
07-06-2011 11:03 PM
07-07-2011 09:53 AM
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.
07-07-2011 10:07 AM - edited 07-07-2011 10:08 AM
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)?
07-08-2011 11:16 AM
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"?
07-08-2011 12:04 PM
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.
07-08-2011 04:22 PM
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....