10-30-2019 07:00 AM
You are most likely waiting for the host to make the connection. What I usually do for these types of applications is use a sort of State Machine on the cRIO that just manages the network connection. It can receive data from the acquisition loop via a queue and either pass it through the Network Stream (if connection is valid) or ignore it (if connection is invalid). This network loop can detect disconnections using errors and go back to trying to connect while still clearing out the queue.
10-30-2019 08:55 AM
thanks crossrulz
but why it is not making the Connection in this case ? my IP is correct
Also, where should i learn more About Queue with state machine ?
do you know some examples related to my application ?
can you send some examples or links realted to my application
10-30-2019 09:21 AM
@vishal231 wrote:
but why it is not making the Connection in this case ? my IP is correct
Also, where should i learn more About Queue with state machine ?
do you know some examples related to my application ?
can you send some examples or links realted to my application
The connection has to be made on both sides of the Network Stream (cRIO and the host). So I suspect you did not run your PC VI.
Producer/Consumer, State Machine
10-30-2019 09:44 AM
I did ran the PC VI simulaneously , still Acquisition loop is not working . what can be the issue
10-30-2019 09:59 AM
yeah , it did connected now , but yes i have to learn to make a state machine
10-30-2019 10:46 AM
hello crossrulz,
How can i convert 2d Array waveform of data(dbl) to 1d Array waveform (dbl)? for saving the data in th save VI running on PC
10-30-2019 01:53 PM
You have a loop in there you just don't need anymore. You can read a single waveform from the Network Stream and then use a queue to send that to your consumer loop. The Network Stream is to replace your Network Published Shared Variable.
10-31-2019 06:50 AM
hello crossrulz,
thnaks for your help
now i am able to collect data on Excel file.
I havent made any state machine , or Queue Operation in my acquire VI running on Crio yet.
But, I have to run both the file for saving data and Monitoring the data on frontal panel
Now,I want to monitor my data too, Maybe from acquire VI, but, its only possible when i start the saving VI on PC .
I need to select time from front panel to save data for that time and monitor data contineously
10-31-2019 08:23 AM
hello crossrulz,
When i am reading the data from Read multiple Elements from stream from VI running on PC through probe, it is is in the Flash form , it is not continuous , I want to monitor the data from VI on pc but ist not possible properly why?
11-04-2019 03:08 AM
Hello ,
Thanks for help
still ,I am not able to figure out how to use the state machine in my application.
I did used the Queue but, I have to run bothe the VI to save data (also i have to start the save vi first and then acq VI which is acquistion VI)
I Need to monitor the data on save vi and Need to save the data on that VI only through a timer
I have attched the updated VIs