Instrument Control (GPIB, Serial, VISA, IVI)

取消
显示结果 
搜索替代 
您的意思是: 

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

已解决!
转到解答

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 项奖励
1 条消息(共 19 条)
5,426 次查看

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 项奖励
2 条消息(共 19 条)
5,416 次查看
Will the funnctions for C work for C#?
0 项奖励
3 条消息(共 19 条)
5,405 次查看
0 项奖励
4 条消息(共 19 条)
5,401 次查看

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 项奖励
5 条消息(共 19 条)
5,391 次查看
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 项奖励
6 条消息(共 19 条)
5,374 次查看

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 项奖励
7 条消息(共 19 条)
5,367 次查看
解答
已被主题作者 WHIZ_KID 接受

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

0 项奖励
8 条消息(共 19 条)
5,363 次查看

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 项奖励
9 条消息(共 19 条)
5,361 次查看

delete

 

0 项奖励
10 条消息(共 19 条)
5,356 次查看