LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to increase row index on a table

I have been trying to do this little program to display data from a file. So far the table in the front panel only shows all the records in the first row one by one. I have tried numerous versions and variations but none work so far. Being new to Labview I'm not sure what I'm doing wrong or how to make it work. I include my VI for your attention. Any ideas will be appreciated.
0 Kudos
Message 1 of 14
(3,530 Views)

Hi,

plz attach the VI in your post

 

 

0 Kudos
Message 2 of 14
(3,520 Views)

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

Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 3 of 14
(3,517 Views)
sorry... I did it again!!!
0 Kudos
Message 4 of 14
(3,511 Views)

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

 

 

0 Kudos
Message 5 of 14
(3,503 Views)

Thanks very much for your attention... help is very much appreciated.

Get temperature data goes here

0 Kudos
Message 6 of 14
(3,502 Views)

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,

  • Check the data that is given out by your 'read buffer' string and find out  if each line in the string does terminate with a end of line constant
  • if not, see what is the termination string( probably it is the 'line feed constant'), Then use it to match pattern(look at attached vi)

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

 

0 Kudos
Message 7 of 14
(3,456 Views)

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

 

0 Kudos
Message 8 of 14
(3,456 Views)

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...

Download All
0 Kudos
Message 9 of 14
(3,428 Views)

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

 

Message 10 of 14
(3,421 Views)