12-07-2005 01:05 PM
12-09-2005 02:14 AM
12-10-2005 02:19 PM
Hello,
Nice to see your e-mail. Thanks for getting in touch.
I will attach the slope-yintercept.vi.
I was looking at the other questions in the forum, and I noticed some that maybe I could learn from.
My question, in addition to the above, is what does the connection reference in, connection reference out supposed to do when I run it. I can make it run, but I do not see anything in my Front panel. I ask because this may be a link that could tie things for me conceptually.
Thanks for your patience. I have to admit, as I understand LabVIEW more, I am beginning to enjoy it.
12-11-2005 12:58 PM
ExamplefromForum.vi came from:
http://forums.ni.com/ni/board/message?board.id=170&message.id=155785&query.id=58146#M155785
I just wanted to know in the grand scheme how this vi would fit to work and the results reflected in Front panel.
But my main question for you was how to get my calibration(in notepad) that I had created into a vi(slope/yintercept.vi) to be written into MS Access. I hope my question is clear. I believe I have created a vi that writes into the database but for some reason it does not reflect this when I run it in Front panel.
Thanks for your input.
12-13-2005 12:35 AM
12-13-2005 12:35 PM
Philip C. wrote:
Hi Robo,
Sorry, but I'm not sure I understand what you're going after. However, I see some issues in the VIs you have submitted. The "file path" connection in the "slope-yintercept.vi" is supposed to point at a spreadsheet file, but in the "DATA.vi" you are passing it a the "connection information" that is used to specify the file that stores the connection information to the database. For a Microsoft Data Link file this must have a .udl extension. The database Data Link file is completely different from the spreadsheet file that you can read in a simple text editor. You will have to use seperate paths to point at the spreadsheet file and the database Data Link file.The "ExamplefromForum.vi" executes a query in the database - it doesn't save any new data. That's not the behavior that you are looking for, right?
It is the behavior I am looking for in this query. I do want to save all the new data, slope/yintercept everytime that I open & read the dialog box for 'slope-yintercept.vi.' That is why I am using the insert.vi so that any new data from my subvi, slope-yintercept.vi, is immediately written and stored in my table in Access.
The "DATA.vi" seems to be close to what you are looking for if you just use two different paths as described above. Notice how the "connection reference" is used to pass between the database VIs to keep pointing at the same database. You really can't use the "connection reference" on the front panel of the VI to other than as a terminal if the VI is used as a SubVI.
I hope this makes sense - otherwise, please let me know.
Have fun - and more of it with LabVIEW 8!I am! Thanks for helping.
12-21-2005 03:08 AM