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.

Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

HSDIO initializing acquisition and generation tasks in parallel while loops

Solved!
Go to solution

Hi NI Community,

 

I'm using the example “Dynamic Generation and Acquisition Demo.vi” to write this program.

 

I'm trying to set 2 while loops. One for acquiring data and one for generating high/low logic. 

 

However, I'm having issue with the generation loop. Please see attached for my program.

 

HSDIO_AcqGen_Issue.PNG

 

Here is the example VI I'm talking about

hsido example.PNG

 

Thank you!

0 Kudos
Message 1 of 5
(1,415 Views)
Solution
Accepted by topic author victor55

Looks like you have wired the resource name incorrectly to Generation Init and Acquisition Init

santo_13_0-1601223140506.png

Please do not skip configuring the sampling clock, levels for both generation and acquisition.

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
Message 2 of 5
(1,363 Views)

Thank you for your help! It worked.

 

 

0 Kudos
Message 3 of 5
(1,359 Views)

Just curious - Do you know how to save the data into TMDS from the niHSDIO Fetch.vi with 1D WDT data type?

0 Kudos
Message 4 of 5
(1,358 Views)

Please refer to the below example in the example finder to log 1D WDT to TDM file

santo_13_0-1602601561389.png

 

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 5 of 5
(1,309 Views)