LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

flat sequence with daqmx write

Hello everyone,

I am trying to execute analog write function where the input value is time bound. The value changes sequentially with time, tried using flat sequence structure for timing but I am stuck at a point where I don't know how to connect various inputs to daqmx write block. Can anyone help me with the logic.

0 Kudos
Message 1 of 5
(127 Views)

Hi sivac,

 


@sivac wrote:

tried using flat sequence structure for timing but I am stuck


How should a sequence structure help with timing???

 

Why don't you show your code?

Why don't you use a loop?

What are your timing requirements?

Best regards,
GerdW


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

sivac_0-1742976050654.png

Here is my code, I want to give one input at a time to the block

 

0 Kudos
Message 3 of 5
(109 Views)

Hi sivac,

 


@sivac wrote:

Here is my code, I want to give one input at a time to the block


This is just an image of (broken) code. There is a difference between "code" and "image of code"…

 

With those timing requirements I recommend to use a simple state machine - or even simpler a FOR loop auto-indexing an array of output values!

 

What's the purpose of the DAQmxStop/Clear function when your loop NEVER stops??? (Don't get me wrong: I don't recommend loops running endlessly.)

I recommend to learn THINK DATAFLOW! (There is a chapter on DATAFLOW in the LabVIEW help…)

Best regards,
GerdW


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

Hey GerdW,

Thanks for your response. I started using Labview recently. I will try to implement state machine for my application. Thankyou

 

 

0 Kudos
Message 5 of 5
(85 Views)