Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

How do i (send to) and (retrieve from) my NI-8451 DAQ device using C#

Solved!
Go to solution

I am trying to write a program that will interact with my NI-8451 device using C# but I am having problems establishing the interaction.

0 Kudos
Message 1 of 19
(5,297 Views)

Hey WHIZ_KID,

 

Have you seen the 845x Hardware and Software manual? It has pretty detailed descriptions for all the calls needed to interface with the 8451 for both LabVIEW and C. Below is a link to that manual.

 

http://www.ni.com/pdf/manuals/371746c.pdf

 

Hope This Helps,

 

Doug B

Applications Engineer
National Instruments
0 Kudos
Message 2 of 19
(5,287 Views)
Will the funnctions for C work for C#?
0 Kudos
Message 3 of 19
(5,276 Views)
0 Kudos
Message 4 of 19
(5,272 Views)

Hey guys,

 

There is not a specific C# API for the 845x driver. Also, I would suspect the C code API won't directly translate to C# as that API is designed for C.

 

Regards,

 

Doug B

Applications Engineer
National Instruments
0 Kudos
Message 5 of 19
(5,262 Views)
I am trying to reference the Ni-845x.dll on my visual studio... but its giving an error... is there anything that can be done?
0 Kudos
Message 6 of 19
(5,245 Views)

Hey WHIZ_KID,

 

If you have Measurement Studio, then you can follow the instructions in this article to program with the 845x driver in C#

 

http://www.ni.com/white-paper/4562/en

 

What is the error you are getting when trying to call the 845x dll?

 

Regards,

 

Doug B

Applications Engineer
National Instruments
0 Kudos
Message 7 of 19
(5,238 Views)
Solution
Accepted by topic author WHIZ_KID

The error is saying that the dll is not accessible and that it is not a valid assembly or COM component

0 Kudos
Message 8 of 19
(5,234 Views)

and also ... for the dll solution, i don't have the plug in of measurement studio for visual studio... it is not working without the plugin... and it i cannot find the site to download the plugin

0 Kudos
Message 9 of 19
(5,232 Views)

delete

 

0 Kudos
Message 10 of 19
(5,227 Views)