LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problems with different data types

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:

 

LabView1.png

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:

 

Labview2.png

The problem I have now is more or less the other way round as shown below:

 

 

Labview3.png

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

0 Kudos
Message 1 of 6
(3,647 Views)

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.

aputman
0 Kudos
Message 2 of 6
(3,624 Views)

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.

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Message 3 of 6
(3,614 Views)

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

 

0 Kudos
Message 4 of 6
(3,605 Views)
In terms of your original issue, its clear that the bundler has the wrong item selected -- even the names are different. The good news is that the datatype is different so you got a broken arrow that will take about 1 second to fix. Just select the correct item from the cluster.

The hard part will be verifying the places where the item selection changed, but the datatype didn't...

Be very careful, backup often and be sure to save an unmodified version of the code!

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 5 of 6
(3,581 Views)

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

0 Kudos
Message 6 of 6
(3,554 Views)