LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

refnum to path problem

Solved!
Go to solution

Hi,

 

I have many subVI. I am working with binary files and I want to open them only one time. If I make subVi(1) which opens:hend.JPG

and then subVI(2) which reads the first 4 elements and store them in array:

Capture.JPG

Then subVI(3) which uses previous one and reads only 4.element from array

Capture1.JPG

Then I can't connect the first subVI with last one because they have different types.

Capture2.JPG

 

What should I change/do not right?

Andy
0 Kudos
Message 1 of 2
(2,012 Views)
Solution
Accepted by enapolo

You need to change the filepath control in the later subVI's to a refnum control.

 

Copy and paste the refnum indicator that is the output of the first subVI and drop it into the later subVI's.  Right click, change to control.  Then wire that up to the file functions instead of the filepath control you have now.

Message 2 of 2
(1,995 Views)