LabWindows/CVI

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

Abstract data types - vector, list, stack, queue in CVI

已解决!
转到解答

Hi all,

I need to aggregate some amount of data.

I would like to use standard data structures because I have specific template of data to process. Are there any CVI libraries that already contain these datatypes? For now there is only List in "Programmer's toolbox" library in CVI.

 

Thanks for the support

 

0 项奖励
1 条消息(共 7 条)
4,076 次查看

There's the Utility Library that includes Thread Safe Queues



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 项奖励
2 条消息(共 7 条)
4,037 次查看

And a bit more simple than that? In my case, I would like to use vector. And I would like to work with it a data container. Because I need to send it out to GPIB. How do you suggest to do that?  

0 项奖励
3 条消息(共 7 条)
4,011 次查看

I'm afraid I cannot understand your needs, due to my lack in terminology and GPIB experience.

Could a struct accomplish your needs? What is your device expecting to receive?

Or can you detail your problem a bit more?



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 项奖励
4 条消息(共 7 条)
4,007 次查看

I need easy manipulation on adding/extracting new data node, I need my data to be sequentially stored in memory and I need an instantaneous API that estimates how much data nodes were stored. Than send it over GPIB from ptr - X and 1024 bytes next to it. Struct is inconvenient way to do it.  

0 项奖励
5 条消息(共 7 条)
4,004 次查看
解答
已被主题作者 ArtB83 接受

You could find this StackOverflow discussion useful in this respect.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
6 条消息(共 7 条)
3,998 次查看

Thanks, I will try to use their suggestions.

0 项奖励
7 条消息(共 7 条)
3,963 次查看