LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQ asistance dataflow on measuring card Ni PCI-6221

Hello all,

 

I must do a VI for sequencing machine. It will be only simply code with several DAQ asistants with only 3x Digital outpusts, 1x Digital input and 2x Analog Inputs. Digital outpust will be for: robot position, open nozzle, drain tub. Digital input is for the impulse for the robot to be in position. Analog inputs are for measuring data like for pressure and flow from the flowmeter.

 

In short, it is a robot that shatters the water body from which water flows into the beaker. My task is to write the code in the style of the sequential automat, the user presses only the measurement button and the rest will be done automatically. the outputs will automatically change the position of the robot and spray the water, the robot movement as such need not be solved, its movement is programmed in the nut and I solve only sending impulses to further movement, or opening and closing the nozzle. The reason I founded this topic is that I need somehow in the first step to reset all the digital outputs and then bring the signal to the digital output go to the position, the appendix is a picture of how I want to do it, but I do not know how to do it because the first three blocks have to be done to the left (all digital outputs are reset) and then the digital output must be set to the first position. Could somebody advise me at least a step? I would be very grateful to you. Any tips, tips, or links to the topic will be appreciated. thank you very much.

Download All
0 Kudos
Message 1 of 2
(2,447 Views)

Hi Majk,

 

My task is to write the code in the style of the sequential automat, the user presses only the measurement button and the rest will be done automatically.

Ok, that's your task…

But where in your current code is this "sequential" to be found?

Where in your code is the decision shown in your flowchart? Or that loop around some of those steps?

 

Please take the beginner courses for LabVIEW.

Then learn to use state machines - LabVIEW comes with a pre-defined project explaining their basics.

Then start over…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 2
(2,441 Views)