06-12-2006 02:14 PM
06-14-2006 05:10 AM - edited 06-14-2006 05:10 AM
Hi
I would suggest writing to file with a shared variable from the RT back to the host. Easy to set up and by the sound of it, it will do exactly what you want.
Make sure you have the network variable engine and variable client engine installed on the cRIO
I have attached a little VI which will do the write to file bit witch needs placing under My Computer in your project. You also need to create a shared variable (in the project right click My Computer >> New >> Variable I have called it WriteToFile) the format for the shared variable is array of I16s
You will have to place the shared variable in the Buffered DAQ (RT).VI and change it to write, and wire the input data (synchronous display) [] in to the shared variable (see.jpg attachments)
Run the WriteToFile VI attached enter a file path and it will log the file to a speed sheet (you might need to re add the shared variable to this VI)
I hope this helps
Tim
Tim M | Applications Engineer | National Instruments UK & Ireland
Message Edited by TimM(AE) on 06-14-2006 05:13 AM
06-14-2006 05:41 AM
06-14-2006 05:50 AM
Hi
Really sorry but no. You can’t use data sockets with LabVIEW 7. You will have to use TCP IP I will have a look for some examples, I will get back to you as soon as I have some thing working
Regards
Tim
Tim M | Applications Engineer | National Instruments
06-14-2006 09:01 AM
Hi
I have found some links that I think will sort you out which use date sockets. Have a look at these and follow the instructions. There are also some examples in NI example finder in LabVIEW. (Help >> Find example>>toolkits and modules >> Real-Time>>communication)
Using Datasocket in LabVIEW Real-Time
How to Allow Remote Systems to Create and Write to DataSocket Items?
Regards
Tim
Tim M | Applications Engineer | National Instruments
06-15-2006 09:57 AM
06-19-2006 08:58 AM
Hi Aae,
LabVIEW RT has the capability that you can download and set a VI running on a target PC, then exit that VI leaving it running on the target and then open
You cannot however have front panels from multiple targets open simultaneously.
LV RT capabilities and instructions regarding the above can be found in Chapter 2, “Connecting to a Real Time Target” of the “LabVIEW Real Time User Manual”.
I would strongly suggest reading through this as you need to follow a specific set of steps in order to close your writer VI and change to your reader VI without stopping the writer execution. This is what I suspect is currently the cause of your current lack of data.
An electronic copy of the manual can be accessed if you click “Help” on the toolbar of the LabVIEW splash screen> choose “Search the Real Time module book shelf” from the drop down menu. This should bring up a PDF file with a web link to the “LabVIEW Real Time User Manual”.
Can you describe the procedure you are currently using?
Emma Rogulska
NIUK & Ireland