NI Home > Community > NI Discussion Forums

LabVIEW

Showing results for 
Search instead for 
Do you mean 
Reply
Active Participant
alex.
Posts: 697
0 Kudos

How to read windows memory for data transfer

The hardware driver may write the data into windows memory. May I know how LV can read from the memory(100M/s).

 

Also they may send a windows message for data ready. May I know how LV get this message.

 

Thanks.

Knight of NI
Knight of NI
Ben
Posts: 16,147

Re: How to read windows memory for data transfer

Accessing the memory of a driver is usually done by mapping the memory similar to opening a file.

 

That is about as much as i can say with the limited spec you posted.

 

Give us more info and we may be of more assitance.

 

Ben

Ben Rayner
Who is now transitioning to John Galt.. just building Rayner's Ridge
Rayner's Ridge is under construction
Knight of NI
Posts: 18,064

Re: How to read windows memory for data transfer

For the first part you really need to provide more information. Are you getting a pointer so you at least know where to look? You will most likely need to make use of the MoveBlock CIN function so you can get into LabVIEW.

 

For the second part, I would suggest looking at the Windows Message Queue Library example.

Active Participant
alex.
Posts: 697
0 Kudos

Re: How to read windows memory for data transfer

The other side is developing a driver to receive realtime data from Lan port(100M/s), then pass data to LV.

 

They may use winpcap driver to receive the data from Lan port.

 

For LV, what now the desgin is, use windows message or polling the driver's dll function to trigger or check when new data come.

 

To read the new data, may need to read windows memory, they are flexible, can provide pointer or else. Also can pass by function return value by dll, but the realtime data volumn may be too big.

 

Any suggestion, thanks.