Jump to content

Read the Analog Input


hakannn

Recommended Posts

Constant physical channels you currently set as single chanel.

Open physical channels and select Browse... then click with Ctrl button pressed to select more than one physical channel. 

You could also set adress that way:

QUOTE

Dev1/ai1:5

then you will use channel 1, 2, 3 , 4 and 5

Link to comment

hi jgcode,

thanks for your reply.

i tryied your solution but i couldn't managed it. ( The next step is to build a circular buffer" i couldn't understand, what does it means "circular buffer"?? :s )

after i tryied other solution and i saw signals.

the last problem about program,

The program can't save the "coefficent" and "plus" number. can i save this number. i don't want to write it everytime when i open the program

i hope i'll solve that problem.

again, thanks for everything...

hakan...

Link to comment

QUOTE (hakannn @ Jun 6 2008, 07:37 PM)

hi jgcode,

thanks for your reply.

i tryied your solution but i couldn't managed it. ( The next step is to build a circular buffer" i couldn't understand, what does it means "circular buffer"?? :s )

after i tryied other solution and i saw signals.

the last problem about program,

The program can't save the "coefficent" and "plus" number. can i save this number. i don't want to write it everytime when i open the program

Making a 2D array is a solution for a waveform GRAPH

Another solution is to use the waveform CHART like you have done and let the chart handle buffering (which is statically set).

You may find handling your own buffer is more flexible, but if you are after a quick solution the chart is actually probably the easiest.

If you need to save your scale and offset and the values do not change per collection then convert them to a string and write them to disk as a header in your collection file is an option.Do this before you enter the loop. If the values do not change there is no point continually polling the FP panel every time you do a read.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.