LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview + arduino

Hi everyone,

 

I'm trying to use the LIFA for a project I'm doing now, bur I don't know how to solve a difficulty that I'm facing. I'm acquiring signals with the USB-6009 and at the same time sending either HIGH or LOW values through the pins 8,9 and 10 of the Arduino board to control a digipot. As you can see in the attached image, I can control which value is send to each pin by clicking on a boolean control which operates a select function. Now I'd like to do that automatically for the pin 10, so I could set a HIGH value, wait 100 ms, set a LOW value, wait 1000 ms and repeat the process. I've tried with digital waveforms, but it doesn't work. I would really appreciate any help.

 

Thank you guys,

 

Oscar

 

0 Kudos
Message 1 of 4
(2,874 Views)

Hi Oscar,

 

There are some ideal ways to do this but we would need to change your code a lot. So, I was thinking in a way to do it without changing your code to much and I made this, sorry because I don't have the LabVIEW for Arduino so the Arduino VIs are broken, but the logic to generate the signal changes is attached.

 

Any help you need just tell us.

Thiago Matos
Engenharia de Aplicações
National Instruments Brasil
0 Kudos
Message 2 of 4
(2,815 Views)

Oscar,

 

Considering your application, you could also use a waveform generator, but you'll need a point by point wave generator. You can find it in functions, just go to Signal Processing, Point by Point, then Signal Generation and Square Wave, like the attached image.

Thiago Matos
Engenharia de Aplicações
National Instruments Brasil
0 Kudos
Message 3 of 4
(2,798 Views)

Thiago thanks a lot for your help!

 

Now I'll try both possible solutions you recommend and see which one suits better for what I need.

 

Once again, thank you very much for this.

 

Greetings from Colombia

Oscar

0 Kudos
Message 4 of 4
(2,773 Views)