LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

convert datalog reference to "Generate Report Object Referecnce.ctl

Solved!
Go to solution

I inherited a LV6.1 code with lots of reports. The old datalog reference number used to refer to reports was updated to Generate Report Object Reference.ctl. 

 

In the original code, the first step was to check if the datalog reference number was "Not a Number/Path/RefNumber". But this function no longer works with the new "Report In" Object. Is there something else I can use to replicate this function?

 

Thanks.

0 Kudos
Message 1 of 4
(2,098 Views)

Here's the cleaned-up VI. The Not a Number/Path/Refnum function on the left needs to be replaced with something. But what?

0 Kudos
Message 2 of 4
(2,093 Views)
Solution
Accepted by topic author efarr

Hi efarr,

 

I'll do what I can to help you with your issue.  First of all, I need to know in which version of LabVIEW you are trying to run the LV6.1 code that you inherited.  You could try wiring your Report In node to another Report Generation function (such as Programming > Report Generation > Advanced Report Generation > Get Report Type) and wire the Error Out node to the case selector terminal on your case structure.  If the Get Report Type VI gets a bad Report In signal, it should output an error which will then control the case structure.  Instead of the "True" and "False" cases you previously had, your cases will read "No Error" and "Error."  Without understanding your entire application I can't be sure that this workaround will cause your program to function identically.  

 

Let me know if this works.  Hopefully you'll be up and running soon.

 

Regards,

Jared R.
Precision DC Product Support Engineer
National Instruments
0 Kudos
Message 3 of 4
(2,081 Views)

Jared,

 

Thanks very much. That worked!

 

0 Kudos
Message 4 of 4
(2,067 Views)