LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

CLF in LV71 and LV82

Hi,
 
I have an application I was developing in LV71 that I needed to build in LV82, however, my CLFs are not functioning in LV82. No errors, just not responding. I tried to execute the original code in LV71 and it works just as I expected. The configurations are the same, the inputs are the same, but there are no response from CLFs on LV82.
 
Help please.
0 Kudos
Message 1 of 12
(4,996 Views)
Hi Jack,

what are CLF's?
And what kind of code are you using?

Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 2 of 12
(4,983 Views)
Sorry about that....
 
CLF is Call Library Function
0 Kudos
Message 3 of 12
(4,977 Views)
 
0 Kudos
Message 4 of 12
(4,974 Views)
 
0 Kudos
Message 5 of 12
(4,975 Views)
Jack,

have you recompiled your VI? (ctrl-shift-runarrow)

Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 6 of 12
(4,970 Views)

Ton,

I did re-compiled my VIs.

Could this be a bug of LabVIEW?

 

0 Kudos
Message 7 of 12
(4,967 Views)
Hi Jack,

Can you create a new VI in LV 8.20 and drop down a new Call Library Function Node and call one of the same functions from the LV 7.1 VI?

Cheers,
Spex
National Instruments

To the pessimist, the glass is half empty; to the optimist, the glass is half full; to the engineer, the glass is twice as big as it needs to be has a 2x safety factor...
0 Kudos
Message 8 of 12
(4,951 Views)

Hi SPEX,

My VI is now working. I tried to re-construct it and it worked for the first time I did it. However, on the second time, it didn't work again. Then I found out that the structuring of my VIs in LV82 matters than what doesn't matter in LV71.

This is how it goes...

In LV71, I have two subVIs that calls a functions from a DLL that are used to open and close connection of my USB device. Then, I created a VI where I instantiate the open and close subVIs. Between the open and close subVIs are CLFs calling other functions from the same DLL where I called open and close. This structure is working in LV71.

However, in LV82, I have to call functions from the DLL with the open and close CLF in the same block diagram as the other function calls. Putting the open and close function calls in a VI and instatiate them in the block diagram of another VI that calls other functions will not work.

I don't understand why it happened. Is there anything that was changed from LV71's CLFs to LV82 CLFs? Because, I have been using this DLL and open and close subVIs since LV6i.

This very troublesome for me because I have to put all CLFs in one block diagram. Or use open and close every time I wished to use another VI. It slows my application VI and complicates my programming.

0 Kudos
Message 9 of 12
(4,938 Views)
Hi Jack,

this is interesting. The only thing I can think of is the new app.instances intoduced in LV8.
Now those VIs calling one DLL, are they in one project?
The CLF is that thread safe? Are you using the same DLL in 7 and 8 (not an updated verion).

If you opened your VI from 7 in 8 were there some upgrade notes?

Maybe here page 24

Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 10 of 12
(4,932 Views)