Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Serial comm connection

I have used the device (serial port) to receive the hash data successfully from the hyperterminal.

So, I'd like to ask how to incorporate the serial port communication in the .NET environment and use MS NI user interface to display it?

Pls advise, thanks in advance.
0 Kudos
Message 1 of 7
(4,393 Views)
You can use the VISA .NET API to communicate with the serial port. You can install support for .NET in the VISA installer and this will install help and the assemblies. It will also install examples under the C:\Program Files\National Instruments\MeasurementStudio2003\DotNET\Examples\Visa. If you have Measurement Studio 7.x, you should have the Driver CD with you and this includes the installer for VISA.
Hope this helps
Bilal Durrani
NI
0 Kudos
Message 2 of 7
(4,375 Views)
I'm not sure exactly what you're looking for here, but I'll try and give you some pointers. You should be able to use the VisaNS .NET API to communicate over serial, GPIB, TCP, and numerous other bus types. Any data you read back from a device could be parsed into a numeric value and used to set the values of our controls. If you are Measurement Studio Professional or higher, you can use the Instrument IO Assistant to help you determine the commands you need to send to your instrument and to parse the results. You can get information on how to use the Instrument IO Assistant from the "Creating a Measurement Studio 488.2 or VISA Application" topic in our online help.
0 Kudos
Message 3 of 7
(4,374 Views)
Actually, what I got is the device - send out hash data into my computer (eg. you can get the data from hyperterminal - WinXP.)

I don't know if I could use VISA, is it needed the device with VISA standard - like having the National Instrument Drivers?

Are there any Microsoft CSharp application sample available - get the data, convert the data into int., then use Measurement Studio User Interface to display the int.???
0 Kudos
Message 4 of 7
(4,361 Views)
The .NET Framework doesn't actually have support for Serial communication, but it is being added to the .NET Framework in version 2.0. You can use VISA without any NI hardware, but there is a limit to the number of systems to which you can deploy your application. NI-VISA's .NET API ships with numerous programming examples, available in the c:\program files\National Instruments\MeasurementStudioVS2003\DotNet\Examples\VISA directory.
0 Kudos
Message 5 of 7
(4,353 Views)
As mentioned about limits of depolyment while using VISA, how many programs (max.) can be deployed?

BTW, I found the most similar program is "SimpleReadWrite", but is it reading the string data, how about hash data (how to deal with it?)?

Any dummy required (as reading the data, then show it on the program)?
0 Kudos
Message 6 of 7
(4,346 Views)
You are limited to 100 deployments if you don't have NI hardware in them.

I don't understand what you mean by hash data - maybe you can give an example of the kind of data you're trying to read?
0 Kudos
Message 7 of 7
(4,341 Views)