Jump to content

jcesar1029

Members
  • Content Count

    9
  • Joined

  • Last visited

Community Reputation

0

About jcesar1029

  • Rank
    LAVA groupie

LabVIEW Information

  • Version
    LabVIEW 2009
  • Since
    2014
  1. Hello everybody, I was able to stop the VI during the interval scanning by creating an Event structure inside the producer loop with a time out of 500ms. Every 500ms it is checking if a scan happened. If a scan did happened, then it would go through a case structure where the data would get queue. So far the VI has been good. I will now implement an excel report in the consumer loop where the temperature values will be recorded with a timestamp. Thank you very much for this idea. Any suggestions on what I did are welcome.
  2. Update: So I eliminated the subVIs that were being used for Wait for Scan Complete and unnecessary code that were added to them. After doing this VI runs as before with the inability of interrupting the 15 minute interval. I placed the Stop button inside the while loop as someone suggested. It does stop the interval but returns an error as that shown below and an incorrect reading value of 9.91E+37 for a thermocouple. I feel that I am close to the solution (thanks to this thread) and will keep working on it. Edit: Here is a close up of the Producer loop.
  3. Hey Jordan, Here is the error I was talking about. Here is what I did, I took out the elements outside the subVI and tried to run it.
  4. Hi bbean, Thank you for your reply. Quick question before I try this, wouldn't this not work since the data flow will be in the Wait to Scan Complete while loop? If I press the Stop button, the event structure will not operate because I am stuck in the while loop. I would need to stop the while loop, prior to moving on to the event structure. Please correct me if I am wrong. The loop inside the Wait for Scan Complete iterates at different values: 232, 231, 234, 244 for an interval of 10 seconds. So for a 15 minute interval it would be around 21,960 iterations. I will try t
  5. The instrument will read the card where the thermocouple are connected to. Yes, hardware converts the voltage value to a temperature value not LabVIEW. The LabVIEW program sends the initialization values to the hardware and sends the signal to start the scan. Then the VI will read the program through VISA read. The hardware is connected through Ethernet. Let me show you in depth of each subVI. Keep in mind these subVIs are part of the Fluke 2638 that NI offers. Here we start with the main VI. Inside Wait for Scan Complete subVI Now, inside Operation Status subVI; which cons
  6. Jordan, I understand your idea and it is a good solution. The interval time with a few ms is not a big issue. The only concern I have, which is a personal preference, is I want to have the Fluke hardware to do the timing. Based on your experience, why would I not be able to change the subVI or make a copy of it? I am curious. The 15 minute scan cannot be split into shorter scans. The nature of the 15 min scan is to take thermocouple readings (15 minute is a standard time). During the interval, the hardware is counting time and once it reaches the 15 min, it will read the
  7. Sorry I wasn't clear on my question. I would like the Stop button to stop at anytime the Wait for Scan Complete subVI which has a timeout value of 16.67 minutes. The timeout value allows the program to return an error if there was no hardware scan after 16.67 minutes (interrupts the VI). The Fluke 2638A hardware is set by the VI to an interval of 15 minutes to take a reading. Every 15 minutes there is a temperature scan. The subVI Wait for Scan Complete has a while loop where it keeps running until a hardware scan happens or the timeout is exceeded as shown below. When I press the
  8. In your top loop you can place an event structure with a timeout value of the 15 minutes and place the scan code in the timeout event case with a reasonable (short) timeout input. Then in your other event cases you can process things like your stop button. Thank you for your response. I am confused on the logic. The event structure will have a timeout value of 15 minutes which will operate the case Timeout. In this Timeout case, the scan code will run once the 15 minutes of no events have occurred. It doesn't seem ideal because I need the scan to start as soon as the user starts
  9. Hello everybody, I am trying to create a DAQ VI for Fluke 2638A that measures temperature every 15 minutes. I created a producer/consumer architecture for this VI. During the 15 minute interval (900s), how can I have the Stop button end the program? I need interrupt the Wait for Scan Complete subVI since this is where it stays during the interval of 15 minutes. I am thinking of adding a shared variable node where the subVI is able to read the value but I am unsure of this approach. Please let me know if there are better ways to do this VI or any comments that I can learn from
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.