Cannot get visualizer to display

Cannot get visualizer to display

I am trying to implement the array visualizer within visual studio 2008. I have implemented the libraries etc into the compiler and project however I am not able to "VISUALIZE" anything nothing comes up. I am getting successful status variable returns of 0 which indicate the subroutines are functioning.

questions:

1) does array visualizer window pop up automatically upon implementation and run of program or do I open manually somehow?
2) does the visualizer come up in a standalone application or visual studio?
3) is there some setting in visual studio other than the library, include, and linker options I have already configured that are necessary to use the array visualizer?

program code
Program Array_Test
Use AvFRT
implicit none
integer, parameter:: nrows=10, ncols=10
integer::i, j, status, viewerID
real(4):: TEST(nrows,ncols)

open(100,file="array.txt")

do i=1,nrows
do j=1,ncols
test(i,j)=10
end do
end do

write(100, 10)((TEST(i,j), j=1,ncols), i=1,nrows)
write(*,*)((TEST(i,j), j=1,ncols), i=1,nrows)

10 format(I3)

call avstartwatch(LOC(TEST), 2, SHAPE(TEST), AV_Real4, "test", status)
!create viewer instance
print *, status
print *, "Starting Array Viewer"
call avNewViewer(viewerID)
!make viewer visible
print *, viewerID
call avVisible(viewerID, 1, status)
print *, status
end program

both status variable outputs are zero, viewerID=1, and array prints to screen but no visualizer instance comes up.

THANK YOU FOR ANY HELP YOU CAN OFFER!

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Quoting - whenson
I am trying to implement the array visualizer within visual studio 2008. I have implemented the libraries etc into the compiler and project however I am not able to "VISUALIZE" anything nothing comes up. I am getting successful status variable returns of 0 which indicate the subroutines are functioning.

questions:

1) does array visualizer window pop up automatically upon implementation and run of program or do I open manually somehow?
2) does the visualizer come up in a standalone application or visual studio?
3) is there some setting in visual studio other than the library, include, and linker options I have already configured that are necessary to use the array visualizer?

program code
Program Array_Test
Use AvFRT
implicit none
integer, parameter:: nrows=10, ncols=10
integer::i, j, status, viewerID
real(4):: TEST(nrows,ncols)

open(100,file="array.txt")

do i=1,nrows
do j=1,ncols
test(i,j)=10
end do
end do

write(100, 10)((TEST(i,j), j=1,ncols), i=1,nrows)
write(*,*)((TEST(i,j), j=1,ncols), i=1,nrows)

10 format(I3)

call avstartwatch(LOC(TEST), 2, SHAPE(TEST), AV_Real4, "test", status)
!create viewer instance
print *, status
print *, "Starting Array Viewer"
call avNewViewer(viewerID)
!make viewer visible
print *, viewerID
call avVisible(viewerID, 1, status)
print *, status
end program

both status variable outputs are zero, viewerID=1, and array prints to screen but no visualizer instance comes up.

THANK YOU FOR ANY HELP YOU CAN OFFER!

The Viewer should come up as a stand-alone app. You're code looks correct.

Have you tried running the Viewer from the start menu? Can you open the included sample data files?

Sometimes just running it once will fix any snafu in the registration and your program will run correctly after that.

John

Leave a Comment

Please sign in to add a comment. Not a member? Join today