取消
显示结果 
搜索替代 
您的意思是: 

CPU efficiency: formula node or Labview generic operations?

Hello,
 
 ihave a big program which requires to calculate a lot of analog ramps with 10us step size, for a time of about 20sec. it leads to a calculation time wich reaches fast the few seconds!
i use a formula node in which the ramp function is defined. i could use all normal labview operations if the operation appear to be faster.
i have looked at the usual memory allocations, and could not find a big flaw
-----------------------------------------------------------------------------------------------------
... And here's where I keep assorted lengths of wires...
0 项奖励
1 条消息(共 5 条)
3,388 次查看

Don't forget that there is also a "ramp pattern" tool in the signal generation palette.

I always like the experimental approach: The best advice would be to wire up a few alternative version and compare speed and memory use in a small benchmarking application.

How many such ramps are in memory at any given time? Does your code generate extra data copies? What is the datatype? An 20M Sample ramp of DBL is 160MB!

 

2 条消息(共 5 条)
3,384 次查看

thanks for your tips.

will do so. btw i sent this thread again with a vi attached. (somehow it appeared as a separate question, sorry about that).

 

-----------------------------------------------------------------------------------------------------
... And here's where I keep assorted lengths of wires...
0 项奖励
3 条消息(共 5 条)
3,379 次查看
Also, can you be a bit more specific on the "ramp" you are trying to generate.
 
A linear ramp with your specifications would require a D/A converter better than 24bits. What kind of hardware do you have?
0 项奖励
4 条消息(共 5 条)
3,378 次查看
OK, the program is posted elsewhere, so let's continue in the other thread:
 
0 项奖励
5 条消息(共 5 条)
3,374 次查看