10-27-2011 12:01 PM
This post below describes my same problem of passing a task through a case structure but they are using the DAQmx Library and it has a CreateTask.vi which the ULx Library doesn't have.
http://forums.ni.com/t5/LabVIEW/passing-DAQmx-task-out-through-a-shift-register/td-p/410447
Any suggestions as to how to get my task out through the shift register?
Thanks
-CC
Solved! Go to Solution.
10-27-2011 12:36 PM
I have never had a problem getting ULx task out of shift register.
This is an action engine that I use to store the ULx tasks ref to use later in the code.
10-27-2011 01:20 PM
Thanks Omar,
May I ask what code you have in the False case? This is where my problem lies as I am getting an "empty I/O task" error.
10-27-2011 01:29 PM - edited 10-27-2011 01:30 PM
It just passes the stored task ref through to be used by other VI to control the IO lines defined in the task.
It only creates a new task once when the program runs and the VI is called for the first time. The ref is not a valid ref.
Or the reset Boolean is true.
Have you used un-initialized shift registers before?
Post a copy of what you have tried before.
10-27-2011 01:52 PM
It's just an initialization problem then, nothing technical.
I should be good. Thanks for your help.