From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

state machine

Hi,
how can i build a state machine in Diadem DAC? f.e. for handshaking with a  PLC.
Are there examples or suggestions?

Thank you in advance

Klaus
0 Kudos
Message 1 of 3
(3,238 Views)
Hi Klausc127,

In general it should be possible to create something similar to a "State Machine" by using the DAC-Script-Driver - but I've never tested it. In the script you can use global defined variables to store the status of a machine. You can use the function SFD_GetScan to interpret the status and process the value in different ways. The remaining stuff is just VBS.
But please keep in mind that because of the structure of DIAdem-DAC it is not possible to measure a specific channel depending on the status of a machine. You can only measure all channels which are necessary for the process - the same is for the output. For this you can work with NOVALUES or a dummy value.
I hope this can help you.

Greetings
Walter

0 Kudos
Message 2 of 3
(3,206 Views)
Hi Walter,
thank you for your hint.

Greetings
Klaus
0 Kudos
Message 3 of 3
(3,190 Views)