12-12-2016 04:22 PM
Hello,
I have a labview programm which can show me the values of registers of the menues of the speed variator Unidrive Sp in real time and can let me change values of the registers in real time.
Now i want to add in this programme a table with register adresses of the menu 0 only and to read them.
I need your help.
Solved! Go to Solution.
12-12-2016 04:25 PM
Are you asking how to read an Excel file? I'd recommend the Report Generation Toolkit which is included in several LabVIEW bundles. It can read and write Word, and Excel files. I'm not sure how important it is but you also forgot to include some subVIs.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
12-12-2016 04:33 PM
Thank you Hooovaah for your response.
I just want to add the menu 0 to the programm that i already and to have the possibility to read the values of the registers that i will enter their adresses..
12-12-2016 04:46 PM
I'm sorry I still don't understand. I only speak English (and LabVIEW). You may find more help on a subforum dedicated to a language you are more comfortable with.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
12-12-2016 04:54 PM
I am sorry for my english although i hope that my next sentence will explain more what i wish to realise :
I would like that when I type an address of a register can read it on labview. The file excel as attachment contains registers of several menu .. I would like to add only the registers of the menu 0
12-12-2016 06:35 PM
Type it where? What does excel have to do with it? If you're reading from a register, it shouldn't have anything to do with excel.
12-12-2016 07:24 PM
in the excel attachement, there is a table of registers that i want to put in my labview program ... is there any way to make this ?
12-12-2016 10:35 PM
I can't follow your VI because it is missing subVI's, and most of your comments and subVI names are in French.
Where are you stuck? Have you been able to read and write parameters to a single register? If so, then doing multiple isn't much harder. You'd just have to have multiple calls, or do Modbus calls in a loop, perhaps auto-indexing through an array of the needed register numbers.
Are you having issues reading parameters from menu 0? If I recall with the unidrive, you'd do it the same way you'd call any registers in the other menus. I think if you were looking for parameter 1.04, you'd call register 104. So for a parameter 0.13, you'd just call register 13.
If for some reason you can't call any parameters in menu 0, menu 0 is just a remapping of other parameters, like you see in your Excel file. So just call the higher menu parameters instead.
12-13-2016 11:20 AM
Thank you so much..
What i need now is a VI that write the values in Excel...
I want to add that VI in my main VI..
12-13-2016 12:26 PM
Search the forums. "How to write data to Excel" has come up thousands of times.
One option is to use the Report Generation Toolkit.
Also look in the thread, http://forums.ni.com/t5/BreakPoint/Excel-Board/m-p/379682#M2391 , which gives links to other threads describing methods for interacting with Excel.