04-20-2011 05:51 AM
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
Solved! Go to Solution.
04-20-2011 07:00 AM
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?
04-20-2011 07:04 AM
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
04-20-2011 07:18 AM - edited 04-20-2011 07:19 AM
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.
04-20-2011 07:24 AM
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
04-20-2011 07:33 AM - edited 04-20-2011 07:33 AM
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..
04-20-2011 07:40 AM
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.
04-21-2011 02:32 PM
Hi guys thanks for the info, works like a dream and i made it a constant. hope your good. thanks again