01-30-2015 02:58 PM
I'm trying to use RS232-to-USB to read from Sartorius analytic balance CP225D. I built a program using the Sartorius-SBI drivers from NI.
However, whenever I run the program, it always gives the error 1073807339. Sometimes, I can obtain several correct measurement data and then it suddenly outputs error.
Alternatively, we have been using the software called Winwedge (http://www.taltech.com/winwedge) to read data from the balance and it has actually been working. I'm working on the Labview program because I need to synchronize multiple instruments and Winwedge is not going to help with that. That said, I believe the program is not in the balance, and I've matched baud rate, parity, data bits and stop bits in each program. But it still doesn't work.
Can anyone suggest what could be wrong?
01-30-2015 05:10 PM
01-30-2015 08:36 PM
Hi, Dennis,
I moved the Initialize outside the loop. But I still got the same problem. It reads data correctly for a few seconds, and then it errored. Still the same error code.
01-30-2015 09:08 PM
02-01-2015 02:33 PM
The electronic balance is set to output data automatically. It seems there is no need to send command to the balance to ask for data.
I created a simple VISA communication program, removed VISA Write and used only VISA Read. I could read data from the port. However, it seems that the VISA is reading only in first in first out mode, while the balance output tons of data. Thus, the readout is always the initial value.
Is there a way to set it to last in first out mode?
02-01-2015 04:39 PM
02-02-2015 01:09 PM
Thanks, Dennis, you are right. Removing the time wait inside the While loop will make the program work.
I'm posting my solution here in case other fellows encounter similar problems.
Settings on the Sartorius CP225D:
Two settings from the default settings need to be changed: Communication mode needs to be changed to 551 (SBI), and printing mode to 614 (automatic without stability). Other settings remain factory default.
Labview program is attached.