ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Someone can help me please

He is saying to add another loop around the code you already have!

0 Kudos
Message 11 of 18
(1,585 Views)

Thanks Raven ! i will gv it a try. Appreciate it 😃

0 Kudos
Message 12 of 18
(1,579 Views)

Thanks raven, i solved the problem already !

0 Kudos
Message 13 of 18
(1,566 Views)

Beside insert the wind speed data collected into text file, i have to insert the data into mysql database too, can i do it with my current vi file ?
DSN server is set and database connection is ok. but it show some error once i start my program, the i attached some pic of my programs, error, and table to insert into mySQL.

 

Can i have any suggestion on what have to correct in order to get it work ? Really appreciate it !

 

This is the data log into text file. i wanna do the same to mySQL. logging data to both places.

New Picture11.PNG

 

 

This the error pop out when i run the program.

New Picture (4).PNG

 

This is my program, is there any problem with the 2nd concatenate string's connection which connect to ADO SQL execute ?

New Picture (7).PNG

 

This is where i wanna insert the data into mySQL, 3 columns with header inserted, Date with format "DateTime" Time with format "TimeStamp"  Wind Speed with the format "Decimal(10,10).

New Picture (8).PNG

 

Hope i can get some ideas from u all. !!

0 Kudos
Message 14 of 18
(1,509 Views)

You need to make a proper SQL query for this to work. You have completely missed how a SQL should be formatted.

Instead of the value1, value2 and value3 you need to have your real data there.

 

One note, as this new question is a different problem you should have started a new thread.

0 Kudos
Message 15 of 18
(1,503 Views)

thanks for your reply dkfire, what do u means by real data for value1,value2,value3 ?

i did some reseach on website, they show some example here.

 

INSERT INTO CUSTOMERS (ID,NAME,AGE,ADDRESS,SALARY)
VALUES
(1, 'Ramesh', 32, 'Ahmedabad', 2000.00 );

but the problem is the values to insert is the value we get from programs right ? y they know what values to put to into tables. Im blur with it.

so i follow the format teach by tis web. http://www.tutorialspoint.com/sql/sql-insert-query.htm

 

INSERT INTO TABLE_NAME (column1, column2, column3,...columnN)] 
VALUES
(value1, value2, value3,...valueN);

0 Kudos
Message 16 of 18
(1,486 Views)

You need to format the SQL query with your data.

You know the data, and I have told you where to place the data in the query.

 

Spoiler
SQL Query.png

 

0 Kudos
Message 17 of 18
(1,466 Views)

Dear dkfire, ok noted. Thanks for sharing !

0 Kudos
Message 18 of 18
(1,393 Views)