LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabView convert .csv data to analog voltage output with LV-Link

Solved!
Go to solution

I am trying to take a CSV file using Read Delimited Spreadsheet, Index it into an array, load it into DtInitDACBuffers, and provide values for DtOLWaveformGenerate to output into a waveform on a DT9834 data translation device. One problem I have encountered is that after indexing the array and trying to send the values to the buffer, I get this:

The type of the source is 1D array of
double [64-bit real (~15 digit precision)].
The type of the sink is long [32-bit integer (-2147483648 to 2147483647)].

Is there a way to convert this?
Any advice on how I might achieve what I am trying to do with LabView or if it is even possible?

 

Thank you for any help.

0 Kudos
Message 1 of 3
(775 Views)

Hi Tareyes,

 

Have you explored data conversion pallet under numeric?

XM43_0-1692992811379.png

This may solve your problem.

X

0 Kudos
Message 2 of 3
(768 Views)
Solution
Accepted by topic author tareyes

Hi tareyes,

 


@tareyes wrote:

I get this:

The type of the source is 1D array of double
The type of the sink is long

Is there a way to convert this?


So you have an array of DBL, but the data sink only accepts an I32 scalar value?

What about indexing an element from your array?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 3
(739 Views)