LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

vi logger datasocket

I want to realize a labview standalone application that connects to data published through datasocket by VI Logger installed and running on a remote computer.
I know that is not possible to use dataoperation menu from front panel objects but I have to resort to datasocket vis but I haven't yet found an example on how to connect to a specific task and read channels values.
I wonder if it is possible to stop a VI logger task from remote.
0 Kudos
Message 1 of 2
(2,385 Views)
Hi EneFoto,
 
as you told it's not possible to use Datasocket Connection feature from front panel because VI Logger publishes data over DataSocket that is a 2-D array of singles data type, whereas front panel DataSocket connections are looking for a 1-D array of data, and thus cannot recognize the data that is being published. So the solution is to use the DataSocket VIs instead of the front panel DataSocket connection.
 
You can find Datasocket examples searching from Help>>Find Examples in Labview.
However you have to use simply the "Datasocket Read.vi" function with the string "dstp:\\<remote PC Name>\<VI Logger Task Name>"  as "connection in" input and a 2-D numeric Array as "Type" Input.
 
I hope this help you.
 
MarcoC
0 Kudos
Message 2 of 2
(2,373 Views)