Hi
I am a new user of LabView and need to construct an application to verify the operation of data logger programs. I need simulate data from various analogue and digital instruments using standard test data from a spreadsheet. I have just about figured out how to take data from a CSV file and set a FP output to this value for analogue values (voltages and 4-20mA signals) but dont really know how to simulate a digital instrument.
For example one of the instruments I need to simulate is a rotary encoder which produces a 16 bit binary string representing a value in mm this is done on the instrument as follows:
Dataloger sets the enable line high (5V)
Datalogger reads LSB from instrument output buffer (0V = 0, 5V=1)
Dataloger sends 10ms pulse to instrument.
Next bit sent to output buffer on negative edge of pulse
Datalogger reads bit value from output buffer
Datalogger sends 10mS pulse etc etc until all 16 bits have been recieved
Datalogger sets enable line low
In order to test the logger programs I have to send test data from a CSV file to mimic the operation of the encoder ie take a decimal value from the file - convert to 16bit binary - wait for enable line on logger set channel x on FP-DI-330 high - send first bit to channel n on th FP-DO-403 - wait for logger to send clock pulse to channel y on FP-DI-330 - send next bit to channel n etc etc.
Any idea how I might do this?