03-16-2023 07:35 AM
Hello,
I am working on controlling temperature automatically using LABVIEW. In the below diagram you can see the when the DUT temperature equals to setpoint, it goes to the Ture or False condition.
In the true condition it detects the board is waking up or not. I set the loop to run for 60seconds.
Once it's done, it need to increase the setpoint. But, here I am using two different visa resources. How can I send the data of visa resource 2 to activate/ trigger the visa resource 1 setpoint temperature.
or
Is it possible to communicate two different resources? How?
Thank you.
03-16-2023 08:31 AM
"How can I send the data of visa resource 2 to activate/ trigger the visa resource 1 setpoint temperature" - By using a TRUE/FALSE case. Let's say TRUE would come from resource 2 you would put any action for resource 1 into the TRUE case. Resources can be held open as long as the While loop runs, or you open/write/read/close them every time.
"Is it possible to communicate two different resources? How?" - Yes. By opening two or more different resources which even isn't ncessary, as the VISA Write VI would open them automatically as soon as you call it. You only have to use two different resource names.
03-16-2023 09:14 AM
Hi jrengg,
@jrengg wrote:
Once it's done, it need to increase the setpoint. But, here I am using two different visa resources. How can I send the data of visa resource 2 to activate/ trigger the visa resource 1 setpoint temperature.
Is it possible to communicate two different resources? How?
Are you using two different VISA resources, pointing to two different devices?
Or do you want to set the setpoint on the very same device as you read your process values from?
03-16-2023 11:07 AM
Hi GerdW,
To be clear, yes I am using two different devices. Both need to be called separately. Once the second device is done with the execution, I need to increment a value in the first device.
Is it possible to link two different visa resources. I just tried to connect it, it is showing a broken wire.
03-16-2023 01:36 PM - edited 03-16-2023 01:38 PM
Hi jrengg,
@jrengg wrote:
Once the second device is done with the execution, I need to increment a value in the first device.
How do you know the "2nd device is done"?
Do you get a specific response? Can you request a status report?
Do your devices offer some Trigger lines/signals?
Which devices do we talk about?
03-17-2023 02:49 AM
Hi GerdW,
To answer your question:
1. I have set a elapsed timer to stop the execution of the second loop(for eg., 30sec). I have made a Boolean light to indicate the response and also a indicator to count the number of times the LED blinks. It is possible to plot a graph and obtain the data.
2. No, once the execution stop, again the visa resource 1 starts to run again with the same input value. I want to increment the value once the visa resource 2 stops.
How to synchronize both the resources?
I am trying to make a automated temp control over MPI and a reader device.
03-17-2023 02:56 AM
Hi jrengg,
@jrengg wrote:
1. I have set a elapsed timer to stop the execution of the second loop(for eg., 30sec). I have made a Boolean light to indicate the response and also a indicator to count the number of times the LED blinks. It is possible to plot a graph and obtain the data.
2. No, once the execution stop, again the visa resource 1 starts to run again with the same input value. I want to increment the value once the visa resource 2 stops.
How to synchronize both the resources?
What about setting up a statemachine to handle/synch both resources?
Then your problem reduces to handle the conditions for each state - one state should be "increment input value for VISA resource 1" (or similar)…
03-17-2023 08:03 AM
Hi GerdW,
I will try to implement your suggestion.
Thank you!