LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

waveforms over datascoket

Is it possible to write waveforms over datasocket and convert it back to waveform on the other side?
 
that is without having to deal with additional conversions to string or array formats.
 
Thanks,
Sam
0 Kudos
Message 1 of 7
(2,951 Views)

Help for datasocket write says this for the data input "data can be in any format or LabVIEW data type."

0 Kudos
Message 2 of 7
(2,945 Views)
But I don't seem to be able to convert a variant directly to a waveform after a read!
0 Kudos
Message 3 of 7
(2,945 Views)
All you have to do is wire a waveform control to the type input of the DataSocket Read function. Here's the shipping example called DS Reader modified to get a waveform data type.
0 Kudos
Message 4 of 7
(2,938 Views)
I don't think you need to be using the variant function. The waveform should wire directly into the datasocket write.
0 Kudos
Message 5 of 7
(2,930 Views)

I have a waveform wired to ds write. I can see the data with ds read as variant, but if a waveform type is the input for ds read, as suggested, nothing comes through. this is not a major problem, but puzzling none the less!

Thanks

Sam

0 Kudos
Message 6 of 7
(2,921 Views)
I'm not sure what your problem could be. Why don't you post your DS reader and writer VIs so someone can look at them.
0 Kudos
Message 7 of 7
(2,908 Views)