10-27-2006 05:43 PM
10-30-2006 08:45 AM
Mike,
Thanks, I did reinstall and can add the Database Variant to Data function to my block diagram now.
I am wiring an array of strings as the type and still have an error. Error 91 occurred at Database Variant To Data in Variant2Data.vi; "LabVIEW: The data type of the variant is not compatible with the data type wired to the type input." If I wire a single string, the vi runs and returns a single value but I am looking for multiple values to come back. Any suggestions on what I can do to get to where I want to be?
I have attached the vi I am working with.
Jason
10-31-2006 05:15 PM
11-01-2006 01:55 PM
11-03-2006 12:19 PM
11-06-2006 09:05 AM
11-06-2006 09:51 AM
11-20-2006 12:19 PM
Sorry I've not replied sooner, I've been traveling and was really busy. I noticed that when I looked at your table definition and then looked at your INSERT statement, there were a number of inconsistencies. For example, you specify in the INSERT eleven fields to insert into but only give ten parameters. Also, those ten parameters do not agree with your datatypes in the table definition. Strings have the quotes around them, but numbers don't and I notice that for a couple of the string fields, you don't put quotes and for some of the numbered fields, you do put quotes when they aren't needed. This confusion with the field types could lead to the problems you are seeing trying to convert the data back.
Did you first try reading the whole table and converting to strings? This might show in better detail which fields are which and how they are converted correctly. You could also attach an example table with the fields you are reading and the VI that reads it. But I do think at some point you are getting string and numeric fields mixed up at some point.