07-21-2014 08:58 AM
Hey there!
I have my NI Box connected to my PC via a LAN to USB box from silex.
Now I am trying to read out the analog channels with the method ReadSingleSample from the AnalogMultiChannelReader class.
This call never returns I call the method inside of a task which has an endless timeout.
Is this a known issue? Is there any workarround?
I use the C# API
Thank you very much
Phil
07-21-2014 04:04 PM
NI box?
What is that?
07-22-2014 08:10 AM
Hi Phil,
I would have the same question: What kind of NI hardware are you using?
It is always helpful if you provide us with a bigger portion of the source code or even the project as a attachment.
Best regards,
Christoph
07-23-2014 02:03 AM
Hey
Here is my configuration:
I use the NI Box USB6009 OEM which is connected with a Lan to USB box from silex (SX-3000GB) to the PC.
My Code is very simple no big deal I thought
AnalogMultiChannelReader reader = new AnalogMultiChannelReader(analogRead.Stream); analogRead.Control(TaskAction.Verify); double[] data = reader.ReadSingleSample(); // TODO: This read is not working via lanToUSB
analogRead is an instance of the class NationalInstruments.DAQmx.Task
And the application does not return from the last call reader.ReadSingleSample()
I hope that helps you to understand my problem
Thanks
Phil
07-23-2014 07:37 AM
@schlaug wrote:
Hey
Here is my configuration:
I use the NI Box USB6009 OEM which is connected with a Lan to USB box from silex (SX-3000GB) to the PC.
My Code is very simple no big deal I thought
AnalogMultiChannelReader reader = new AnalogMultiChannelReader(analogRead.Stream); analogRead.Control(TaskAction.Verify); double[] data = reader.ReadSingleSample(); // TODO: This read is not working via lanToUSBanalogRead is an instance of the class NationalInstruments.DAQmx.Task
And the application does not return from the last call reader.ReadSingleSample()
I hope that helps you to understand my problem
Thanks
Phil
Have you verified that this set-up works?
Are you able to makethe readings using NI-MAX?
Sounds like you may have a problem with your LAN to USB adapter.