10-31-2006 10:54 PM
11-01-2006 10:13 AM
11-01-2006 10:24 AM
11-01-2006 10:35 PM
Hi Dennis,
Actually i have to communicate with a diameter guage which has 34 data parameters generated for each scan.
Out of which now i am able to acquire max of 15 data only.
In the output data recieved from the guage every datas are seperated by Line feed
and the first line will be the command which is send to the guage itself in every recieved scan data set.
Now my requirement is to acquire all the datas avilable if possible to any database in PC.
The guage sends all these set of datas continously at its scan rate and it doesnt depends upon the request send to the guage.
Whenever we sends a command the corresponding data is being send by the guage
This diameter guage has 600 scans per second
and have maximum baud rate of 38400.
Word index\address Data
Now the command format is * 2 18
It means * is command character which determine whether it is read or write to guage,
2 is starting word index and
18 means it should give concecutive 18 data parameters starting from 2,
ie, from SSFD FLAW VALUE to Cpk.
But as of now its giving upto maximum of concecutive 15 parameters.
I think now its more clear, please HELP ME to solve out this.
11-02-2006 03:40 AM
11-02-2006 04:04 AM
11-02-2006 04:39 AM
11-02-2006 05:00 AM
11-02-2006 06:38 AM
11-02-2006 09:16 AM
I wish I could view the VI but I only have 7.1. You seem to be making two contradictory statements with:
"The guage sends all these set of datas continously at its scan rate and it doesnt depends upon the request send to the guage.
Whenever we sends a command the corresponding data is being send by the guage"
Do you or don't you send a command to the instrument each time you want to read the data? Since you can't really use the termination character, in order to avoid problems with determining the number of bytes to read, use the VISA Bytes at Serial Port. Put it in a loop and exit when byte count is greater than zero. The put it ina another loop and keep reading until byte is zero. That way you know that the serial port buffer is empty. If it keeps sending data without you sending a command each time, you could use VISA Bytes at Serial Port in a loop to constantly read. Write the data to a queue or shift register so that it could be parsed separately by looking for the beginning of the data stream. A match pattern function could work.