04-23-2015 10:35 AM
Dear All,
I inheribted a measurement computer for doing our experiments. While the system was running with labview 8.6, several errors appeared when it was updated to labview 11. I did not change anything in Labview so far but today I tried to fixe it. I am more or less a beginner in Labview but got experience in text based programming.
The first figure shows an error appearing:
The data type of DataFileRefNum is byte stream file reference while the data typ of Delay After Init is 32 bit Integer.
I could solve this problem (or better say, there is no error appearing) as shown in the next figure:
The problem I have now is more or less the other way round as shown below:
Now i need to convert from Integer to this DataFileRefNum which I was not be able to do.
Any Ideas from your side?:-)
Thank you very much for all ideas in advance.
Best
Alexander
04-23-2015 11:13 AM - edited 04-23-2015 11:13 AM
Looks like to me your private data cluster has been reordered, causing the cluster bundle to change. hard to say without seeing what the code does.
04-23-2015 11:34 AM
What aputman said. Also, coercing a refnum into an integer is easy but you will NOT get a meaningful "DelayAfterInit" value from it. You could also cast your "TimeLimit" value into a refnum but the refnum you get will be useless. You have to re-order your cluster so that you are connecting the right controls/indicators to their data. Simply forcing the datatypes to match may get you a run arrow but your program still won't work the way it was intended to.
04-23-2015 11:57 AM
I remember having many issues like yours trying to upgrade from 8.6 to 2010. Wasted many hours of my time trying to get things sorted out.
It was quite a chore.
AT the end of it all I had to re-order all type definitions and save them locally (as in without any dependencies loaded else the PC would crash)
You might want to consider approaching this very carefully and make backups at every step. Just my 2c opinion. Others may disagree.
I still get chills thinking about vers. 8.6.1
04-23-2015 07:11 PM
04-24-2015 02:42 AM
Dear All,
thanks for your answers and for all the effort you spent.
To be honest, it was not my idea to update it, but as life is, the colleaque who did the update is not working on it.
I will bring news whenever I can.
Best
Alexander