07-27-2021 06:07 PM
I am looking for a way to effectively toggle a certain line in my PXIe digital output module to either ON or OFF.
I was under the impression that I could set a state to a Boolean ON or OFF, similar to Arduino, however I cannot find such a functionality.
I am not trying to write 0xFF constantly in an array. Am I missing something?
Solved! Go to Solution.
07-27-2021 08:23 PM
You've to be more specific about the instrument model and share the VI you've implemented.
FYI - arduino made it simpler if you've to do the same in C on ATMEGA it will still be writing numeric value to registers.
07-27-2021 08:43 PM
Hi,
Thank you for your response. I am currently implementing this in C (LabWindows), however the question would most likely still stand for LabVIEW.
To be more specific, is there a way on my DIO Module, PXIe-6509, to set a line to ON.
My actuated mechanism is a valve, and I want to send a command to open a desired valve, go about the rest of my program, and later send a command to close the valve.
I do not want to write an array of ON (0xFF), because this is finite and requires multithreading.
07-27-2021 09:37 PM
Yes, you can. This function takes in boolean or boolean array based on how many channels are included while creating the task.
As long as it is finite or static write, multithreading is okay, but each DAQmx write call will be a blocking call.
07-27-2021 09:50 PM
Thank You!
I will implement this in C