LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to control my program for 0.6seconds?

Solved!
Go to solution

I have to obtain magnetic values for ferromagnetic materials using labview and two thyristors.

 

What i have: I have built a comparator on labview which will compare a mains voltage and my ref voltage. The mains volatge is carried into the VI via a daq assistant. the outcome (voltage) is then passed to th two thyristors, once again via a daq. The thyristors will then pass the voltage along to the magnetic circuit for only!!! 0.6seconds?? as voltage from the mains is very powerful. this is a university project where i work supervised in a lab.

 

I am using a NI USB - 6008 12-bit, multifunction i/o and NIDAQMX software

 

Thank you

0 Kudos
Message 1 of 8
(3,099 Views)

What kind of help do you need?

 

0.6 seconds is a long time and is not unusual.. 

 

Do you need help with LabVIEW, with DAQmx, others?

0 Kudos
Message 2 of 8
(3,086 Views)

The help i need is using labview. i have set up the daq assistant for input and output. the whole VI is in a while loop. i just do not know how to get the loop to stop after 0.6seconds - thank you for getting back to me

0 Kudos
Message 3 of 8
(3,084 Views)

1) If you can, post the code you have written at this point so that we can see, and therefore comment, on how to help

 

2) When you have started a post about a topic, keep posting in that thread, don't start a new one as it causes a discontinuity in the help, with new posters to the new thread frequently repeating suggestions/questions that have already been dealt with.

 

 

Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



0 Kudos
Message 4 of 8
(3,079 Views)

I used different DAQs as i didnt know how to get more than one value out. but as i said the main problem is controlling it for 0.6seconds. keep in mind the program is not finished.

 

I had to repost this as i was not getting a reply on my first posting.

 

Thank you for your time

0 Kudos
Message 5 of 8
(3,071 Views)

Here's a very simple example (bottom part of code inside While Loop) that will stop the loop in approx 600 ms.

 

I have not looked at your code, yet..

 

 

 

 

0 Kudos
Message 6 of 8
(3,059 Views)
Solution
Accepted by topic author suave-o

I did not go into your DAQ Assistants..  Just added the 600 ms stop to your code.

See attached.. 

 

I just realized that I made the value 600ms a constant.  Just right click it and change to Control.

That way you can change the duration without having to modify the code.

0 Kudos
Message 7 of 8
(3,056 Views)

Hi guys thanks for the info, works like a dream and i made it a constant. hope your good. thanks again

 

0 Kudos
Message 8 of 8
(3,020 Views)