LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabView-DataBase Connectivity

Why inside while loop you are checking list of tables? doesnt make any sense.

 

Can you share the data(2D) array which you are inserting to DB. I will create the VI as per

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 11 of 17
(1,074 Views)

PFA, Check this VI

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 12 of 17
(1,070 Views)

Hi Ranjeet,

I am geting the attached error message in your code.

0 Kudos
Message 13 of 17
(1,043 Views)

Hi Ranjeet,

 

Actually my requirement is storing huge data into the database(SQL2008).

For example, the acquired data is an array with 1024 point, and I got the array ten times every second, and the test run for 5 min. 

 

I wanted to store all the 5 min data into database in a single go. it should not take more than one minute.

0 Kudos
Message 14 of 17
(1,042 Views)

Are you able to add single record? Why dont you acquire the data continosly and later add to database?

 

I think you can add all the record in 5 min. Transaction is very fast. 

 

In my VI number of column in database and no of parameters in record which is being added is mismatching.

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 15 of 17
(1,028 Views)

In your VI , i have corrected that and make both identical. thereafter also i am getting same error.

 

Same thing I was tring to do but I am not able to write the array value into DB, whatever I am writing in database Its writing as a some special character like @#$aD#@4. So i used for loop and extract al the array data and writing one into one in database but its taking lots of time to write i.e more than a hour.

 

I have attached my code and you code for review.

Please let me know if u found something.

 

Thanks

0 Kudos
Message 16 of 17
(1,023 Views)

If columns are same then you should not receive same error message.

2011 VI please.

 

Can you share your record.

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 17 of 17
(1,013 Views)