LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Basic Read/Record Voltage

Solved!
Go to solution

Hi all,

 

Sorry, I am quite new to Labview, and I was wondering if anyone could help me figure out what is wrong with my VI.  I am trying to read in a simple voltage using a USB 6008 and record the data.  Any input would be greatly appreciated.

0 Kudos
Message 1 of 5
(3,176 Views)
Solution
Accepted by topic author Mr. Mu

Hi Mu,

 

have you read that error message, when trying to start the VI? It's pretty straight-forward...

Otherwise look here!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 5
(3,169 Views)

Thank you very much Gerd! Sorry for the delayed reply but I had to put this project on hold for a bit.  I just had a quick follow up question.  Is there any way to add a start button to the while loop? I was looking around your link, but I could only find references to stopping a while loop.  I wanted to be able to run the program multiple times without having to restart it.

0 Kudos
Message 3 of 5
(3,098 Views)

Hi Mu,

 

"run the program multiple times without having to restart it."

Something like putting the existing VI into another while loop?

Best regards,
GerdW


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

Hello,

 

It sounds like you'd need to add an event structure.  You can use an "event" such as a button push to trigger a part of your code to execute.  Here's a link to some event structure basics.

 

Event Structure (Basics)

 

I hope this helps!

 

Jon S

 

 

Applications Engineer
National Instruments
0 Kudos
Message 5 of 5
(3,075 Views)