12-26-2020 05:13 AM
Hi all, i hope that you are ok.
I would like to simulate the operation of a solenoid valve on labview. My question is this: how to simulate on labview, the opening and closing of a solenoid valve during every second ? I am new to the software labview so i don't know how to do it yet. If you have any explanation for me how to do this program, i will be grateful to you.
Best regards,
Solved! Go to Solution.
12-26-2020 02:43 PM
What exactly do you mean by simulate? Do you have any valve? Do you have any digital output card to drive a valve?
If you have none of those, you can put an LED indicator on your front panel to be On or Off that "simulates" a valve being open or closed.
12-26-2020 04:06 PM
RavensFan, thank you for your reply.
I don't have any valve to simulate but i have a card DAQ NI with analog outputs. I have already managed to do the test with a led and it works well. A screenshot of my program is attached.
Now, i want to simulate with the DAQ card by introducing a DAQ assistant in my programm. Do you think this is feasable ? If yes, do you have any idea how to add it to my programm ?
THank you in advance,
12-26-2020 10:47 PM
Well I would avoid the DAQ Assistant and use real DAQmx functions. And if you look in Help >> Find Examples, you'll find dozens of examples on how to do all kinds of DAQmx programming. Look for one related to digital output.
12-28-2020 05:42 PM
RevensFan,
I have tried several times to make the program with a digital DAQmx but can not do it. I don't quit understand how this can work. Can you show me an example program that can help me please ?
Best regards
12-28-2020 06:18 PM
No I can't provide an example, especially when I already said where you can find examples.
But you can provide your attempt and tell us in what way it is not working for you, Then we can point out what the problem is. That way you can learn from your mistakes rather than be given an answer.
12-28-2020 08:55 PM - edited 12-28-2020 08:57 PM
@RavensFan wrote:
No I can't provide an example, especially when I already said where you can find examples.
But you can provide your attempt and tell us in what way it is not working for you, Then we can point out what the problem is. That way you can learn from your mistakes rather than be given an answer.
Actually, RavensFan, myself and many others have a lot of experience with DAQmx .
You don't....and this sounds like a homework assignment that you have left to the last minute.
We have the dimpomas (I certainly have more degrees than the Kelvin scale!) But, show us what you have tried And we could mentor you.
12-29-2020 06:47 AM
It isn't just a homework assignment and i am not last minute either. I am trained to work on a very serious project.
In my programm that i had attached, i want to insert a digital output DAQmx then conect my led to this output. I want the output of DAQmx to switch between 0 and 5V to turn the led on and off every second.
As i told you before, i am a beginner in labview so i have no idea how to do this program. I will work on it and get back to you if have any ideas.
I apologize for my english, i am not an english speaker.
Best regards,
12-29-2020 09:36 AM
You didn't attach a program. You attached a picture. And it didn't show any attempt at using DAQmx functions.
Please attach the actual program. That would be a file with a .vi extension.
12-29-2020 09:54 AM - edited 12-29-2020 09:58 AM
@drsisco wrote:
It isn't just a homework assignment and i am not last minute either. I am trained to work on a very serious project.
In my programm that i had attached, i want to insert a digital output DAQmx then conect my led to this output. I want the output of DAQmx to switch between 0 and 5V to turn the led on and off every second.
As i told you before, i am a beginner in labview so i have no idea how to do this program. I will work on it and get back to you if have any ideas.
I apologize for my english, i am not an english speaker.
Best regards,
No, you attached a picture of some of your code. The file has very little information about the hardware that you have.
Trained? Seriously, if you have training you would understand that the type of solenoid would be important information! Solenoid activation involves moving a mass. Generally speaking, you don't want to do that as fast as 1Hz! And, you will need a bit more power than 25mW to move a solenoid @that speed!
So, a cheap DO line isn't enough power and a relay solution won't last long (@1million cycles for a good relay ...at 84600 sec/day that is about 20 weeks)
Back to the drawing board! What work needs to be done? Divide by how fast and get your power needs (don't forget to divide by efficiency) then ask a serious question.