10-14-2011 07:16 PM
Hi! I'm fairly new to Labview (using Labview 2010 on Windows 7), and I'm trying to interface with my Denver Instrument Summit Series (SI-215D) balance, connected with an RS-232 serial connection.
Since there isn't a driver available, I'm using the Instrument I/O assistant in the example Read and Display VI, and I'm having some trouble. I know all my com port settings are correct because I can read and parse a signal when I hit the print button on my balance, and I can send commands using another program (Collect 6.1). I'm having trouble getting the syntax correct to write a command to the balance through Labview.
The command sequence should the balance wants is ESC P CR LF. How should I enter ASCII characters like ESC? I've been trying various permutations of \[ P <CR><LF> or \[ P \r\n, but it doesn't seem to be working.
Any suggestions on the correct syntax to be using here? It should be the same command sequence as Sartorius balances, if you're more familiar with those.
Thank you,
Jen
10-15-2011 01:35 AM
10-18-2011 07:33 PM - edited 10-18-2011 07:41 PM
I tried your suggestion, but I think I'm missing something that would actually solve my problem - I'm not sure how to pass the string I get using the "Byte Array to String" function to the query in the Instrument I/O assistant. I used the function to at least get the correct syntex \code syntex for the command I'm trying to enter (\1BP\n\r), though it didn't help my difficulty with querying my balance. Does the I/O Assistant not accept queries in this format?
Any suggestions would be appreciated. I'm going to start playing around with other Instrument I/O functions instead of the ready-made assistant, to see if I can get anywhere with that, though I'm new to LabView and the assistant seems like it should work. I know I can send commands to the balance from this computer using other programs, and I know that LabView can read and parse data sent from the balance manually, but I can't figure out how to write to the balance from LabView.
Thanks so much,
Jen
10-19-2011 01:23 PM