LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

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

Solved!
Go to solution

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 Kudos
Message 1 of 7
(3,526 Views)

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 Kudos
Message 2 of 7
(3,487 Views)

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 Kudos
Message 3 of 7
(3,461 Views)

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 Kudos
Message 4 of 7
(3,457 Views)

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 Kudos
Message 5 of 7
(3,454 Views)
Solution
Accepted by 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?
Message 6 of 7
(3,448 Views)

Thanks, I will try to use their suggestions.

0 Kudos
Message 7 of 7
(3,413 Views)