kbllau Posted January 24, 2007 Report Share Posted January 24, 2007 HI I am totaly newbe and never used Labview so.Is there Any one can help in building this VI with this specification plz for my final project 5 parametrers as follows: Speed = range 300 - 302 rpm Feedrate= range 0.1 - 0.12 mm/min DOC = 0.5 mm AE RMS= 0.01 - 0.025 mv TW = 0 - 0.23 mm These are the five parameters i need to be simulated. Every 2 seconds they should auto generated and the results should stored directly into table which into database (MYSQL) with the following connections information Server = "localhost"; Username = "root" password = "pass" dbname = "test"; tablename = "para"; Please help Thanks Quote Link to comment
French LVer Posted January 24, 2007 Report Share Posted January 24, 2007 Hi, Just some hints for you kbllau. You will have to create a timed loop or a while loop with a timer set to 2 seconds. In it, you will read values of 5 controls from front panel and write them in a table from database. Good luck Quote Link to comment
Dave Graybeal Posted January 24, 2007 Report Share Posted January 24, 2007 Speak of the devil... lol. I believe it was just yesterday that I read a post about the HHH and how we actually haven't seen a HH in a while. Then BAM. Dave Quote Link to comment
crelf Posted January 24, 2007 Report Share Posted January 24, 2007 You will have to create a timed loop or a while loop with a timer set to 2 seconds. In it, you will read values of 5 controls from front panel and write them in a table from database. ..and don't forget to connect the kizblit to the doohickey - it won't work without it. Quote Link to comment
Rolf Kalbermatter Posted January 24, 2007 Report Share Posted January 24, 2007 ..and don't forget to connect the kizblit to the doohickey - it won't work without it. So mean Rolf Kalbermatter Quote Link to comment
kbllau Posted January 25, 2007 Author Report Share Posted January 25, 2007 So mean Rolf Kalbermatter Thanks for help Quote Link to comment
Ton Plomp Posted January 25, 2007 Report Share Posted January 25, 2007 kbllau, you have been a bit lazy in asking the question, next time post some code of what you allready got. Now some advice: break up the code in smaller parts, (or seperate functions), tackle each problem apart. If you have a problem search on the NI forums. They have a much much bigger user base (currently 30:9000 do the math) and are more suit for your beginner problems. It's not that we don't want to help you it's just that you show no effort besides copy-paste from your assignment. Ton Quote Link to comment
kbllau Posted January 25, 2007 Author Report Share Posted January 25, 2007 kbllau,you have been a bit lazy in asking the question, next time post some code of what you allready got. Now some advice: break up the code in smaller parts, (or seperate functions), tackle each problem apart. If you have a problem search on the NI forums. They have a much much bigger user base (currently 30:9000 do the math) and are more suit for your beginner problems. It's not that we don't want to help you it's just that you show no effort besides copy-paste from your assignment. Ton Hi There Thanks for the advice, Sorry guys I am not lazy, i told every one here that i am totaly newbie i never used Labview before, I use Matlab for this smuilation. However I have attach what i already did and see how it goes from there. Thanks all Quote Link to comment
Ton Plomp Posted January 25, 2007 Report Share Posted January 25, 2007 Well that looks not too bad, insert a wait until next inside the loop. Now you need to figure out how to communicate with the database. I2dx has developed hi ado toolkit for this, or NI has a DB toolkit. Or if this is all you need you could try to write your own with the TCP primitives. Ton Quote Link to comment
Rolf Kalbermatter Posted January 26, 2007 Report Share Posted January 26, 2007 Or if this is all you need you could try to write your own with the TCP primitives. This last suggestion I would take with a grain of salt. Of course it is possible and there were people starting to implement the MySQL TCP protocol in LabVIEW already, but considering the level of expertise from the OP in LabVIEW I think going with one of the existing solutions (NI database Toolkit, idx's ADO Toolkit) is already hard enough to solve. Rolf Kalbermatter Quote Link to comment
Ton Plomp Posted January 26, 2007 Report Share Posted January 26, 2007 I didn't say it was easy, and please note it was the last advice in a list of 3... Ton :laugh: Quote Link to comment
Rolf Kalbermatter Posted January 26, 2007 Report Share Posted January 26, 2007 I didn't say it was easy, and please note it was the last advice in a list of 3...Ton :laugh: But your use of "Or if this is all you need..." implies a certain simplicity to me that I really can't see Rolf Kalbermatter Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.