LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW Timed Loop

Hi Michelle,

 

yes, there is a way: You need to create a waveform for this 3s duration!

 

Did you read the help for the signal generation function? Do you understand all of its parameters?

When you don't understand this function the best you can do is to create a small "playground" VI to test this function:

check.png

Now play with all parameters until you get the desired behaviour (and understand why you got it)!

Best regards,
GerdW


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

So I was given a code I can work with and I was able to somewhat incorporate a sine wave frequency sweep but it is not working quite right. The code is using the set duration as the duration of the whole run rather than the duration per frequency. Is there any recommendation in how to set the code where it has the duration per sweep rather than the whole run? I have attach the code im using. 

 

Thank You, 

0 Kudos
Message 12 of 15
(881 Views)

Hi Michelle,

 

it is not working quite right.

Because you forgot to implement proper DATAFLOW!

THINK DATAFLOW: you should output the waveform in the loop, not after the loop…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 13 of 15
(879 Views)

That helped! I got the program to work the way I need it to work, but now I am having a new issue. I added a DAQ assistance to record my data and when I run my program I get an error-200279 and I can’t seem to fix it. I have trying increasing the samples per channel and changing my sample rate but it doesn’t seem to help. Any advice? 

 

I attach the code just in case. 

 

Thanks!

0 Kudos
Message 14 of 15
(863 Views)

Hi Michelle,

 

I'd recommend you take a look at the Analog Input example VIs. To find these, in LabVIEW go to Help->Find Examples->Hardware Input and Output->DAQmx->Analog Input. These will give you much more control over buffer settings and the like than the DAQ assistant, and you should be able to repurpose them to fit your application.

0 Kudos
Message 15 of 15
(831 Views)