10-20-2008 06:31 PM
Thank you very much Peter, that was extremly helpful. I was able to apply the power supply's drivers and got the voltage increment working. I removed the stopping time because the requirement has changed.
One of the requirement is that after increasing the voltage, the power supply needs to read out the voltage/current before increasing to the next. As I understand it, the consumer loop is supposed to take in the queue so I put the output voltage/current to take a reading in the consumer loop but nothing came out. I'm just wondering if the data flow logic is correct.
Also, how would I change it so that instead of stopping after reaching the maximum voltage, it would just hold there indefinitely (i.e. the program will keep taking voltage readout but not stopping)? I tried removing the stopping condition and inserting a for loop inside the "producer loop" so that it would hold once the theoretical voltage reaches the specified voltage but this didnt work.
I have attached what was made so far.
Thank you
10-21-2008 02:06 AM
HI oioi,
In reply to your message:
One of the requirement is that after increasing the voltage, the power supply needs to read out the voltage/current before increasing to the next. As I understand it, the consumer loop is supposed to take in the queue so I put the output voltage/current to take a reading in the consumer loop but nothing came out. I'm just wondering if the data flow logic is correct.
You should do the measurements and controls in the producer loop, in the consumerloop you should only use the data to send it to the power supply. What you're doing is creating a queue in the producer loop, in this queue you're only writing the information needed for the control of the power supply (output voltage).
Also, how would I change it so that instead of stopping after reaching the maximum voltage, it would just hold there indefinitely (i.e. the program will keep taking voltage readout but not stopping)? I tried removing the stopping condition and inserting a for loop inside the "producer loop" so that it would hold once the theoretical voltage reaches the specified voltage but this didnt work.
In this situation you should use a case structure (see enclosed picture).
This case structure alows you to create If....then... else cases: If Voltage is equal or greater than Max Voltage Than maintain voltagelevel, Else increase by Voltage Increment.
Using Case structures could be quite usefull in programs!
Hope this will help you any further!
Best regards,
Peter S
10-25-2008 02:37 PM - edited 10-25-2008 02:43 PM
Hello Peter,
Im trying to expand on the program to make it carry out the experiment automatically. My experiment requires that the voltage first be cycled for a certain number of times (such as setting the voltage from 0 to 1000V by 50V increment every 10s, then repeat it for 3 times). After the cycle is complete, it should move on to the experiment loop where it would increase the voltage and hold at the maximum voltage (setting the voltage from 0 to 2000V by 100V increment every 30s, then hold at 2000V indefinitely)
Here are the problems for my current vi and I have tried different ways but so far no success.
For the "initial cycle loop", it wouldnt loop the voltage for the # of cycles set. It would just move right on to the experiment loop. As seen in the block diagram near the bottom, I set it to compare the number of cycles to the number of loop iterations but it wouldnt repeat the loop.
In the experiment loop, I tried doing what you said for the voltage hold using the case structure but it wouldnt hold at the maximum voltage, it would just kept on increasing. I think my stop/hold condition is incorrect for the outter most while loop.
Also, can I access the same power supply to take measurement using another VI simultaneously? It could either use the same driver in the same directory or the same driver in a different directory. I trying to make another VI so that it will take measurements indepdently of the Main.vi using this power supply's built in functions. I dont know if this will work
Thanks.
10-26-2008 09:19 PM
OK so I've got the experiment loop working great. The initial cycle loop is still not cycling through the specified cycles.
10-28-2008 05:08 PM
I've got everything working.
Thank you so much everyone for all the helps
03-01-2018 03:26 AM
I replaced Kepcor vi with PL303-P vi. How to solve this error?
Attached is PL303-P vi.
03-04-2018 09:07 PM
What should be configure to Property Node?
03-05-2018 10:55 AM
EvansL,
This discussion is nearly 10 years old. To make your post more visible, I would recommend creating a new discussion thread and providing some more context for your question. If you do this, then post a link to your new thread on this page so we can look at your new post.
Thanks,
Matthew C
NI | AE
03-05-2018 08:50 PM
I heed your advice. New thread https://forums.ni.com/t5/LabVIEW/Sequence-Automation/td-p/3763309