2 Topics

Member Avatar for
Member Avatar for ben25x

Before looking at the code, here's an explanation: NIDAQmx is a hardware-in-the-loop integration software from National Instruments. They give this sample code to create any voltage out of the card. The variable "float64 data[1]" is a double precision floating point that defines the actual voltage being emitted from the card; …

Member Avatar for ben25x
0
448
Member Avatar for ben25x

Hello, I've been having a lot of trouble with a variable type called "float64". I'm trying to create a do{}while loop to make the number count up each time. data is also defined as an array. [CODE]float64 data[1]; int i; do{ for(i=0;i<1;i++) { data[i]=data[i]+.01; if(data[i]>9.99) data[i]=-9.99; } }while('0'=='0');[/CODE] Any guidance …

Member Avatar for ben25x
0
125

The End.