Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Erro 85 occured at Scan From String

Hi,

 

I am bit new to Labview and trying to connect Sartorius CPA series balance to computer via Serial cable (cable is serial to USB converter. Serial end is connected at the Instrument and USB end with the computer's USB port). I have created VI (please see the attached VI file). While pressing the "Start" button on VI, i get the following error:

 

Erro 85 occured at Scan From String (arg 1). Possible reason(s): Labview: Scan failed. The input string does not contain data in the expected format.

 

Can anybody suggest me the solution to this problem?

 

Thanks in advance.

Nanji

0 Kudos
Message 1 of 4
(4,147 Views)

Hello Nanji,

       When I look at the download page for the LabVIEW Plug and Play instrument driver that supports many different Sartorius..., I don't see a "CPA" series listed as supported.  There is a "CP" series that is listed as supported.  It might be worth a try to see if the CPA series works with the driver without any modifications (make sure to disable ID Query in the Initialize VI).

 

When I look into the Instrument I/O Assistant in your VI, it looks like you are getting data from the instrument.  You will probably just need to experiment with the format string that is being input into the Scan from String.  I highly recommend looking at the LabVIEW help for an explanation of what the different format values do.

 

Cheers,

 

NathanT

0 Kudos
Message 2 of 4
(4,136 Views)

Hi Nathan,

 

Thanks for the reply. I have already installed a NI VISA for the instrument. You have mentioned in your reply that I should disable ID Query in the initializing VI. It would be nice if you could please tell me how to do that. I will also try with CP series balance as I  have one from CP series also and if it works fine then its for sure that CPA series balance will not work with labview. Is there any other way to connect this CPA series balance via labview?

 

Thansk and regards,

Nanji

0 Kudos
Message 3 of 4
(4,101 Views)

Performing an id query is common for most drivers but the sartorius initialize function does not do this, probably because the instrument does not have a command that returns id information. You have nothing to disable.

 

If the driver for the CP works but not for the CPA, that does not mean that it will not work for LabVIEW. It just means you have to rewrite the code. You could also modify the Instrument I/O Assistant to correctly parse the response you are getting. Since you have not provided the actual response, there is no way I or anyone else can tell you how to modify it. As already mentioned, you will have to experiment. This should not be that difficult to do. Presumably you have already tested the connection and responses with a program such as Hyperterminal. If you haven't, you need to perform this very basic first step.

0 Kudos
Message 4 of 4
(4,094 Views)