06-25-2024 03:31 AM
Hi, thank you for the response. The problem is that it changes the color of the entire plot, and I had some issues with manipulating the DAQ Assistant signal, because i want to use a waveform chart to keep history of sensor measurement.
06-25-2024 03:56 AM
Hi Mehdi,
@MEHDI_LIS wrote:
The problem is that it changes the color of the entire plot, and I had some issues with manipulating the DAQ Assistant signal, because i want to use a waveform chart to keep history of sensor measurement.
As I wrote before: instead of using InRangeAndCoerce you use the 3 buttons to determine the plot to be used.
It will not "change colors" as it works the same way the IRAC works right now!
06-25-2024 07:19 AM
This seems to be an AND operation:
if (according button is pressed AND signal index is in range) {
return signal
}
else {
return NaN
}
06-25-2024 07:35 AM
I tried not using the range and InRangeAndCoerce function, but it didn't work.
06-25-2024 07:45 AM
Hi Mehdi,
@MEHDI_LIS wrote:
I tried not using the range and InRangeAndCoerce function, but it didn't work.
So what did you try?
What exactly "didn't work"?
06-25-2024 07:53 AM - edited 06-25-2024 07:55 AM
I used the boolean state of buttons as condition instead of InRangeAndCoerce. I tried also to do the AND operation:
if (according button is pressed AND signal index is in range) {
return signal
}
else {
return NaN
}
06-25-2024 08:19 AM
@MEHDI_LIS wrote:
I used the boolean state of buttons as condition instead of InRangeAndCoerce. I tried also to do the AND operation:
if (according button is pressed AND signal index is in range) {
return signal
}
else {
return NaN
}
It would always be best to attach the latest status of the VI so everyone can see how you implemented the logic and why it may/may not work.
06-25-2024 08:53 AM
Please you find attached the latest vi.
06-25-2024 09:05 AM - edited 06-25-2024 09:06 AM
06-26-2024 01:59 AM - edited 06-26-2024 02:03 AM
Hi, thank you for the response. So i had the same problem as i said before, this creates one curve with one color when i click on button ( when i click on another button it creates one another curve with one color) but not differents sections with differents colors.