Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

VisaNS Measurement Studio 2008

Hi there,

I'm currently evaluating Measurement Studio for Visual C# 2008. I downloaded an evaluation copy and installed it on my Visual C#2008. But when I tried to build a serial port read/write project, it failed due to unable to find reference to VisaNS, presumably a DLL. Then I searched the whole hard-disk it does not exist.  Also Measurement Studio Help file does not mention anything about VisaNS, as some other help file suggested.

 

Does anyone know about this VisaNS, where I can find/download it?  I've had LabView2009 installed on my PC, so presumably I have already the latest NI drivers installed.

 

Any advices/comments/suggestions are very much appreciated! Thanks in advance!

 

Harry

0 Kudos
Message 1 of 9
(4,363 Views)

You need to re-run the NI-VISA installer to have it install the .NET support (libraries, examples, help) for NI-VISA. The MStudio help file is designed to show help only for the libraries that are installed.

 

NI Device Driver installers install .NET support by default only if Measurement Studio is already installed on the system. Otherwise, you have to navigate the installer feature tree and manually enable .NET support. The reason we do this is that we don't want to put .NET assemblies on the machines of people who care only about LabVIEW or only about C.

 

David Rohacek

National Instruments

0 Kudos
Message 2 of 9
(4,349 Views)

Hi David,

Thanks for your reply. It makes sense.  

Now, I tried to re-install the latest drivers (Device Driver 2009), it stoped with an error message:

"The NI Measurement Studio VISA Support for VS2008 installation has failed. Continue?"

 

Do you know why? FYI, I have LabView2009 and VisualStudioC#2008, and then installed MeasureStudio2009 evaluation installed.

 

Thanks again!

0 Kudos
Message 3 of 9
(4,340 Views)

I definitely did not expect that failure.

Can you please generate a log for the failure and attach it to a post so that our installer developer can look at it?

NI KB 39BDT32Q details how to generate a log file for an NI installer.

 

David Rohacek

National Instruments

0 Kudos
Message 4 of 9
(4,318 Views)

Dave, thanks for your continued help.

I've generated the install-log but it's >6Mb therefore too large to attach to the post.

Can you give me your email address or other ways I can send you the install log?

I also made a screenshot and attached below.

After getting this resolved, we're going to purchase some licenses for Measurement Studio.

 

By the way, is there any other way to get serial port working without using Visa?

I used to use LabWindows/CVI to talk to serial port, not using Visa.

Thanks again. 

0 Kudos
Message 5 of 9
(4,310 Views)

David, I compressed the MeasureStudio install log and attached below.

0 Kudos
Message 6 of 9
(4,309 Views)

You can use the .NET Framework SerialPort class (introduced in .NET 2.0) to access the serial port without using NI-VISA. I haven't used this API personally, so I can't speak to its completeness, correctness, or robustness.

 

We'll look at that installer log and figure out what's going on.

 

Thanks -

David Rohacek

National Instruments

0 Kudos
Message 7 of 9
(4,277 Views)

Hi Shef,

 

I looked at the log and it appears that something with Microsoft's custom actions used for integrating help is failing. Document Explorer is returning errors indicating other transactions are occurring and so it can't process the installers request. Please try the following:

 

1) Reboot the system and then try to re-run the installer

2) If that doesn't work, then delete the following file and then re-run the installer:

 

C:\Documents and Settings\All Users\Application Data\Microsoft Help\Rgstrtn.lck (or C:\ProgramData\Microsoft Help\Rgstrtn.lck on Windows Vista)

 

Let me know if those steps fix the problem. If not, please let me know.

 

Thanks

Jonathan N.
National Instruments
0 Kudos
Message 8 of 9
(4,267 Views)

You are the man!!! It's solved, after I removed the lck file.  David and Jonathan, thank you both for your prompt help!

 

Now, I need to get the VisaNS library working for my serieal comm via TCP/IP.

 

 

0 Kudos
Message 9 of 9
(4,255 Views)