LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to convert a 1D string to an array?

Solved!
Go to solution

The string is in binary and I want to convert it to an array so I can convert it to a digital waveform of some sort.. but using the string to byte array vi is not possible since it is in 1D and destination is sink. How do I fix this? thank you!

0 Kudos
Message 1 of 4
(2,916 Views)
Solution
Accepted by topic author meere

Hi meere,

 

is there a specific reason to use MathScript to create a sine wave and convert it to some "digitized" waveform?

Why not use simple functions from Signal processing functions palette?

To answer your question:

check.png

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 4
(2,896 Views)

Thank you for your help GerdW! The VI you used seems different from the one I found. 

 

btw, im using Mathscript because i'm not that familiar with using the signal processing vis but the project is required to be implemented in labview

0 Kudos
Message 3 of 4
(2,892 Views)

HI meere,

 

I'm converting strings to numbers using ScanFromString.

You use some File function: why do you search functions in the file functions palette when you want to convert strings?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 4
(2,883 Views)