03-22-2023 10:24 AM
Hi All
I am newbie to LABVIEW and trying to set up my instrument in this case structure (attached here). It seems that it does not even go beyond initiation or Timeout stage.
I would really appreciate if someone could help me with that.
Thanks
03-22-2023 10:57 AM
Thank you for including your code. However, you are using an unknown (to us) DAQ Device for which we don't have the drivers (because we don't own the device, probably, but that's only a guess because the device is "unknown").
Does your device come with a manual? Does the device come with LabVIEW drivers? How are you supposed to communicate with it? If you open MAX (NI's Measurement and Automation Explorer), does the Device show up under "Devices and Interfaces"? If so, have you tried running a Test Panel to make the Device "do something"?
Is there someone at your location who has any LabVIEW experience? An older student, perhaps?
Bob Schor
03-22-2023 11:06 AM
Hi Bob
Thank you. I am using LABJACK device and it comes with its own VIs. I have tested these devices and they are working perfectly fine. Problem arises when I try to add some EVENT STRUCTURE in my state machine. So actually, I was concerned about my EVEN STRUCTURE set up if I did it right or I am missing something.
Thanks
03-22-2023 11:07 AM
If I run your code (with all the missing subVIs taken out) I can trigger different event cases. It is not an issue with the event structure.
03-22-2023 11:10 AM
When you change a setpoint, it will use whatever value you had in the setpoint when the program started running. You should put the controls in the event case that they trigger to make sure the most recent value is being read.
03-22-2023 11:19 AM
Any terminals outside of your loop will only be read when the VI starts up. You are always using your old values for Set point, Set point 2, and Set point 3. Move those terminals into their respective event cases.
03-22-2023 12:22 PM
Hi
Thank you for the suggestion. I had them inside and it din't work so I have to move them out so that they have at least something to begin with. However, my devices i.e. flow controllers were not responding at all to set values, in any case. Upon turning "highlight execution", I realized that even structure could not even move beyond "Timeout" case.
I am facing the same issue with my STATE MACHINE where even structure does not go beyond Timeout stage and it does not even run SUBVI and shown "subVI waiting to run".
Thanks
03-22-2023 01:03 PM
It should keep running the timeout case until you change a value or do something to trigger another event. Which event case are you expecting it to go to?
03-22-2023 03:03 PM
Hi
I expect it to run the MFC at certain value set from front panel.
Thanks anyway to confirm that it is not Event Structure that is problem here.
cheers
03-22-2023 04:04 PM
Are you changing the setpoint after the VI is running?