02-27-2011 06:49 PM
Good Morning
I am using the FP Image to Report vi to create a html report (png) of a FP with a graph on it.
When the report is generated the waveform generated is not visible, that is, its not there, just the graph
Could somebody explain why this is happening?
Thank you.
02-27-2011 07:27 PM
One qualification to my first post.
The code I have written to show the graph and data points works on my development platform but not when I build the application for this code.
Is this significant?
02-27-2011 09:11 PM
can you post the code?
02-27-2011 09:28 PM
Guru
The code is way too big (not to mention IP issues), but attached is an image of the actual report generating code.
Regards
02-28-2011 11:17 AM
Hello rayclout
What path are you feeding into the VI? Are you calling the front panel of a different VI or this one?
Thanks,
Sean N
02-28-2011 02:14 PM
Hello Sean
The path I'm feeding into the vi is where the vi resides. The front panel of the vi is a tab control, and what the value property node is doing is tabbing the front panel to bring to the front the particular page that is to be written to the report.
I read through the online help that the vi front panel has to be open (of course) but how does that apply to different pages of a tab control, even though it's the same vi?
Regards
Ray
02-28-2011 02:18 PM
I might also add that the first and second pages of the tab control contains a table with the data points that are graphed, and this report comes out fine, with the data present.
The only clue I can provide is as I stated in an earlier post, that everything works fine on the dev platform, but not on the application target.
Ray
02-28-2011 03:31 PM
Rayclout-
Does the front panel show data in the graph? My initial thought is that either the data has not been collected in the front panel of the VI or, it was overwritten for some reason (possibly due to a timing issue). The easiest thing to try is to change the graph to a chart (waveform chart) or try adding another tab with a graph and constant data. This may help pinpoint the error.
With regards to working on the development machine, the only thing I can ask is about the operating system and version of LabVIEW. Are they the same or different?
Thanks,
Sean Newton
02-28-2011 03:36 PM
Sean
I'll try your idea out later today.
As to your questions,
The front panel does indeed show the data in the graph.
The dev machine is XP Pro with LV2009, while the application target is Windows Server 2008R2
Regards
Ray
02-28-2011 04:01 PM
Rayclout-
If you are running the program as an .exe, there is a possibility that it won't run properly on the deployment machine, because it was compiled on the development machine using Windows XP. Although it is possible that it would work, there is no guarantee that it will (Windows Server 2008 is based off of Windows NT 6.x, like Vista and 7; XP is not). Again, this difference may not mean that it absolutely will not work, but this raises some more questions. One thing you could do is build/compile the program on the deployment machine. If you do this, and the problem persists, then there is something wrong with the code (for that machine) and might need to be reworked.
Thanks,
Sean