ni.com is currently experiencing unexpected issues.

Some services may be unavailable at this time.

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

DataSocket attribute on Real-Time

Hello,

I was wondering if anyone managed to use DataSocket attributes on LabVIEW Real-Time platform. The NI VIs for managing attributes doesn't work due to ActiveX, so do you have other ideas ?

 

Thank you,
Alex

0 项奖励
1 条消息(共 13 条)
5,124 次查看

Hello,

I was wondering if anyone managed to use DataSocket attributes on LabVIEW Real-Time platform. The NI VIs for managing attributes doesn't work due to ActiveX, so do you have other ideas ?

 

Thank you,
Alex

0 项奖励
2 条消息(共 13 条)
5,121 次查看

I haven't used DataSocket attributes, but if you give more information on what exactly you are trying to do we might be able to suggest some alternatives.

Matt J | National Instruments | CLA
0 项奖励
3 条消息(共 13 条)
5,078 次查看

Hi Matt,

 

I have 2 application which communicates through Data Socket. I need to rewrite one of them and in the same time move it on Real-Time target, so I would like to keep the same data exchange format. Unfortunatelly, I couldn't figure out how to use (write / read) attributes on Real-Time LabVIEW, apparently the NI VIs have an ActiveX which is not supported on RT.

 

Best regards,

Alex

0 项奖励
4 条消息(共 13 条)
5,063 次查看

Hey Alex,

 

Are you encountering an error when trying to use them that indicates they're not supported? It seems like you should be able to use them for certain things on LabVIEW RT. See below for information on what DataSocket protocols are supported on in LVRT.

 

Can I use DataSocket in a LabVIEW Real-Time Application?

http://digital.ni.com/public.nsf/allkb/F2B4B40FA614E99986256A5C0068D11C

Eden K
Applications Engineer
0 项奖励
5 条消息(共 13 条)
5,038 次查看

Hi Eden,

 

I can use the dstp on a RealTime target to write and read data with a DS server, but I'm not able to write/read the attributes. There are some VIs on dataskt.llb which can manage these attributes but I couldn't make them work in Real-Time target.

 

Regards,

Alex  

0 项奖励
6 条消息(共 13 条)
5,030 次查看

Hey Alex,

 

I can't find anything specifically that says whether or not reading and writing attributes is or is not supported. I'll dig a bit more and see if anything comes up. LabVIEW usually won't let you use VIs that aren't compatible. Are you sure that everything is configured correctly? Could you attach a screenshot of your attribute reading/writing code for us to see?

Eden K
Applications Engineer
0 项奖励
7 条消息(共 13 条)
5,014 次查看

Well, once I try to use a VI from Dataskt.llb I get a "Type not supported in the current target" so I think it's pretty clear.

I'm looking for a workarround if exists or not.

 

Thanks,

Alex

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

Hey Alex,

 

The "type not supported on current target" usually refers to a data type that isn't compatible with the target. Could you let me know which VI it is that causes you to get that error? And you're running this on the RT side of the system correct?

Eden K
Applications Engineer
0 项奖励
9 条消息(共 13 条)
4,960 次查看
Hi Eden, Please find in the picture mode details about the error. Regards, Alex
0 项奖励
10 条消息(共 13 条)
4,926 次查看