Dynamic Signal Acquisition

cancel
Showing results for 
Search instead for 
Did you mean: 

Need to find the memory address of a buffer or string

Two basic questions:

-How does LabVIEW treat the concept of a "buffer"?  Isn't it just a string wired from one block to another?
-How can I find the address of a memory location or buffer location?

I am using the Call Shared Library Node to call two functions to unwrap a custom communication protocol packet.  I will be reading packets of information from the serial port and sending them through this unwrapper  The first function expects as the arguments a)the address of the buffer and b)the length (in bytes) of the buffer.  I can measure the length, but am unsure of the address.  I would have just wired the string output of the serial port to the input of the unwrapper, but the unwrapper wants the address of that string/buffer.  The data type of the buffer address that the function expects is "unsigned char*" in C++ which translates to "uInt8" in LabVIEW according to http://zone.ni.com/devzone/cda/tut/p/id/3009.  The second function that is being called writes the unwrapped data to the destination buffer address that I specify as an argument. 

I located this VI that handles buffering, but am unsure how it would help me, because it doesn't deal with the address issue either (and it used arrays of doubles, not characters or strings which is what the output of the serial port will be).  http://zone.ni.com/devzone/cda/epd/p/id/2499

Any help would be appreciated.

Nathan

Previous related post: Call Library Function Node: Instantiate a class/handle constructors in a C++ Shared Library?

0 Kudos
Message 1 of 4
(8,217 Views)
By the way, I am using LabVIEW 6.1 on a Mac.
Nathan
0 Kudos
Message 2 of 4
(8,215 Views)
This question is probably better asked on the LabView forum.  I've never seen this type of question asked here.

Duncan
CVI user, even though I also have LabView ;-))
0 Kudos
Message 3 of 4
(8,212 Views)
Thanks. I didn't realize I was on the Dynamic Signal Acquisition Forum.
0 Kudos
Message 4 of 4
(8,206 Views)