LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

labview with access database

Solved!
Go to solution

Hi everyone:

I am using labview opc server collection data from 5 plcs then store into access then someone can query these data later.

Problem is i can not combine 5 plc`s data into one table,now 5 plc`s data in 5 different data table and all the data collecte are in 5 tables in access database

Does someone now how to put all the data in one table and all the queried data are in one table.

Download All
0 Kudos
Message 1 of 8
(3,960 Views)

From What I see, you need to cleanup your code.

Second, please send you VI... the picture is not enough.

Benoit

0 Kudos
Message 2 of 8
(3,954 Views)
0 Kudos
Message 4 of 8
(3,901 Views)

it works now thanks

0 Kudos
Message 5 of 8
(3,868 Views)
Solution
Accepted by topic author 314159ym

Hi pi number,

 

it works now thanks

How did you solve your problem?

Maybe that could help other people stumbling over your thread! (That's how this forum actually works…)

 

On your VI:

- Please use only English chars (aka plain ASCII) for filenames as using asian UniCode chars will give problems for most users.

- Please remove those Rube-Goldbergs in your code! Why do you need to compare boolean values with TRUE?

- Why do you need shift registers to handle all those buttons?

- Why do you need to create events using that additional while loop and property nodes? Why not react on button value change events directly?

- Why is there a wait function in the event loop? Why don't you use the Timeout event instead, even though you have that event case? (In your VI you don't need both the wait function nor the TimeOut event!)

- Use AutoCleanup, set string constants to "size of text"

- Never use that "Exit" function in your code: its like using a tree to stop your car! End your VI in a graceful way instead…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 8
(3,857 Views)

I used the "insert into new_table    select (a.1,a.2....  b.1,b.2......)   from tableA,tableB where A.ID=B.ID"

 

After this then i select the data from new table

Message 7 of 8
(3,833 Views)

It looks like the Where is badly formatted with the dates written merged with the And. "Where  [field] between #2018/1/1#and#2018/12/31" looks strange, i'd assume the spaces around "and" are important so it should be "Where  [field] #2018/1/1# and #2018/12/31#" 

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 8 of 8
(3,824 Views)