FieldPoint Family

cancel
Showing results for 
Search instead for 
Did you mean: 

How do you create indicators for pulse output on a FP-PG-502 (generating Pulses)

I am using an FP-CTR-502 to generate 2 different streams of pulses. I have connected a pulse counter on the output and have determined that I am outputting a reasonable amount of pulses for a given period. However I am trying to put a couple of indicators on my control tab so that I can see the actual pulses that were generated. When using the generators I must know the correct pulses so that I can check against the receiver to make sure that it is receiving the correct number of pulses. I have tried the source counters and the actual channels and do not get a correct reading of counts. I know this because during testing I am monitoring the output with a counter. I am trying
to have the indicator rather than using an external counter to avoid impedence matching problems due to the many devices that it could be connected to when being used. I have attached a draft of the Vi and the iak file for FP explorer.
Download All
0 Kudos
Message 1 of 3
(3,391 Views)
I am not sure whether you are using the FP-PG-522 or the FP-CTR-502.
For FP-CTR-502 you can read from Channel 12-15 to see the current state of the output (true/false or high/low). You could show this state through a boolean indicator. For the FP-PG-522 you can read channel 8-15.

If you want a count of the number of pulses generated then you could increment the count every time the channel changes from false to true. That is the last value read is false and the current value is true. This will work as long as the frequency of the pulse train is not to high.

Finally if you have an extra counter you can set the count source of one of the counters to be the output of the previous counter. For example if you used the counter on channel 0 to generate a
pulse train, then you could use the counter on channel 1 to count the pulses generated by the first counter.
Message 2 of 3
(3,391 Views)
Carl, I am using the FP-CTR-502, I thoough about incrementing the indicators on the basis of a change in the boolan output of channel 12 & 13 for the two generators. However I am not sure just how to do this I tried converting to a number say 0 0r 1 and that simply gave me a loop that either showed a 0 or a 1 in the indicator. Likily using the other two counters is the easiiest way to increment the indicators but I was trying to keep these free in case I had a problem with a generator in the future, so I could switch to diffierent channels. I am using the 32khz clock to generate the pulses to channels 12 & 13, and the max frequency would likely be 1khz is, is this to fast for the true false switching method you suggest.
Thanks Steve
0 Kudos
Message 3 of 3
(3,391 Views)