04-24-2012 07:54 AM
The error is caused by an empty string going to a worksheet.Range. The empty string is the output of the SELECTEDcellsTDMS.vi which is empty if the input Selected Cells 3 is not empty.
Race condition
In SELECTEDcellsTDMS.vi you use the value of Selected Cells 3 as a input to the case structure which could (and probably would) occur before the Selected cells 3 - Reinit to Default
Force the order of execution by wiring the error out of Selected cells 3 - Reinit to Default to the error in of Selected Cells 3 - value. that way it will always be empty, the cases structure will operate and 'Selected cells' will not be balnk
04-24-2012 08:43 AM
sorry but i don't understand very well yor explanation, so what must i do, reint to default selected cells 3??
sorry ;(
thanks!
04-24-2012 10:21 AM
easier if I amend the vi and send it you back. What version of LabVIEW are you running so that I can send it to you as the right version
Ken
04-25-2012 01:21 AM
2010 sp1
thanks for all!!!
04-25-2012 02:09 AM
SELECTEDcellsTDMS.vi saved for version 2010 attached
04-25-2012 02:27 AM
after changing this vi appears same error in openworksheettdms...
i try to change it but i don't know...thanks
04-25-2012 02:38 AM
It runs fine on my PC (multiple times giving the same result) do you change the Excel sheet between runs?
If you open the Block diagram of openworksheettdms and turn on execution highlighting (light bulb icon) and then run the top level vi READ_XCLPRUEBA1.vi you can see which Excel Property node or invoke node is causing the error. Check the inputs to this node to check that they are valid and are they what you expect?
This should go a long way to helping you solve the problem.
Ken
04-25-2012 02:45 AM
the error apears when we change de range of cells, after this appear the error, all this in worksheettdms
04-25-2012 04:00 AM
thanks i solve it was a bad conection sorry!