06-29-2006 04:50 PM
I am replacing a 10 year old Win95-based data acquisition system with all new hardware and software. The old system used LabWindows CVI 5 and an ISA AT-GPIB/TNT plug and play board, with ver. 1.6 of the NI-488.2 software. Everything worked fine. The new system is WinXP SP2, with the newest CVI 8, the newest NI-488.2 (ver2.46) and Measurement and Automation Explorer, and a brand new PCI-GPIB board. After installing all the new stuff, I ran some of my old programs to control instruments over the GPIB. Things sort of worked, but there seemed to be some timing issues, with the code thinking it was getting return values from the instruments before were actually sending the values. None of the termination or any other settings for the board in MAX had any effect. I tried putting in an older PCI-GPIB board, of almost the same vintage as the ISA board. This made no difference to how the programs ran. I finally put in my original ISA board. (All three boards were using the same v2.46 of NI-488.2, and all were configured as GPIB0 in MAX.) With all the same default settings in MAX as for the PCI boards, all of my old programs worked with the ISA board. I wrote the code a while back so I may be a little foggy on it, but I don’t recall needing to put in anything identifying the board as ISA. Can anyone suggest why this is happening? I’d really like to be able to use a PCI version of the GPIB board, but I’d also like things to work. I haven’t written any new-from-scratch code yet with all the new hardware and software, only tried to run the old stuff.
Thanks in advance.
Stuart Van Deusen
06-30-2006 04:37 PM
Do you have access to the source code for the programs?
It might be a good idea to recompile them in the newer environment. While the newer drivers are supposed to be backwards compatible, with such a large version jump there may be something not quite right.
07-05-2006 05:10 PM
Thank you for the reply. I am running the old projects in the new CVI environment, not as the old executables, so I would have thought that that would take care of the recompiling issue. However, there seem to be a few more build options in the CVI 8 than there were in the CVI 5, so maybe I'm missing something. I'll continue to look into it.
Stuart Van Deusen
07-05-2006 05:16 PM
You are using the Debug program command in the run menu? if so, it would have recompiled everything to build the symbol tables, etc.
If you are just using the Execute program command in the run menu, it did not recompile unless you told it to do so.
07-05-2006 05:48 PM
Yes, I am using the Debug program in the run menu. One big difference I've found in the CVI 8 from the CVI 5 is that the CVI 8 seems to automatically create an executable of the project then runs that executable, even when the project is being run in the CVI environment. Back in 5 CVI didn't create an executable until you specifically told it to, and the debug option was unavailable for the executable. I don't know how that affects the compilation of the source code. I've tried the options of marking the source code for compilation and marking the project for compilation prior to running the project, and nothing seems to make any difference.
Stuart Van Deusen
07-05-2006 05:57 PM - edited 07-05-2006 05:57 PM
Message Edited by MJF on 07-05-2006 04:00 PM
07-05-2006 06:04 PM
Now that I think about it a bit, you might want to repost this question in the Labwindows/CVI forum too. Since this seems to be a hardware issue, I am sure that this board seems like the right place to ask but it certainly can't hurt to broaden the audience.
There may be somebody that frequents that board but not this one who may have some insight into what you are seeing.
07-05-2006 06:12 PM
Thank you for your suggestions.
Stuart Van Deusen
07-07-2006 08:40 AM
07-10-2006 04:51 PM