Quentin

Members
  • Posts

    24
  • Joined

  • Last visited

Quentin's Achievements

Member

Member (2/5)

0

Reputation

  1. Ok great. Do you have an explaination for the issue of the process variable not showing up in the PID event graph/ figure? see Posted Wednesday at 11:15 PM
  2. New issue, the if loop control the relay will only run once per for loop. i.e. it will iterate through the for loop run the if loop once and then wait for the delay to be completed. for (private i = 0, i < numrows(tempSPs), i++) curSP = tempSPs[i] if(Out < 0) Relay_control[0] = 0 delay(0.02) else Relay_control[0] = 1 delay(0.02) endif delay(tempDuration[i]) ?tempSPs[i] ?tempDuration[i] endfor What is required is for the if loop to actually run continuously during the whole delay of the for loop, would this work? for (private i = 0, i < numrows(tempSPs), i++) curSP = tempSPs[i] private startTime = systime() private elapsedTime = 0 while (elapsedTime < tempDuration[i]) if(Out < 0) Relay_control[0] = 0 delay(0.02) else Relay_control[0] = 1 delay(0.02) endif elapsedTime = systime() - startTime endwhile delay(tempDuration[i]) ?tempSPs[i] ?tempDuration[i] endfor
  3. Found issue, my process variable dissapeared for no reason on PID1 but is present on PID2...
  4. I would also like to have a live time gage to indicate the live delay, would that be possible to display on my page0?
  5. Great! Like this then? Or do i need to setup globals first? while(1) for (private i = 0, i < numrows(tempSPs), i++) curSP = tempSPs[i] if(Out < 0) Relay_control[0] = 0 delay(0.02) else Relay_control[0] = 1 delay(0.02) endif delay(SPduration[i]) endfor endwhile
  6. Could i set an series maybe using a button- "set to" action and then have my sequence loop iterate through each value for the delay in time1:
  7. Ok so I changed it a little bit to make it simple. We determined we actually don't need the PWM at all. Now how do you suggest i setup multiple setpoints/ durations? Test2_debug.ctl
  8. Ok it's all good! I got it fixed with the labjack support. Setup solution: Relay + port connect to VS on LJ Relay - port connect to GND Relay D port connect to FIO0 Then setup your channel like this: Rout = 1 (relay open) Rout = 0 (relay closed)
  9. My relay needs to operate at 3V does the labjack automatically adapt to 3v or I need to plug my relay on DAC0 and set the output (D to A) to 3v?
  10. Maybe it is because my labjack is not configured on DAQfactory? When I click on configure device it only has the LabJack UD option that would correspond to U6 but then it promts me for a U9 ethernet. So I have configured any device...
  11. ok the layout is good, i confirm it is an issue with DAQ factory. it seems like the signal doesn't stay high by using the toggle between feature... since it only goes to zero for a second and then back to 1. If i click continuously it stays at zero
  12. ok understood. Still doesn't work after rebooting. Troubleshooting my setup right now
  13. this is weird, how come the sequence had anything to do with it, especially when they were not running?? And how come now it could be a reboot, does it lack robustness? I though this was industrial grade software.
  14. alright then it might be an issue with my relay/ labjack pulg ins. Currently have NC/NO/COM relay with NC on FIO0 and COM on GND