12-20-2016 11:31 AM
Hello,
I'm trying to control 2 solenoid valve with USB-6343.
What I need to do is close 1 valve and 1ms after send the command to open another valve.
Right now, it takes between 10 to 15ms before the first command is executed.
Need to reduce that time to 1ms.
Is it possible?
Thank you
12-20-2016 11:44 AM
Not likely with static digital lines. I see that the USB-6343 has hardware timed digital lines. You could use those. Build up a digital waveform that has the two channels with the second going high 1 ms after the other and write the waveform.
12-20-2016 12:00 PM
Hi!
never used the hardware times digital lines.
Do you have an example on how to do this please?
Thanks
12-20-2016 12:06 PM
Go to Help >> Find Examples in LabVIEW and search. The one I found that looked promising is the Digital - Finite Output but there are many more.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
16 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
12-20-2016 01:58 PM
Did check it.
Not sure it does what I need.
I just need to toggle the output (channel 1 from ON to OFF) and then 1ms later toggle the other output (channel 0 from OFF to ON)
12-20-2016 02:04 PM
@Goncalo wrote:
Did check it.
Not sure it does what I need.
I just need to toggle the output (channel 1 from ON to OFF) and then 1ms later toggle the other output (channel 0 from OFF to ON)
No it doesn't do what you need, what it is, is an example on how to generate a finite output that is hardware timed and will reliably set outputs without needing to talk to the OS...which is one of the things you described needing.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
16 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
12-21-2016 09:11 AM
I still don't understand how can I manage to keep 1 ms between 2 writes.
I just need to toggle 1 output then 1ms later toggle the other one
12-21-2016 09:22 AM
12-21-2016 10:36 AM
This is my problem!
Never used the waveform and the hardware timing so I don't know how it works!
I have 2 solenoids.
Need to activate solenoid #2, wait 1ms and then deactivate solenoid #1.
waveform #1 is for solenoid #1 and waveform #2 is for solenoid #2
Current status for solenoid #1 is activate (1) and solenoid #2 id deactivate (0)
Now, there is a change of status so need to do my procedure
So, waveform #1 will have 000 and waveform #2 should have 001
I'm I correct?
12-21-2016 10:39 AM - edited 12-21-2016 10:41 AM
Hi Goncalo,
Never used the waveform and the hardware timing so I don't know how it works!
That's why we already suggested to examine the example VIs coming LabVIEW/DAQmx!
Did you?
Instead of repeating "never used so far" you should say "now it's time to use it for the first time"! 😉
I have 2 solenoids. …
You already told us all this. No need to repeat!
Use hardware timing for DO channels, setup some boolean waveforms as needed…