OPC UA Labview Reading items and properties from excel sheet or text file? - Druckversion +- LabVIEWForum.de (https://www.labviewforum.de) +-- Forum: LabVIEW (/Forum-LabVIEW) +--- Forum: LabVIEW Allgemein (/Forum-LabVIEW-Allgemein) +---- Forum: Datenkommunikation (/Forum-Datenkommunikation) +---- Thema: OPC UA Labview Reading items and properties from excel sheet or text file? (/Thread-OPC-UA-Labview-Reading-items-and-properties-from-excel-sheet-or-text-file) |
OPC UA Labview Reading items and properties from excel sheet or text file? - pato7 - 14.05.2016 19:00 Hello Guys, I am a masters student at a German university now working on a research project and we are using OPC UA labview toolkit. I am new with using OPC UA in Labview so I am not sure to what extent are the capabilities OPC UA labview are similar to that defined by the OPC foundation. I hope I can get some tips and help on some issues. Normally through labview we can create an OPC UA server and add folders/ Items/Properties to create the data structure. But this is done manually by adding the vi for each folder and item and connecting them. This is reasonable if we have two or three items or properties in the data structure. But if we have for example 40 items, then it would get messy. So i am thinking of a way to read the data from an excel sheet or text doc and automatically create the data structure in the OPC UA server. Offcourse, the data in the excel sheet should be arranged in a special way so that we can create the node paths easily and define the characteristics( read/write, datatype) of each node automatically. so far i was able to create the OPC UA server but I am stuck on how to transform the data from the excel file to the OPC UA server. please find attached the VI i have so far. Any help would be highly appreciated. THank you. BEst Regards, Elias RE: OPC UA Labview Reading items and properties from excel sheet or text file? - jg - 15.05.2016 12:24 CROSSPOST: http://forums.ni.com/t5/LabVIEW/OPC-UA-Labview-Reading-items-and-properties-from-excel-sheet-or/td-p/3295449 Das nächste Mal bitte selber darüber informieren (vgl. LVF-Regeln) Next time inform everybody yourself about your crosspost. Gruß, Jens RE: OPC UA Labview Reading items and properties from excel sheet or text file? - pato7 - 15.05.2016 12:33 Sorry, But Do you mean I am not respecting the terms of use if I have posted the same question on two websites? Ni discussion forums and labviewforum.de are the same website? I thought they're different and hoped I can get more replies here, because I didnt get any so far. Thank you. RE: OPC UA Labview Reading items and properties from excel sheet or text file? - rolfk - 15.05.2016 14:22 (15.05.2016 12:33 )pato7 schrieb: Sorry, But Do you mean I am not respecting the terms of use if I have posted the same question on two websites? Ni discussion forums and labviewforum.de are the same website? I thought they're different and hoped I can get more replies here, because I didnt get any so far. It's allowed to post on different places but good practice to mention that you did so (and in the case of the labviewforum even required by the forum rules). While it is fully understandable that you hope to get more answers by posting in different places you need to also consider the situation of people who spend their own free time to give you answers. It is VERY frustrating to spend half an hour to investigate some situation and put together a useful answer only to find out later that someone else has answered already on another forum the same or even better answer. That time could have been spent expanding on the already posted answer rather than repeating the same information again. As such it's necessary to also mention that you posted on https://lavag.org/topic/19615-opc-ua-labview-reading-items-and-properties-from-excel-sheet-or-text-file/ And yes there is a chance that you discourage some people from answering your post by mentioning that you posted in many other places about this, but not doing so will work even more against you, as there are people frequenting all these forums and they will notice and mention it, and make it even less likely that you will get answers after that. RE: OPC UA Labview Reading items and properties from excel sheet or text file? - jg - 16.05.2016 14:01 Rolf, thank you for your elaborate explanation about cross posting. I could not have stated it any better. @Elias: yes, labviewforum.de and ni.com are not the same website - we are not affiliated to each other at all. And yes, you did not resepect the rules of this website by crossposting without notification. Read Rolfs comment about why that is considered as impolite. Where else will we find your question? Rolf already mentioned the exact same question on LAVA, but I find another thread on LAVA, where you asked about the same probem: https://lavag.org/topic/19238-opc-ua/#comment-118257 Regards, Jens RE: OPC UA Labview Reading items and properties from excel sheet or text file? - pato7 - 16.05.2016 14:29 (16.05.2016 14:01 )jg schrieb: Hello Jens @jg, Thank you for your constructive replies. No I don't have any other questions. You did good job searching and finding my 2 questions on the other 2 sites. As I have explained and appologized before, I didn't know That I should have mentioned "cross post" in my question description. I am a newbe here, its my first two questions ever posted and probably last on labview forums and I didnt think it would be such a big deal to post on different sites. never meant to be impolite so be easy on me I am a new user You didn't have to ruin all my posts on all three sites. Now I am not getting any positive replies after your helpful comments. I totally understand I did something wrong. And if you can help me delete my posts on this site would be great because I am not able to delete the question for unknown reasons although I am the one who created them. Do you have adminstrative access here? Best Regards Elias RE: OPC UA Labview Reading items and properties from excel sheet or text file? - GerdW - 16.05.2016 16:36 Hi Elias, Zitat:You didn't have to ruin all my posts on all three sites. Now I am not getting any positive replies after your helpful comments.Jens didn't ruin your posts, it's just your cross-post behaviour… How will you get any responses at all when you even want to delete your questions? And please don't forget: we had a weekend where people tend to do other things than solving your LabVIEW problems. We also have a national holiday where people have even less ambitions to solve your problems. Other countries often also celebrate these holidays so you cannot expect answers from the international audience on NI.com or lava.org! Please be (more) patient! Zitat:I am not able to delete the question for unknown reasons although I am the one who created them. Do you have adminstrative access here?No, you cannot delete threads here in the forum. The same applies to NI.com or lava.org… I'm against deleting your question: maybe someone else will provide an answer in the next days? You learned the fact to mark cross-posts as such - as is expected in all those (LabVIEW) forums around the world! RE: OPC UA Labview Reading items and properties from excel sheet or text file? - GerdW - 16.05.2016 16:57 Hi Elias, to provide an answer to your question: Zitat:This is reasonable if we have two or three items or properties in the data structure. But if we have for example 40 items, then it would get messy.Instead of calling "Add Item" by coding it for each single item you should put this function in a FOR loop! Read your Excel data, analyze it, then create the input cluster to "Add Item" as needed for this function… RE: OPC UA Labview Reading items and properties from excel sheet or text file? - jg - 16.05.2016 17:01 (16.05.2016 14:29 )pato7 schrieb: Hello Jens @jg,Apology accepted. Please do not feel discouraged from asking further questions - as long as you stick to the rules. I agree with Gerd, your thread should not be deleted. Perhaps you will still get an answer. And it might be helpful for other people, since the cross-posts are now clearly linked and there are already a few answers on LAVA. Regards, Jens. BTW, how about practising your German, as your are a student at a German university. Schreib deine Beiträge doch mal auf deutsch. RE: OPC UA Labview Reading items and properties from excel sheet or text file? - pato7 - 16.05.2016 17:42 (16.05.2016 16:57 )GerdW schrieb: Hi Elias, @GerdW Thanks for the tip, highly appreciated. I'll work with it Apology accepted. Please do not feel discouraged from asking further questions - as long as you stick to the rules. I agree with Gerd, your thread should not be deleted. Perhaps you will still get an answer. And it might be helpful for other people, since the cross-posts are now clearly linked and there are already a few answers on LAVA. Regards, Jens. BTW, how about practising your German, as your are a student at a German university. Schreib deine Beiträge doch mal auf deutsch. [/quote] @jg Thanks for the advice. I hope I'll get more answers in the coming days. Considering that I arrived in Germany recently, I have limited level of Deutsch. But I'm definitely looking forward of reaching a level where I can communicate in Deutsch. Working on it. |