LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Inserting points for the simulate arbitrary express vi on the front panel

Solved!
Go to solution

I am not familiar with chunks and i couldn't really find something on the internet about it. Can you explain something about chunks or give a link where i can find some explanation about it?

 

 

0 Kudos
Message 21 of 28
(901 Views)

@WillemNL wrote:

I am not familiar with chunks and i couldn't really find something on the internet about it. Can you explain something about chunks or give a link where i can find some explanation about it?


A chunk is just slang for 'more than one sample'.

 

Your DAQ AO is now set to output one value per cycle.

 

You can set it to 1D Array, and output 100 or 1000 samples at once. Of course you can't use auto indexing anymore. You can use the iterator i, and multiply it with the size. Then use Array subset to get data from index iXn and length n. Or put the array in a shift register and use Delete From Array to get the sub arrays from the beginning, and pass the remaining array to the next iteration. This will be CPU hungry if the array is big (megabytes).

 

This will let the HW determine the output rate. If you don't supply the next chunk in time, you'll get an error. But this timing isn't very strict. The DAQmx has a buffer, and you can add chunks to it. As long as the buffer it's not full or empty, DAQmx will output the data to the hardware.

0 Kudos
Message 22 of 28
(898 Views)

Okay i will try that! Thanks 

0 Kudos
Message 23 of 28
(896 Views)

I think i got it, you write with the subset array a part of the array before the loop to the DAQmx. But how do you control the output rate with the hardware? The hardware i am using is a simulated NI cDAQ-9178 with a simulated NI9263 module. 

0 Kudos
Message 24 of 28
(891 Views)

I'm not that much into DAQ, but (simulated) devices that support buffered output define their frequency in the task. This can be in Max or in LabVIEW (if you create a task in LabVIEW). So for you the easiest way would be to change it in Max, where the task is defined.

0 Kudos
Message 25 of 28
(882 Views)

I already tried some things but I close this topi because i already have the solution for my first question so thanks!!!!

0 Kudos
Message 26 of 28
(862 Views)

@WillemNL wrote:

I already tried some things but I close this topi because i already have the solution for my first question so thanks!!!!


You're welcome. Hope to meet you at a Dutch LabVIEW user event someday, if\when things are back to normal.

0 Kudos
Message 27 of 28
(852 Views)

I will look out to the event! 🙂 

Message 28 of 28
(846 Views)