LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to copy and paste numbers to clipboard

The developer zone contains the library clipboard.llb with vis that allow to copy and paste text to and from the clipboard ("Copy and Paste Text To and From Clipboard"). I am looking for two similar vis that allow me to copy and paste floating point numbers to and from the clipboard. Can anybody help me out? Thanks.
0 Kudos
Message 1 of 5
(4,357 Views)
In the Copy VI, put a numeric control wired to a Format Into String. Wire the string output of this to where the original string control went. In the Read VI, you do just the opposite. Take the string value and wire it a Scan From String. Wire the output of this to a numeric indicator.
Message 2 of 5
(4,357 Views)
That would be too easy.
I need to copy the number from a software application into a vi. I tried to paste the number into Word and Wordpad, but this does not work (nothing is pasted). However, I am able to paste the number into Excel just fine. I do not know in what format the number is copied to the clipboard.
0 Kudos
Message 3 of 5
(4,357 Views)
I'm not sure what kind of problem you're having. Using the example copy text to clipboard, I can enter text or a number into the string control and then go into Word, select paste and the paste works. I can also do a copy in word and run the read text from clipboard example and have what I copied in Word show up.
0 Kudos
Message 4 of 5
(4,357 Views)
I agree that the copy and paste vis work fine with any Office applications. The application I am copying from is a proprietary software that came with one of our analytical instruments. It is too big to send as an attachment.) Unfortunately, the software is poorly documented and their tech support is poor. I am using CTRL C and not the copytext.vi to copy the numbers to the clipboard.
0 Kudos
Message 5 of 5
(4,357 Views)