Hi there,
I am trying to control 2 solenoid valves using digital output write to line in a sequence structure as shown in the attached file. The first frame opens one valve, the second frame opens the other valve, a wait function is used in the next frame to hold the valves open (for a very short amount of time, around 15-30 milliseconds) and the next 2 frames close the valves.
The problem I have is that I need to acquire two multipoint waveforms from 2 analogue inputs (a pressure transducer and a load cell) simultaneously at about 10 milliseconds before the first valve opens. The duration for this acquisition needs to be around 60-100 milliseconds for the pressure transducer and about 200-300 milliseconds for
the load cell while the sample rate will be 1000 samples/s.
Since I have used sequence structures to execute the digital outputs, I have been unable to log data whilst the sequence structure is executing. Depending on where I chose to put the simple acquire analogue multipoint waveform function the data is either logged before the digital outputs are executing or after the digital outputs have been executed, never throughout the sequence structures execution.
I realise that sequence structures are perhaps not the best way in which to arrange my system of digital outputs, however I have very limited programming and labview knowledge. Sequence structures were the simplest way in which I could devise how to control the solenoid valve execution. I suspect using the digital output as a trigger for my acquisition could be a solution however I could not work out how to do this.
I am using a Lab-PC-1200 daq card with Labview 5.1 (although the attached program is in labview 6 as
the computer I am using to send this mail has Labview 6 on it, however I could not get my daq card to work using Labview 6 so I am actually using Labview 5.1 in my experiments).
Any help would be great,
Thanks,
Ash.