11-18-2005 03:54 AM
11-18-2005 04:10 AM
Hi,
plz attach the VI in your post
11-18-2005 04:51 AM
Hi
The table is nothing more than a 2D-Array of Strings.
Just have a look at the attachment and input some values in the 2D-Array.
Hope this helps.
Thomas
11-18-2005 05:46 AM
11-18-2005 06:09 AM
Hi,
I checked the section where you are trying to create a table of 'Selected Columns Extracted from Quintox Readings' using my own simulated data( look at attached vi)
It works fine.
Your sub vi 'get temerature data' is not attached in your post.
May be the problem is with how you are interpreting the string you get from VISA to form a 2D array inside that VI.
Do post that sub VI, too.
regards
Dev
11-18-2005 06:25 AM
Thanks very much for your attention... help is very much appreciated.
Get temperature data goes here
11-18-2005 10:59 PM
hi Eduardo,
this is what i could infer.
Since i do not a have a sample of data, thaT you would be getting from your Visa read, I tried to reconstruct the string you might be getting from the 'read buffer'.
i think the data you are getting is something like this
a,b,c,d
d,e,f,g
and so on.
am i right?
ur VI works if i use a end of line constant to terminate each string line.
so this is what i suggest,
If it still does not work , plz do post a sample of what you are getting from your visa read ( just read into the string once and select 'make curent value default' for that string indicator and post the VI)
regards
Dev
11-18-2005 11:40 PM
Hi Eduardo,
I just found that 'VISA read' returns read buffer string terminated with a 'carrige return constant'
Use this instead of 'end of line constant' in the match pattern and tell me if it works
regards
Dev
11-21-2005 05:09 AM
Sorry about delay, I was away...
I have tried all the possible endings of line... non works. I checked the file with the sample data I have (while the "real" intsrument arrives...) and it contains an end of line and carriage return at the end of each line... (apparently is the way Windows works...)
I'm not really sure what else to try. If is of any help to clarify what I'm saying, I have attached the VI I'm using to dend data to the COM port and the file I'm using with the sample data I have been provided with.
Since I cannot attach a .csv file, I had to change the extension of the data file to .cs
Thanks again for your time and help...
11-21-2005 05:46 AM
Hi,
I tried reading your Sample file and display it on the table using the attached VI( i modified your 'get temerature data.VI' to do file reading and table sorting)
It did give a Tabular display with each indexed array entry displayed in its relevant column.
Just check if it is working as per your requirement.
Regards
Dev